From 2e57cf7b5bcac40e82d444c2029b9c93cf214e50 Mon Sep 17 00:00:00 2001 From: zq <136432190602163.com> Date: Wed, 21 Jan 2026 10:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=85=B3=E7=8A=B6=E6=80=81=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E3=80=81=E9=A6=96=E9=A1=B5=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/HeaderClientSet.vue | 7 ++++--- src/components/SetLeftMenu.vue | 4 ++++ src/components/clientSet/reviewBtn.vue | 2 +- src/views/super/clientSet/switchPage.vue | 18 +++++++++++++----- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/components/HeaderClientSet.vue b/src/components/HeaderClientSet.vue index b41bbf4..ee74f0f 100644 --- a/src/components/HeaderClientSet.vue +++ b/src/components/HeaderClientSet.vue @@ -121,9 +121,10 @@ export default { } }, toHome() { - this.$router.push({ - path: '/' - }) + // this.$router.push({ + // path: '/' + // }) + location.href = 'http://www.kuailelunwen.com/?adm=1' }, goToPage(path) { console.log(this.currentPath ,path,'===0000'); diff --git a/src/components/SetLeftMenu.vue b/src/components/SetLeftMenu.vue index 66f2a69..6b44035 100644 --- a/src/components/SetLeftMenu.vue +++ b/src/components/SetLeftMenu.vue @@ -54,6 +54,10 @@ export default { store.dispatch('fetchPaibanTemplateOption'); } if(newPath.includes('/super/clientSet')){ + const id = localStorage.getItem('template_id'); + if(id){ + store.commit('SET_CLIENTTEMID', id); + } store.dispatch('fetchClientConfig',{id:this.$route.query.id || localStorage.getItem('template_id')}); store.commit('SET_CLIENTTEMTYPE', this.$route.query.type); } diff --git a/src/components/clientSet/reviewBtn.vue b/src/components/clientSet/reviewBtn.vue index 594dc6c..8e4f091 100644 --- a/src/components/clientSet/reviewBtn.vue +++ b/src/components/clientSet/reviewBtn.vue @@ -26,7 +26,7 @@ export default { }, props:['type','status'], mounted() { - console.log(this.client_tpl_id,'client_tpl_id===='); + // console.log(this.client_tpl_id,'client_tpl_id===='); }, methods:{ submitFun(){ diff --git a/src/views/super/clientSet/switchPage.vue b/src/views/super/clientSet/switchPage.vue index 3697554..a6f89dc 100644 --- a/src/views/super/clientSet/switchPage.vue +++ b/src/views/super/clientSet/switchPage.vue @@ -31,7 +31,7 @@ export default { return { is_use_templete:'2',//默认值的显示问题 time:Date.now(), - editInfo:'' + editInfo:'' }; }, mounted() { @@ -39,7 +39,15 @@ export default { this.editInfo = editInfo; }, computed: { - ...mapState(['client_tpl_config']), + ...mapState(['client_tpl_config','client_tpl_id']), + }, + watch: { + 'client_tpl_config.status':{ + handler(newVal){ + this.is_use_templete = newVal; + }, + immediate:true + } }, methods: { updatePayAutoRefund() { @@ -49,14 +57,14 @@ export default { this.time = Date.now(); return } - console.log(this.is_use_templete,'this.is_use_templete=='); + console.log(this.client_tpl_id,'client_tpl_id==='); this.$http('POST', '/supernew/ajax_update_paiban_template_status', { status: this.is_use_templete , - template_id:this.$route.query.id + template_id:this.$route.query.id || this.client_tpl_id }).then(response => { this.$nextTick(() => { if (response.status) { - store.dispatch('fetchClientConfig',{id:this.$route.query.id || localStorage.getItem('template_id')}); + store.dispatch('fetchClientConfig',{id:this.$route.query.id || this.client_tpl_id}); this.$Message.success(response.info); } else { this.$Message.error(response.info);