Browse Source

修改子表判断

jbb 2 years ago
parent
commit
02f9159e75
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/activiti/form/demoForm2.vue

+ 1 - 1
src/views/activiti/form/demoForm2.vue

@@ -457,7 +457,7 @@ export default {
         // 表单字段数值发生改变事件
         handleChange (value, key) {  
             //改变的表单是主子表类型时
-            if(value instanceof Array && key==''){
+            if((value instanceof Array) && (key.indexOf('child&')!==-1)){
                 this.tableCalculation(value)
             }
             //请假类型与单位