diff --git a/src/views/marketing/ticket/addTicket.vue b/src/views/marketing/ticket/addTicket.vue index 8d04e83..ed8ad93 100644 --- a/src/views/marketing/ticket/addTicket.vue +++ b/src/views/marketing/ticket/addTicket.vue @@ -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) {