Эх сурвалжийг харах

修改总检-检验项目-允许值 可编辑

landydb 1 сар өмнө
parent
commit
493891de87

+ 5 - 4
src/components/work-flow/node-edit-final-check.vue

@@ -93,8 +93,7 @@
           </el-table-column>
           <el-table-column prop="allowValues" label="允许值">
             <template slot-scope="scope">
-              <el-form-item :prop="'prodProductionRequireList.' + scope.$index + '.allowValues'
-                " :rules="rules.allowValues" label-width="0px">
+              <el-form-item :prop="'prodProductionRequireList.' + scope.$index + '.allowValues'" :rules="rules.allowValues" label-width="0px">
                 <el-input v-model="scope.row.allowValues" :disabled="disabled || selectOperator || isEdit"></el-input>
               </el-form-item>
             </template>
@@ -166,7 +165,9 @@ export default {
         nodeName: '',
         workTypeId: '',
         operatorId: [],
-        prodProductionRequireList: [{}],
+        prodProductionRequireList: [{
+          allowValues:''
+        }],
         planCompletionTime: ''
       },
       fileList: [],
@@ -350,7 +351,7 @@ export default {
     },
 
     addRow() {
-      this.form.prodProductionRequireList.push({})
+      this.form.prodProductionRequireList.push({allowValues:''})
     },
     removeRow(index) {
       this.form.prodProductionRequireList.splice(index, 1)