|
@@ -29,13 +29,21 @@
|
|
|
<el-form-item v-if="showData" label="完成结果" prop="safeInfo"><el-input v-model="fromDev.safeInfo" size="small" style="width: 25vw;" /></el-form-item>
|
|
|
</div>
|
|
|
|
|
|
+ <div class="CodeReview" style="display: flex; justify-content: space-between; white-space: nowrap;">
|
|
|
+ <el-form-item label="* CodeReview">
|
|
|
+ <el-button :type="CodeReview" style="margin: 0 9px 0 12px;" size="small" class="tag" @click="showCodeReviews(1)"> 是 </el-button>
|
|
|
+ <el-button :type="CodeReview1" class="tag" size="small" @click="showCodeReviews(0)"> 否 </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item v-if="showCodeReview" class="double" label="执行人" prop="crBy"><el-input v-model="fromDev.crBy" size="small" style="width: 25vw;" /></el-form-item>
|
|
|
+ </div>
|
|
|
+
|
|
|
<el-form-item label="SDL链接 : "><el-link href="http://wiki.intra.xiaojukeji.com/pages/viewpage.action?pageId=237016271" type="primary" target="_blank"> 普惠SDL准入标准</el-link></el-form-item>
|
|
|
|
|
|
<div class="double">
|
|
|
<el-form-item label="是否跟版" prop="isEdition"><el-input v-model="fromDev.isEdition" size="small" style="width:15vw;" placeholder="请填写" /></el-form-item>
|
|
|
<el-form-item label="开发时间" prop="devTimeStart">
|
|
|
- <el-date-picker v-model="fromDev.devTimeStart" type="date" size="small" style="width:12.5vw; margin-right:2%;" placeholder="选择日期" />
|
|
|
- <el-date-picker v-model="fromDev.devTimeEnd" type="date" size="small" style="width:12.5vw;" placeholder="选择日期" />
|
|
|
+ <el-date-picker v-model="fromDev.devTimeStart" value-format="yyyy-MM-dd" type="date" size="small" style="width:12.5vw; margin-right:2%;" placeholder="选择日期" />
|
|
|
+ <el-date-picker v-model="fromDev.devTimeEnd" value-format="yyyy-MM-dd" type="date" size="small" style="width:12.5vw;" placeholder="选择日期" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
|
|
@@ -46,14 +54,14 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="计划提测时间" prop="planLaunchTime">
|
|
|
- <el-date-picker v-model="fromDev.planLaunchTime" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
|
|
|
+ <el-date-picker v-model="fromDev.planLaunchTime" value-format="yyyy-MM-dd" size="small" type="date" style="width:25vw;" placeholder="选择日期" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
|
|
|
<div class="double">
|
|
|
<el-form-item label=" prd地址 " prop="prdUrl"><el-input v-model="fromDev.prdUrl" size="small" style="width:15vw;" placeholder="请提供wiki链接" /></el-form-item>
|
|
|
<el-form-item label="实际提测时间" prop="launchTime">
|
|
|
- <el-date-picker v-model="fromDev.launchTime" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
|
|
|
+ <el-date-picker v-model="fromDev.launchTime" value-format="yyyy-MM-dd" type="date" size="small" style="width:25vw;" placeholder="选择日期" />
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="double">
|
|
@@ -97,6 +105,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+const _ = require('lodash')
|
|
|
+import moment from 'moment'
|
|
|
import { launchTestUpdate, launchTestCreate } from '@/api/InterfaceReport'
|
|
|
import E from 'wangeditor'
|
|
|
|
|
@@ -129,22 +139,26 @@ export default {
|
|
|
testSuggest: [{ required: true, message: '测试建议不能为空', trigger: 'change' }],
|
|
|
isEdition: [{ required: true, message: '是否跟版不能为空', trigger: 'change' }],
|
|
|
getInfo: [{ required: true, message: '涉及安全项不能为空', trigger: 'change' }],
|
|
|
- safeInfo: [{ required: true, message: '完成结果不能为空', trigger: 'change' }]
|
|
|
+ safeInfo: [{ required: true, message: '完成结果不能为空', trigger: 'change' }],
|
|
|
+ crBy: [{ required: true, message: '执行人不能为空', trigger: 'change' }]
|
|
|
},
|
|
|
objData: '',
|
|
|
lateStatusBtn: 'info',
|
|
|
- lateStatusBtn1: 'info',
|
|
|
+ lateStatusBtn1: 'success',
|
|
|
getInfoBtn: 'info',
|
|
|
- getInfoBtn1: 'info',
|
|
|
+ getInfoBtn1: 'success',
|
|
|
+ CodeReview: 'info',
|
|
|
+ CodeReview1: 'danger',
|
|
|
userData: '',
|
|
|
showDelay: false,
|
|
|
labelWidth: '60px',
|
|
|
- lateStatus: '',
|
|
|
+ lateStatus: 1,
|
|
|
getInfo: '',
|
|
|
fromDev: {},
|
|
|
ids: [],
|
|
|
editorContent: '',
|
|
|
showData: false,
|
|
|
+ showCodeReview: false,
|
|
|
DetailsOfProposal: '',
|
|
|
projectIdCode: ''
|
|
|
}
|
|
@@ -199,6 +213,19 @@ export default {
|
|
|
this.showData = false
|
|
|
this.$set(this.fromDev, 'safeInfo', '')
|
|
|
}
|
|
|
+ if (this.fromDev.crBy !== '' && this.fromDev.crBy !== null) { // CodeReview
|
|
|
+ alert(this.fromDev.crBy !== null)
|
|
|
+ this.CodeReview = 'success'
|
|
|
+ this.CodeReview1 = 'info'
|
|
|
+ this.fromDev.cr = 1
|
|
|
+ this.showCodeReview = true
|
|
|
+ } else {
|
|
|
+ this.CodeReview = 'info'
|
|
|
+ this.CodeReview1 = 'danger'
|
|
|
+ this.fromDev.cr = 0
|
|
|
+ this.showCodeReview = false
|
|
|
+ this.$set(this.fromDev, 'crBy', '')
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
this.fromDev.joinTest !== null ? this.editorContent.txt.html(this.fromDev.joinTest) : ''
|
|
|
this.fromDev.moduleInfo !== null ? this.DetailsOfProposal.txt.html(this.fromDev.moduleInfo) : ''
|
|
@@ -208,13 +235,17 @@ export default {
|
|
|
getQueryData(ele) {
|
|
|
this.$refs['fromDev'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
- this.fromDev = ele
|
|
|
- typeof (this.editorContent) === 'string' ? this.fromDev.joinTest = this.editorContent : ''
|
|
|
- typeof (this.DetailsOfProposal) === 'string' ? this.fromDev.moduleInfo = this.DetailsOfProposal : ''
|
|
|
- this.fromDev.lateStatus = this.lateStatus
|
|
|
- this.fromDev.id === undefined ? this.fromDev.id = this.clien : ''
|
|
|
+ const params = _.cloneDeep(this.fromDev)
|
|
|
+ typeof (this.editorContent) === 'string' ? params.joinTest = this.editorContent : ''
|
|
|
+ typeof (this.DetailsOfProposal) === 'string' ? params.moduleInfo = this.DetailsOfProposal : ''
|
|
|
+ params.lateStatus = this.lateStatus
|
|
|
+ params.devTimeStart = moment(params.devTimeStart).format('YYYY.MM.DD')
|
|
|
+ params.devTimeEnd = moment(params.devTimeEnd).format('YYYY.MM.DD')
|
|
|
+ params.planLaunchTime = moment(params.planLaunchTime).format('YYYY.MM.DD')
|
|
|
+ params.launchTime = moment(params.launchTime).format('YYYY.MM.DD')
|
|
|
+ params.id === undefined ? params.id = this.clien : ''
|
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
- this.objData = { launchTestInfo: this.fromDev, user: this.userData }
|
|
|
+ this.objData = { launchTestInfo: params, user: this.userData }
|
|
|
launchTestUpdate(this.objData).then(res => {
|
|
|
if (res.code === 200) {
|
|
|
this.$message({ type: 'success', message: '更新成功' })
|
|
@@ -284,12 +315,28 @@ export default {
|
|
|
this.getInfoBtn = 'danger'
|
|
|
this.showData = true
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ showCodeReviews(e) { // CodeReview
|
|
|
+ if (e === 1) {
|
|
|
+ this.CodeReview = 'success'
|
|
|
+ this.CodeReview1 = 'info'
|
|
|
+ this.fromDev.cr = 1
|
|
|
+ this.showCodeReview = true
|
|
|
+ }
|
|
|
+ if (e === 0) {
|
|
|
+ this.CodeReview1 = 'danger'
|
|
|
+ this.CodeReview = 'info'
|
|
|
+ this.fromDev.cr = 0
|
|
|
+ this.showCodeReview = false
|
|
|
+ }
|
|
|
+ this.$set(this.fromDev, 'crBy', '')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
+<style lang="scss" scoped>
|
|
|
.eleStyle {
|
|
|
width: 100%;
|
|
|
height:100%;
|
|
@@ -315,6 +362,11 @@ export default {
|
|
|
border: 2px solid #DEE2E7;
|
|
|
height: auto;
|
|
|
}
|
|
|
+ .CodeReview {
|
|
|
+ /deep/ .el-form-item__label {
|
|
|
+ width: 106px;
|
|
|
+ }
|
|
|
+ }
|
|
|
</style>
|
|
|
<style lang="stylus" scoped>
|
|
|
.double
|