修改表单

dev
lilu 2 years ago
parent e74111cf5d
commit cdb92bd919

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

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

Loading…
Cancel
Save