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