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 @@