Просмотр исходного кода

表单模版配置需要审批时清空nodeList

luoaoxuan 1 год назад
Родитель
Сommit
51a93f9c37
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/component/formTemplate/index.vue

+ 2 - 2
src/views/component/formTemplate/index.vue

@@ -321,13 +321,13 @@ export default {
                 ...this.form,
                 liu_cheng_shu_ju_: JSON.stringify({
                     hasProcess: this.form.shen_pi_liu_cheng === '需要审批' ? 'Y' : 'N',
-                    nodeList: this.subForm.map((item, index) => ({
+                    nodeList: this.form.shen_pi_liu_cheng === '需要审批' ? this.subForm.map((item, index) => ({
                         sn: index + 1,
                         nodeName: item.jie_dian_ming_cheng_,
                         conditionType: item.fang_shi_,
                         executeType: item.yong_hu_lei_xing_,
                         executor: item.chu_li_ren_
-                    }))
+                    })) : []
                 })
 
             }