qinzhipeng_v 5 年之前
父節點
當前提交
dca0af1654

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

@@ -4,7 +4,7 @@
       <div class="titIcon" />
       <span style="margin-left: 1%; width: 100px;">准出报告</span>
     </div>
-    <div style="margin: 2% 0%; font-size: 16pt; color: #333B4A;">
+    <div style="margin: 2% 1%; font-size: 16pt; color: #333B4A;">
       <el-steps :active="active" align-center finish-status="success">
         <el-step style="font-size: 16pt; color: #333B4A;" title="选择模版" />
         <el-step title="填写报告" />

+ 8 - 8
src/views/Platform/presentation/Templates/DailyReport.vue

@@ -4,7 +4,7 @@
       <div class="titIcon" />
       <span style="margin-left: 1%; width: 100px;">测试报告</span>
     </div>
-    <div style="margin: 2% 0%; font-size: 16pt; color: #333B4A;">
+    <div style="margin: 2% 1%; font-size: 16pt; color: #333B4A;">
       <el-steps :active="active" align-center finish-status="success">
         <el-step title="选择模版" />
         <el-step title="填写报告" />
@@ -34,8 +34,8 @@
         邮件列表
       </div>
       <div class="Layout" style="margin: 1% 12% 3%;">
-        <div class="Layout"><div class="div1">收件人</div><el-input v-model="form.name" size="small" clearable filterable placeholder="请输入" /></div>
-        <div class="Layout"><div class="div1">抄送</div><el-input v-model="form.names" size="small" clearable filterable placeholder="请输入" /></div>
+        <div class="Layout"><div class="div1">收件人</div><el-input v-model="form.name" size="small" clearable filterable placeholder="多人请 , 分隔" /></div>
+        <div class="Layout"><div class="div1">抄送</div><el-input v-model="form.names" size="small" clearable filterable placeholder="多人请 , 分隔" /></div>
       </div>
       <div style="margin: 0 12%; font-size:18px; font-family:PingFangSC-Medium,PingFang SC; font-weight:500; color:rgba(51,59,74,1); line-height:29px;">
         报告预览
@@ -167,15 +167,15 @@ export default {
       var ele = this.preview
       setTimeout(() => {
         var targetDom = document.getElementById('Gambol')
-        var copyDom = targetDom.cloneNode(true)
-        document.querySelector('body').appendChild(copyDom)
-        html2canvas(copyDom, { useCORS: true }).then(canvas => {
+        // var copyDom = targetDom.cloneNode(true)
+        // document.querySelector('body').appendChild(copyDom)
+        html2canvas(targetDom, { useCORS: true }).then(canvas => {
           var url = canvas.toDataURL('image/png', 1)
           url = url.toString().substring(url.indexOf(',') + 1)
           var postData = { 'reportId': ele.id, 'imgStr': url, 'url': window.location.href, 'emailUser': e.name, 'copyTo': e.names }
           dailyReportSendmail(postData).then(res => {
-            document.querySelector('body').removeChild(copyDom)
-            copyDom = null
+            // document.querySelector('body').removeChild(copyDom)
+            // copyDom = null
             res.code === 200 ? this.$message({ type: 'success', message: '发送测试报告成功' }) : this.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
             this.handleClose()
           })

+ 1 - 1
src/views/Platform/presentation/Templates/TestReport.vue

@@ -4,7 +4,7 @@
       <div class="titIcon" />
       <span style="margin-left: 1%; width: 100px;">提测报告</span>
     </div>
-    <div style="margin: 2% 0%; font-size: 16pt; color: #333B4A;">
+    <div style="margin: 2% 1%; font-size: 16pt; color: #333B4A;">
       <el-steps :active="active" align-center finish-status="success">
         <el-step style="font-size: 16pt; color: #333B4A;" title="选择模版" />
         <el-step title="填写报告" />

+ 2 - 7
src/views/Platform/presentation/testPresenyL.vue

@@ -52,9 +52,6 @@ export default {
       name: ''
     }
   },
-  created() {
-    this.idGet()
-  },
   mounted() {
     this.idGet()
   },
@@ -74,7 +71,7 @@ export default {
         for (var ele of this.numList) {
           this.bugName.push(ele.name)
         }
-        setTimeout(item => {
+        this.$nextTick(() => {
           echarts.init(document.getElementById('lineShow')).setOption({
             title: { left: 'center', text: 'bug数量汇总' },
             tooltip: { trigger: 'axis' },
@@ -84,8 +81,6 @@ export default {
             yAxis: { type: 'value' },
             series: this.numList
           })
-        }, 500)
-        setTimeout(item => {
           echarts.init(document.getElementById('barShow')).setOption({
             title: { text: 'bug状态汇总', x: 'center' },
             color: ['#003366', '#006699', '#4cabce', '#e5323e'],
@@ -96,7 +91,7 @@ export default {
             yAxis: [{}],
             series: this.statusMap
           })
-        }, 500)
+        })
       })
     }
   }

+ 3 - 2
src/views/projectManage/bugList/bugindex.vue

@@ -542,12 +542,13 @@ export default {
     this.$store.state.data.status = false
   },
   methods: {
-    getBugList() {
+    async getBugList() {
       this.indexPage = this.formInline
       this.indexPage.bizId = Number(localStorage.getItem('bizId'))
       this.indexPage.pageSize = this.pageSize
       this.indexPage.curIndex = this.curIndex
-      bugList(this.indexPage).then(res => {
+      const res = await bugList(this.indexPage)
+      this.$nextTick(() => {
         if (res.code === 200) {
           this.tableData = res.data
           this.total = res.total

+ 3 - 0
src/views/workbench/person/index.vue

@@ -353,6 +353,9 @@ export default {
   created() {
     this.init()
   },
+  mounted() {
+    this.$store.state.data.status = false
+  },
   methods: {
     init() {
       this.showTeamAndMemberEnum()