|
@@ -17,7 +17,7 @@
|
|
|
<el-button :type="tagBtn" style="margin: 0 2vw;" class="tag" @click="changeStatus(1)"> 通过 </el-button>
|
|
|
<el-button :type="tagBtn1" class="tag" @click="changeStatus(2)"> 不通过 </el-button>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="准入结果" prop="smokeTestResult" style="flex: 2;text-align:right;"><el-input v-model="ClientData.smokeTestResult" style="width: 50vw;" placeholder="准入次数/通过次数/失败次数" /></el-form-item>
|
|
|
+ <el-form-item label="准入结果" prop="smokeTestResult" style="flex: 2;text-align:right;"><el-input v-model="ClientData.launchInfo" style="width: 50vw;" placeholder="准入次数/通过次数/失败次数" /></el-form-item>
|
|
|
</div>
|
|
|
<div style="display: flex; white-space: nowrap;">
|
|
|
<el-form-item label="* 准出延期" style="flex: 1;" prop="taskLateStatus">
|
|
@@ -27,6 +27,16 @@
|
|
|
<el-form-item v-if="showDelay" label="延期原因" prop="taskLateReason" style="flex: 2;text-align:right;"><el-input v-model="ClientData.taskLateReason" style="width: 50vw;" /></el-form-item>
|
|
|
</div>
|
|
|
|
|
|
+ <div style="display: flex;white-space: nowrap;">
|
|
|
+ <el-form-item label="* 涉及安全项" style="flex: 1;">
|
|
|
+ <el-button :type="getInfoBtn" style="margin: 0 1vw" class="tag" @click="showStatusData(2)"> 是 </el-button>
|
|
|
+ <el-button :type="getInfoBtn1" style="margin-left: 1.7vw;" class="tag" @click="showStatusData(1)"> 否 </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showData" label="完成结果" prop="safeInfo" style="flex: 2;text-align:right;"><el-input v-model="ClientData.safeInfo" style="width: 50vw;" /></el-form-item>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <el-form-item label="SDL链接 : " style="white-space: nowrap;"><el-link href="http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=237016271" type="primary" target="_blank"> 普惠SDL准入标准</el-link></el-form-item>
|
|
|
+
|
|
|
<div style="display: flex; white-space: nowrap;">
|
|
|
<el-form-item label="开发人员" style="flex: 1;" prop="developer"><el-input v-model="ClientData.developer" style="width:30vw;" /></el-form-item>
|
|
|
<el-form-item label="开发周期" style="flex: 1;text-align:right;" prop="devTimeEnd">
|
|
@@ -65,39 +75,108 @@
|
|
|
|
|
|
<div class="titStyle">4、缺陷分析</div>
|
|
|
|
|
|
- <div id="editorData" class="toolbar" />
|
|
|
- <div id="editorData1" class="text" />
|
|
|
+ <el-table :data="tableData" border>
|
|
|
+ <el-table-column prop="totalBug" label="bug总数" min-width="200" align="center" edit="false">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="scope.row.totalBug.edit" ref="totalBug" v-model="scope.row.totalBug.value" style="width: 100%" @blur="scope.row.totalBug.edit = false" />
|
|
|
+ <span v-else>{{ scope.row.totalBug.value }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="fixBug" min-width="200" align="center" label="已解决bug数">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="scope.row.fixBug.edit" ref="fixBug" v-model="scope.row.fixBug.value" style="width: 100%" @blur="scope.row.fixBug.edit = false" />
|
|
|
+ <span v-else>{{ scope.row.fixBug.value }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="remainBug" min-width="200" align="center" label="遗留bug数">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="scope.row.remainBug.edit" ref="remainBug" v-model="scope.row.remainBug.value" style="width: 100%" @blur="scope.row.remainBug.edit = false" />
|
|
|
+ <span v-else>{{ scope.row.remainBug.value }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="rateOfReopen" min-width="200" align="center" label="reopen率">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="scope.row.rateOfReopen.edit" ref="rateOfReopen" v-model="scope.row.rateOfReopen.value" style="width: 100%" @blur="scope.row.rateOfReopen.edit = false" />
|
|
|
+ <span v-else>{{ scope.row.rateOfReopen.value }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="invalidBug" min-width="200" align="center" label="无效bug数">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input v-if="scope.row.invalidBug.edit" ref="invalidBug" v-model="scope.row.invalidBug.value" style="width: 100%" @blur="scope.row.invalidBug.edit = false" />
|
|
|
+ <span v-else>{{ scope.row.invalidBug.value }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24"><div class="titStyle">5、遗留问题</div><el-input v-model="ClientData.bugInfo" type="textarea" placeholder="请填写内容" /></el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
<div class="backStyle">四. 测试项</div>
|
|
|
|
|
|
- <div class="titStyle">1、功能测试</div>
|
|
|
+ <div class="titStyle" style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">1、功能测试</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="fctResultChange" effect="dark" class="tag" @click="fctResultradio(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="fctResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="fctResultradio(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="fctResultChange2" effect="dark" class="tag" @click="fctResultradio(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div id="editorEl" class="toolbar" />
|
|
|
<div id="editorEl1" class="text" />
|
|
|
|
|
|
- <div class="titStyle">2、可靠性测试</div>
|
|
|
+ <div class="titStyle" style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">2、可靠性测试</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="rqtResultChange" effect="dark" class="tag" @click="rqtResultradio(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="rqtResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="rqtResultradio(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="rqtResultChange2" effect="dark" class="tag" @click="rqtResultradio(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div id="editorEle" class="toolbar" />
|
|
|
<div id="editorEle1" class="text" />
|
|
|
|
|
|
- <div class="titStyle">3、稳定性测试</div>
|
|
|
+ <div class="titStyle" style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">3、稳定性测试</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="pftResultChange" effect="dark" class="tag" @click="pftResultradio(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="pftResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="pftResultradio(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="pftResultChange2" effect="dark" class="tag" @click="pftResultradio(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div id="editorSix" class="toolbar" />
|
|
|
<div id="editorSix1" class="text" />
|
|
|
|
|
|
- <div class="titStyle">4、安全性测试</div>
|
|
|
+ <div class="titStyle" style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">4、安全性测试</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="safeResultChange" effect="dark" class="tag" @click="safeResultradio(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="safeResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="safeResultradio(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="safeResultChange2" effect="dark" class="tag" @click="safeResultradio(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div id="editorEight" class="toolbar" />
|
|
|
<div id="editorEight1" class="text" />
|
|
|
|
|
|
- <div class="titStyle">5、线上监控</div>
|
|
|
+ <div class="titStyle" style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">5、线上监控</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="moniterResultChange" effect="dark" class="tag" @click="moniterResultradio(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="moniterResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="moniterResultradio(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="moniterResultChange2" effect="dark" class="tag" @click="moniterResultradio(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div id="editorNine" class="toolbar" />
|
|
|
<div id="editorNine1" class="text" />
|
|
|
|
|
|
- <dir align="right" style="display: flex; margin: 5vw 0 0 60vw;">
|
|
|
+ <dir align="right" style="display: flex; margin: 5vw 0 0 50vw;">
|
|
|
<div style="flex: 1;"><el-button @click="clickPreview(ClientData)"> 预 览 </el-button></div>
|
|
|
- <div v-show="showButton" style="flex: 1;"><el-button type="primary" @click="getCreateData(ClientData)"> 保 存 </el-button></div>
|
|
|
- <div v-show="showButton1" style="flex: 1;"><el-button type="primary" @click="getQueryData(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="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>
|
|
|
</dir>
|
|
|
</el-form>
|
|
@@ -106,7 +185,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { projectTestReportUpdate, projectTestReportCreate } from '@/api/ResultPage'
|
|
|
+import { projectTestReportUpdate, projectTestReportCreate, bugFinishList } from '@/api/ResultPage'
|
|
|
import E from 'wangeditor'
|
|
|
export default {
|
|
|
name: 'Acceptance',
|
|
@@ -118,12 +197,29 @@ export default {
|
|
|
tagBtn1: 'info',
|
|
|
tagChange: 'info',
|
|
|
tagChange1: 'info',
|
|
|
+ moniterResultChange: 'info',
|
|
|
+ moniterResultChange1: 'info',
|
|
|
+ moniterResultChange2: 'info',
|
|
|
+ safeResultChange: 'info',
|
|
|
+ safeResultChange1: 'info',
|
|
|
+ safeResultChange2: 'info',
|
|
|
+ rqtResultChange: 'info',
|
|
|
+ rqtResultChange1: 'info',
|
|
|
+ rqtResultChange2: 'info',
|
|
|
+ pftResultChange: 'info',
|
|
|
+ pftResultChange1: 'info',
|
|
|
+ pftResultChange2: 'info',
|
|
|
+ fctResultChange: 'info',
|
|
|
+ fctResultChange1: 'info',
|
|
|
+ fctResultChange2: 'info',
|
|
|
+ getInfoBtn: 'info',
|
|
|
+ getInfoBtn1: 'info',
|
|
|
userInformation: localStorage.getItem('username'),
|
|
|
userNames: localStorage.getItem('realname'),
|
|
|
- bizIdData: localStorage.getItem('key'),
|
|
|
serviceDataRules: {
|
|
|
reportName: [{ required: true, message: '报告标题不能为空', trigger: 'change' }],
|
|
|
ownner: [{ required: true, message: 'by不能为空', trigger: 'change' }],
|
|
|
+ safeInfo: [{ required: true, message: '完成结果不能为空', trigger: 'change' }],
|
|
|
status: [{ required: false, message: '测试结果不能为空', trigger: 'change' }],
|
|
|
taskLateStatus: [{ required: false, message: '准出延期不能为空', trigger: 'change' }],
|
|
|
taskLateReason: [{ required: true, message: '延期原因不能为空', trigger: 'change' }],
|
|
@@ -133,6 +229,7 @@ export default {
|
|
|
tester: [{ required: true, message: '测试人员不能为空', trigger: 'change' }],
|
|
|
testTimeEnd: [{ required: true, message: '测试周期不能为空', trigger: 'change' }]
|
|
|
},
|
|
|
+ showData: false,
|
|
|
showDelay: false,
|
|
|
showButton: true,
|
|
|
showButton1: '',
|
|
@@ -141,20 +238,25 @@ export default {
|
|
|
taskLateStatus: 0,
|
|
|
value: '',
|
|
|
status: '',
|
|
|
- labelWidth: '60px',
|
|
|
ClientData: {},
|
|
|
editorElem: '',
|
|
|
editorElems: '',
|
|
|
editorFrom: '',
|
|
|
editorF: '',
|
|
|
- editorData: '',
|
|
|
editorEl: '',
|
|
|
editorEle: '',
|
|
|
editorSix: '',
|
|
|
editorEight: '',
|
|
|
editorNine: '',
|
|
|
bizIdCode: '',
|
|
|
- projectIdCode: ''
|
|
|
+ projectIdCode: '',
|
|
|
+ bugNum: {},
|
|
|
+ tableData: [],
|
|
|
+ fctResult: '',
|
|
|
+ rqtResult: '',
|
|
|
+ pftResult: '',
|
|
|
+ safeResult: '',
|
|
|
+ moniterResult: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -165,7 +267,6 @@ export default {
|
|
|
this.editorElems = new E('#editorElems', '#editorElems1')
|
|
|
this.editorFrom = new E('#editorFrom', '#editorFrom1')
|
|
|
this.editorF = new E('#editorF', '#editorF1')
|
|
|
- this.editorData = new E('#editorData', '#editorData1')
|
|
|
this.editorEl = new E('#editorEl', '#editorEl1')
|
|
|
this.editorEle = new E('#editorEle', '#editorEle1')
|
|
|
this.editorSix = new E('#editorSix', '#editorSix1')
|
|
@@ -176,7 +277,6 @@ export default {
|
|
|
this.editorElems.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
this.editorFrom.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
this.editorF.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
- this.editorData.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
this.editorEl.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
this.editorEle.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
this.editorSix.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
@@ -187,7 +287,6 @@ export default {
|
|
|
this.editorElems.customConfig.zIndex = 110
|
|
|
this.editorFrom.customConfig.zIndex = 110
|
|
|
this.editorF.customConfig.zIndex = 110
|
|
|
- this.editorData.customConfig.zIndex = 110
|
|
|
this.editorEl.customConfig.zIndex = 110
|
|
|
this.editorEle.customConfig.zIndex = 110
|
|
|
this.editorSix.customConfig.zIndex = 110
|
|
@@ -206,9 +305,6 @@ export default {
|
|
|
this.editorF.customConfig.onchange = (html) => { this.editorF = html }
|
|
|
this.editorF.create()
|
|
|
|
|
|
- this.editorData.customConfig.onchange = (html) => { this.editorData = html }
|
|
|
- this.editorData.create()
|
|
|
-
|
|
|
this.editorEl.customConfig.onchange = (html) => { this.editorEl = html }
|
|
|
this.editorEl.create()
|
|
|
|
|
@@ -226,7 +322,6 @@ export default {
|
|
|
|
|
|
this.editorElem.txt.html(``)
|
|
|
this.editorElems.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"></colgroup><thead><tr><th>提测模块</th><th>提测分支</th></tr></thead><tbody><tr><td><br></td><td><br></td></tr><tr><td><br></td><td><br></td></tr></tbody></table><p></p>`)
|
|
|
- this.editorData.txt.html(`<p></p><table style="border-radius:4px;" width="100%"><colgroup><col width="20%"><col width="20%"><col width="20%"><col width="20%"><col width="20%"></colgroup><thead><tr><th>bug总数</th><th>已解决bug数</th><th>遗留bug数</th><th>reopen率</th><th>无效bug数</th></tr></thead><tbody><tr><td><br></td><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><td><br></td></tr></tbody></table><p>遗留问题:</p><br>`)
|
|
|
this.editorEl.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.editorEle.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>`)
|
|
@@ -243,24 +338,29 @@ export default {
|
|
|
this.ClientData = {}
|
|
|
this.bizIdCode = this.$route.query.projectId.bizId
|
|
|
this.projectIdCode = this.$route.query.projectId.id
|
|
|
+ this.bugNum = { type: 1, projectId: this.projectIdCode }
|
|
|
}
|
|
|
|
|
|
if (this.$route.query.task) { // 任务页面新建
|
|
|
this.ClientData = {}
|
|
|
this.bizIdCode = this.$route.query.task.bizId
|
|
|
this.projectIdCode = this.$route.query.task.id
|
|
|
+ this.bugNum = { type: 1, taskId: this.projectIdCode }
|
|
|
}
|
|
|
|
|
|
if (this.$route.query.projectData) { // 主页面新建
|
|
|
this.ClientData = {}
|
|
|
this.bizIdCode = this.$route.query.projectData.bizId
|
|
|
this.projectIdCode = this.$route.query.projectData.id
|
|
|
+ this.$route.query.projectData.typeString === 1 ? this.ClientData.projectId = this.projectIdCode : this.ClientData.taskId = this.projectIdCode
|
|
|
+ this.bugNum = { type: 1, taskId: this.ClientData.taskId, projectId: this.ClientData.projectId }
|
|
|
}
|
|
|
|
|
|
if (this.$route.query.data) { // 报告主页更新
|
|
|
this.showButton1 = true
|
|
|
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'
|
|
@@ -271,14 +371,140 @@ export default {
|
|
|
if (this.ClientData.taskLateStatus === 1) {
|
|
|
this.tagChange = 'success'
|
|
|
this.taskLateStatus = '1'
|
|
|
- this.showDelay = true
|
|
|
+ this.showDelay = false
|
|
|
} else {
|
|
|
this.tagChange1 = 'danger'
|
|
|
this.taskLateStatus = '2'
|
|
|
- this.showDelay = false
|
|
|
+ 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.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.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.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)
|
|
|
+ },
|
|
|
+
|
|
|
+ getBugData(e) {
|
|
|
+ bugFinishList(e).then(res => {
|
|
|
+ this.$set(this.ClientData, 'launchInfo', res.data.launchInfo)
|
|
|
+ this.tableData = [res.data]
|
|
|
+ this.formatData()
|
|
|
+ })
|
|
|
},
|
|
|
+
|
|
|
+ formatData() {
|
|
|
+ this.tableData.forEach(item => {
|
|
|
+ for (var key in item) {
|
|
|
+ item[key] = {
|
|
|
+ value: item[key],
|
|
|
+ edit: false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 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
|
|
@@ -287,7 +513,6 @@ export default {
|
|
|
this.editorFrom.txt.html(this.ClientData.functionInfo)
|
|
|
this.editorF.txt.html(this.ClientData.onlineRisk)
|
|
|
this.editorEle.txt.html(this.ClientData.rqtInfo)
|
|
|
- this.editorData.txt.html(this.ClientData.bugTarget)
|
|
|
this.editorEl.txt.html(this.ClientData.fctInfo)
|
|
|
this.editorSix.txt.html(this.ClientData.pftInfo)
|
|
|
this.editorEight.txt.html(this.ClientData.safeResultInfo)
|
|
@@ -305,33 +530,31 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 更新准出报告
|
|
|
- getQueryData(ele) {
|
|
|
+ getQueryData(ele, vel) {
|
|
|
this.ClientData = ele
|
|
|
+ // this.ClientData.bugTarget = JSON.stringify(vel[0])
|
|
|
typeof (this.editorElem) === 'string' ? this.ClientData.projectBackground = this.editorElem : ''
|
|
|
typeof (this.editorElems) === 'string' ? this.ClientData.moduleInfo = this.editorElems : ''
|
|
|
typeof (this.editorFrom) === 'string' ? this.ClientData.functionInfo = this.editorFrom : ''
|
|
|
typeof (this.editorF) === 'string' ? this.ClientData.onlineRisk = this.editorF : ''
|
|
|
typeof (this.editorEle) === 'string' ? this.ClientData.rqtInfo = this.editorEle : ''
|
|
|
- typeof (this.editorData) === 'string' ? this.ClientData.bugTarget = this.editorData : ''
|
|
|
typeof (this.editorEl) === 'string' ? this.ClientData.fctInfo = this.editorEl : ''
|
|
|
typeof (this.editorSix) === 'string' ? this.ClientData.pftInfo = this.editorSix : ''
|
|
|
typeof (this.editorEight) === 'string' ? this.ClientData.safeResultInfo = this.editorEight : ''
|
|
|
typeof (this.editorNine) === 'string' ? this.ClientData.moniterResultInfo = this.editorNine : ''
|
|
|
+ this.ClientData.fctResult = this.fctResult
|
|
|
+ this.ClientData.rqtResult = this.rqtResult
|
|
|
+ this.ClientData.pftResult = this.pftResult
|
|
|
+ this.ClientData.safeResult = this.safeResult
|
|
|
+ this.ClientData.moniterResult = this.moniterResult
|
|
|
this.ClientData.status = this.status
|
|
|
- // if (this.$route.query.projectId) { // 项目页面
|
|
|
- // this.ClientData.bizId = this.bizIdCode
|
|
|
- // this.ClientData.projectId = this.projectIdCode
|
|
|
- // }
|
|
|
- // if (this.$route.query.task) { // 任务页面
|
|
|
- // this.ClientData.bizId = this.bizIdCode
|
|
|
- // this.ClientData.projectId = this.projectIdCode
|
|
|
- // }
|
|
|
this.ClientData.taskLateStatus = this.taskLateStatus
|
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
this.objData = { projectTestReport: this.ClientData, user: this.userData }
|
|
|
projectTestReportUpdate(this.objData).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
|
+ this.$router.go(-1)
|
|
|
} else {
|
|
|
this.$message.error('更新失败')
|
|
|
}
|
|
@@ -339,16 +562,16 @@ export default {
|
|
|
},
|
|
|
|
|
|
// 新建准出提交
|
|
|
- getCreateData(ele) {
|
|
|
+ getCreateData(ele, vel) {
|
|
|
this.$refs['ClientData'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
this.ClientData = ele
|
|
|
+ // this.ClientData.bugTarget = JSON.stringify(vel[0])
|
|
|
typeof (this.editorElem) === 'string' ? this.ClientData.projectBackground = this.editorElem : ''
|
|
|
typeof (this.editorElems) === 'string' ? this.ClientData.moduleInfo = this.editorElems : ''
|
|
|
typeof (this.editorFrom) === 'string' ? this.ClientData.functionInfo = this.editorFrom : ''
|
|
|
typeof (this.editorF) === 'string' ? this.ClientData.onlineRisk = this.editorF : ''
|
|
|
typeof (this.editorEle) === 'string' ? this.ClientData.rqtInfo = this.editorEle : ''
|
|
|
- typeof (this.editorData) === 'string' ? this.ClientData.bugTarget = this.editorData : ''
|
|
|
typeof (this.editorEl) === 'string' ? this.ClientData.fctInfo = this.editorEl : ''
|
|
|
typeof (this.editorSix) === 'string' ? this.ClientData.pftInfo = this.editorSix : ''
|
|
|
typeof (this.editorEight) === 'string' ? this.ClientData.safeResultInfo = this.editorEight : ''
|
|
@@ -366,6 +589,11 @@ export default {
|
|
|
this.$route.query.projectData.typeString === 1 ? this.ClientData.projectId = this.projectIdCode : this.ClientData.taskId = this.projectIdCode
|
|
|
this.ClientData.bizId = this.bizIdCode
|
|
|
}
|
|
|
+ this.ClientData.fctResult = this.fctResult
|
|
|
+ this.ClientData.rqtResult = this.rqtResult
|
|
|
+ this.ClientData.pftResult = this.pftResult
|
|
|
+ this.ClientData.safeResult = this.safeResult
|
|
|
+ this.ClientData.moniterResult = this.moniterResult
|
|
|
this.ClientData.status = this.status
|
|
|
this.ClientData.taskLateStatus = this.taskLateStatus
|
|
|
this.ClientData.type = 2
|
|
@@ -395,12 +623,27 @@ export default {
|
|
|
this.tagChange = 'success'
|
|
|
this.tagChange1 = 'info'
|
|
|
this.showDelay = false
|
|
|
- this.taskLateStatus = '1'
|
|
|
+ this.taskLateStatus = 1
|
|
|
+ this.$set(this.ClientData, 'taskLateReason', '')
|
|
|
} else {
|
|
|
this.tagChange = 'info'
|
|
|
this.tagChange1 = 'danger'
|
|
|
this.showDelay = true
|
|
|
- this.taskLateStatus = '2'
|
|
|
+ this.taskLateStatus = 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 涉及安全项
|
|
|
+ showStatusData(e) {
|
|
|
+ if (e === 1) {
|
|
|
+ this.getInfoBtn1 = 'success'
|
|
|
+ this.getInfoBtn = 'info'
|
|
|
+ this.showData = false
|
|
|
+ this.$set(this.ClientData, 'safeInfo', '')
|
|
|
+ } else {
|
|
|
+ this.getInfoBtn1 = 'info'
|
|
|
+ this.getInfoBtn = 'danger'
|
|
|
+ this.showData = true
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -410,12 +653,116 @@ export default {
|
|
|
this.ClientData.status = 1
|
|
|
this.tagBtn = 'success'
|
|
|
this.tagBtn1 = 'info'
|
|
|
- this.status = '1'
|
|
|
+ this.status = 1
|
|
|
} else {
|
|
|
this.ClientData.status = 2
|
|
|
this.tagBtn = 'info'
|
|
|
this.tagBtn1 = 'danger'
|
|
|
- this.status = '2'
|
|
|
+ this.status = 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 1、功能测试
|
|
|
+ fctResultradio(e) {
|
|
|
+ this.fctResultChange = 'info'
|
|
|
+ this.fctResultChange1 = 'info'
|
|
|
+ this.fctResultChange2 = 'info'
|
|
|
+ switch (e) {
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 可靠性测试
|
|
|
+ rqtResultradio(e) {
|
|
|
+ this.rqtResultChange = 'info'
|
|
|
+ this.rqtResultChange1 = 'info'
|
|
|
+ this.rqtResultChange2 = 'info'
|
|
|
+ switch (e) {
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 稳定性测试
|
|
|
+ pftResultradio(e) {
|
|
|
+ this.pftResultChange = 'info'
|
|
|
+ this.pftResultChange1 = 'info'
|
|
|
+ this.pftResultChange2 = 'info'
|
|
|
+ switch (e) {
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 安全性测试
|
|
|
+ safeResultradio(e) {
|
|
|
+ this.safeResultChange = 'info'
|
|
|
+ this.safeResultChange1 = 'info'
|
|
|
+ this.safeResultChange2 = 'info'
|
|
|
+ switch (e) {
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 线上监控
|
|
|
+ moniterResultradio(e) {
|
|
|
+ this.moniterResultChange = 'info'
|
|
|
+ this.moniterResultChange1 = 'info'
|
|
|
+ this.moniterResultChange2 = 'info'
|
|
|
+ switch (e) {
|
|
|
+ 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
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -432,7 +779,6 @@ export default {
|
|
|
font-size: 19px;
|
|
|
font-weight: bold;
|
|
|
border-radius: 4px;
|
|
|
- /* padding:2px; */
|
|
|
margin-top: 2%;
|
|
|
}
|
|
|
.eleStyle {
|