Commit ae3abf31 by caoyanzhi

update: 计费中心-计费规则关闭后,数据重置到初始状态

parent eda7ad44
......@@ -196,15 +196,23 @@ export default {
}
},
watch: {
data: {
handler: function(newVal) {
this.isMoreAccount = !!newVal.status;
this.extend(this.form, newVal);
visible: {
immediate: true,
handler() {
this.isMoreAccount = !!this.data.status;
this.extend(this.form, this.data);
this.form['status'] = this.form['status'] || 0;
},
deep: true,
immediate: true
}
}
// data: {
// handler: function(newVal) {
// this.isMoreAccount = !!newVal.status;
// this.extend(this.form, newVal);
// this.form['status'] = this.form['status'] || 0;
// },
// deep: true,
// immediate: true
// }
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment