|
@@ -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 },
|