From 6e1be6afed910d217199278bb3f89d8922dfc5af Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 03 八月 2022 19:17:56 +0800
Subject: [PATCH] 双重预防系统

---
 src/views/doublePrevent/riskLevel/device/index.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/views/doublePrevent/riskLevel/device/index.vue b/src/views/doublePrevent/riskLevel/device/index.vue
index 22507af..4dbb256 100644
--- a/src/views/doublePrevent/riskLevel/device/index.vue
+++ b/src/views/doublePrevent/riskLevel/device/index.vue
@@ -90,9 +90,9 @@
         params: {
             pageIndex: number;
             pageSize: number;
-            riskLevel: number | null;
+            riskLevel: number | null | '';
             status: number;
-            depId: number | null;
+            depId: number | null | '';
             location: string | null;
             produceDeviceName: string | null;
         };
@@ -141,6 +141,8 @@
         });
         // 初始化表格数据
         const initProductionDeviceTableData = async () => {
+            state.productionDeviceData.params.riskLevel = state.productionDeviceData.params.riskLevel === '' ? null : state.productionDeviceData.params.riskLevel;
+            state.productionDeviceData.params.depId = state.productionDeviceData.params.depId === '' ? null : state.productionDeviceData.params.depId;
             let res = await productionDeviceApi().getProductionDeviceList(state.productionDeviceData.params);
             if (res.data.code === '200') {
                 state.productionDeviceData.data = res.data.data;

--
Gitblit v1.9.2