|
@@ -599,7 +599,6 @@ export default {
|
|
|
watch: {
|
|
|
"form.klRuleByIdSub": {
|
|
|
handler(val) {
|
|
|
- console.log("000000000");
|
|
|
this.form.klRuleByIdSub.forEach((item, i, arr) => {
|
|
|
if (i == 0) {
|
|
|
item.rowIndex = 1;
|
|
@@ -609,9 +608,13 @@ export default {
|
|
|
item.rowIndex = arr[i - 1].rowIndex + 1;
|
|
|
}
|
|
|
});
|
|
|
- console.log(this.form.klRuleByIdSub);
|
|
|
},
|
|
|
deep: true
|
|
|
+ },
|
|
|
+ "form.parHasSub"(val) {
|
|
|
+ if (!val || val == 0) {
|
|
|
+ this.form.klRuleByIdSub = [];
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|