|
@@ -13,7 +13,7 @@
|
|
|
|
|
|
<div class="backStyle">一. 提测详情</div>
|
|
<div class="backStyle">一. 提测详情</div>
|
|
|
|
|
|
- <div class="double" style="white-space: nowrap;">
|
|
|
|
|
|
+ <div class="double" style="display: flex; justify-content: space-between; white-space: nowrap;">
|
|
<el-form-item label="* 是否延期" style="text-align:right;">
|
|
<el-form-item label="* 是否延期" style="text-align:right;">
|
|
<el-button :type="lateStatusBtn" style="margin: 0 20px;" size="small" class="tag" @click="lateStatusChange(2)"> 是 </el-button>
|
|
<el-button :type="lateStatusBtn" style="margin: 0 20px;" size="small" class="tag" @click="lateStatusChange(2)"> 是 </el-button>
|
|
<el-button :type="lateStatusBtn1" class="tag" size="small" @click="lateStatusChange(1)"> 否 </el-button>
|
|
<el-button :type="lateStatusBtn1" class="tag" size="small" @click="lateStatusChange(1)"> 否 </el-button>
|
|
@@ -21,7 +21,7 @@
|
|
<el-form-item v-if="showDelay" label="延期原因" prop="lateReason"><el-input v-model="dataChange.lateReason" size="small" style="width: 25vw;" /></el-form-item>
|
|
<el-form-item v-if="showDelay" label="延期原因" prop="lateReason"><el-input v-model="dataChange.lateReason" size="small" style="width: 25vw;" /></el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="double" style="white-space: nowrap;">
|
|
|
|
|
|
+ <div class="double" style="display: flex; justify-content: space-between; white-space: nowrap;">
|
|
<el-form-item label="* 新增Apollo" style="text-align:right;">
|
|
<el-form-item label="* 新增Apollo" style="text-align:right;">
|
|
<el-button :type="configInBtn" style="margin: 0 6px" size="small" class="tag" @click="changeApollo(1)"> 是 </el-button>
|
|
<el-button :type="configInBtn" style="margin: 0 6px" size="small" class="tag" @click="changeApollo(1)"> 是 </el-button>
|
|
<el-button :type="configInBtn1" style="margin-left: 24px" size="small" class="tag" @click="changeApollo(2)"> 否 </el-button>
|
|
<el-button :type="configInBtn1" style="margin-left: 24px" size="small" class="tag" @click="changeApollo(2)"> 否 </el-button>
|
|
@@ -29,7 +29,7 @@
|
|
<el-form-item v-if="showApollo" label="Apollo名称" prop="configInfo"><el-input v-model="dataChange.configInfo" size="small" style="width: 25vw;" /></el-form-item>
|
|
<el-form-item v-if="showApollo" label="Apollo名称" prop="configInfo"><el-input v-model="dataChange.configInfo" size="small" style="width: 25vw;" /></el-form-item>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="double" style="white-space: nowrap;">
|
|
|
|
|
|
+ <div class="double" style="display: flex; justify-content: space-between; white-space: nowrap;">
|
|
<el-form-item label="* 依赖组件" style="text-align:right;">
|
|
<el-form-item label="* 依赖组件" style="text-align:right;">
|
|
<el-button :type="dependentBtn" style="margin: 0 20px;" size="small" class="tag" @click="changeRelyOn(1)"> 是 </el-button>
|
|
<el-button :type="dependentBtn" style="margin: 0 20px;" size="small" class="tag" @click="changeRelyOn(1)"> 是 </el-button>
|
|
<el-button :type="dependentBtn1" class="tag" size="small" @click="changeRelyOn(2)"> 否 </el-button>
|
|
<el-button :type="dependentBtn1" class="tag" size="small" @click="changeRelyOn(2)"> 否 </el-button>
|
|
@@ -37,6 +37,14 @@
|
|
<el-form-item v-if="showRelyOn" label="组件名称" prop="dependentComponents"><el-input v-model="dataChange.dependentComponents" size="small" style="width: 25vw;" /></el-form-item>
|
|
<el-form-item v-if="showRelyOn" label="组件名称" prop="dependentComponents"><el-input v-model="dataChange.dependentComponents" size="small" style="width: 25vw;" /></el-form-item>
|
|
</div>
|
|
</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 17px 0 8px;" size="small" class="tag" @click="changeCodeReview(1)"> 是 </el-button>
|
|
|
|
+ <el-button :type="CodeReview1" class="tag" size="small" @click="changeCodeReview(0)"> 否 </el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item v-if="showCodeReview" class="double" label="执行人" prop="crBy"><el-input v-model="dataChange.crBy" size="small" style="width: 25vw;" /></el-form-item>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div class="double">
|
|
<div class="double">
|
|
<el-form-item label="测试地址" prop="packageUrl"><el-input v-model="dataChange.packageUrl" size="small" style="width:15vw;" /></el-form-item>
|
|
<el-form-item label="测试地址" prop="packageUrl"><el-input v-model="dataChange.packageUrl" size="small" style="width:15vw;" /></el-form-item>
|
|
<el-form-item label="打包分支" prop="packageBranch"><el-input v-model="dataChange.packageBranch" size="small" style="width:25vw;" /></el-form-item>
|
|
<el-form-item label="打包分支" prop="packageBranch"><el-input v-model="dataChange.packageBranch" size="small" style="width:25vw;" /></el-form-item>
|
|
@@ -127,34 +135,39 @@ export default {
|
|
functionInfo: [{ required: true, message: '需求list不能为空', trigger: 'change' }],
|
|
functionInfo: [{ required: true, message: '需求list不能为空', trigger: 'change' }],
|
|
env: [{ required: true, message: '提测环境不能为空', trigger: 'change' }],
|
|
env: [{ required: true, message: '提测环境不能为空', trigger: 'change' }],
|
|
configInfo: [{ required: true, message: 'Apollo名称不能为空', trigger: 'change' }],
|
|
configInfo: [{ required: true, message: 'Apollo名称不能为空', trigger: 'change' }],
|
|
- dependentComponents: [{ required: true, message: '组件名称不能为空', trigger: 'change' }]
|
|
|
|
|
|
+ dependentComponents: [{ required: true, message: '组件名称不能为空', trigger: 'change' }],
|
|
|
|
+ crBy: [{ required: true, message: '执行人不能为空', trigger: 'change' }]
|
|
},
|
|
},
|
|
lateStatusBtn: 'info',
|
|
lateStatusBtn: 'info',
|
|
- lateStatusBtn1: 'info',
|
|
|
|
|
|
+ lateStatusBtn1: 'success',
|
|
configInBtn: 'info',
|
|
configInBtn: 'info',
|
|
- configInBtn1: 'info',
|
|
|
|
|
|
+ configInBtn1: 'danger',
|
|
dependentBtn: 'info',
|
|
dependentBtn: 'info',
|
|
- dependentBtn1: 'info',
|
|
|
|
|
|
+ dependentBtn1: 'danger',
|
|
|
|
+ CodeReview: 'info',
|
|
|
|
+ CodeReview1: 'danger',
|
|
showDelay: false,
|
|
showDelay: false,
|
|
showApollo: false,
|
|
showApollo: false,
|
|
showRelyOn: false,
|
|
showRelyOn: false,
|
|
|
|
+ showCodeReview: false, // 执行人
|
|
userData: '',
|
|
userData: '',
|
|
objData: '',
|
|
objData: '',
|
|
userInformation: localStorage.getItem('username'),
|
|
userInformation: localStorage.getItem('username'),
|
|
userNames: localStorage.getItem('realname'),
|
|
userNames: localStorage.getItem('realname'),
|
|
id: '',
|
|
id: '',
|
|
name: '',
|
|
name: '',
|
|
- dataChange: {},
|
|
|
|
|
|
+ dataChange: {
|
|
|
|
+ cr: 0
|
|
|
|
+ },
|
|
DetailsOfProposal: '',
|
|
DetailsOfProposal: '',
|
|
lateStatus: '',
|
|
lateStatus: '',
|
|
- configInfo: '',
|
|
|
|
- dependentComponents: '',
|
|
|
|
bizIdCode: '',
|
|
bizIdCode: '',
|
|
projectIdCode: '',
|
|
projectIdCode: '',
|
|
ids: [],
|
|
ids: [],
|
|
- configIn: '',
|
|
|
|
- dependent: '',
|
|
|
|
- clien: ''
|
|
|
|
|
|
+ configIn: 2,
|
|
|
|
+ dependent: 2,
|
|
|
|
+ clien: '',
|
|
|
|
+ cr: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -177,6 +190,9 @@ export default {
|
|
getRouterData() {
|
|
getRouterData() {
|
|
console.log(this.clienData, '提测客户端')
|
|
console.log(this.clienData, '提测客户端')
|
|
this.dataChange = this.clienData
|
|
this.dataChange = this.clienData
|
|
|
|
+ this.dataChange.cr = 0
|
|
|
|
+ this.dataChange.configIn = 2
|
|
|
|
+ this.dataChange.lateStatus = 1
|
|
if (this.dataChange.id) {
|
|
if (this.dataChange.id) {
|
|
if (this.dataChange.lateStatus === 1) {
|
|
if (this.dataChange.lateStatus === 1) {
|
|
this.lateStatusBtn1 = 'success'
|
|
this.lateStatusBtn1 = 'success'
|
|
@@ -211,6 +227,18 @@ export default {
|
|
this.dependent = 2
|
|
this.dependent = 2
|
|
this.showRelyOn = false
|
|
this.showRelyOn = false
|
|
}
|
|
}
|
|
|
|
+ if (this.dataChange.crBy !== '' && this.dataChange.crBy !== null) { // 执行人
|
|
|
|
+ this.CodeReview = 'success'
|
|
|
|
+ this.CodeReview1 = 'info'
|
|
|
|
+ this.dataChange.cr = 1
|
|
|
|
+ this.showCodeReview = true
|
|
|
|
+ } else {
|
|
|
|
+ this.CodeReview = 'info'
|
|
|
|
+ this.CodeReview1 = 'danger'
|
|
|
|
+ this.dataChange.cr = 0
|
|
|
|
+ this.$set(this.dataChange, 'crBy', '')
|
|
|
|
+ this.showCodeReview = false
|
|
|
|
+ }
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.DetailsOfProposal.txt.html(this.dataChange.joinTest)
|
|
this.DetailsOfProposal.txt.html(this.dataChange.joinTest)
|
|
})
|
|
})
|
|
@@ -253,10 +281,11 @@ export default {
|
|
this.$refs['dataChange'].validate((valid) => {
|
|
this.$refs['dataChange'].validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.dataChange = ele
|
|
this.dataChange = ele
|
|
|
|
+ this.dataChange.configInfo ? '' : this.dataChange.configInfo = ''
|
|
|
|
+ this.dataChange.dependentComponents ? '' : this.dataChange.dependentComponents = ''
|
|
typeof (this.DetailsOfProposal) === 'string' ? this.dataChange.joinTest = this.DetailsOfProposal : ''
|
|
typeof (this.DetailsOfProposal) === 'string' ? this.dataChange.joinTest = this.DetailsOfProposal : ''
|
|
this.dataChange.bizId = Number(localStorage.getItem('bizId'))
|
|
this.dataChange.bizId = Number(localStorage.getItem('bizId'))
|
|
this.dataChange.taskIds = this.ids
|
|
this.dataChange.taskIds = this.ids
|
|
- this.dataChange.lateStatus = this.lateStatus
|
|
|
|
this.dataChange.type = 1
|
|
this.dataChange.type = 1
|
|
this.userData = { ename: this.userInformation, name: this.userNames }
|
|
this.userData = { ename: this.userInformation, name: this.userNames }
|
|
this.objData = { launchTestInfo: this.dataChange, user: this.userData }
|
|
this.objData = { launchTestInfo: this.dataChange, user: this.userData }
|
|
@@ -319,12 +348,28 @@ export default {
|
|
this.dependent = 2
|
|
this.dependent = 2
|
|
this.showRelyOn = false
|
|
this.showRelyOn = false
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ // CodeReview
|
|
|
|
+ changeCodeReview(e) {
|
|
|
|
+ if (e === 1) {
|
|
|
|
+ this.CodeReview = 'success'
|
|
|
|
+ this.CodeReview1 = 'info'
|
|
|
|
+ this.dataChange.cr = 1
|
|
|
|
+ this.showCodeReview = true
|
|
|
|
+ } else {
|
|
|
|
+ this.CodeReview = 'info'
|
|
|
|
+ this.CodeReview1 = 'danger'
|
|
|
|
+ this.dataChange.cr = 0
|
|
|
|
+ this.$set(this.dataChange, 'crBy', '')
|
|
|
|
+ this.showCodeReview = false
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
-<style scoped>
|
|
|
|
|
|
+<style lang="scss" scoped>
|
|
.eleStyle {
|
|
.eleStyle {
|
|
width: 100%;
|
|
width: 100%;
|
|
height:100%;
|
|
height:100%;
|
|
@@ -350,6 +395,11 @@ export default {
|
|
border: 1px solid #DEE2E7;
|
|
border: 1px solid #DEE2E7;
|
|
height: auto;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
+ .CodeReview {
|
|
|
|
+ /deep/ .el-form-item__label {
|
|
|
|
+ width: 106px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
</style>
|
|
</style>
|
|
<style lang="stylus" scoped>
|
|
<style lang="stylus" scoped>
|