qinzhipeng_v 5 лет назад
Родитель
Сommit
002f318a50

+ 1 - 4
src/views/reportManagement/ReleaseReport/components/releaseDetails.vue

@@ -3,10 +3,7 @@
     <el-header class="public_header setLine">
     <el-header class="public_header setLine">
       <div class="Layout_space_between">
       <div class="Layout_space_between">
         <div class="Layout_flex_start">
         <div class="Layout_flex_start">
-          <div>
-            <span class="details-id">{{ 'report-' + details.id }}</span><br>
-            <span class="report-title">{{ details.reportName }}</span>
-          </div>
+          <span class="report-title">{{ details.reportName }}</span>
           <div class="details-statusString">{{ details.statusString }}</div>
           <div class="details-statusString">{{ details.statusString }}</div>
         </div>
         </div>
         <div v-if="details.status === 3 ? false : true">
         <div v-if="details.status === 3 ? false : true">

+ 1 - 4
src/views/reportManagement/Testing/components/deliverDetails.vue

@@ -3,10 +3,7 @@
     <el-header class="public_header setLine">
     <el-header class="public_header setLine">
       <div class="Layout_space_between">
       <div class="Layout_space_between">
         <div class="Layout_flex_start">
         <div class="Layout_flex_start">
-          <div>
-            <span class="details-id">{{ 'report-' + details.id }}</span><br>
-            <span class="report-title">{{ details.reportName }}</span>
-          </div>
+          <span class="report-title">{{ details.reportName }}</span>
           <div class="details-statusString">{{ details.statusString }}</div>
           <div class="details-statusString">{{ details.statusString }}</div>
         </div>
         </div>
         <div v-if="details.status === 1 ? false : true">
         <div v-if="details.status === 1 ? false : true">

+ 9 - 3
src/views/reportManagement/components/DailyReport.vue

@@ -194,13 +194,19 @@ export default {
     },
     },
 
 
     open_new_template(val) { // 点击新建模版
     open_new_template(val) { // 点击新建模版
-      if (val.creator === localStorage.getItem('username')) {
-        val ? this.templateId = val.id : this.templateId = null
+      val ? this.templateId = val.id : this.templateId = null
+      if (this.templateId === null) {
         this.reportTamplate = true // 编辑区域
         this.reportTamplate = true // 编辑区域
         this.reportHome = false // 步骤条
         this.reportHome = false // 步骤条
         this.showOne = false // 模版选择
         this.showOne = false // 模版选择
       } else {
       } else {
-        this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        if (val.creator === localStorage.getItem('username')) {
+          this.reportTamplate = true // 编辑区域
+          this.reportHome = false // 步骤条
+          this.showOne = false // 模版选择
+        } else {
+          this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        }
       }
       }
     },
     },
 
 

+ 9 - 3
src/views/reportManagement/components/ReleaseReport.vue

@@ -188,13 +188,19 @@ export default {
     },
     },
 
 
     open_new_template(val) { // 点击新建模版
     open_new_template(val) { // 点击新建模版
-      if (val.creator === localStorage.getItem('username')) {
-        val ? this.templateId = val.id : this.templateId = '新建模版'
+      val ? this.templateId = val.id : this.templateId = '新建模版'
+      if (this.templateId === '新建模版') {
         this.reportTamplate = true // 编辑区域
         this.reportTamplate = true // 编辑区域
         this.reportHome = false // 步骤条
         this.reportHome = false // 步骤条
         this.showOne = false // 模版选择
         this.showOne = false // 模版选择
       } else {
       } else {
-        this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        if (val.creator === localStorage.getItem('username')) {
+          this.reportTamplate = true // 编辑区域
+          this.reportHome = false // 步骤条
+          this.showOne = false // 模版选择
+        } else {
+          this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        }
       }
       }
     },
     },
 
 

+ 9 - 3
src/views/reportManagement/components/TestingReport.vue

@@ -192,13 +192,19 @@ export default {
     },
     },
 
 
     open_new_template(val) { // 点击新建模版
     open_new_template(val) { // 点击新建模版
-      if (val.creator === localStorage.getItem('username')) {
-        val ? this.templateId = val.id : this.templateId = '新建模版'
+      val ? this.templateId = val.id : this.templateId = '新建模版'
+      if (this.templateId === '新建模版') {
         this.reportTamplate = true // 编辑区域
         this.reportTamplate = true // 编辑区域
         this.reportHome = false // 步骤条
         this.reportHome = false // 步骤条
         this.showOne = false // 模版选择
         this.showOne = false // 模版选择
       } else {
       } else {
-        this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        if (val.creator === localStorage.getItem('username')) {
+          this.reportTamplate = true // 编辑区域
+          this.reportHome = false // 步骤条
+          this.showOne = false // 模版选择
+        } else {
+          this.$message({ message: '没有权限,请联系创建人执行操作!', type: 'warning', duration: 1000, offset: 150 })
+        }
       }
       }
     },
     },