|
|
|
@ -29,44 +29,34 @@
|
|
|
|
<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;">
|
|
|
|
<a-menu-item key="all" class="fsa bb_after fw500" @click="selectGroup('all')">
|
|
|
|
<a-menu-item key="all" class="fsa bb_after fw500" @click="selectGroup('all')">
|
|
|
|
全部角色
|
|
|
|
全部角色
|
|
|
|
<i class="the_num f14 tac" style="min-width:12px" @click.stop>19</i>
|
|
|
|
<i class="the_num f14 tac" style="min-width:12px" @click.stop>{{totalNum}}</i>
|
|
|
|
</a-menu-item>
|
|
|
|
</a-menu-item>
|
|
|
|
</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> -->
|
|
|
|
<!-- <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 ['创建人','管理员','成员']">
|
|
|
|
<template v-for="(item, index) in copyRoleList">
|
|
|
|
<a-menu-item :key="item" class="fsa" @click="selectGroup(item)">
|
|
|
|
<a-menu-item :key="item.roleName" class="fsa" @click="selectRole(item)">
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
{{item}}
|
|
|
|
{{item.roleName}}
|
|
|
|
<svg class="svg f20 ml4 mb2" aria-hidden="true">
|
|
|
|
<svg class="svg f20 ml4 mb2" v-if="item.roleType == 0" aria-hidden="true">
|
|
|
|
<use xlink:href="#icon-xitong" />
|
|
|
|
<use xlink:href="#icon-xitong" />
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
<svg class="svg f26 ml4 mb2" v-if="item.roleType == 1" aria-hidden="true">
|
|
|
|
<i class="the_num tac" style="min-width:12px" @click.stop>3</i>
|
|
|
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</a-menu>
|
|
|
|
|
|
|
|
<!-- <div class="bb1 ml12 mr12 mt4 mb4" style="wdith:calc(100% - 24px)"></div> -->
|
|
|
|
|
|
|
|
<!-- <div class="f12 c9 ml24 mb8">自定义角色(8人)</div> -->
|
|
|
|
|
|
|
|
<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','角色2']">
|
|
|
|
|
|
|
|
<a-menu-item :key="item" class="fsa" @click="selectGroup(item)">
|
|
|
|
|
|
|
|
<span>
|
|
|
|
|
|
|
|
{{item}}
|
|
|
|
|
|
|
|
<svg class="svg f26 ml4 mb2" aria-hidden="true">
|
|
|
|
|
|
|
|
<use xlink:href="#icon-zidingyi" />
|
|
|
|
<use xlink:href="#icon-zidingyi" />
|
|
|
|
</svg>
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="the_num tac" style="min-width:12px">1</span>
|
|
|
|
<i class="the_num tac" style="min-width:12px" @click.stop>{{item.userNum}}</i>
|
|
|
|
</a-menu-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="f12 c9 ml24 mb8">自定义角色(8人)</div> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div v-else>
|
|
|
|
<div v-else>
|
|
|
|
<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;">
|
|
|
|
<a-menu-item key="all" class="fsa bb_after fw500" @click="selectGroup('all')">
|
|
|
|
<a-menu-item key="all" class="fsa bb_after fw500" @click="selectGroup('all')">
|
|
|
|
全部部门
|
|
|
|
团队成员
|
|
|
|
<i class="the_num f14" @click.stop>{{totalNum}}</i>
|
|
|
|
<i class="the_num f14" @click.stop>{{totalNum}}</i>
|
|
|
|
</a-menu-item>
|
|
|
|
</a-menu-item>
|
|
|
|
</a-menu>
|
|
|
|
</a-menu>
|
|
|
|
@ -98,7 +88,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="rightContainer mb24">
|
|
|
|
<div class="rightContainer mb24">
|
|
|
|
<div class="fsa pb14 bb1 mb24">
|
|
|
|
<div class="fsa pb14 bb1 mb24">
|
|
|
|
<div class="f16 fw500">{{ selectedKeys[0] == 'all' ? `全部成员(${totalGroupNum}人)`:selectedKeys[0] + `(${subGroupNum}人)` }}</div>
|
|
|
|
<div class="f16 fw500">{{ selectedKeys[0] == 'all' ? `团队成员(${totalNum}人)`:selectedKeys[0] + `(${subGroupNum}人)` }}</div>
|
|
|
|
<!-- <button class="addGroup" @click="addGroupShow = true">添加部门</button> -->
|
|
|
|
<!-- <button class="addGroup" @click="addGroupShow = true">添加部门</button> -->
|
|
|
|
<a-button class="addmemeber f14" @click="showDetail('add')">
|
|
|
|
<a-button class="addmemeber f14" @click="showDetail('add')">
|
|
|
|
<i class="iconfont icon-fangda mr4"></i> 添加成员
|
|
|
|
<i class="iconfont icon-fangda mr4"></i> 添加成员
|
|
|
|
@ -108,7 +98,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" :scroll="{x:currWidth}" :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">
|
|
|
|
<!-- <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">{{ record.aliasName || record.userName }}</span>
|
|
|
|
<span slot="nickName" slot-scope="text, record">{{ record.aliasName || record.userName }}</span>
|
|
|
|
<div slot="inAgencyStatistics" slot-scope="text, record">
|
|
|
|
<div slot="inAgencyStatistics" slot-scope="text, record">
|
|
|
|
@ -251,13 +241,21 @@
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
<!-- v-if="currentMember.agencyRole != 1" -->
|
|
|
|
<!-- v-if="currentMember.agencyRole != 1" -->
|
|
|
|
<a-form-item label="角色">
|
|
|
|
<a-form-item label="角色" v-if="currentMember.agencyRoleId == 7261">
|
|
|
|
<a-select placeholder="请选择角色" :disabled="currentMember.agencyRole == 1" :defaultActiveFirstOption="false" v-decorator="['agencyRole',{ rules: [{ required: true, message: '请选择角色' }] },]" dropdownClassName="groupSelectDrop">
|
|
|
|
<a-select placeholder="请选择角色" :disabled="true" :defaultActiveFirstOption="false" v-decorator="['agencyRoleId',{ rules: [{ required: true, message: '请选择角色' }] },]" dropdownClassName="groupSelectDrop">
|
|
|
|
<a-select-option v-for="(item,index) in roleOptions" :value="item.value" class="groupSelectSub fsa" :key="index">
|
|
|
|
<a-select-option v-for="(item,index) in copyRoleList" :value="item.id" class="groupSelectSub fsa" :key="index">
|
|
|
|
<div>{{item.label}}</div>
|
|
|
|
<div>{{item.roleName}}</div>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select-option>
|
|
|
|
</a-select>
|
|
|
|
</a-select>
|
|
|
|
</a-form-item>
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
<a-form-item label="角色" v-else>
|
|
|
|
|
|
|
|
<a-select placeholder="请选择角色" :disabled="currentMember.agencyRoleId == 7261" :defaultActiveFirstOption="false" v-decorator="['agencyRoleId',{ rules: [{ required: true, message: '请选择角色' }] },]" dropdownClassName="groupSelectDrop">
|
|
|
|
|
|
|
|
<a-select-option v-for="(item,index) in roleOptions" :value="item.id" class="groupSelectSub fsa" :key="index">
|
|
|
|
|
|
|
|
<div>{{item.roleName}}</div>
|
|
|
|
|
|
|
|
</a-select-option>
|
|
|
|
|
|
|
|
</a-select>
|
|
|
|
|
|
|
|
</a-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <a-form-item label="角色" class="dn">
|
|
|
|
<!-- <a-form-item label="角色" class="dn">
|
|
|
|
<a-radio-group v-decorator="[
|
|
|
|
<a-radio-group v-decorator="[
|
|
|
|
'agencyRole',
|
|
|
|
'agencyRole',
|
|
|
|
@ -300,8 +298,9 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { getMemberListApi, deleteMemberApi, addMemberApi, getMemberGroupApi, addMemberGroupApi, updateMemberGroupApi, delMemberGroupApi, updateMemberApi, moveGroupNextApi, moveGroupPrevApi, memberShowScreenApi, memberJoinDataApi } from '../../api/userinfo'
|
|
|
|
import { getMemberListApi, deleteMemberApi, addMemberApi, getMemberGroupApi, addMemberGroupApi, updateMemberGroupApi, delMemberGroupApi, updateMemberApi, moveGroupNextApi, moveGroupPrevApi, memberShowScreenApi, memberJoinDataApi, getTotalNumApi, getRoleListApi } from '../../api/merchantConfig'
|
|
|
|
import { formatDateYMD, getUserApplyOrderStatusById, getAgencyRoleTypeById, getAgencyPermissionNameById, getAgencyPermissionsByRole, tableWidth } from '../../utils/commonUtil'
|
|
|
|
|
|
|
|
|
|
|
|
import { formatDateYMD, getUserApplyOrderStatusById, getAgencyRoleTypeById, getAgencyPermissionNameById, getAgencyPermissionsByRole, tableWidth, fullCopy } from '../../utils/commonUtil'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
// 组件名称
|
|
|
|
// 组件名称
|
|
|
|
@ -368,6 +367,8 @@ export default {
|
|
|
|
menuType: 'group',
|
|
|
|
menuType: 'group',
|
|
|
|
totalGroupNum: 0,
|
|
|
|
totalGroupNum: 0,
|
|
|
|
totalNum: 0,
|
|
|
|
totalNum: 0,
|
|
|
|
|
|
|
|
copyRoleList: [],
|
|
|
|
|
|
|
|
roleOptions: [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 计算属性
|
|
|
|
// 计算属性
|
|
|
|
@ -482,23 +483,16 @@ export default {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
return columns
|
|
|
|
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: {},
|
|
|
|
watch: {
|
|
|
|
|
|
|
|
menuType(value) {
|
|
|
|
|
|
|
|
this.selectedKeys = ['all']
|
|
|
|
|
|
|
|
this.pagination.agencyRoleIds = ''
|
|
|
|
|
|
|
|
this.pagination.agencyTeamIds = ''
|
|
|
|
|
|
|
|
this.getMemberList()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
// 生命周期钩子 注:没用到的钩子请自行删除
|
|
|
|
// 生命周期钩子 注:没用到的钩子请自行删除
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
* 组件实例创建完成,属性已绑定,但DOM还未生成,$ el属性还不存在
|
|
|
|
@ -509,7 +503,13 @@ export default {
|
|
|
|
this.loginUserInfo = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
this.loginUserInfo = JSON.parse(localStorage.getItem('LOGIN_DATA'))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tableWidth(this, this.columns, 120)
|
|
|
|
tableWidth(this, this.columns, 120)
|
|
|
|
console.log(this.currWidth)
|
|
|
|
getTotalNumApi().then((res) => {
|
|
|
|
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
this.totalNum = res.data.data
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
this.getMemberList()
|
|
|
|
|
|
|
|
this.getMemberGroup()
|
|
|
|
|
|
|
|
this.getRoleList()
|
|
|
|
this.$emit('setTitle', '团队成员')
|
|
|
|
this.$emit('setTitle', '团队成员')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
@ -517,8 +517,6 @@ export default {
|
|
|
|
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
|
|
|
|
* 如果 root 实例挂载了一个文档内元素,当 mounted 被调用时 vm.el 也在文档内。
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.getMemberList()
|
|
|
|
|
|
|
|
this.getMemberGroup()
|
|
|
|
|
|
|
|
window.modalCancel = this.modalCancel
|
|
|
|
window.modalCancel = this.modalCancel
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 组件方法
|
|
|
|
// 组件方法
|
|
|
|
@ -550,6 +548,18 @@ export default {
|
|
|
|
getGroup(e) {
|
|
|
|
getGroup(e) {
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
getRoleList() {
|
|
|
|
|
|
|
|
getRoleListApi().then(({ data }) => {
|
|
|
|
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
|
|
|
this.roleOptions = data.data.list
|
|
|
|
|
|
|
|
this.copyRoleList = fullCopy(this.roleOptions)
|
|
|
|
|
|
|
|
this.roleOptions.shift()
|
|
|
|
|
|
|
|
console.log(this.roleOptions)
|
|
|
|
|
|
|
|
console.log(this.copyRoleList)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
inputpageChange(e) {
|
|
|
|
inputpageChange(e) {
|
|
|
|
const pagenumcount = this.pagination.total / this.pagination.pageSize
|
|
|
|
const pagenumcount = this.pagination.total / this.pagination.pageSize
|
|
|
|
console.log(pagenumcount)
|
|
|
|
console.log(pagenumcount)
|
|
|
|
@ -596,11 +606,11 @@ export default {
|
|
|
|
// return a.agencyRole - b.agencyRole
|
|
|
|
// return a.agencyRole - b.agencyRole
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
this.memberList.sort((a, b) => {
|
|
|
|
this.memberList.sort((a, b) => {
|
|
|
|
if (a.agencyRole == b.agencyRole) {
|
|
|
|
if (a.agencyRoleId == b.agencyRoleId) {
|
|
|
|
//==同理 id相同就继续判断数量是否相同
|
|
|
|
//==同理 id相同就继续判断数量是否相同
|
|
|
|
return b.agencyTeamId - a.agencyTeamId
|
|
|
|
return b.agencyTeamId - a.agencyTeamId
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return a.agencyRole - b.agencyRole
|
|
|
|
return a.agencyRoleId - b.agencyRoleId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.pagination.total = data.data.recordCount
|
|
|
|
this.pagination.total = data.data.recordCount
|
|
|
|
@ -617,10 +627,10 @@ export default {
|
|
|
|
if (data.status == 200) {
|
|
|
|
if (data.status == 200) {
|
|
|
|
console.log(data)
|
|
|
|
console.log(data)
|
|
|
|
this.groupList = data.data.list
|
|
|
|
this.groupList = data.data.list
|
|
|
|
this.totalNum = 0
|
|
|
|
// this.totalNum = 0
|
|
|
|
this.groupList.forEach((item, index) => {
|
|
|
|
this.groupList.forEach((item, index) => {
|
|
|
|
console.log(item)
|
|
|
|
console.log(item)
|
|
|
|
this.totalNum += item.userNum
|
|
|
|
// this.totalNum += item.userNum
|
|
|
|
if (index > 0) {
|
|
|
|
if (index > 0) {
|
|
|
|
item.checked = false
|
|
|
|
item.checked = false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -747,7 +757,7 @@ export default {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
console.log(this.currentMember)
|
|
|
|
console.log(this.currentMember)
|
|
|
|
that.form.setFieldsValue({
|
|
|
|
that.form.setFieldsValue({
|
|
|
|
agencyRole: this.currentMember.agencyRole + '',
|
|
|
|
agencyRoleId: this.currentMember.agencyRoleId,
|
|
|
|
aliasName: this.currentMember.aliasName,
|
|
|
|
aliasName: this.currentMember.aliasName,
|
|
|
|
tel: this.currentMember.tel,
|
|
|
|
tel: this.currentMember.tel,
|
|
|
|
group: this.currentMember.group,
|
|
|
|
group: this.currentMember.group,
|
|
|
|
@ -766,7 +776,7 @@ export default {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
console.log(123)
|
|
|
|
console.log(123)
|
|
|
|
that.form.setFieldsValue({
|
|
|
|
that.form.setFieldsValue({
|
|
|
|
agencyRole: '3',
|
|
|
|
agencyRoleId: 7263,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -795,6 +805,8 @@ export default {
|
|
|
|
selectGroup(item) {
|
|
|
|
selectGroup(item) {
|
|
|
|
console.log(item)
|
|
|
|
console.log(item)
|
|
|
|
this.selectedKeys = [item.teamName || item]
|
|
|
|
this.selectedKeys = [item.teamName || item]
|
|
|
|
|
|
|
|
this.pagination.agencyRoleIds = ''
|
|
|
|
|
|
|
|
|
|
|
|
if (typeof item != 'object') {
|
|
|
|
if (typeof item != 'object') {
|
|
|
|
this.pagination.agencyTeamIds = ''
|
|
|
|
this.pagination.agencyTeamIds = ''
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -803,6 +815,14 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getMemberList()
|
|
|
|
this.getMemberList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
selectRole(item) {
|
|
|
|
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
this.selectedKeys = [item.roleName || item]
|
|
|
|
|
|
|
|
this.pagination.agencyTeamIds = ''
|
|
|
|
|
|
|
|
// agencyRoleIds
|
|
|
|
|
|
|
|
this.pagination.agencyRoleIds = item.id + ''
|
|
|
|
|
|
|
|
this.getMemberList()
|
|
|
|
|
|
|
|
},
|
|
|
|
modalCancel() {
|
|
|
|
modalCancel() {
|
|
|
|
// console.log(this);
|
|
|
|
// console.log(this);
|
|
|
|
this.modalTitle = ''
|
|
|
|
this.modalTitle = ''
|
|
|
|
@ -900,9 +920,8 @@ export default {
|
|
|
|
groupChange(e) {
|
|
|
|
groupChange(e) {
|
|
|
|
console.log(e)
|
|
|
|
console.log(e)
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
agencyRole: e.target.value,
|
|
|
|
agencyRoleId: e.target.value,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.permission
|
|
|
|
|
|
|
|
if (this.form.getFieldValue('agencyRole') == 1) {
|
|
|
|
if (this.form.getFieldValue('agencyRole') == 1) {
|
|
|
|
this.permission = getAgencyPermissionsByRole(1)
|
|
|
|
this.permission = getAgencyPermissionsByRole(1)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -1019,7 +1038,7 @@ export default {
|
|
|
|
// margin-top: 16px;
|
|
|
|
// margin-top: 16px;
|
|
|
|
// min-height: calc(100vh - 200px);
|
|
|
|
// min-height: calc(100vh - 200px);
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
padding: 0px;
|
|
|
|
padding: 16px;
|
|
|
|
// background-color: #fff;
|
|
|
|
// background-color: #fff;
|
|
|
|
border: 1px solid #0000;
|
|
|
|
border: 1px solid #0000;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1109,7 +1128,7 @@ export default {
|
|
|
|
// height: calc(100vh - 105px);
|
|
|
|
// height: calc(100vh - 105px);
|
|
|
|
.leftContainer {
|
|
|
|
.leftContainer {
|
|
|
|
width: 260px;
|
|
|
|
width: 260px;
|
|
|
|
// min-width: 220px;
|
|
|
|
min-width: 260px;
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
overflow: hidden;
|
|
|
|
/deep/ .searchbox {
|
|
|
|
/deep/ .searchbox {
|
|
|
|
|