whj 11 hónapja
szülő
commit
718c3a6fce
1 módosított fájl, 18 hozzáadás és 13 törlés
  1. 18 13
      src/views/test/modules/BaseForm.vue

+ 18 - 13
src/views/test/modules/BaseForm.vue

@@ -67,6 +67,7 @@ export default {
       classNameCodeMap: {},
       customCodeList: [],
       customClassNameList: [],
+      handleNameList: [],
     }
   },
   created() {
@@ -78,6 +79,20 @@ export default {
     })
   },
   methods: {
+    base(record) {
+      this.visible = true
+      this.record = record
+      const {
+        form: { setFieldsValue },
+      } = this
+      this.$nextTick(() => {
+        setFieldsValue(
+          Object.assign(
+            pick(record, ['name', 'verifier', 'reflect', 'titleCode', 'titleColumnCode', 'handleNameId', 'id'])
+          )
+        )
+      })
+    },
     setTree(list) {
       return list.map((item) => {
         return {
@@ -103,25 +118,15 @@ export default {
       })
     },
     handleTitleColumnCode(val) {
-      this._titleCode = val
       getCustomClassNameList({
         code: 'reflect',
-        titleColumnCode: this._titleCode,
-        titleCode: val,
+        titleCode: this._titleCode,
+        titleColumnCode: val,
       }).then((res) => {
         this.handleNameList = res.data
       })
     },
-    base(record) {
-      this.visible = true
-      this.record = record
-      const {
-        form: { setFieldsValue },
-      } = this
-      this.$nextTick(() => {
-        setFieldsValue(Object.assign(pick(record, ['name'])))
-      })
-    },
+
     save() {
       const {
         form: { validateFieldsAndScroll },