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

修改添加结论论述时不展示结论论述

zhuliu 1 год назад
Родитель
Сommit
e9f90cc82d

+ 4 - 0
src/views/report/components/dialog/addAndEditReport.vue

@@ -1039,6 +1039,10 @@ export default {
             }else{
               return false
             }
+          }else if(this.form.status != 3 && !this.form.id){
+            this.form.cronIds = []
+            this.form.cronDescription=''
+            this.followUps = []
           }
           
           // 事件及调查类型处理

+ 3 - 1
src/views/report/components/index.vue

@@ -613,14 +613,16 @@ export default {
       var form = JSON.parse(JSON.stringify(row))
       this.$set(form,'associateReportName',row.volumeNumber?row.volumeNumber:row.name)
       this.$set(form,'associateReportId',row.id)
+      this.$set(form,'status',2)
       this.$set(form,'cronIds',[])
+      this.$set(form,'cronDescription','')
       if(isNaN((row.name).substring((row.name).length-1))){
         form.name = row.name + '-V1'
       }else{
        var a= Number((row.name).substring((row.name).length-1)) + 1
        form.name = (row.name).substring(0,(row.name).length-1) + a
       }
-      form.status = 1
+      // form.status = 1
       form.id = null
       form.track = true
       this.$refs.ReportForm.open(form)