diff --git a/src/components/merchantManagement/memberInfo.vue b/src/components/merchantManagement/memberInfo.vue
index 84bd99a..b850b5e 100644
--- a/src/components/merchantManagement/memberInfo.vue
+++ b/src/components/merchantManagement/memberInfo.vue
@@ -11,45 +11,115 @@
-
+
-
-
-
- {{item.teamName}}
+
+
+ 按角色
+ 按部门
+
+
+
+ 全部角色
+
+
+
默认角色(11人)
+
+
+
+ {{item.teamName}}
+
+
+
+
+
+
+
+
+
自定义角色(8人)
+
+
+
+ {{'角色1'}}
-
修改名称
-
删除
+
修改名称
+
删除
上移
下移
-
-
+
+ {{'角色2'}}
+
+
+
+
+
+
+
+
+
+
+ 全部角色
+
+
+
+
+
+ {{item.teamName}}
+
+
+
+
+
+
+
+
+
-
{{modalTitle ? modalTitle : "分组1(16人)"}}
-
+
{{modalTitle ? modalTitle : "部门1(16人)"}}
+
添加成员
-
+
+
-
-
@@ -81,7 +150,7 @@
-
+
-
- -->
-
+
+
取消
确定
-
- 确定要删除该分组吗?
+
+ 确定要删除该部门吗?
取消
确定
@@ -298,10 +389,11 @@ export default {
showGroup: false,
addGroupShow: false,
delGroupShow: false,
- groupName: '', // 分组名称
+ groupName: '', // 部门名称
loading: false,
- isEdit: false, // 编辑分组名称的判断
- selectedKeys: ['待分组'],
+ isEdit: false, // 编辑部门名称的判断
+ selectedKeys: ['待部门'],
+ menuType: 'role',
}
},
// 计算属性
@@ -309,7 +401,7 @@ export default {
columns() {
const columns = [
{
- title: '排序',
+ title: '序号',
dataIndex: 'index',
key: 'index',
customRender: (text, row, index) => {
@@ -323,22 +415,29 @@ export default {
width: 60,
},
{
- title: '成员姓名',
+ title: '姓名',
dataIndex: 'nickName',
key: 'nickName',
scopedSlots: { customRender: 'nickName' },
ellipsis: true,
+ // width: 120,
+ },
+ {
+ title: '角色',
+ dataIndex: 'role',
+ key: 'role',
width: 120,
+ ellipsis: true,
},
+
// {
- // title: '角色',
- // dataIndex: 'role',
- // key: 'role',
- // width: 100,
+ // title: '权限',
+ // dataIndex: 'permission',
+ // key: 'permission',
// ellipsis: true,
// },
{
- title: '分组',
+ title: '部门',
dataIndex: 'agencyTeamId',
key: 'agencyTeamId',
// width: 100,
@@ -353,13 +452,8 @@ export default {
return text1
},
ellipsis: true,
+ width: 120,
},
- // {
- // title: '权限',
- // dataIndex: 'permission',
- // key: 'permission',
- // ellipsis: true,
- // },
{
title: '手机号',
dataIndex: 'tel',
@@ -393,7 +487,7 @@ export default {
// sortOrder: sortedInfo.columnKey == "userApplyOrder" && sortedInfo.order,
// ellipsis: true,
- width: 140,
+ width: 84,
},
]
return columns
@@ -433,7 +527,7 @@ export default {
}
},
/**
- * 添加成员分组选择切换
+ * 添加成员部门选择切换
*/
onGroupChange(e) {
console.log(e)
@@ -443,7 +537,7 @@ export default {
this.agencyTeamId = e.id
},
/**
- * 分组列表选择
+ * 部门列表选择
*
*
*/
@@ -475,7 +569,7 @@ export default {
if (data.status === 200) {
this.memberList = data.data.recordList
this.memberList.forEach((item, index) => {
- // item.group = '分组' + ((index % 5) + 1)
+ // item.group = '部门' + ((index % 5) + 1)
// item1.children.forEach((item) => {
console.log(item)
item.role = getAgencyRoleTypeById(item.agencyRole)
@@ -560,9 +654,25 @@ export default {
},
delGroup(item) {
- console.log(item)
+ let that = this
this.recordId = item.id
- this.delGroupShow = true
+ this.$confirm({
+ title: '删除',
+ content: '确定要删除该部门吗?',
+ centered: true,
+ onOk(e1, e2) {
+ console.log(e1)
+ console.log(e2)
+ return new Promise((res) => {
+ that.delMemberGroup()
+ setTimeout(() => {
+ res()
+ }, 2000)
+ })
+ },
+ onCancel() {},
+ })
+ // this.delGroupShow = true
},
getPopupContainer(el, dialogContext) {
console.log(el)
@@ -603,7 +713,7 @@ export default {
if (type == 'edit') {
this.currentMember = e
this.modalTitle = '编辑成员'
- // this.visible = true
+ this.visible = true
setTimeout(() => {
console.log(this.currentMember)
that.form.setFieldsValue({
@@ -617,10 +727,10 @@ export default {
} else if (type == 'detail') {
this.currentMember = e
this.modalTitle = '成员详情'
- // this.visible = true
+ this.visible = true
} else {
this.modalTitle = '添加成员'
- // this.visible = true
+ this.visible = true
this.$nextTick(() => {
console.log(123)
that.form.setFieldsValue({
@@ -651,7 +761,7 @@ export default {
},
selectGroup(item) {
console.log(item)
- this.selectedKeys = [item.teamName]
+ this.selectedKeys = [item.teamName || item]
},
modalCancel() {
// console.log(this);
@@ -862,7 +972,7 @@ export default {
/deep/ .searchbox {
display: flex;
justify-content: space-between;
- padding-bottom: 14px;
+ // padding-bottom: 14px;
}
.leftMenu {
max-width: calc(100% - 1px);
@@ -936,7 +1046,7 @@ export default {
// line-height: 22px;
> div {
// line-height: 1;
- border-left: 1px solid #ccc;
+ border-left: 1px solid #ddd;
padding-left: 12px;
}
}
@@ -969,14 +1079,14 @@ export default {
}
.setting {
a:nth-child(2) {
- padding: 0 9px;
- margin: 0 9px;
}
// a:last-child {
// }
.delete {
- border-left: 1px solid #979797;
+ // border-left: 1px solid #979797;
border-right: 1px solid #979797;
+ padding: 0 9px 0 0;
+ margin: 0 9px 0 0;
}
}
// /deep/ .ant-table-row-cell-break-word {
@@ -990,9 +1100,8 @@ export default {
height: 40px;
line-height: 40px;
padding: 10px 16px;
- .ant-modal-title{
- font-weight: bold;
-
+ .ant-modal-title {
+ font-weight: bold;
}
}
.ant-modal-body {
@@ -1018,20 +1127,20 @@ export default {
// &:hover {
// opacity: 0.8;
// }
- // }
+ // }
}
// }
.detailWindow {
/deep/ .ant-modal {
.ant-modal-close-x {
- height: 50px;
+ height: 40px;
width: 50px;
- line-height: 50px;
+ line-height: 40px;
}
.ant-modal-header {
- padding: 14px;
+ // padding: 12px;
text-align: left;
- background-color: #f5f5f5;
+ // background-color: #f5f5f5;
}
.ant-modal-body {
padding-left: 100px;
@@ -1104,4 +1213,6 @@ export default {
}
}
}
+.changeGroup {
+}
diff --git a/src/components/merchantManagement/notificationCenter.vue b/src/components/merchantManagement/notificationCenter.vue
index 5c2b0a6..2fabbd7 100644
--- a/src/components/merchantManagement/notificationCenter.vue
+++ b/src/components/merchantManagement/notificationCenter.vue
@@ -1,5 +1,5 @@
- 内容管理
+ 通知中心
@@ -630,4 +865,16 @@ export default {
font-size: 12px;
}
}
+.addItem {
+ width: 468px;
+}
+.ant-divider {
+ margin: 16px 0 22px 0;
+}
+.delete {
+ border-left: 1px solid #979797;
+ border-right: 1px solid #979797;
+ padding: 0 9px;
+ margin: 0 9px;
+}
diff --git a/src/components/merchantManagement/workBench.vue b/src/components/merchantManagement/workBench.vue
index 982db47..7e1085e 100644
--- a/src/components/merchantManagement/workBench.vue
+++ b/src/components/merchantManagement/workBench.vue
@@ -24,7 +24,10 @@ export default {
/**
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
*/
- created () {},
+ created () {
+ this.$emit('setTitle', '工作台')
+
+ },
/**
* el 被新创建的 vm.el 替换,并挂载到实例上去之后调用该钩子。
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
diff --git a/src/components/userinfo/usercenter/components/dataStatistics.vue b/src/components/userinfo/usercenter/components/dataStatistics.vue
index 609b349..d98fb8e 100644
--- a/src/components/userinfo/usercenter/components/dataStatistics.vue
+++ b/src/components/userinfo/usercenter/components/dataStatistics.vue
@@ -9,83 +9,179 @@
团队数据
-
-
-
-
-
-
-
今日
-
昨日
-
本周
-
上周
-
近7日
-
近30日
-
本月
-
上月
-
+
+
+
+
+
+ 按角色
+ 按部门
+
+
+
+ 全部角色
+
+
+
默认角色(11人)
+
+
+
+ {{item.teamName}}
+
+
+
+
+
+
+
+
+
自定义角色(8人)
+
+
+
+ {{'角色1'}}
+
+
+
+
+
+
+ {{'角色2'}}
+
+
+
+
+
+
+
+
+
+
+ 全部角色
+
+
+
+
+
+ {{item.teamName}}
+
+
+
+
+
+
+
+
-
- 渠道运营
- Jack
- Lucy
- yiminghe
-
-
-
-
-
+
+
+
-
-
-
{{totalObj.signUps}}
-
报名
-
-
-
{{totalObj.arrived}}
-
到面
-
-
-
{{totalObj.passed}}
-
通过
-
-
-
{{totalObj.entry}}
-
入职
-
-
-
{{totalObj.obJob}}
-
在职人数
-
-
-
{{toFixed(totalObj.entryGPA)}}
-
入职绩点
-
-
-
{{toFixed(totalObj.finshedGPA)}}
-
交付绩点
+
-->
+
+
+
{{totalObj.signUps}}
+
报名
+
+
+
{{totalObj.arrived}}
+
到面
+
+
+
{{totalObj.passed}}
+
通过
+
+
+
{{totalObj.entry}}
+
入职
+
+
+
{{totalObj.obJob}}
+
在职人数
+
+
+
{{toFixed(totalObj.entryGPA)}}
+
入职绩点
+
+
+
{{toFixed(totalObj.finshedGPA)}}
+
交付绩点
+
+
-
-
-
@@ -117,7 +213,7 @@
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 689a8eb..a9566a0 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -313,15 +313,17 @@ const routes = [
"../components/userinfo/accountsetting/components/bocaiTV.vue"
),
},
+ // 数据大屏
{
path: "dataScreen",
name: "DataScreen",
component: () => import("../components/merchantManagement/dataScreen.vue"),
},
+ // 角色管理
{
- path: "memberManagement",
- name: "MemberManagement",
- component: () => import("../components/merchantManagement/memberManagement.vue"),
+ path: "roleManagement",
+ name: "RoleManagement",
+ component: () => import("../components/merchantManagement/roleManagement.vue"),
},
{
path: "workBench",
diff --git a/src/style/index.less b/src/style/index.less
index 2747b3f..8ae0d92 100644
--- a/src/style/index.less
+++ b/src/style/index.less
@@ -233,7 +233,9 @@ i {
.pr16 {
padding-right: 16px;
}
-
+.tac {
+ text-align: center;
+}
.pl16 {
padding-left: 16px;
}
@@ -293,7 +295,12 @@ i {
.mt10 {
margin-top: 10px;
}
-
+.ml22{
+ margin-left: 22px;
+}
+.ml24{
+ margin-left: 24px;
+}
.mb10 {
margin-bottom: 10px;
}
@@ -404,23 +411,24 @@ i {
align-items: center;
justify-content: space-between;
}
-.fss{
- display: flex;
- align-items: center;
- justify-content: start;
+.fss {
+ display: flex;
+ align-items: center;
+ justify-content: start;
}
-.fsc{
+.fsc {
display: flex;
align-items: center;
justify-content: center;
}
-.setMiddle{
- margin-left: 50%;
- transform: translateX(-50%);
+.setMiddle {
+ margin-left: 50%;
+ transform: translateX(-50%);
}
.flex1 {
flex: 1;
}
+
.dn {
display: none;
}
@@ -432,11 +440,11 @@ i {
.curp {
cursor: pointer;
}
-.por{
- position: relative;
+.por {
+ position: relative;
}
-.poa{
- position: absolute;
+.poa {
+ position: absolute;
}
//通用类名样式结束
@@ -689,58 +697,57 @@ i {
}
}
.loginbox.backTable {
- width: 180px;
- // height: 114px;
- overflow: hidden;
- background-color: #fff;
- border-radius: 4px;
- text-align: center;
- box-shadow: 0px 0px 10px rgba(128, 128, 128, 0.4);
- padding: 0 16px 16px 16px;
- > div {
- padding: 16px;
- text-align: center;
- font-size: 16px;
- font-weight: bold;
- border-bottom: 1px solid #eee;
- }
- > a {
- > div {
- display: flex;
- padding: 16px 0;
- font-size: 14px;
- // font-weight: bold;
- justify-content: space-between;
- border-bottom: 1px solid #eee;
- &:hover {
- color: #1890ff;
- }
- span {
- line-height: 18px;
- i {
- font-size: 18px;
- margin-right: 5px;
- vertical-align: baseline;
- }
- }
- }
- }
- button {
- width: 130px;
- height: 32px;
- margin-top: 24px;
- border: 1px solid rgba(77, 87, 94, 0.1);
- border-radius: 17px;
- color: #1890ff;
- font-size: 14px;
- line-height: 32px;
- background-color: #fff;
- cursor: pointer;
- &:hover{
- border: 1px solid #1890ff;
-
- }
- }
+ width: 180px;
+ // height: 114px;
+ overflow: hidden;
+ background-color: #fff;
+ border-radius: 4px;
+ text-align: center;
+ box-shadow: 0px 0px 10px rgba(128, 128, 128, 0.4);
+ padding: 0 16px 16px 16px;
+ > div {
+ padding: 16px;
+ text-align: center;
+ font-size: 16px;
+ font-weight: bold;
+ border-bottom: 1px solid #eee;
+ }
+ > a {
+ > div {
+ display: flex;
+ padding: 16px 0;
+ font-size: 14px;
+ // font-weight: bold;
+ justify-content: space-between;
+ border-bottom: 1px solid #eee;
+ &:hover {
+ color: #1890ff;
+ }
+ span {
+ line-height: 18px;
+ i {
+ font-size: 18px;
+ margin-right: 5px;
+ vertical-align: baseline;
+ }
+ }
+ }
+ }
+ button {
+ width: 130px;
+ height: 32px;
+ margin-top: 24px;
+ border: 1px solid rgba(77, 87, 94, 0.1);
+ border-radius: 17px;
+ color: #1890ff;
+ font-size: 14px;
+ line-height: 32px;
+ background-color: #fff;
+ cursor: pointer;
+ &:hover {
+ border: 1px solid #1890ff;
+ }
+ }
}
.beforeblock {
display: inline-block;
diff --git a/src/views/merchantBack.vue b/src/views/merchantBack.vue
index 00ce5b9..6fde2ab 100644
--- a/src/views/merchantBack.vue
+++ b/src/views/merchantBack.vue
@@ -208,7 +208,7 @@ export default {
{
id: 296,
parentId: 294,
- name: 'MemberManagement',
+ name: 'RoleManagement',
url: '/memberInfo',
icon: '',
component: 'home',
@@ -366,10 +366,11 @@ header.header,
.trans {
-webkit-transition: all 0.2s;
height: calc(100vh - 64px);
- // overflow: scroll;
+ overflow: auto;
background-color: #f5f5f5;
transition: all 0.2s;
padding: 18px;
+ padding-bottom: 0;
// padding-right: 32px;
margin-left: 152px !important;
}