修改表单

dev
lilu 2 years ago
parent e74111cf5d
commit cdb92bd919

@ -372,6 +372,10 @@ export default {
tableReset() {
this.ResetType = false
Object.keys(this.formRes).map((item, index) => {
this.formRes[item] = ''
})
debugger
this.init()
},

@ -29,18 +29,18 @@ export default {
required: true
},
// eslint-disable-next-line vue/require-default-prop
fromRes: {
formRes: {
type: Object,
required: false
}
},
watch: {
fromRes: {
formRes: {
handler(nval, oval) {
console.log('编辑结果发生变化', nval, oval)
if (Object.keys(nval).length > 0 && nval && oval) {
this.value = nval[this.labelData.type]
}
// if (Object.keys(nval).length > 0 && nval && oval) {
// this.value = nval[this.labelData.type]
// }
},
deep: true
}

Loading…
Cancel
Save