From 955081f4111c7d276bb63d3ee8dacb3e07bc53be Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 25 八月 2022 21:30:52 +0800
Subject: [PATCH] 点检标准新增功能实现

---
 src/views/sbgl/djbz.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/views/sbgl/djbz.vue b/src/views/sbgl/djbz.vue
index c858a88..bb1d835 100644
--- a/src/views/sbgl/djbz.vue
+++ b/src/views/sbgl/djbz.vue
@@ -162,13 +162,14 @@
         </el-form>
       </div>
       <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-bottom:10px">
         <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addRow">鏂板</el-button>
       </div>
       <div class="elTableDiv">
         <el-table
+          ref="tableDataDialogRef"
           :data="tableDataDialog"
           :height="(tableHeight-300)+'px'"
           border
@@ -227,12 +228,12 @@
           </el-table-column>
 
           <el-table-column
-            prop="chkdesc"
+            prop="checkitem_descr"
             label="鐐规瑕佹眰"
           >
             <template slot-scope="{row}">
-              <div v-if="row.isVisible===0">{{ row.chkdesc }}</div>
-              <el-input v-else v-model="row.chkdesc" />
+              <div v-if="row.isVisible===0">{{ row.checkitem_descr }}</div>
+              <el-input v-else v-model="row.checkitem_descr" />
             </template>
           </el-table-column>
           <el-table-column
@@ -461,13 +462,18 @@
       this.operation = operation
       this.dialogVisible = true
       this.getDeviceCheckItemSelect()
+      this.$nextTick(() => {
+        this.$refs.tableDataDialogRef.doLayout()
+      })
     },
     // 淇敼鎸夐挳
     edit(operation, row) {
       this.operation = operation
       this.dialogVisible = true
       this.getDeviceCheckItemSelect()
-
+      this.$nextTick(() => {
+        this.$refs.tableDataDialogRef.doLayout()
+      })
       this.$nextTick(() => {
         this.dialogForm.OrgCode = row.org_code
         this.dialogForm.OrgName = row.org_name
@@ -539,7 +545,7 @@
     },
 
     selectChange(val, row) {
-      row.chkdesc = this.checkItemSelectArr.find(item => {
+      row.checkitem_descr = this.checkItemSelectArr.find(item => {
         return item.code === val || item.name === val
       }).description
 
@@ -565,7 +571,7 @@
       this.tableDataDialog.push({
         checkitem_code: '',
         checkitem_name: '',
-        chkdesc: '',
+        checkitem_descr: '',
         isscan: 'Y',
         cycle: 'D',
         isVisible: 1
@@ -583,7 +589,7 @@
           this.tableDataDialog.splice(index, 1, {
             checkitem_code: row.checkitem_code,
             checkitem_name: row.checkitem_name,
-            chkdesc: row.chkdesc,
+            checkitem_descr: row.checkitem_descr,
             isscan: row.isscan,
             cycle: row.cycle,
             isVisible: 1

--
Gitblit v1.9.3