From 7cc12d6faca63d876567d6fa1d0bed591e1b9f57 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 27 May 2025 15:32:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(addTicket):=20=E8=B4=AD=E7=A5=A8=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=8A=A5=E9=94=99=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/marketing/ticket/addTicket.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {