|
@@ -230,7 +230,6 @@ export default {
|
|
|
formLabelWidth: '11%',
|
|
|
formLabelWidth1: '22%',
|
|
|
userData: '',
|
|
|
- submitMissionJudge: '',
|
|
|
businessTypeShow: false,
|
|
|
moduleTypeShow: false,
|
|
|
userInformation: localStorage.getItem('username'),
|
|
@@ -291,6 +290,7 @@ export default {
|
|
|
},
|
|
|
// 业务线取子数据
|
|
|
clickChangePlatform(e) {
|
|
|
+ console.log(this.form.taskId)
|
|
|
this.platformTypeStr = this.bizOptions.filter(value => value.code === e)[0].child
|
|
|
this.businessTypeStr = []
|
|
|
this.moduleStr = []
|
|
@@ -320,9 +320,6 @@ export default {
|
|
|
}
|
|
|
this.$set(this.form, 'moduleId', '')
|
|
|
},
|
|
|
- submitJudge(e) {
|
|
|
- this.submitMissionJudge = e
|
|
|
- },
|
|
|
// 提交表单并且返回刷新
|
|
|
createFormData(form) {
|
|
|
this.$refs.form.validate((valid) => {
|
|
@@ -330,16 +327,12 @@ export default {
|
|
|
if (this.$route.query.id && typeof this.form.bizId === 'string') {
|
|
|
form.bizId = this.bizOptions.filter(value => value.name === form.bizId)[0].code
|
|
|
}
|
|
|
- if (this.$route.query.id && !this.submitMissionJudge) {
|
|
|
- form.taskId = this.taskIdStr.filter(value => value.name === form.taskId)[0].id
|
|
|
- }
|
|
|
form.reopenTimes = parseInt(form.reopenTimes)
|
|
|
form.projectId = this.taskIdStr.filter(value => value.id === this.form.taskId)[0].projectId
|
|
|
this.userData = { id: '', ename: this.userInformation, name: this.userNames }
|
|
|
this.objData = { bugBaseInfo: form, user: this.userData }
|
|
|
bugCreate(this.objData).then(res => {
|
|
|
res.code === 200 ? this.successFun() : this.errorFun()
|
|
|
- this.submitMissionJudge = ''
|
|
|
this.$router.go(-1)
|
|
|
})
|
|
|
}
|