Browse Source

修改数据 补齐导入数据

Qukatie 8 months ago
parent
commit
84ecb7e83f
1 changed files with 9 additions and 4 deletions
  1. 9 4
      src/views/serviceConfiguration/modifyData/detailsPage.vue

+ 9 - 4
src/views/serviceConfiguration/modifyData/detailsPage.vue

@@ -103,9 +103,7 @@ export default {
                 approvalStatus: "录入",
                 updateItemList: []
             },
-            rowFrom: {
-
-            },
+            rowFrom: {},
             optionForm: {
                 // menuBtn: false,
                 submitBtn: false,
@@ -279,10 +277,11 @@ export default {
     methods: {
         rowUpdate(row, index, done, loading) {
             done()
-            console.log(row)
             if (row.fieldValueType == "选择器") {
                 this.data[index].fieldValueNew = row.fieldValueNew
                 this.data[index].fieldValueNewName = row.fieldValueNewName
+                this.data[index].secondLevel = row.secondLevel
+                this.data[index].secondLevelName = row.secondLevelName
             } else {
                 this.data[index].fieldValueNew = row.fieldValueNewName
                 this.data[index].fieldValueNewName = row.fieldValueNewName
@@ -324,12 +323,18 @@ export default {
                 if (row) {
                     this.rowFrom.fieldValueNew = row.dictKey
                     this.rowFrom.fieldValueNewName = row.dictValue
+                    this.rowFrom.secondLevel = null
+                    this.rowFrom.secondLevelName = null
                 } else {
                     this.rowFrom.fieldValueNew = null
                     this.rowFrom.fieldValueNewName = null
+                    this.rowFrom.secondLevel = null
+                    this.rowFrom.secondLevelName = null
                 }
             } else if(name == 'srcCnName'){
                 if(row){
+                    // this.$set(this.rowFrom,'secondLevel',row.id)
+                    // this.$set(this.rowFrom,'secondLevelName',row.cnName)
                     this.rowFrom.secondLevel = row.id
                     this.rowFrom.secondLevelName = row.cnName
                 }else{