feat(addTicket): 购票逻辑报错处理
This commit is contained in:
parent
65d3fc1ebf
commit
7cc12d6fac
|
@ -203,7 +203,6 @@ export default {
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getData()
|
||||
// (1=新增,2=修改,3=删除)4查看
|
||||
if (
|
||||
this.$route.query.controlType == 4 ||
|
||||
|
@ -213,6 +212,7 @@ export default {
|
|||
} else {
|
||||
this.lookOver = false
|
||||
}
|
||||
console.log(this.$route.query.controlType, 'this.$route.query.controlType')
|
||||
this.controlType = this.$route.query.controlType
|
||||
this.pkId = this.$route.query.pkId || ''
|
||||
if (this.pkId) {
|
||||
|
@ -265,10 +265,12 @@ export default {
|
|||
},
|
||||
|
||||
submit() {
|
||||
console.log(this.controlType, 'obj')
|
||||
this.$refs['ruleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
let obj = {}
|
||||
obj = this.ruleForm
|
||||
|
||||
if (this.controlType == 1) {
|
||||
api.ticketSave(obj).then((res) => {
|
||||
if (res.code == 200) {
|
||||
|
|
Loading…
Reference in New Issue