From df86d5bd8bbbe4b2d6ec8bdffa681848d92576ca Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 30 八月 2022 17:02:59 +0800
Subject: [PATCH] 1.修改bug2.保养部位增删查改开发完成

---
 src/views/sbgl/djbz.vue |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/views/sbgl/djbz.vue b/src/views/sbgl/djbz.vue
index 2dc802b..e07d5f2 100644
--- a/src/views/sbgl/djbz.vue
+++ b/src/views/sbgl/djbz.vue
@@ -164,7 +164,7 @@
     >
       <!--      @close="handleClose"-->
       <div>
-        <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />璁惧鐐规鏍囧噯淇℃伅
+        <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />璁惧鐐规鏍囧噯淇℃伅锛�
       </div>
       <div style="margin: 0 30px;">
         <el-form ref="dialogForm" inline :rules="dialogFormRules" :model="dialogForm" label-width="80px">
@@ -480,7 +480,7 @@
         code: '',
         name: '',
         enable: 'Y',
-        description: ''// 涓婄骇鍗曚綅
+        description: ''
       },
       operation: '',
       dialogFormRules: {
@@ -529,19 +529,25 @@
     }
   },
   created() {
-    this.getDeviceCheckStandArdSearch()
+    this.handleRequest()
   },
   mounted() {
     window.addEventListener('resize', this.getHeight)
     this.getHeight()
-
-    this.getDeviceCheckItemSelect()
   },
   methods: {
+    handleRequest() {
+      this.getDeviceCheckStandArdSearch().then(res => {
+        if (res.code === '200') {
+          this.getDeviceCheckItemSelect()
+        }
+      })
+    },
     async getDeviceCheckStandArdSearch() {
       const res = await DeviceCheckStandArdSearch(this.form)
       this.tableData = res.data
       this.total = res.count
+      return { code: res.code }
     },
     // 鎺掑簭鏀瑰彉鏃�
     sortChange({ column, prop, order }) {

--
Gitblit v1.9.3