|
@@ -500,28 +500,35 @@ export default {
|
|
|
// 创建(提交)
|
|
|
this.$refs['formInline'].validate(valid => {
|
|
|
if (valid) {
|
|
|
- const data = e
|
|
|
- data.currentHandler = e.currentHandler.join()
|
|
|
- data.assigner = e.assigner.join()
|
|
|
+ const data = {...e};
|
|
|
+ // data.currentHandler = data.currentHandler.join()
|
|
|
+ // data.assigner = data.assigner.join()
|
|
|
var user = {
|
|
|
name: this.userNames,
|
|
|
ename: this.userInformation,
|
|
|
id: ''
|
|
|
}
|
|
|
- bugCreate({ bugBaseInfo: data, user }).then(res => {
|
|
|
+ bugCreate({ bugBaseInfo: {
|
|
|
+ ...data,
|
|
|
+ assigner: data.assigner.join(),
|
|
|
+ currentHandler: data.currentHandler.join()
|
|
|
+ }, user }).then(res => {
|
|
|
this.bugListSelect()
|
|
|
- this.modalShow = res.code !== 200
|
|
|
- this.$message({
|
|
|
- message: res.msg,
|
|
|
- type: 'success',
|
|
|
- duration: 1000,
|
|
|
- offset: 150
|
|
|
- })
|
|
|
- this.$emit('father')
|
|
|
- if (this.getBugList) {
|
|
|
- this.getBugList()
|
|
|
+
|
|
|
+ if(res.code === 200){
|
|
|
+ this.$message({
|
|
|
+ message: res.msg,
|
|
|
+ type: 'success',
|
|
|
+ duration: 1000,
|
|
|
+ offset: 150
|
|
|
+ })
|
|
|
+ this.$emit('father')
|
|
|
+ if (this.getBugList) {
|
|
|
+ this.getBugList()
|
|
|
+ }
|
|
|
+ this.$emit('getBugList')
|
|
|
}
|
|
|
- this.$emit('getBugList')
|
|
|
+ this.modalShow = res.code !== 200
|
|
|
})
|
|
|
}
|
|
|
})
|