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

优化需求

parent d58badd5
<!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.03094d08.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.67625885.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 source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -30,7 +30,7 @@
<span v-if="!edit" id="jielun"></span>
</p>
<br />
<div style="background-color: #dcdee2;">
<div style="background-color: #dcdee2;margin-left: 1em;">
<P>
<span>用例总数:{{ mycase.length }};</span>
<span>用例密度:{{ story ? ((mycase.length) / (story.length)).toFixed(2) : 0 }};</span>
......@@ -38,10 +38,13 @@
<span v-if="fugailu == 100" style="color: #19be6b;">{{ fugailu }}%</span>
<span v-else style="color: #ed4014;">{{ fugailu }}%</span>
</P>
<span v-for="item in story">
<span>{{ item.summary }}:{{ item.case.length }};&nbsp; &nbsp; </span>
</span>
<p>
<span v-for="item in story">
<span>{{ item.summary }}:</span><span :style="colorstyle(item.case.length)"
style="margin-right: 3px;">{{ item.case.length
}}</span><span>个用例;</span>
</span>
</p>
<P>
<span>bug总数:{{ bug.length }};</span>
<span>未关闭bug数:</span>
......@@ -450,16 +453,16 @@ export default {
show() {
var info = ''
console.info(this.testResult)
if (this.testResult.includes("不通过")) {
const a = this.testResult.split("不通过")
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>'
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("通过")
} 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>'
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>'
......@@ -551,6 +554,8 @@ export default {
},
closeShow() {
this.modlShow = false
}, colorstyle(number) {
return number ? "color: #515a6e;" : "color: #ed4014;"
}
},
watch: {
......
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