chenrui  2 ani în urmă
părinte
comite
b80b6aa204

+ 32 - 5
src/views/securityCheck/components/securityCheckHeader.vue

@@ -65,9 +65,14 @@
       </template>
       <template v-if="withSelect">
         <a-form-item prop="selection" style="margin-right: 16px">
-          <a-select :default-value="optionLists[0]" @change="handleChange">
-            <a-select-option v-for="province in optionLists" :key="province">
-              {{ province }}
+          <a-select @change="handleChange">
+            <a-select-option
+              v-for="item in optionLists"
+              :key="item.name"
+              :value="item.name"
+              :title="item.label"
+            >
+              {{ item.name }}
             </a-select-option>
           </a-select>
           <!-- <a-select
@@ -172,7 +177,29 @@ export default {
   data() {
     return {
       changeButtonLoading: false,
-      optionLists: ["", "低风险", "优先", "普通", "高风险", "严控"],
+      optionLists: [
+        {
+          name: "全部",
+          lable: "",
+        },
+        {
+          name: "A",
+          lable: "A",
+        },
+        {
+          name: "B",
+          lable: "B",
+        },
+        {
+          name: "C",
+          lable: "C",
+        },
+        {
+          name: "D",
+          lable: "D",
+        },
+      ],
+      // optionLists: ["", "A", "B", "C", "D"],
       formData: {
         beginDate: "",
         endDate: "",
@@ -269,7 +296,7 @@ export default {
     },
   },
   mounted() {
-    this.formData.selection = this.optionLists[0];
+    this.formData.selection = this.optionLists[0].name;
     this.formData.dateRangeRadio = "当日";
   },
   methods: {

+ 1 - 0
src/views/securityCheck/views/cargoCharts.vue

@@ -222,6 +222,7 @@ export default {
           let strictlyall = eval(strictly.join("+")); //严控级总和
           let alldata = arrall + Lowall + firsall + ptall + strictlyall; // 总数
           this.init(arr, arrx, Low, firs, pt, strictly);
+
           this.datarisk.data = result.data;
         }
         console.log(result);