Browse Source

租户平台 首页 常用功能图标线上不显示问题修改

祁鹏飞 1 month ago
parent
commit
61fca42c10
2 changed files with 54 additions and 32 deletions
  1. 20 2
      src/views/index.vue
  2. 34 30
      src/views/quoteConfig/agreement/agreementDetails.vue

+ 20 - 2
src/views/index.vue

@@ -14,6 +14,15 @@ import { useRouter } from 'vue-router'
 import up from '@/assets/images/home/up.png'
 import down from '@/assets/images/home/down.png'
 
+import bldd from '@/assets/images/home/bldd.png'
+import ddcx from '@/assets/images/home/ddcx.png'
+import cxcd from '@/assets/images/home/cxcd.png'
+import xygl from '@/assets/images/home/xygl.png'
+import fygl from '@/assets/images/home/fygl.png'
+import bxgs from '@/assets/images/home/bxgs.png'
+import bxgszh from '@/assets/images/home/bxgszh.png'
+import ywygl from '@/assets/images/home/ywygl.png'
+
 import chinaMap from '@/assets/json/china.json'
 
 echarts.registerMap('china', chinaMap)
@@ -707,9 +716,18 @@ const initCommonFunctions = () => {
   api.homeApi.commonFunctions().then((res: any) => {
     if (res.code == 200) {
       functionsList.value = res.data
+      const icanObj={
+        'Insurancepolicyorder':ddcx,
+        'Index':cxcd,
+        'AdditionalOrderIndex':bldd,
+        'InsuranceCompanyAccount':bxgszh,
+        'CostManagement':fygl,
+        'AgreementIndex':xygl,
+        'Operation':ywygl,
+        'personnelMember':bxgs,
+      }
       functionsList.value.forEach(item => {
-        const ican = new URL(`${item.ican}`, import.meta.url).href
-        item.ican = ican
+        item.ican = icanObj[item.name]
       })
     } else {
       functionsList.value = []

+ 34 - 30
src/views/quoteConfig/agreement/agreementDetails.vue

@@ -32,7 +32,7 @@
                   getDict('is_enable').find(val => val.value == agreementInfo.isEnable)?.label}}</el-tag>
                 <el-tag type="success">{{getDict('valid_status').find(val => val.value ==
                   agreementInfo.validStatus)?.label
-                }}</el-tag>
+                  }}</el-tag>
               </div>
             </div>
             <el-descriptions :column="3" style="margin-top: 10px;">
@@ -50,9 +50,9 @@
           </div>
           <el-descriptions title="基本信息" class="m-top-20" :column="3">
             <el-descriptions-item label="协议名称:">{{ agreementInfo.agreementTitle
-            }}</el-descriptions-item>
+              }}</el-descriptions-item>
             <el-descriptions-item label="协议简称:">{{ agreementInfo.agreementAbbreviation
-            }}</el-descriptions-item>
+              }}</el-descriptions-item>
             <el-descriptions-item label="协议生效时间:">{{ agreementInfo.startDate }}</el-descriptions-item>
             <el-descriptions-item label="协议失效时间:">{{ agreementInfo.endDate }}</el-descriptions-item>
             <el-descriptions-item label="是否含增值税结算:">
@@ -117,7 +117,7 @@
                   <div class="flex a-c">
                     <img src="../../../assets/images/fee.png" alt="">
                     <span style="margin-right: 30px;font-size: 16px;" class="strong m-left-10">承保规则一{{ index + 1
-                      }}</span>
+                    }}</span>
                   </div>
                   <div class="flex">
                     <el-button link type="primary" :icon="CopyDocument" @click="handleCopy(item, {})">复制费用</el-button>
@@ -226,32 +226,34 @@
         <div class="flex a-c ">
           <span class="strong title" style="margin-right: 20px;">规则条件</span>
           <el-button type="primary" link @click="ruleCopy(true)">
-              批量复制到规则
-              <template #icon>
-                <el-icon>
-                  <CopyDocument />
-                </el-icon>
-              </template>
-            </el-button>
+            批量复制到规则
+            <template #icon>
+              <el-icon>
+                <CopyDocument />
+              </el-icon>
+            </template>
+          </el-button>
         </div>
         <el-checkbox-group v-model="checkboxList">
-          <el-checkbox label=" " :value="rules.timeId" v-for="rules in rulesAttrListInfo.rulesGroups" :key="rules.timeId">
+          <el-checkbox label=" " :value="rules.timeId" v-for="rules in rulesAttrListInfo.rulesGroups"
+            :key="rules.timeId">
             <template #default>
-            <div class="bg-[#FAFAFA] p-20px m-t-20px" >
-              <!-- 规则选择容器 -->
-              <div class="flex items-center justify-between">
-                <el-button type="primary" link @click="addRules('and', rules)">
-                  并且条件
-                  <template #icon>
-                    <el-icon>
-                      <Plus />
-                    </el-icon>
-                  </template>
-                </el-button>
+              <div class="bg-[#FAFAFA] p-20px m-t-20px">
+                <!-- 规则选择容器 -->
+                <div class="flex items-center justify-between">
+                  <el-button type="primary" link @click="addRules('and', rules)">
+                    并且条件
+                    <template #icon>
+                      <el-icon>
+                        <Plus />
+                      </el-icon>
+                    </template>
+                  </el-button>
+                </div>
+                <rule-Condition-Container :rulesAttrList="rules.rulesAttrList"
+                  @Del="(index) => rulesAttrDel(index, rules)"
+                  @selectChange="(index) => rulesAttrselectChange(index, rules)" />
               </div>
-              <rule-Condition-Container :rulesAttrList="rules.rulesAttrList" @Del="(index) => rulesAttrDel(index, rules)"
-                @selectChange="(index) => rulesAttrselectChange(index, rules)" />
-            </div>
             </template>
           </el-checkbox>
         </el-checkbox-group>
@@ -832,10 +834,10 @@ const checkboxList = ref([])
 
 const ruleCopy = (multiple: boolean) => {
   copyMultiple.value = multiple
-  if(multiple && checkboxList.value.length===0){
+  if (multiple && checkboxList.value.length === 0) {
     ElMessage.error('请选择规则条件')
   }
-  rulesSel.value=checkboxList.value.map(v=> rulesAttrListInfo.rulesGroups.find(k=>k.timeId===v)?.rulesAttrList.map(k=>k.id))
+  rulesSel.value = checkboxList.value.map(v => rulesAttrListInfo.rulesGroups.find(k => k.timeId === v)?.rulesAttrList.map(k => k.id))
   selectList.value = [{ time: Date.now() }]
   agreementId.value = ''
   const params = {
@@ -1490,11 +1492,13 @@ const submitUpdate1 = () => {
 :deep(.el-checkbox) {
   height: auto;
   width: calc(100% - 10px);
-  .el-checkbox__label{
-  width: calc(100% - 10px);
+
+  .el-checkbox__label {
+    width: calc(100% - 10px);
 
   }
 }
+
 :deep(.demo-tabs .el-tabs__item) {
   font-size: 20px;
   font-weight: bold !important;