Sfoglia il codice sorgente

fix(风险监控) 用颜色突出新增的数据

liu1tian 10 mesi fa
parent
commit
a818b1e5d8

+ 23 - 6
src/views/ctyc/info/approval.vue

@@ -159,12 +159,13 @@
           </el-col>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>主要人员 {{infoForm.companyInfo.staffNum?infoForm.companyInfo.staffNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.staffAdd?infoForm.companyInfo.staffAdd:0}})</span></h4>
+          <h4>主要人员 {{infoForm.companyInfo.staffNum?infoForm.companyInfo.staffNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.staffAdd?infoForm.companyInfo.staffAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.staffs"
-                  style="width: 100%">
+                  style="width: 100%;"
+                  :row-class-name="tableRowClassName" >
                   <el-table-column
                     type="index"
                     width="50">
@@ -182,11 +183,12 @@
         </el-form-item>
 
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>对外投资 {{infoForm.companyInfo.inverstNum?infoForm.companyInfo.inverstNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.inverstAdd?infoForm.companyInfo.inverstAdd:0}})</span></h4>
+          <h4>对外投资 {{infoForm.companyInfo.inverstNum?infoForm.companyInfo.inverstNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.inverstAdd?infoForm.companyInfo.inverstAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.inversts"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -221,11 +223,12 @@
         </el-form-item>
         
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>变更记录 {{infoForm.companyInfo.changeinfoNum?infoForm.companyInfo.changeinfoNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.changeinfoAdd?infoForm.companyInfo.changeinfoAdd:0}})</span></h4>
+          <h4>变更记录 {{infoForm.companyInfo.changeinfoNum?infoForm.companyInfo.changeinfoNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.changeinfoAdd?infoForm.companyInfo.changeinfoAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.changeinfos"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -252,11 +255,12 @@
         </el-form-item>
 
       <el-form-item label="" prop="" v-if="ef2">
-          <h4>立案信息 {{infoForm.companyInfo.courtRegisterNum?infoForm.companyInfo.courtRegisterNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.courtRegisterAdd?infoForm.companyInfo.courtRegisterAdd:0}})</span></h4>
+          <h4>立案信息 {{infoForm.companyInfo.courtRegisterNum?infoForm.companyInfo.courtRegisterNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.courtRegisterAdd?infoForm.companyInfo.courtRegisterAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if=ef2>
                       <el-table
                   :data="infoForm.courtRegisters"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -286,11 +290,12 @@
         </el-form-item>
 
      <el-form-item label="" prop="" v-if="ef2">
-          <h4>失信被执行人 {{infoForm.companyInfo.dishonestNum?infoForm.companyInfo.dishonestNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.dishonestAdd?infoForm.companyInfo.dishonestAdd:0}})</span></h4>
+          <h4>失信被执行人 {{infoForm.companyInfo.dishonestNum?infoForm.companyInfo.dishonestNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.dishonestAdd?infoForm.companyInfo.dishonestAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if=ef2>
                       <el-table
                   :data="infoForm.dishonests"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -697,8 +702,20 @@ export default {
       this.ef2 = true;
       this.bp1 = true;
       this.bp2 = false;
+    },
+    tableRowClassName({ row, rowIndex }) {
+      if (row.marks == '1') { // 替换 yourCondition 为你的条件
+        return 'highlight-row';
+      }
+      return '';
     }
   }
 };
 </script>
 
+<style>
+.highlight-row {
+  color: red; /* 你想要的颜色 */
+}
+</style>
+

+ 21 - 5
src/views/ctyc/info/approved.vue

@@ -182,11 +182,12 @@
           </el-col>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>主要人员 {{infoForm.companyInfo.staffNum?infoForm.companyInfo.staffNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.staffAdd?infoForm.companyInfo.staffAdd:0}})</span></h4>
+          <h4>主要人员 {{infoForm.companyInfo.staffNum?infoForm.companyInfo.staffNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.staffAdd?infoForm.companyInfo.staffAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.staffs"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -205,11 +206,12 @@
         </el-form-item>
 
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>对外投资 {{infoForm.companyInfo.inverstNum?infoForm.companyInfo.inverstNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.inverstAdd?infoForm.companyInfo.inverstAdd:0}})</span></h4>
+          <h4>对外投资 {{infoForm.companyInfo.inverstNum?infoForm.companyInfo.inverstNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.inverstAdd?infoForm.companyInfo.inverstAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.inversts"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -244,11 +246,12 @@
         </el-form-item>
         
         <el-form-item label="" prop="" v-if="ef1">
-          <h4>变更记录 {{infoForm.companyInfo.changeinfoNum?infoForm.companyInfo.changeinfoNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.changeinfoAdd?infoForm.companyInfo.changeinfoAdd:0}})</span></h4>
+          <h4>变更记录 {{infoForm.companyInfo.changeinfoNum?infoForm.companyInfo.changeinfoNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.changeinfoAdd?infoForm.companyInfo.changeinfoAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if="ef1">
                       <el-table
                   :data="infoForm.changeinfos"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -275,11 +278,12 @@
         </el-form-item>
 
       <el-form-item label="" prop="" v-if="ef2">
-          <h4>立案信息 {{infoForm.companyInfo.courtRegisterNum?infoForm.companyInfo.courtRegisterNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.courtRegisterAdd?infoForm.companyInfo.courtRegisterAdd:0}})</span></h4>
+          <h4>立案信息 {{infoForm.companyInfo.courtRegisterNum?infoForm.companyInfo.courtRegisterNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.courtRegisterAdd?infoForm.companyInfo.courtRegisterAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if=ef2>
                       <el-table
                   :data="infoForm.courtRegisters"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -309,11 +313,12 @@
         </el-form-item>
 
      <el-form-item label="" prop="" v-if="ef2">
-          <h4>失信被执行人 {{infoForm.companyInfo.dishonestNum?infoForm.companyInfo.dishonestNum:0}} <span style="color:orange">(近期新增 {{infoForm.companyInfo.dishonestAdd?infoForm.companyInfo.dishonestAdd:0}})</span></h4>
+          <h4>失信被执行人 {{infoForm.companyInfo.dishonestNum?infoForm.companyInfo.dishonestNum:0}} <span style="color:red">(近期新增 {{infoForm.companyInfo.dishonestAdd?infoForm.companyInfo.dishonestAdd:0}})</span></h4>
         </el-form-item>
         <el-form-item label="" prop="" v-if=ef2>
                       <el-table
                   :data="infoForm.dishonests"
+                  :row-class-name="tableRowClassName"
                   style="width: 100%">
                   <el-table-column
                     type="index"
@@ -757,8 +762,19 @@ export default {
       this.ef2 = true;
       this.bp1 = true;
       this.bp2 = false;
+    },
+    tableRowClassName({ row, rowIndex }) {
+      if (row.marks == '1') { // 替换 yourCondition 为你的条件
+        return 'highlight-row';
+      }
+      return '';
     }
   }
 };
 </script>
 
+<style>
+.highlight-row {
+  color: red; /* 你想要的颜色 */
+}
+</style>

+ 0 - 2
src/views/ctyc/info/index.vue

@@ -45,14 +45,12 @@
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
-            v-hasPermi="['ctyc:info:edit']"
           >修改</el-button>
           <el-button
             size="mini"
             type="text"
             icon="el-icon-delete"
             @click="handleDelete(scope.row)"
-            v-hasPermi="['ctyc:info:remove']"
           >删除</el-button>
         </template>
       </el-table-column>