qinzhipeng_v@didiglobal.com 4 years ago
parent
commit
7a5bb6c868

+ 5 - 5
src/views/reportManagement/components/DailyReport.vue

@@ -201,11 +201,11 @@ export default {
     },
 
     created_out() { // 新建模版
-      if (this.tits === '模版管理') {
-        this.getreportTemplate()
-        this.reportHome = '模版管理'
-        this.showOne = true
-      }
+      // if (this.tits === '模版管理') {
+      //   this.reportHome = '模版管理'
+      //   this.getreportTemplate()
+      //   this.showOne = true
+      // }
       this.$refs.newReportTemplate.getCreateData(3)
     },
 

+ 5 - 5
src/views/reportManagement/components/ReleaseReport.vue

@@ -170,11 +170,11 @@ export default {
     },
 
     created_out() { // 新建模版
-      if (this.tits === '模版管理') {
-        this.getreportTemplate()
-        this.reportHome = '模版管理'
-        this.showOne = true
-      }
+      // if (this.tits === '模版管理') {
+      //   this.getreportTemplate()
+      //   this.reportHome = '模版管理'
+      //   this.showOne = true
+      // }
       this.$refs.newReleaeTemplate.getCreateData(this.templateId)
     },
 

+ 8 - 8
src/views/reportManagement/components/TestingReport.vue

@@ -202,14 +202,14 @@ export default {
     },
 
     created_out() { // 新建模版
-      if (this.tits === '模版管理') {
-        this.getreportTemplate()
-        this.reportHome = '模版管理'
-        this.showOne = true
-        this.$refs.newReportTemplate.getCreateData(this.templateId)
-      } else {
-        this.$refs.newReportTemplate.getCreateData(this.templateId)
-      }
+      // if (this.tits === '模版管理') {
+      //   this.getreportTemplate()
+      //   this.reportHome = '模版管理'
+      //   this.showOne = true
+      //   this.$refs.newReportTemplate.getCreateData(this.templateId)
+      // } else {
+      this.$refs.newReportTemplate.getCreateData(this.templateId)
+      // }
     },
 
     reportReturn() { // 新建模版点击返回

+ 2 - 1
src/views/reportManagement/daily/newReportTemplate.vue

@@ -176,7 +176,6 @@ export default {
     getCreateData(e) {
       this.$refs['fromCreateData'].validate(async(valid) => {
         if (valid) {
-          this.fromCreateData = { ...this.fromCreateData, bizId: this.bizId, type: e, customFields: this.customList }
           this.loading = true
           try {
             this.fromCreateData.content = await getContainImgHTMLNode(this.fromCreateData.content)
@@ -185,6 +184,8 @@ export default {
             throw error
           }
           this.loading = false
+          this.fromCreateData = { ...this.fromCreateData, bizId: this.bizId, type: e, customFields: this.customList }
+          console.log(this.tpltId, 'kankan')
           if (this.tpltId) {
             settingUpdateReportModule(this.fromCreateData).then(res => {
               if (res.code === 200) {