From 3f6376ff46cc8747c70716b9c87172263d4198b1 Mon Sep 17 00:00:00 2001 From: datang Date: Wed, 29 Mar 2023 10:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/crm.js | 5 +- src/store/modules/permission.js | 6 +- .../admin/crm/customer/components/PoolAdd.vue | 174 ++++++------------ src/views/layout/components/Sidebar/index.vue | 1 - 4 files changed, 66 insertions(+), 120 deletions(-) diff --git a/src/store/modules/crm.js b/src/store/modules/crm.js index 0d804e6..9133f1f 100644 --- a/src/store/modules/crm.js +++ b/src/store/modules/crm.js @@ -18,7 +18,8 @@ const app = { remindReceivablesPlan: 0, endContract: 0, totalNum: 0 - } + }, + crmCustomerNumForC: 0 }, mutations: { @@ -54,7 +55,7 @@ const app = { reject(error) }) crmCustomerNumForC().then(res => { - console.log(res.data) + commit('SET_CUSTOMERNUM', res.data) }).catch(() => {}) }) } diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js index 6af7872..ac2250f 100644 --- a/src/store/modules/permission.js +++ b/src/store/modules/permission.js @@ -250,7 +250,11 @@ const permission = { messageItem.children[0].meta.num = num Vue.set(state.crmRouters, 1, messageItem) }, - + SET_CUSTOMERNUM: (state, num) => { + const messageItem = state.crmRouters[3] + messageItem.children[0].meta.num = num + Vue.set(state.crmRouters, 3, messageItem) + }, SET_GROUPSLIST: (state, data) => { state.groupsList = data } diff --git a/src/views/admin/crm/customer/components/PoolAdd.vue b/src/views/admin/crm/customer/components/PoolAdd.vue index 127fc54..8490854 100644 --- a/src/views/admin/crm/customer/components/PoolAdd.vue +++ b/src/views/admin/crm/customer/components/PoolAdd.vue @@ -1,107 +1,58 @@