|
@@ -174,7 +174,7 @@
|
|
<div id="editorNine1" class="text" />
|
|
<div id="editorNine1" class="text" />
|
|
|
|
|
|
<dir align="right" style="display: flex; margin: 5vw 0 0 50vw;">
|
|
<dir align="right" style="display: flex; margin: 5vw 0 0 50vw;">
|
|
- <div style="flex: 1;"><el-button @click="clickPreview(ClientData)"> 预 览 </el-button></div>
|
|
|
|
|
|
+ <div style="flex: 1;"><el-button v-show="preview" @click="clickPreview(ClientData)"> 预 览 </el-button></div>
|
|
<div v-show="showButton" style="flex: 1;"><el-button type="primary" @click="getCreateData(ClientData, tableData)"> 保 存 </el-button></div>
|
|
<div v-show="showButton" style="flex: 1;"><el-button type="primary" @click="getCreateData(ClientData, tableData)"> 保 存 </el-button></div>
|
|
<div v-show="showButton1" style="flex: 1;"><el-button type="primary" @click="getQueryData(ClientData, tableData)"> 更 新 </el-button></div>
|
|
<div v-show="showButton1" style="flex: 1;"><el-button type="primary" @click="getQueryData(ClientData, tableData)"> 更 新 </el-button></div>
|
|
<div style="flex: 1;"><el-button @click="open()"> 取 消 </el-button></div>
|
|
<div style="flex: 1;"><el-button @click="open()"> 取 消 </el-button></div>
|
|
@@ -186,6 +186,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { projectTestReportUpdate, projectTestReportCreate, bugFinishList } from '@/api/ResultPage'
|
|
import { projectTestReportUpdate, projectTestReportCreate, bugFinishList } from '@/api/ResultPage'
|
|
|
|
+import { projectTestReport } from '@/api/testPresentetion'
|
|
import E from 'wangeditor'
|
|
import E from 'wangeditor'
|
|
export default {
|
|
export default {
|
|
name: 'Acceptance',
|
|
name: 'Acceptance',
|
|
@@ -214,6 +215,7 @@ export default {
|
|
fctResultChange2: 'info',
|
|
fctResultChange2: 'info',
|
|
getInfoBtn: 'info',
|
|
getInfoBtn: 'info',
|
|
getInfoBtn1: 'info',
|
|
getInfoBtn1: 'info',
|
|
|
|
+ preview: false,
|
|
userInformation: localStorage.getItem('username'),
|
|
userInformation: localStorage.getItem('username'),
|
|
userNames: localStorage.getItem('realname'),
|
|
userNames: localStorage.getItem('realname'),
|
|
serviceDataRules: {
|
|
serviceDataRules: {
|
|
@@ -327,7 +329,6 @@ export default {
|
|
this.editorSix.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
this.editorSix.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
this.editorEight.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
this.editorEight.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
this.editorNine.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
this.editorNine.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>子类</th><th>描述</th><th>测试结果</th><th>备注</th></tr></thead><tbody><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
- this.getRouterData1()
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getRouterData() {
|
|
getRouterData() {
|
|
@@ -359,122 +360,135 @@ export default {
|
|
if (this.$route.query.data) { // 报告主页更新
|
|
if (this.$route.query.data) { // 报告主页更新
|
|
this.showButton1 = true
|
|
this.showButton1 = true
|
|
this.showButton = false
|
|
this.showButton = false
|
|
- this.ClientData = this.$route.query.data
|
|
|
|
- this.bugNum = { type: 1, taskId: this.ClientData.taskId, projectId: this.ClientData.projectId }
|
|
|
|
- if (this.ClientData.status === 1) {
|
|
|
|
- this.tagBtn = 'success'
|
|
|
|
- this.status = '1'
|
|
|
|
- } else {
|
|
|
|
- this.tagBtn1 = 'danger'
|
|
|
|
- this.status = '2'
|
|
|
|
- }
|
|
|
|
- if (this.ClientData.taskLateStatus === 1) {
|
|
|
|
- this.tagChange = 'success'
|
|
|
|
- this.taskLateStatus = '1'
|
|
|
|
- this.showDelay = false
|
|
|
|
- } else {
|
|
|
|
- this.tagChange1 = 'danger'
|
|
|
|
- this.taskLateStatus = '2'
|
|
|
|
- this.showDelay = true
|
|
|
|
- }
|
|
|
|
|
|
+ this.preview = true
|
|
|
|
+ projectTestReport({ id: this.$route.query.id }).then((res) => {
|
|
|
|
+ this.ClientData = res.data
|
|
|
|
+ this.editorElem.txt.html(this.ClientData.projectBackground)
|
|
|
|
+ this.editorElems.txt.html(this.ClientData.moduleInfo)
|
|
|
|
+ this.editorFrom.txt.html(this.ClientData.functionInfo)
|
|
|
|
+ this.editorF.txt.html(this.ClientData.onlineRisk)
|
|
|
|
+ this.editorEle.txt.html(this.ClientData.rqtInfo)
|
|
|
|
+ this.editorEl.txt.html(this.ClientData.fctInfo)
|
|
|
|
+ this.editorSix.txt.html(this.ClientData.pftInfo)
|
|
|
|
+ this.editorEight.txt.html(this.ClientData.safeResultInfo)
|
|
|
|
+ this.editorNine.txt.html(this.ClientData.moniterResultInfo)
|
|
|
|
+
|
|
|
|
+ this.bugNum = { type: 1, taskId: this.$route.query.taskId, projectId: this.$route.query.projectId }
|
|
|
|
+ if (this.ClientData.status === 1) {
|
|
|
|
+ this.tagBtn = 'success'
|
|
|
|
+ this.status = '1'
|
|
|
|
+ } else {
|
|
|
|
+ this.tagBtn1 = 'danger'
|
|
|
|
+ this.status = '2'
|
|
|
|
+ }
|
|
|
|
+ if (this.ClientData.taskLateStatus === 1) {
|
|
|
|
+ this.tagChange = 'success'
|
|
|
|
+ this.taskLateStatus = '1'
|
|
|
|
+ this.showDelay = false
|
|
|
|
+ } else {
|
|
|
|
+ this.tagChange1 = 'danger'
|
|
|
|
+ this.taskLateStatus = '2'
|
|
|
|
+ this.showDelay = true
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.ClientData.safeInfo !== '') {
|
|
|
|
- this.getInfoBtn1 = 'info'
|
|
|
|
- this.getInfoBtn = 'danger'
|
|
|
|
- this.lateStatus = 2
|
|
|
|
- this.showData = true
|
|
|
|
- } else {
|
|
|
|
- this.getInfoBtn1 = 'success'
|
|
|
|
- this.getInfoBtn = 'info'
|
|
|
|
- this.lateStatus = 1
|
|
|
|
- this.showData = false
|
|
|
|
- this.$set(this.ClientData, 'safeInfo', '')
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.ClientData.safeInfo !== '') {
|
|
|
|
+ this.getInfoBtn1 = 'info'
|
|
|
|
+ this.getInfoBtn = 'danger'
|
|
|
|
+ this.lateStatus = 2
|
|
|
|
+ this.showData = true
|
|
|
|
+ } else {
|
|
|
|
+ this.getInfoBtn1 = 'success'
|
|
|
|
+ this.getInfoBtn = 'info'
|
|
|
|
+ this.lateStatus = 1
|
|
|
|
+ this.showData = false
|
|
|
|
+ this.$set(this.ClientData, 'safeInfo', '')
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.ClientData.fctResult) { // 功能测试
|
|
|
|
- switch (this.ClientData.fctResult) {
|
|
|
|
- case 1:
|
|
|
|
- this.fctResultChange1 = 'success'
|
|
|
|
- this.fctResult = 1
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.fctResultChange2 = 'danger'
|
|
|
|
- this.fctResult = 2
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.fctResultChange = 'warning'
|
|
|
|
- this.fctResult = 3
|
|
|
|
- break
|
|
|
|
|
|
+ if (this.ClientData.fctResult) { // 功能测试
|
|
|
|
+ switch (this.ClientData.fctResult) {
|
|
|
|
+ case 1:
|
|
|
|
+ this.fctResultChange1 = 'success'
|
|
|
|
+ this.fctResult = 1
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.fctResultChange2 = 'danger'
|
|
|
|
+ this.fctResult = 2
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.fctResultChange = 'warning'
|
|
|
|
+ this.fctResult = 3
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- if (this.ClientData.rqtResult) { // 可靠性测试
|
|
|
|
- switch (this.ClientData.rqtResult) {
|
|
|
|
- case 1:
|
|
|
|
- this.rqtResultChange1 = 'success'
|
|
|
|
- this.rqtResult = 1
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.rqtResultChange2 = 'danger'
|
|
|
|
- this.rqtResult = 2
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.rqtResultChange = 'warning'
|
|
|
|
- this.rqtResult = 3
|
|
|
|
- break
|
|
|
|
|
|
+ if (this.ClientData.rqtResult) { // 可靠性测试
|
|
|
|
+ switch (this.ClientData.rqtResult) {
|
|
|
|
+ case 1:
|
|
|
|
+ this.rqtResultChange1 = 'success'
|
|
|
|
+ this.rqtResult = 1
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.rqtResultChange2 = 'danger'
|
|
|
|
+ this.rqtResult = 2
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.rqtResultChange = 'warning'
|
|
|
|
+ this.rqtResult = 3
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- if (this.ClientData.pftResult) { // 稳定性测试
|
|
|
|
- switch (this.ClientData.pftResult) {
|
|
|
|
- case 1:
|
|
|
|
- this.pftResultChange1 = 'success'
|
|
|
|
- this.pftResult = 1
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.pftResultChange2 = 'danger'
|
|
|
|
- this.pftResult = 2
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.pftResultChange = 'warning'
|
|
|
|
- this.pftResult = 3
|
|
|
|
- break
|
|
|
|
|
|
+ if (this.ClientData.pftResult) { // 稳定性测试
|
|
|
|
+ switch (this.ClientData.pftResult) {
|
|
|
|
+ case 1:
|
|
|
|
+ this.pftResultChange1 = 'success'
|
|
|
|
+ this.pftResult = 1
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.pftResultChange2 = 'danger'
|
|
|
|
+ this.pftResult = 2
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.pftResultChange = 'warning'
|
|
|
|
+ this.pftResult = 3
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- if (this.ClientData.safeResult) { // 安全性测试
|
|
|
|
- switch (this.ClientData.safeResult) {
|
|
|
|
- case 1:
|
|
|
|
- this.safeResultChange1 = 'success'
|
|
|
|
- this.safeResult = 1
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.safeResultChange2 = 'danger'
|
|
|
|
- this.safeResult = 2
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.safeResultChange = 'warning'
|
|
|
|
- this.safeResult = 3
|
|
|
|
- break
|
|
|
|
|
|
+ if (this.ClientData.safeResult) { // 安全性测试
|
|
|
|
+ switch (this.ClientData.safeResult) {
|
|
|
|
+ case 1:
|
|
|
|
+ this.safeResultChange1 = 'success'
|
|
|
|
+ this.safeResult = 1
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.safeResultChange2 = 'danger'
|
|
|
|
+ this.safeResult = 2
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.safeResultChange = 'warning'
|
|
|
|
+ this.safeResult = 3
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- if (this.ClientData.moniterResult) { // 线上监控
|
|
|
|
- switch (this.ClientData.moniterResult) {
|
|
|
|
- case 1:
|
|
|
|
- this.moniterResultChange1 = 'success'
|
|
|
|
- this.moniterResult = 1
|
|
|
|
- break
|
|
|
|
- case 2:
|
|
|
|
- this.moniterResultChange2 = 'danger'
|
|
|
|
- this.moniterResult = 2
|
|
|
|
- break
|
|
|
|
- case 3:
|
|
|
|
- this.moniterResultChange = 'warning'
|
|
|
|
- this.moniterResult = 3
|
|
|
|
- break
|
|
|
|
|
|
+ if (this.ClientData.moniterResult) { // 线上监控
|
|
|
|
+ switch (this.ClientData.moniterResult) {
|
|
|
|
+ case 1:
|
|
|
|
+ this.moniterResultChange1 = 'success'
|
|
|
|
+ this.moniterResult = 1
|
|
|
|
+ break
|
|
|
|
+ case 2:
|
|
|
|
+ this.moniterResultChange2 = 'danger'
|
|
|
|
+ this.moniterResult = 2
|
|
|
|
+ break
|
|
|
|
+ case 3:
|
|
|
|
+ this.moniterResultChange = 'warning'
|
|
|
|
+ this.moniterResult = 3
|
|
|
|
+ break
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ })
|
|
}
|
|
}
|
|
this.getBugData(this.bugNum)
|
|
this.getBugData(this.bugNum)
|
|
},
|
|
},
|
|
@@ -497,28 +511,6 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // celledit(row, column, cell, event) {
|
|
|
|
- // if (row[column.property]) {
|
|
|
|
- // row[column.property].edit = true
|
|
|
|
- // setTimeout(() => {
|
|
|
|
- // this.$refs[column.property].focus()
|
|
|
|
- // }, 20)
|
|
|
|
- // }
|
|
|
|
- // },
|
|
|
|
- getRouterData1() {
|
|
|
|
- if (this.$route.query.data) {
|
|
|
|
- this.ClientData = this.$route.query.data
|
|
|
|
- this.editorElem.txt.html(this.ClientData.projectBackground)
|
|
|
|
- this.editorElems.txt.html(this.ClientData.moduleInfo)
|
|
|
|
- this.editorFrom.txt.html(this.ClientData.functionInfo)
|
|
|
|
- this.editorF.txt.html(this.ClientData.onlineRisk)
|
|
|
|
- this.editorEle.txt.html(this.ClientData.rqtInfo)
|
|
|
|
- this.editorEl.txt.html(this.ClientData.fctInfo)
|
|
|
|
- this.editorSix.txt.html(this.ClientData.pftInfo)
|
|
|
|
- this.editorEight.txt.html(this.ClientData.safeResultInfo)
|
|
|
|
- this.editorNine.txt.html(this.ClientData.moniterResultInfo)
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
open(ele) {
|
|
open(ele) {
|
|
this.$confirm('是否放弃修改,离开页面?', '确认信息', {
|
|
this.$confirm('是否放弃修改,离开页面?', '确认信息', {
|
|
distinguishCancelAndClose: true,
|
|
distinguishCancelAndClose: true,
|
|
@@ -614,7 +606,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
clickPreview(ele) {
|
|
clickPreview(ele) {
|
|
- this.$router.push({ path: '/Platform/presentation/ResultPageyL', query: { data: ele }})
|
|
|
|
|
|
+ this.$router.push({ path: '/Platform/presentation/ResultPageyL', query: { id: this.$route.query.id }})
|
|
},
|
|
},
|
|
|
|
|
|
// 准出延期
|
|
// 准出延期
|