|
@@ -1,96 +1,106 @@
|
|
|
<template>
|
|
|
<!-- 准出报告,新增客户端报告 -->
|
|
|
- <el-form ref="ClientData" :inline="true" :model="ClientData" :rules="serviceDataRules" style="margin:7% 3%;">
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="13">
|
|
|
- <el-form-item class="backStyle" prop="reportName">
|
|
|
- <el-input v-model="ClientData.reportName" style="width:40vw;" placeholder="报告标题(xxx项目准出报告)" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="11">
|
|
|
- <el-form-item label="by" prop="ownner" style="margin: 20px 0 0 60px;margin-left:70px;background: white">
|
|
|
- <el-input v-model="ClientData.ownner" style="width:20vw; border:2px solid #ccc;border-radius: 4px;" placeholder="who" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="20"><el-col :span="12"><el-form-item label="一、项目概述" class="backStyle" /></el-col></el-row>
|
|
|
- <el-row :gutter="20" type="flex">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="测试结果" class="backStyle" prop="status">
|
|
|
- <el-radio-group v-model="ClientData.status">
|
|
|
- <el-radio style="margin: 0 90px;" label="1" @change="changeStatus(1)">通过</el-radio>
|
|
|
- <el-radio style="padding-right: 140px;" label="2" @change="changeStatus">不通过</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="准入结果" prop="smokeTestResult" class="backStyle" style="margin-left:77px;"><el-input v-model="ClientData.smokeTestResult" style="width:30.5vw;" placeholder="准入次数/通过次数/失败次数" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="23">
|
|
|
- <el-col :span="23">
|
|
|
- <el-form-item label="开发人员" prop="developer" class="backStyle"><el-input v-model=" ClientData.developer" style="width:30.5vw;" /></el-form-item>
|
|
|
- <el-form-item label="开发周期" prop="devTimeEnd" class="backStyle" style="margin-left:80px;">
|
|
|
- <el-date-picker v-model="ClientData.devTimeEnd" style="width:14.5vw;" type="date" placeholder="选择日期" /> —
|
|
|
- <el-date-picker v-model="ClientData.devTimeStart" style="width:14.5vw;" type="date" placeholder="选择日期" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="23">
|
|
|
- <el-col :span="23">
|
|
|
- <el-form-item label="测试人员" prop="tester" class="backStyle"><el-input v-model="ClientData.tester" style="width:30.5vw;" /></el-form-item>
|
|
|
- <el-form-item label="测试周期" prop="testTimeEnd" class="backStyle" style="margin-left:80px;">
|
|
|
- <el-date-picker v-model="ClientData.testTimeEnd" style="width:14.5vw;" type="date" placeholder="选择日期" /> —
|
|
|
- <el-date-picker v-model="ClientData.testTimeStart" style="width:14.5vw;" type="date" placeholder="选择日期" />
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-row :gutter="20" type="flex">
|
|
|
- <el-col :span="12">
|
|
|
- <el-form-item label="准出延期" class="backStyle" prop="taskLateStatus">
|
|
|
- <el-radio-group v-model="ClientData.taskLateStatus">
|
|
|
- <el-radio style="margin: 0 90px;" label="2" @change="clickshow">否</el-radio>
|
|
|
- <el-radio style="padding-right: 177px;" label="1" @change="clickshow(1)">是</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item v-if="showDelay" prop="taskLateReason" label="延期原因" class="backStyle" style="margin-left:82px;"><el-input v-model="ClientData.taskLateReason" style="width:30.5vw;" /></el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <el-form-item label="二、项目背景" class="backStyle" />
|
|
|
+ <div class="eleStyle">
|
|
|
+ <div style="height:100%;width:94%; background:#ffffff; margin: 3%; border-radius: 8px; overflow: hidden;">
|
|
|
+ <el-form ref="ClientData" :inline="true" :model="ClientData" :rules="serviceDataRules" style="margin:2% 3%;">
|
|
|
+ <div style="display:flex; white-space: nowrap;">
|
|
|
+ <el-form-item label="标题" class="backStyle" style="flex:1;" prop="reportName">
|
|
|
+ <el-input v-model="ClientData.reportName" style="width:45vw;" placeholder="报告标题(xxx项目准出报告)" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="by" prop="ownner" class="backStyle" style="flex:1; text-align: right;">
|
|
|
+ <el-input v-model="ClientData.ownner" style="width:24vw;" placeholder="who" />
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom: 1%;" class="backStyle">一. 项目概述</div>
|
|
|
|
|
|
- <div id="editorElem" class="toolbar" />
|
|
|
- <div id="editorElem1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+ <div style="display: flex; white-space: nowrap;">
|
|
|
+ <el-form-item label="* 测试结果" style="flex: 1;" prop="status">
|
|
|
+ <el-tag :type="tagBtn" effect="dark" style="margin: 0 2vw;" class="tag" @click="changeStatus(1)"> 通过 </el-tag>
|
|
|
+ <el-tag :type="tagBtn1" effect="dark" class="tag" @click="changeStatus(2)"> 不通过 </el-tag>
|
|
|
+ </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>
|
|
|
+ </div>
|
|
|
+ <div style="display: flex; white-space: nowrap;">
|
|
|
+ <el-form-item label="* 准出延期" style="flex: 1;" prop="taskLateStatus">
|
|
|
+ <el-tag :type="tagChange" effect="dark" style="margin: 0 2vw;" class="tag" @click="lateStatusChange(1)"> 否 </el-tag>
|
|
|
+ <el-tag :type="tagChange1" effect="dark" class="tag" @click="lateStatusChange(2)"> 是 </el-tag>
|
|
|
+ </el-form-item>
|
|
|
+ <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;" 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">
|
|
|
+ <el-date-picker v-model="ClientData.devTimeEnd" type="date" placeholder="请选择开始日期" style=" width: 15vw;" />
|
|
|
+ <el-date-picker v-model="ClientData.devTimeStart" type="date" placeholder="请选择开始日期" style="margin-left:1.3vw; width: 16vw;" />
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
|
|
|
- <el-form-item label="三、测试项" class="backStyle" />
|
|
|
- <p class="p">功能测试 <el-radio-group v-model="pftResult"> <el-radio :label="3">未执行</el-radio><el-radio :label="1">测试通过</el-radio><el-radio :label="2">测试未通过</el-radio></el-radio-group></p>
|
|
|
+ <div style="display: flex; white-space: nowrap;">
|
|
|
+ <el-form-item label="测试人员" style="flex: 1;" prop="tester"><el-input v-model="ClientData.tester" style="width: 30vw;" /></el-form-item>
|
|
|
+ <el-form-item label="测试周期" style="flex: 1;text-align:right;" prop="testTimeEnd">
|
|
|
+ <el-date-picker v-model="ClientData.testTimeEnd" type="date" placeholder="请选择开始日期" style=" width: 15vw;" />
|
|
|
+ <el-date-picker v-model="ClientData.testTimeStart" type="date" placeholder="请选择开始日期" style="margin-left: 1.3vw; width: 16vw;" />
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
+ <div style="margin-bottom: 1%;" class="backStyle">二. 项目背景</div>
|
|
|
|
|
|
- <div id="editorElems" class="toolbar" />
|
|
|
- <div id="editorElems1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+ <div id="editorElem" class="toolbar" />
|
|
|
+ <div id="editorElem1" class="text" />
|
|
|
|
|
|
- <p class="p">兼容测试<el-radio-group v-model="sctResult"><el-radio :label="1">测试通过</el-radio><el-radio :label="2">测试未通过</el-radio></el-radio-group></p>
|
|
|
+ <div style="margin: 1% 0;" class="backStyle">三. 测试项</div>
|
|
|
|
|
|
- <div id="editorFrom" class="toolbar" />
|
|
|
- <div id="editorFrom1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+ <div 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="pftChange" effect="dark" class="tag" @click="changePftResult(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="pftChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="changePftResult(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="pftChange2" effect="dark" class="tag" @click="changePftResult(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <el-form-item label="四、产品验收" class="backStyle" />
|
|
|
- <el-row :gutter="20">
|
|
|
- <el-col :span="6">
|
|
|
- <p class="p">验收结果<el-radio-group v-model="acceptanceResult"><el-radio :label="3">未执行</el-radio><el-radio :label="1">测试通过</el-radio><el-radio :label="2">测试未通过</el-radio></el-radio-group></p>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <div id="editorFro" class="toolbar" />
|
|
|
- <div id="editorFro1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+ <div id="editorElems" class="toolbar" />
|
|
|
+ <div id="editorElems1" class="text" />
|
|
|
|
|
|
- <el-form-item label="五、bug指标" class="backStyle" />
|
|
|
+ <div style="display:flex; margin:2% 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="sctChange" effect="dark" class="tag" @click="changePftResult(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="sctChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="changeSctResult(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="sctChange2" effect="dark" class="tag" @click="changeSctResult(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <div id="editorEle" class="toolbar" />
|
|
|
- <div id="editorEle1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+ <div id="editorFrom" class="toolbar" />
|
|
|
+ <div id="editorFrom1" class="text" />
|
|
|
|
|
|
- <el-row :gutter="24" style="margin:70px 0 0 150px;" type="flex" justify="center">
|
|
|
- <el-col :span="8"><el-button type="info" @click="clickPreview(ClientData)"> 预 览 </el-button></el-col>
|
|
|
- <el-col v-show="showButton" :span="8"><el-button type="info" @click="getCreateData(ClientData)"> 保 存 </el-button></el-col>
|
|
|
- <el-col v-show="showButton1" :span="8"><el-button type="info" @click="getQueryData(ClientData)"> 更 新 </el-button></el-col>
|
|
|
- <el-col :span="8"><el-button type="info" @click="open(ClientData)"> 取 消 </el-button></el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
+ <div style="margin: 2% 0 0% 0;" class="backStyle">四. 产品验收</div>
|
|
|
+
|
|
|
+ <div style="display:flex; margin:1% 0 -1% 0; white-space: nowrap;">
|
|
|
+ <el-form-item style="flex:1; ">验收结果</el-form-item>
|
|
|
+ <div style="flex: 1; text-align: right;">
|
|
|
+ <el-tag :type="acceptanceResultChange" effect="dark" class="tag" @click="changeAcceptanceResult(3)"> 未执行 </el-tag>
|
|
|
+ <el-tag :type="acceptanceResultChange1" style="margin: 0 5%;" effect="dark" class="tag" @click="changeAcceptanceResult(1)"> 测试通过 </el-tag>
|
|
|
+ <el-tag :type="acceptanceResultChange2" effect="dark" class="tag" @click="changeAcceptanceResult(2)"> 测试未通过 </el-tag>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div id="editorFro" class="toolbar" />
|
|
|
+ <div id="editorFro1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+
|
|
|
+ <div style="margin: 2% 0 2% 0;" class="backStyle">五. bug指标</div>
|
|
|
+
|
|
|
+ <div id="editorEle" class="toolbar" />
|
|
|
+ <div id="editorEle1" class="text" style="text-align:left;cellspacing:0;cellpadding:0;min-height:100px;" />
|
|
|
+
|
|
|
+ <dir align="right" style="display: flex; margin: 5vw 0 3vw 64vw;">
|
|
|
+ <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 style="flex: 1;"><el-button @click="open()"> 取 消 </el-button></div>
|
|
|
+ </dir>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -102,13 +112,26 @@ export default {
|
|
|
return {
|
|
|
userData: '',
|
|
|
objData: '',
|
|
|
+ tagBtn: 'info',
|
|
|
+ tagBtn1: 'info',
|
|
|
+ tagChange: 'info',
|
|
|
+ tagChange1: 'info',
|
|
|
+ sctChange: 'info',
|
|
|
+ sctChange1: 'info',
|
|
|
+ sctChange2: 'info',
|
|
|
+ pftChange: 'info',
|
|
|
+ pftChange1: 'info',
|
|
|
+ pftChange2: 'info',
|
|
|
+ acceptanceResultChange: 'info',
|
|
|
+ acceptanceResultChange1: 'info',
|
|
|
+ acceptanceResultChange2: 'info',
|
|
|
userInformation: localStorage.getItem('username'),
|
|
|
userNames: localStorage.getItem('realname'),
|
|
|
serviceDataRules: {
|
|
|
reportName: [{ required: true, message: '报告标题不能为空', trigger: 'change' }],
|
|
|
ownner: [{ required: true, message: 'by不能为空', trigger: 'change' }],
|
|
|
- status: [{ required: true, message: '测试结果不能为空', trigger: 'change' }],
|
|
|
- taskLateStatus: [{ required: true, message: '准出延期不能为空', trigger: 'change' }],
|
|
|
+ status: [{ required: false, message: '测试结果不能为空', trigger: 'change' }],
|
|
|
+ taskLateStatus: [{ required: false, message: '准出延期不能为空', trigger: 'change' }],
|
|
|
taskLateReason: [{ required: true, message: '延期原因不能为空', trigger: 'change' }],
|
|
|
smokeTestResult: [{ required: true, message: '准入结果不能为空', trigger: 'change' }],
|
|
|
developer: [{ required: true, message: '开发人员不能为空', trigger: 'change' }],
|
|
@@ -142,7 +165,7 @@ export default {
|
|
|
this.editorElems = new E('#editorElems', '#editorElems1')
|
|
|
this.editorFrom = new E('#editorFrom', '#editorFrom1')
|
|
|
this.editorFro = new E('#editorFro', '#editorFro1')
|
|
|
- this.editorEle = new E('#editorEl', '#editorEle1')
|
|
|
+ this.editorEle = new E('#editorEle', '#editorEle1')
|
|
|
|
|
|
this.editorElem.customConfig.zIndex = 110
|
|
|
this.editorElems.customConfig.zIndex = 110
|
|
@@ -150,11 +173,11 @@ export default {
|
|
|
this.editorFro.customConfig.zIndex = 110
|
|
|
this.editorEle.customConfig.zIndex = 110
|
|
|
|
|
|
- this.editorElem.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify']
|
|
|
- this.editorElems.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify']
|
|
|
- this.editorFrom.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify']
|
|
|
- this.editorFro.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify']
|
|
|
- this.editorEle.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify']
|
|
|
+ this.editorElem.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ this.editorElems.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ this.editorFrom.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ this.editorFro.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
+ this.editorEle.customConfig.menus = ['bold', 'italic', 'underline', 'link', 'list', 'justify', 'table']
|
|
|
|
|
|
this.editorElem.customConfig.onchange = (html) => { this.editorElem = html }
|
|
|
this.editorElems.customConfig.onchange = (html) => { this.editorElems = html }
|
|
@@ -180,39 +203,110 @@ export default {
|
|
|
this.showButton = true
|
|
|
this.showButton1 = false
|
|
|
if (this.$route.query.projectId) { // 项目页面新建
|
|
|
- console.log(this.$route.query.projectId)
|
|
|
this.ClientData = {}
|
|
|
this.bizIdCode = this.$route.query.projectId.bizId
|
|
|
this.projectIdCode = this.$route.query.projectId.id
|
|
|
}
|
|
|
|
|
|
if (this.$route.query.task) { // 任务页面新建
|
|
|
- alert(' 任务页面新建')
|
|
|
this.ClientData = {}
|
|
|
this.bizIdCode = this.$route.query.task.bizId
|
|
|
this.projectIdCode = this.$route.query.task.id
|
|
|
}
|
|
|
+
|
|
|
+ if (this.$route.query.projectData) { // 主页面新建
|
|
|
+ this.ClientData = {}
|
|
|
+ this.bizIdCode = this.$route.query.projectData.bizId
|
|
|
+ this.projectIdCode = this.$route.query.projectData.id
|
|
|
+ }
|
|
|
+
|
|
|
if (this.$route.query.data) { // 准出主页面
|
|
|
+ this.ClientData = {}
|
|
|
this.showButton1 = true
|
|
|
this.showButton = false
|
|
|
this.ClientData = this.$route.query.data
|
|
|
- this.pftResult = this.ClientData.pftResult
|
|
|
- this.sctResult = this.ClientData.sctResult
|
|
|
if (this.ClientData.status === 1) {
|
|
|
- this.status = '1'
|
|
|
- this.ClientData.status = '1'
|
|
|
+ this.tagBtn = 'success'
|
|
|
+ this.tagBtn1 = 'info'
|
|
|
+ this.status = 1
|
|
|
} else {
|
|
|
- this.status = '2'
|
|
|
- this.ClientData.status = '2'
|
|
|
+ this.tagBtn1 = 'danger'
|
|
|
+ this.tagBtn = 'info'
|
|
|
+ this.status = 2
|
|
|
}
|
|
|
if (this.ClientData.taskLateStatus === 1) {
|
|
|
- this.taskLateStatus = '1'
|
|
|
- this.ClientData.taskLateStatus = '1'
|
|
|
- this.showDelay = true
|
|
|
- } else {
|
|
|
- this.taskLateStatus = '2'
|
|
|
- this.ClientData.taskLateStatus = '2'
|
|
|
+ this.tagChange = 'success'
|
|
|
+ this.tagChange1 = 'info'
|
|
|
+ this.taskLateStatus = 1
|
|
|
this.showDelay = false
|
|
|
+ } else {
|
|
|
+ this.tagChange1 = 'danger'
|
|
|
+ this.tagChange = 'info'
|
|
|
+ this.taskLateStatus = 2
|
|
|
+ this.showDelay = true
|
|
|
+ }
|
|
|
+ if (this.ClientData.sctResult) {
|
|
|
+ switch (this.ClientData.sctResult) {
|
|
|
+ case 1:
|
|
|
+ this.sctChange = 'info'
|
|
|
+ this.sctChange1 = 'success'
|
|
|
+ this.sctChange2 = 'info'
|
|
|
+ this.sctResult = 1
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.sctChange = 'info'
|
|
|
+ this.sctChange1 = 'info'
|
|
|
+ this.sctChange2 = 'danger'
|
|
|
+ this.sctResult = 2
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.sctChange = 'warning'
|
|
|
+ this.sctChange1 = 'info'
|
|
|
+ this.sctChange2 = 'info'
|
|
|
+ this.sctResult = 3
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.ClientData.pftResult) {
|
|
|
+ switch (this.ClientData.pftResult) {
|
|
|
+ case 1:
|
|
|
+ this.pftChange = 'info'
|
|
|
+ this.pftChange1 = 'success'
|
|
|
+ this.pftChange2 = 'info'
|
|
|
+ this.pftResult = 1
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.pftChange = 'info'
|
|
|
+ this.pftChange1 = 'info'
|
|
|
+ this.pftChange2 = 'danger'
|
|
|
+ this.pftResult = 2
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.pftChange = 'warning'
|
|
|
+ this.pftChange1 = 'info'
|
|
|
+ this.pftChange2 = 'info'
|
|
|
+ this.pftResult = 3
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.ClientData.acceptanceResult) {
|
|
|
+ switch (this.ClientData.acceptanceResult) {
|
|
|
+ case 1:
|
|
|
+ this.acceptanceResultChange = 'info'
|
|
|
+ this.acceptanceResultChange1 = 'success'
|
|
|
+ this.acceptanceResultChange2 = 'info'
|
|
|
+ this.acceptanceResult = 1
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.acceptanceResultChange = 'info'
|
|
|
+ this.acceptanceResultChange1 = 'info'
|
|
|
+ this.acceptanceResultChange2 = 'danger'
|
|
|
+ this.acceptanceResult = 2
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.acceptanceResultChange = 'warning'
|
|
|
+ this.acceptanceResultChange1 = 'info'
|
|
|
+ this.acceptanceResultChange2 = 'info'
|
|
|
+ this.acceptanceResult = 3
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -223,7 +317,7 @@ export default {
|
|
|
this.editorFro.txt.html(this.ClientData.acceptanceResultInfo)
|
|
|
this.editorEle.txt.html(this.ClientData.bugTarget)
|
|
|
},
|
|
|
- open(ele) {
|
|
|
+ open() {
|
|
|
this.$confirm('是否放弃修改,离开页面?', '确认信息', {
|
|
|
distinguishCancelAndClose: true,
|
|
|
confirmButtonText: '继续修改',
|
|
@@ -252,6 +346,10 @@ export default {
|
|
|
this.ClientData.bizId = this.bizIdCode
|
|
|
this.ClientData.taskId = this.projectIdCode
|
|
|
}
|
|
|
+ if (this.$route.query.projectData) { // 主页面新建
|
|
|
+ this.$route.query.projectData.typeString === 1 ? this.ClientData.projectId = this.projectIdCode : this.ClientData.taskId = this.projectIdCode
|
|
|
+ this.ClientData.bizId = this.bizIdCode
|
|
|
+ }
|
|
|
this.ClientData.status = this.status
|
|
|
this.ClientData.taskLateStatus = this.taskLateStatus
|
|
|
this.ClientData.type = 1
|
|
@@ -262,7 +360,7 @@ export default {
|
|
|
this.$message({ type: 'success', message: '保存成功' })
|
|
|
this.$router.go(-1)
|
|
|
} else {
|
|
|
- this.$message.error('保存失败')
|
|
|
+ this.$message.error(res.msg)
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -287,48 +385,132 @@ export default {
|
|
|
projectTestReportUpdate(this.objData).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
|
+ this.$router.go(-1)
|
|
|
} else {
|
|
|
this.$message.error('更新失败')
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ // 准出延期
|
|
|
+ lateStatusChange(e) {
|
|
|
+ if (e === 1) {
|
|
|
+ this.tagChange = 'success'
|
|
|
+ this.tagChange1 = 'info'
|
|
|
+ this.showDelay = false
|
|
|
+ this.taskLateStatus = '1'
|
|
|
+ } else {
|
|
|
+ this.tagChange = 'info'
|
|
|
+ this.tagChange1 = 'danger'
|
|
|
+ this.showDelay = true
|
|
|
+ this.taskLateStatus = '2'
|
|
|
+ }
|
|
|
+ },
|
|
|
clickPreview(ele) {
|
|
|
this.$router.push({ path: '/Platform/presentation/ResultPageyL', query: { data: ele }})
|
|
|
},
|
|
|
- clickshow(e) {
|
|
|
- e === 1 ? this.taskLateStatus = '1' : this.taskLateStatus = '2'
|
|
|
- e === 1 ? this.showDelay = true : this.showDelay = false
|
|
|
- },
|
|
|
+
|
|
|
+ // 测试结果
|
|
|
changeStatus(e) {
|
|
|
- e === 1 ? this.status = '1' : this.status = '2'
|
|
|
+ if (e === 1) {
|
|
|
+ this.tagBtn = 'success'
|
|
|
+ this.tagBtn1 = 'info'
|
|
|
+ this.status = '1'
|
|
|
+ } else {
|
|
|
+ this.tagBtn = 'info'
|
|
|
+ this.tagBtn1 = 'danger'
|
|
|
+ this.status = '2'
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 兼容测试
|
|
|
+ changeSctResult(e) {
|
|
|
+ if (e === 1) {
|
|
|
+ this.sctChange = 'success'
|
|
|
+ this.sctChange1 = 'info'
|
|
|
+ this.sctResult = 1
|
|
|
+ } else {
|
|
|
+ this.sctChange = 'info'
|
|
|
+ this.sctChange1 = 'danger'
|
|
|
+ this.sctResult = 2
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 功能测试
|
|
|
+ changePftResult(e) {
|
|
|
+ switch (e) {
|
|
|
+ case 1:
|
|
|
+ this.pftChange = 'info'
|
|
|
+ this.pftChange1 = 'success'
|
|
|
+ this.pftChange2 = 'info'
|
|
|
+ this.pftResult = 1
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.pftChange = 'info'
|
|
|
+ this.pftChange1 = 'info'
|
|
|
+ this.pftChange2 = 'danger'
|
|
|
+ this.pftResult = 2
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.pftChange = 'warning'
|
|
|
+ this.pftChange1 = 'info'
|
|
|
+ this.pftChange2 = 'info'
|
|
|
+ this.pftResult = 3
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 验收结果
|
|
|
+ changeAcceptanceResult(e) {
|
|
|
+ switch (e) {
|
|
|
+ case 1:
|
|
|
+ this.acceptanceResultChange = 'info'
|
|
|
+ this.acceptanceResultChange1 = 'success'
|
|
|
+ this.acceptanceResultChange2 = 'info'
|
|
|
+ this.acceptanceResult = 1
|
|
|
+ break
|
|
|
+ case 2:
|
|
|
+ this.acceptanceResultChange = 'info'
|
|
|
+ this.acceptanceResultChange1 = 'info'
|
|
|
+ this.acceptanceResultChange2 = 'danger'
|
|
|
+ this.acceptanceResult = 2
|
|
|
+ break
|
|
|
+ case 3:
|
|
|
+ this.acceptanceResultChange = 'warning'
|
|
|
+ this.acceptanceResultChange1 = 'info'
|
|
|
+ this.acceptanceResultChange2 = 'info'
|
|
|
+ this.acceptanceResult = 3
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
- .el-col {
|
|
|
- white-space:nowrap;
|
|
|
+.tag {
|
|
|
+ width:80px;
|
|
|
+ text-align: center;
|
|
|
+ cursor:pointer
|
|
|
}
|
|
|
.backStyle {
|
|
|
- margin:20px 0;
|
|
|
- background: #ccc;
|
|
|
+ font-size: 19px;
|
|
|
+ font-weight: bold;
|
|
|
border-radius: 4px;
|
|
|
- padding:2px;
|
|
|
+ }
|
|
|
+ .eleStyle {
|
|
|
+ width: 100%;
|
|
|
+ height:100%;
|
|
|
+ background:#F2F3F6;
|
|
|
+ display: inline-block;
|
|
|
}
|
|
|
.toolbar {
|
|
|
- width: 79vw;
|
|
|
- border: 2px solid #ccc;
|
|
|
+ border: 2px solid #DEE2E7;
|
|
|
}
|
|
|
.text {
|
|
|
+ text-align: left;
|
|
|
+ min-height: 100px;
|
|
|
font-size: 15px;
|
|
|
- color:#606266;
|
|
|
- width: 79vw;
|
|
|
- border: 2px solid #ccc;
|
|
|
- height: aotu;
|
|
|
- }
|
|
|
- .p {
|
|
|
- font-size: 15px;
|
|
|
- color:#606266;
|
|
|
+ color: #606266;
|
|
|
+ border: 1px solid #DEE2E7;
|
|
|
+ height: auto;
|
|
|
}
|
|
|
</style>
|