Commit d5bd5882 authored by Wallen姚文辉's avatar Wallen姚文辉

优化需求

parent 3dde264a
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>yinhe_test</title><script defer="defer" src="/js/chunk-vendors.233aa2e8.js"></script><script defer="defer" src="/js/app.3aa9c243.js"></script><link href="/css/chunk-vendors.187ae3e6.css" rel="stylesheet"><link href="/css/app.1eedf6d0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but yinhe_test doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="/favicon.ico"><title>yinhe_test</title><script defer="defer" src="/js/chunk-vendors.233aa2e8.js"></script><script defer="defer" src="/js/app.2822ada3.js"></script><link href="/css/chunk-vendors.187ae3e6.css" rel="stylesheet"><link href="/css/app.1eedf6d0.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but yinhe_test doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -27,8 +27,9 @@
<p>
&nbsp; &nbsp;
<Paragraph v-if="edit" v-model="testResult" editable />
<span v-if="!edit">{{ testResult }}</span>
<span v-if="!edit" id="jielun"></span>
</p>
<br />
<div style="background-color: #dcdee2;">
<P>
<span>用例总数:{{ mycase.length }};</span>
......@@ -446,6 +447,26 @@ export default {
this.getallEmail();
this.modlShow = true;
},
show() {
var info = ''
console.info(this.testResult)
if (this.testResult.includes("不通过")) {
const a = this.testResult.split("不通过")
for (var i = 0; i < a.length; i++) {
info = i < a.length - 1 ? info + '<span>' + a[i] + '</span><span style="font-weight: bold;color: #ed4014;">不通过</span>' : info + '<span>' + a[i] + '</span>'
}
} else if (this.testResult.includes("通过")) {
const a = this.testResult.split("通过")
console.info(a)
for (var i = 0; i < a.length; i++) {
info = i < a.length - 1 ? info + '<span>' + a[i] + '</span><span style="font-weight: bold;color: #19be6b;">通过</span>' : info + '<span>' + a[i] + '</span>'
}
} else {
info = '<span>' + this.testResult + '</span>'
}
console.info(info)
document.getElementById("jielun").innerHTML = info
},
searchCaseBykey(key) {
const index = this.mycase.findIndex(ele => { return ele.key == key })
return index == -1 ? null : this.mycase[index]
......@@ -488,6 +509,9 @@ export default {
},
render() {
this.report = true
setTimeout(() => {
this.show()
}, 50);
},
async send() {
if (!this.report) return
......@@ -518,7 +542,8 @@ export default {
const m = `<img src='${canvas.toDataURL("image/png")}'/>`
const result = c + m
const sub = this.info.project + "-" + this.info.sprint + "测试报告"
this.$request("post", "/tool/testport/sendport", { to: this.sendto, subject: sub, contents: result }, this, () => { this.closeShow() })
this.closeShow()
this.$request("post", "/tool/testport/sendport", { to: this.sendto, subject: sub, contents: result }, this, () => { })
});
},
getallEmail() {
......@@ -546,6 +571,9 @@ export default {
index1 == -1 || this.storycolumns.splice(index1, 1)
index2 == -1 || this.bugcolumns.splice(index2, 1)
index3 == -1 || this.casecolumns.splice(index3, 1)
setTimeout(() => {
this.show()
}, 50);
}
},
bug: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment