|
|
|
@ -33,10 +33,7 @@
|
|
|
|
<div class="f12 c9 ml24 mb8">默认角色(11人)</div>
|
|
|
|
<div class="f12 c9 ml24 mb8">默认角色(11人)</div>
|
|
|
|
<a-menu :selectedKeys="selectedKeys" class="bgf" mode="inline" :class="'leftMenu'" style="overflow-y:scroll;height:calc(100%);overflow-x:hidden;">
|
|
|
|
<a-menu :selectedKeys="selectedKeys" class="bgf" mode="inline" :class="'leftMenu'" style="overflow-y:scroll;height:calc(100%);overflow-x:hidden;">
|
|
|
|
<template v-for="(item, index) in ['创建人(1人)','管理员(3人)','成员(12人)']">
|
|
|
|
<template v-for="(item, index) in ['创建人(1人)','管理员(3人)','成员(12人)']">
|
|
|
|
<a-menu-item :key="item" class="fsa showdot" @click="selectGroup(item)">
|
|
|
|
<a-menu-item :key="item" class="fsa showdot" @click="selectGroup(item)">{{item}}</a-menu-item>
|
|
|
|
{{item}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</a-menu>
|
|
|
|
</a-menu>
|
|
|
|
<div class="bb1 ml12 mr12 mt4 mb4" style="wdith:calc(100% - 24px)"></div>
|
|
|
|
<div class="bb1 ml12 mr12 mt4 mb4" style="wdith:calc(100% - 24px)"></div>
|
|
|
|
@ -111,7 +108,7 @@
|
|
|
|
<!-- :expanded-row-keys.sync="expandedRowKeys" -->
|
|
|
|
<!-- :expanded-row-keys.sync="expandedRowKeys" -->
|
|
|
|
<!-- v-if="modalTitle == ''" -->
|
|
|
|
<!-- v-if="modalTitle == ''" -->
|
|
|
|
<div class>
|
|
|
|
<div class>
|
|
|
|
<a-table :columns="columns" :data-source="memberList" :pagination="false" @change="onChange" :loading="{spinning: isspinning,tip: '加载中',wrapperClassName: 'spinstyle'}" :rowKey="(record) => record.id" :locale="tablenodata">
|
|
|
|
<a-table :columns="columns" :scroll="{x:currWidth}" :data-source="memberList" :pagination="false" @change="onChange" :loading="{spinning: isspinning,tip: '加载中',wrapperClassName: 'spinstyle'}" :rowKey="(record) => record.id" :locale="tablenodata">
|
|
|
|
<!-- <a slot="index" slot-scope="record, text, index">{{ index + 1 }}</a> -->
|
|
|
|
<!-- <a slot="index" slot-scope="record, text, index">{{ index + 1 }}</a> -->
|
|
|
|
<span slot="nickName" slot-scope="text, record">
|
|
|
|
<span slot="nickName" slot-scope="text, record">
|
|
|
|
<!-- <svg class="svg_icon" v-if="record.agencyRole == 3" aria-hidden="true" style="width:32px">
|
|
|
|
<!-- <svg class="svg_icon" v-if="record.agencyRole == 3" aria-hidden="true" style="width:32px">
|
|
|
|
@ -125,11 +122,11 @@
|
|
|
|
</svg>-->
|
|
|
|
</svg>-->
|
|
|
|
{{ record.aliasName || record.userName }}
|
|
|
|
{{ record.aliasName || record.userName }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div slot="join">
|
|
|
|
<div slot="join" slot-scope="text, record">
|
|
|
|
<a-switch default-checked @change="onChange" />
|
|
|
|
<a-switch default-checked :checked="record.join" @change="showChange(record)" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div slot="bigScreen">
|
|
|
|
<div slot="bigScreen" slot-scope="text, record">
|
|
|
|
<a-switch default-checked @change="onChange" />
|
|
|
|
<a-switch default-checked :checked="record.bigScreen" @change="showChange(record)" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div slot="setting" v-if="!record.children" class="setting" slot-scope="text, record" style="color: #1890FF">
|
|
|
|
<div slot="setting" v-if="!record.children" class="setting" slot-scope="text, record" style="color: #1890FF">
|
|
|
|
<!-- <a @click="showDetail('detail', record)">详情</a> -->
|
|
|
|
<!-- <a @click="showDetail('detail', record)">详情</a> -->
|
|
|
|
@ -327,7 +324,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { getMemberListApi, deleteMemberApi, addMemberApi, getMemberGroupApi, addMemberGroupApi, updateMemberGroupApi, delMemberGroupApi, updateMemberApi } from '../../api/userinfo'
|
|
|
|
import { getMemberListApi, deleteMemberApi, addMemberApi, getMemberGroupApi, addMemberGroupApi, updateMemberGroupApi, delMemberGroupApi, updateMemberApi } from '../../api/userinfo'
|
|
|
|
import { formatDateYMD, getUserApplyOrderStatusById, getAgencyRoleTypeById, getAgencyPermissionNameById, getAgencyPermissionsByRole } from '../../utils/commonUtil'
|
|
|
|
import { formatDateYMD, getUserApplyOrderStatusById, getAgencyRoleTypeById, getAgencyPermissionNameById, getAgencyPermissionsByRole, tableWidth } from '../../utils/commonUtil'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
// 组件名称
|
|
|
|
// 组件名称
|
|
|
|
@ -407,7 +404,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// ellipsis: true,
|
|
|
|
// ellipsis: true,
|
|
|
|
width: 60,
|
|
|
|
width: 50,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
title: '姓名',
|
|
|
|
title: '姓名',
|
|
|
|
@ -415,6 +412,18 @@ export default {
|
|
|
|
key: 'nickName',
|
|
|
|
key: 'nickName',
|
|
|
|
scopedSlots: { customRender: 'nickName' },
|
|
|
|
scopedSlots: { customRender: 'nickName' },
|
|
|
|
ellipsis: true,
|
|
|
|
ellipsis: true,
|
|
|
|
|
|
|
|
// customCell: (a,b) => {
|
|
|
|
|
|
|
|
// console.log(a);
|
|
|
|
|
|
|
|
// console.log(b);
|
|
|
|
|
|
|
|
// return {
|
|
|
|
|
|
|
|
// style: {
|
|
|
|
|
|
|
|
// 'min-width': '120px',
|
|
|
|
|
|
|
|
// width: '120px',
|
|
|
|
|
|
|
|
// overflow: 'hidden',
|
|
|
|
|
|
|
|
// display: 'inline-block',
|
|
|
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// },
|
|
|
|
// width: 120,
|
|
|
|
// width: 120,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -438,8 +447,10 @@ export default {
|
|
|
|
// width: 100,
|
|
|
|
// width: 100,
|
|
|
|
// filters: this.groupList,
|
|
|
|
// filters: this.groupList,
|
|
|
|
customRender: (text, row, index) => {
|
|
|
|
customRender: (text, row, index) => {
|
|
|
|
let text1
|
|
|
|
let text1 = '系统'
|
|
|
|
this.groupList.forEach((item) => {
|
|
|
|
this.groupList.forEach((item) => {
|
|
|
|
|
|
|
|
// text1 = '系统'
|
|
|
|
|
|
|
|
|
|
|
|
if (item.id == text) {
|
|
|
|
if (item.id == text) {
|
|
|
|
text1 = item.teamName
|
|
|
|
text1 = item.teamName
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -499,6 +510,8 @@ export default {
|
|
|
|
if (localStorage.getItem('LOGIN_DATA')) {
|
|
|
|
if (localStorage.getItem('LOGIN_DATA')) {
|
|
|
|
this.loginUserInfo = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
this.loginUserInfo = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tableWidth(this, this.columns, 120)
|
|
|
|
|
|
|
|
console.log(this.currWidth)
|
|
|
|
this.$emit('setTitle', '团队成员')
|
|
|
|
this.$emit('setTitle', '团队成员')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -566,7 +579,8 @@ export default {
|
|
|
|
this.memberList.forEach((item, index) => {
|
|
|
|
this.memberList.forEach((item, index) => {
|
|
|
|
// item.group = '部门' + ((index % 5) + 1)
|
|
|
|
// item.group = '部门' + ((index % 5) + 1)
|
|
|
|
// item1.children.forEach((item) => {
|
|
|
|
// item1.children.forEach((item) => {
|
|
|
|
console.log(item)
|
|
|
|
item.join = false
|
|
|
|
|
|
|
|
item.bigScreen = false
|
|
|
|
item.role = getAgencyRoleTypeById(item.agencyRole)
|
|
|
|
item.role = getAgencyRoleTypeById(item.agencyRole)
|
|
|
|
item.permission = getAgencyPermissionNameById(item.agencyPermissions)
|
|
|
|
item.permission = getAgencyPermissionNameById(item.agencyPermissions)
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
@ -873,6 +887,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 参与统计大屏显示状态切换
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
showChange(e) {
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
@ -1000,7 +1022,7 @@ export default {
|
|
|
|
padding-left: 16px;
|
|
|
|
padding-left: 16px;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
min-width: 1020px;
|
|
|
|
// min-width: 1020px;
|
|
|
|
&::before {
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
content: '';
|
|
|
|
content: '';
|
|
|
|
|