qinzhipeng_v@didiglobal.com 4 år sedan
förälder
incheckning
09e8056ec0

+ 3 - 3
src/views/reportManagement/ReleaseReport/newReleaeTemplate.vue

@@ -180,11 +180,11 @@ export default {
     },
     templateId: {
       handler(newV) {
-        console.log(newV, '准出报告')
+        console.log(newV, '准出报告33')
         if (newV.name === '新建模版' || newV.name === '编辑模版') { // 新建、编辑模版
           this.releaseType = true
           this.from = { ...this.from, ...newV.from }
-          newV.name === '编辑模版' ? this.settingGetReportModuleById(newV.set_up) : ''
+          newV.name === '编辑模版' ? this.settingGetReportModuleById(newV.set_up || this.from.id) : ''
           return
         }
         this.releaseType = false
@@ -192,7 +192,7 @@ export default {
           this.reportId = newV.id
           this.reportreleaseGetReportById(newV.id)
         } else { // 新建
-          console.log(newV, '准出报告1')
+          console.log(newV, '准出报告122')
           this.tpsltId = newV
           this.settingGetReportModuleById(newV)
         }

+ 1 - 1
src/views/reportManagement/Testing/newTestingTemplate.vue

@@ -204,7 +204,7 @@ export default {
         if (newV.name === '新建模版' || newV.name === '编辑模版') {
           this.releaseType = true
           this.from = { ...this.from, ...newV.from }
-          newV.name === '编辑模版' ? this.settingGetReportModuleById(newV.repot_up) : ''
+          newV.name === '编辑模版' ? this.settingGetReportModuleById(newV.repot_up || this.from.id) : ''
           return
         }
         this.releaseType = false

+ 0 - 6
src/views/reportManagement/components/Custom/index.vue

@@ -160,13 +160,7 @@ export default {
   }
   .custom-index {
     width: 40px;
-    // height: 18px;
-    // background: #1890ff;
-    // border-radius: 50%;
     color: #000;
-    // display: flex;
-    // align-items: center;
-    // padding: 0 5px;
   }
   .icon-design {
     border: 1px solid #1890ff;