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

+ 2 - 1
src/views/Platform/presentation/Templates/ClientReport.vue

@@ -126,7 +126,6 @@ export default {
           this.showTow = false
           this.report = newData
           this.active = 3
-          // newData.type === 1 ? this.radio = '1' : this.radio = '2'
           break
       }
     },
@@ -158,6 +157,7 @@ export default {
       this.showTow = false
     },
     gou_out() {
+      this.showOne = false
       this.showThree = false
       this.showTow = true
       this.active = 2
@@ -198,6 +198,7 @@ export default {
           var postData = { 'reportId': ele.id, 'imgStr': sendImgData, 'url': window.location.href, 'emailUser': e.name, 'copyTo': e.names }
           projectTestReportSendmail(postData).then(res => {
             res.code === 200 ? that.$message.success('发送测试报告成功') : that.$message.error('发送测试报告失败,请联系管理员!')
+            window.location.reload()
           })
         })
       }, 1000)

+ 2 - 1
src/views/Platform/presentation/Templates/DailyReport.vue

@@ -151,6 +151,7 @@ export default {
     sendReport(e) {
       var ele = this.preview
       setTimeout(() => {
+        this.handleClose()
         var that = this
         var targetDom = document.getElementById('Gambol')
         var copyDom = targetDom.cloneNode(true)
@@ -161,7 +162,7 @@ export default {
           var postData = { 'reportId': ele.id, 'imgStr': url, 'url': window.location.href, 'emailUser': e.name, 'copyTo': e.names }
           dailyReportSendmail(postData).then(res => {
             res.code === 200 ? that.$message({ type: 'success', message: '发送测试报告成功' }) : that.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
-            this.dialogDaliy = false
+            window.location.reload()
           })
         })
       }, 1000)

+ 3 - 4
src/views/Platform/presentation/Templates/TestReport.vue

@@ -4,10 +4,6 @@
       <div class="titIcon" />
       <span style="margin-left: 1%; width: 100px;">提测报告</span>
     </div>
-    <!-- <div class="flex_start titFont">
-      <div class="titIcon" />
-      <span style="margin-left: 1%; width: 100px;">提测报告</span>
-    </div> -->
     <div style="margin: 4% 0%; font-size: 16pt; color: #333B4A;">
       <el-steps :active="active" align-center finish-status="success">
         <el-step style="font-size: 16pt; color: #333B4A;" title="选择模版" />
@@ -141,8 +137,10 @@ export default {
       this.active = 1
     },
     gou_out() {
+      this.showOne = false
       this.showThree = false
       this.showTow = true
+      this.active = 2
     },
     created_out() {
       if (this.radio === '2') { // 服务端
@@ -202,6 +200,7 @@ export default {
           var postData = { 'reportId': ele.id, 'imgStr': sendImgData, 'url': window.location.href, 'emailUser': e.name, 'copyTo': e.names }
           launchTestSendmail(postData).then(res => {
             res.code === 200 ? that.$message.success('发送测试报告成功') : that.$message.error('发送测试报告失败,请联系管理员!')
+            window.location.reload()
           })
         })
       }, 500)

+ 6 - 7
src/views/projectManage/taskList/taskViewDetails.vue

@@ -1376,6 +1376,12 @@ export default {
 .footer .el-tabs__nav-wrap::after {
   background-color: #FFFFFF !important;
 }
+.footer .el-tabs__header {
+  padding: 0;
+  position: relative;
+  margin: 0 0 15px;
+  width: 80%;
+}
 </style>
 <style lang="stylus" scoped>
 .bgborderButton .el-button--info.is-plain:hover {
@@ -1511,13 +1517,6 @@ export default {
   font-weight 400
 }
 
-.footer .el-tabs__header {
-  padding: 0;
-  position: relative;
-  margin: 0 0 15px;
-  width: 80%;
-}
-
 .status {
   margin-left: 2%;
   cursor: pointer;