Browse Source

处理financial为null的情况

GouGengquan 3 months ago
parent
commit
259696a003
1 changed files with 10 additions and 3 deletions
  1. 10 3
      src/views/statistical/major/evaluateEfficiency.vue

+ 10 - 3
src/views/statistical/major/evaluateEfficiency.vue

@@ -35,8 +35,9 @@
                         <el-table-column label="评估目的" width="150">
                             <template slot-scope="{row}">
                                 <span>{{ row.evaluateAim }}</span><br />
-                                <span style="color: green;" v-if="row.financial">(金融)</span>
-                                <span style="color: red;" v-else>(非金融)</span>
+                                <span style="color: green;" v-if="row.financial === true">(金融)</span>
+                                <span style="color: red;" v-if="row.financial === false">(非金融)</span>
+                                <span style="color: gray;" v-if="row.financial === null">(未选择)</span>
                             </template>
                         </el-table-column>
                         <el-table-column label="未看现场数">
@@ -534,7 +535,8 @@ export default {
                 evaluateAim: null,
                 financial: null,
                 informalEvaluate: null,
-                principalId: null
+                principalId: null,
+                financialIsNull: null
             },
             // 接单部门
             allotDepartment: [],
@@ -704,6 +706,11 @@ export default {
             );
         },
         setListQueryParms(efficiencyType, evaluateAim, financial, informalEvaluate, startTime, endTime, userId, memberId) {
+            if (financial === null && this.activeTabName === 'department') {
+                this.listQueryDetail.financialIsNull = true;
+            } else {
+                this.listQueryDetail.financialIsNull = null;
+            }
             this.dialogVisible = true;
             this.listQueryDetail.page = 1;
             this.listQueryDetail.size = 10;