From 9808962ae17585a0b74308aa014ad5f87cbaf234 Mon Sep 17 00:00:00 2001 From: wangxia <779219182@qq.com> Date: Thu, 26 Oct 2023 09:30:34 +0800 Subject: [PATCH] 1 --- src/App.vue | 2 +- src/api/userinfo.js | 20 +- src/components/merchantManagement/agencyList.vue | 57 ++++ .../merchantManagement/brokerageConfig.vue | 59 ++++ src/components/merchantManagement/firmInfo.vue | 59 ++++ src/components/merchantManagement/homePage.vue | 56 ++++ src/components/merchantManagement/infoList.vue | 59 ++++ src/components/merchantManagement/jobList.vue | 60 ++++ src/components/merchantManagement/memberInfo.vue | 102 +++++-- src/components/merchantManagement/mineBill.vue | 59 ++++ .../merchantManagement/navigationConfig.vue | 59 ++++ src/components/merchantManagement/orderList.vue | 59 ++++ src/components/merchantManagement/qiwei.vue | 59 ++++ .../merchantManagement/serviceMarket.vue | 59 ++++ src/components/merchantManagement/townsmanList.vue | 59 ++++ .../usercenter/components/dataStatistics.vue | 136 ++++----- src/router/index.js | 82 +++++- src/style/index.less | 15 +- src/views/merchantBack.vue | 321 ++++++++++++++++++--- 19 files changed, 1231 insertions(+), 151 deletions(-) create mode 100644 src/components/merchantManagement/agencyList.vue create mode 100644 src/components/merchantManagement/brokerageConfig.vue create mode 100644 src/components/merchantManagement/firmInfo.vue create mode 100644 src/components/merchantManagement/homePage.vue create mode 100644 src/components/merchantManagement/infoList.vue create mode 100644 src/components/merchantManagement/jobList.vue create mode 100644 src/components/merchantManagement/mineBill.vue create mode 100644 src/components/merchantManagement/navigationConfig.vue create mode 100644 src/components/merchantManagement/orderList.vue create mode 100644 src/components/merchantManagement/qiwei.vue create mode 100644 src/components/merchantManagement/serviceMarket.vue create mode 100644 src/components/merchantManagement/townsmanList.vue diff --git a/src/App.vue b/src/App.vue index c73f4e7..23e154e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,7 +8,7 @@ + + diff --git a/src/components/merchantManagement/brokerageConfig.vue b/src/components/merchantManagement/brokerageConfig.vue new file mode 100644 index 0000000..fe284e3 --- /dev/null +++ b/src/components/merchantManagement/brokerageConfig.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/firmInfo.vue b/src/components/merchantManagement/firmInfo.vue new file mode 100644 index 0000000..6f2b921 --- /dev/null +++ b/src/components/merchantManagement/firmInfo.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/homePage.vue b/src/components/merchantManagement/homePage.vue new file mode 100644 index 0000000..98c7284 --- /dev/null +++ b/src/components/merchantManagement/homePage.vue @@ -0,0 +1,56 @@ + + + + + diff --git a/src/components/merchantManagement/infoList.vue b/src/components/merchantManagement/infoList.vue new file mode 100644 index 0000000..0ac4f6b --- /dev/null +++ b/src/components/merchantManagement/infoList.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/jobList.vue b/src/components/merchantManagement/jobList.vue new file mode 100644 index 0000000..fa09c14 --- /dev/null +++ b/src/components/merchantManagement/jobList.vue @@ -0,0 +1,60 @@ + + + + + diff --git a/src/components/merchantManagement/memberInfo.vue b/src/components/merchantManagement/memberInfo.vue index 93ac809..7362b5f 100644 --- a/src/components/merchantManagement/memberInfo.vue +++ b/src/components/merchantManagement/memberInfo.vue @@ -67,7 +67,7 @@ 全部部门 - 18 + {{totalNum}} @@ -84,7 +84,7 @@
下移
-
6
+
{{item.userNum}}
@@ -98,7 +98,7 @@
-
{{ selectedKeys[0] == 'all' ? '全部成员(19人)':selectedKeys[0] + '(8人)' }}
+
{{ selectedKeys[0] == 'all' ? `全部成员(${totalGroupNum}人)`:selectedKeys[0] + `(${subGroupNum}人)` }}
添加成员 @@ -124,12 +124,7 @@
- - - +
+ - +
{{item.label}}
@@ -357,11 +353,7 @@ export default { visible: false, currentMember: {}, modalTitle: '', - roleOptions: [ - // { label: "创建人", value: "1" }, - { label: '管理员', value: '2' }, - { label: '成员', value: '3' }, - ], + permissionName: '查看职位,报名,查看报名,查看老乡,修改密码,修改手机号', permission: 'job:list,apply:add,apply:list,apply:user,user:pwd,user:tel', expandedRowKeys: [], @@ -374,6 +366,8 @@ export default { isEdit: false, // 编辑部门名称的判断 selectedKeys: ['all'], menuType: 'group', + totalGroupNum: 0, + totalNum: 0, } }, // 计算属性 @@ -446,7 +440,7 @@ export default { return text1 }, ellipsis: true, - width: 120, + width: 200, }, { title: '手机号', @@ -488,6 +482,20 @@ export default { ] return columns }, + roleOptions() { + if (this.currentMember.agencyRole == 1) { + return [ + { label: '创建人', value: '1' }, + { label: '管理员', value: '2' }, + { label: '成员', value: '3' }, + ] + } else { + return [ + { label: '管理员', value: '2' }, + { label: '成员', value: '3' }, + ] + } + }, }, // 侦听器 watch: {}, @@ -558,6 +566,12 @@ export default { this.getMemberList() console.log(e) }, + onPageChange(current, size) { + console.log(current) + console.log(size) + this.pagination.pageSize = size + this.getMemberList() + }, async getMemberList() { // let jobinfo = {...this.pagination , searchTag:1} try { @@ -565,9 +579,11 @@ export default { console.log(this.pagination) getMemberListApi(this.pagination).then(({ data }) => { if (data.status === 200) { + this.totalGroupNum = data.data.recordCount + this.subGroupNum = data.data.recordCount + this.memberList = data.data.recordList this.memberList.forEach((item, index) => { - // item.group = '部门' + ((index % 5) + 1) // item1.children.forEach((item) => { item.inAgencyStatistics = item.inAgencyStatistics == 0 ? true : false item.showAgencyScreen = item.showAgencyScreen == 0 ? true : false @@ -595,13 +611,16 @@ export default { console.log(error) } }, + getMemberGroup() { getMemberGroupApi().then(({ data }) => { if (data.status == 200) { console.log(data) this.groupList = data.data.list + this.totalNum = 0 this.groupList.forEach((item, index) => { console.log(item) + this.totalNum += item.userNum if (index > 0) { item.checked = false } else { @@ -732,7 +751,7 @@ export default { aliasName: this.currentMember.aliasName, tel: this.currentMember.tel, group: this.currentMember.group, - agencyTeamId: this.currentMember.agencyTeamName, + agencyTeamId: this.currentMember.agencyTeamId, showAgencyScreen: this.currentMember.showAgencyScreen, inAgencyStatistics: this.currentMember.inAgencyStatistics, }) @@ -762,6 +781,7 @@ export default { console.log(data) if (data.status == 200) { this.getMemberList() + this.getMemberGroup() } else { console.log(data.msg) this.$message.warning(data.msg) @@ -778,6 +798,7 @@ export default { if (typeof item != 'object') { this.pagination.agencyTeamIds = '' } else { + this.subGroupNum = item.userNum this.pagination.agencyTeamIds = item.id + '' } this.getMemberList() @@ -839,6 +860,7 @@ export default { this.permissionName = getAgencyPermissionNameById(this.permission) this.modalTitle = '' this.getMemberList() + this.getMemberGroup() } else { this.$message.warning(data.msg) this.visible = false @@ -913,31 +935,55 @@ export default { this.memberList.forEach((item) => { if (item.id == e.id) { item[type] = !item[type] - console.log(item[type]) - if (type == 'showAgencyScreen' && item['showAgencyScreen'] == true) { - item['inAgencyStatistics'] = true - } else if (type == 'inAgencyStatistics' && item['inAgencyStatistics'] == false) { - item['showAgencyScreen'] = false + let status = item[type] == true ? 0 : 1 + if (type == 'showAgencyScreen') { + this.memberShowScreen({ id: e.id, showAgencyScreen: status }) + } else { + this.memberJoinData({ id: e.id, inAgencyStatistics: status }) } - - console.log(item) + // if (type == 'showAgencyScreen' && item['showAgencyScreen'] == true) { + // item['inAgencyStatistics'] = true + // } else if (type == 'inAgencyStatistics' && item['inAgencyStatistics'] == false) { + // item['showAgencyScreen'] = false + // } } }) setTimeout(() => { that.$forceUpdate() }, 10) }, + /** * 大屏显示 */ memberShowScreen(val) { - memberShowScreenApi().then(({ data }) => {}) + console.log(val) + memberShowScreenApi(val) + .then(({ data }) => { + console.log(data) + if (data.status == 200) { + this.getMemberList() + } + }) + .catch((err) => { + console.log(err) + }) }, /** * 参与统计 */ memberJoinData(val) { - memberJoinDataApi().then(({ data }) => {}) + console.log(val) + memberJoinDataApi(val) + .then(({ data }) => { + console.log(data) + if (data.status == 200) { + this.getMemberList() + } + }) + .catch((err) => { + console.log(err) + }) }, moveList(item, type) { console.log(item) @@ -1063,7 +1109,7 @@ export default { // height: calc(100vh - 105px); .leftContainer { width: 260px; - min-width: 220px; + // min-width: 220px; height: 100%; overflow: hidden; /deep/ .searchbox { diff --git a/src/components/merchantManagement/mineBill.vue b/src/components/merchantManagement/mineBill.vue new file mode 100644 index 0000000..f711404 --- /dev/null +++ b/src/components/merchantManagement/mineBill.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/navigationConfig.vue b/src/components/merchantManagement/navigationConfig.vue new file mode 100644 index 0000000..444cba0 --- /dev/null +++ b/src/components/merchantManagement/navigationConfig.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/orderList.vue b/src/components/merchantManagement/orderList.vue new file mode 100644 index 0000000..ff4bd13 --- /dev/null +++ b/src/components/merchantManagement/orderList.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/qiwei.vue b/src/components/merchantManagement/qiwei.vue new file mode 100644 index 0000000..ae8888e --- /dev/null +++ b/src/components/merchantManagement/qiwei.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/serviceMarket.vue b/src/components/merchantManagement/serviceMarket.vue new file mode 100644 index 0000000..7b02e1c --- /dev/null +++ b/src/components/merchantManagement/serviceMarket.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/merchantManagement/townsmanList.vue b/src/components/merchantManagement/townsmanList.vue new file mode 100644 index 0000000..ee98ad3 --- /dev/null +++ b/src/components/merchantManagement/townsmanList.vue @@ -0,0 +1,59 @@ + + + + + diff --git a/src/components/userinfo/usercenter/components/dataStatistics.vue b/src/components/userinfo/usercenter/components/dataStatistics.vue index 61984ea..e8420a5 100644 --- a/src/components/userinfo/usercenter/components/dataStatistics.vue +++ b/src/components/userinfo/usercenter/components/dataStatistics.vue @@ -13,7 +13,7 @@