|
|
|
|
@ -30,8 +30,8 @@
|
|
|
|
|
<a-form-item>
|
|
|
|
|
<div class>
|
|
|
|
|
在
|
|
|
|
|
<a-select class="mr8 ml8" style="width:360px" placeholder=" 请在已有的角色选择" v-decorator="['agencyTeamId',{ rules: [{ required: false, message: ' 请在已有的角色选择' }] },]" dropdownClassName="groupSelectDrop">
|
|
|
|
|
<a-select-option :value="item.roleName" v-for="(item,index) in roleList">{{item.roleName}}</a-select-option>
|
|
|
|
|
<a-select class="mr8 ml8" style="width:360px" placeholder=" 请在已有的角色选择" dropdownClassName="groupSelectDrop">
|
|
|
|
|
<a-select-option :value="item.roleName" v-for="(item,index) in roleList" @click="setRoleBase(item)">{{item.roleName}}</a-select-option>
|
|
|
|
|
<!-- <div slot="dropdownRender" slot-scope="menu">
|
|
|
|
|
<div v-for="(item,index) in roleList" @click="choiceGroup(item)" class="groupSelectSub fsa" :key="index">
|
|
|
|
|
<div>{{item.roleName}}</div>
|
|
|
|
|
@ -43,7 +43,7 @@
|
|
|
|
|
<div class="showScope">
|
|
|
|
|
<div>数据可见范围:</div>
|
|
|
|
|
<div>
|
|
|
|
|
<a-radio-group v-model="showScopeType" :options="[{ label: '公司数据', value: '1' },{ label: '部门数据', value: '2' },{ label: '个人数据', value: '3' },]" @change="showScopeChange" />
|
|
|
|
|
<a-radio-group v-model="showScopeType" :options="[{ label: '公司数据', value: 1 },{ label: '部门数据', value: 2 },{ label: '个人数据', value: 3 },]" @change="showScopeChange" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="title fss">
|
|
|
|
|
@ -54,14 +54,14 @@
|
|
|
|
|
|
|
|
|
|
<div v-for="(item, key) in authorityList" class>
|
|
|
|
|
<div class="fss">
|
|
|
|
|
<a-checkbox :checked="item.checked" style="width:88px" @change="checkboxChange(item,key)">{{item.label}}</a-checkbox>
|
|
|
|
|
<a-checkbox :checked="item.checked" style="width:100px" @change="checkboxChange(item)">{{item.title}}</a-checkbox>
|
|
|
|
|
|
|
|
|
|
<span class="ml24 subChecked" style="margin-left:288px">
|
|
|
|
|
<a-checkbox v-for="(subItem, subIndex) in item.children" :checked="subItem.checked" :disabled="!item.checked" @change="checkboxChange(subItem,key,subIndex)">{{subItem.label}}</a-checkbox>
|
|
|
|
|
<span class="ml24 subChecked" style="margin-left:276px">
|
|
|
|
|
<a-checkbox v-for="(subItem, subIndex) in item.tagNamesList" :key="subIndex" :checked="subItem.checked" @change="checkboxChange(item,subItem)">{{subItem.label}}</a-checkbox>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<a-divider class="mt16 mb32" v-if="key != 'tzzx'" />
|
|
|
|
|
<a-divider class="mt16 mb32" style="background:#ccc" v-else />
|
|
|
|
|
<a-divider class="mt16 mb32" />
|
|
|
|
|
<!-- <a-divider class="mt16 mb32" style="background:#ccc" v-else /> -->
|
|
|
|
|
</div>
|
|
|
|
|
<a-form-item style="transform:translateY(-10px)">
|
|
|
|
|
<a-button type class="mr16" @click="cancelAdd">取消</a-button>
|
|
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getRoleListApi, addRoleApi, updateRoleApi, delRoleApi } from '../../api/merchantConfig'
|
|
|
|
|
import { getRoleListApi, addRoleApi, updateRoleApi, delRoleApi, getRolePermissionApi, getRoleInfoApi } from '../../api/merchantConfig'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
// 组件名称
|
|
|
|
|
@ -85,248 +85,13 @@ export default {
|
|
|
|
|
// 组件状态值
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
authorityList: {
|
|
|
|
|
dtzw: {
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '稻田职位',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
wdbm: {
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '我的报名',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
wdlx: {
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '我的老乡',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
xx: {
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '消息',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '系统消息',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '团队消息',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
ttcy: {
|
|
|
|
|
id: 5,
|
|
|
|
|
label: '团队成员',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
jsgl: {
|
|
|
|
|
id: 6,
|
|
|
|
|
label: '角色管理',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
tdsj: {
|
|
|
|
|
id: 7,
|
|
|
|
|
label: '团队数据',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
sjdp: {
|
|
|
|
|
id: 8,
|
|
|
|
|
label: '数据大屏',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
tzzx: {
|
|
|
|
|
id: 9,
|
|
|
|
|
label: '通知中心',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
tvpz: {
|
|
|
|
|
id: 10,
|
|
|
|
|
label: 'TV配置',
|
|
|
|
|
checked: false,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
id: 1,
|
|
|
|
|
label: '查看',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 2,
|
|
|
|
|
label: '新建',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 3,
|
|
|
|
|
label: '编辑',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 4,
|
|
|
|
|
label: '删除',
|
|
|
|
|
checked: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// gzt: {
|
|
|
|
|
// id: 7,
|
|
|
|
|
// label: '工作台',
|
|
|
|
|
// checked: false,
|
|
|
|
|
// children: [],
|
|
|
|
|
// },
|
|
|
|
|
},
|
|
|
|
|
authorityList: [],
|
|
|
|
|
secondBreadcrumb: '',
|
|
|
|
|
roleForm: this.$form.createForm(this),
|
|
|
|
|
showScopeType: 1,
|
|
|
|
|
showScopeType: 0, // 数据可见范围
|
|
|
|
|
roleList: [],
|
|
|
|
|
currentRoleId: null,
|
|
|
|
|
roleInfo: {},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 计算属性
|
|
|
|
|
@ -340,32 +105,15 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
console.log(this.$route)
|
|
|
|
|
if (this.$route.query.item) {
|
|
|
|
|
this.roleInfo = JSON.parse(this.$route.query.item)
|
|
|
|
|
this.roleList = JSON.parse(this.$route.query.roleList)
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
this.roleForm.setFieldsValue({
|
|
|
|
|
roleName: this.roleInfo.roleName,
|
|
|
|
|
desp: this.roleInfo.desp,
|
|
|
|
|
})
|
|
|
|
|
}, 10)
|
|
|
|
|
this.currentRoleId = JSON.parse(this.$route.query.item).id
|
|
|
|
|
this.showScopeType = JSON.parse(this.$route.query.item).visibleRange
|
|
|
|
|
this.secondBreadcrumb = '编辑角色'
|
|
|
|
|
// localStorage.setItem('ROLEINFO', JSON.stringify(this.roleInfo))
|
|
|
|
|
// localStorage.setItem('ROLELIST', JSON.stringify(this.roleList))
|
|
|
|
|
}
|
|
|
|
|
// else if (localStorage.getItem('ROLEINFO')) {
|
|
|
|
|
// this.roleInfo = JSON.parse(localStorage.getItem('ROLEINFO'))
|
|
|
|
|
// this.roleList = JSON.parse(localStorage.getItem('ROLELIST'))
|
|
|
|
|
// setTimeout(() => {
|
|
|
|
|
// this.roleForm.setFieldsValue({
|
|
|
|
|
// roleName: this.roleInfo.roleName,
|
|
|
|
|
// desp: this.roleInfo.desp,
|
|
|
|
|
// })
|
|
|
|
|
// }, 10)
|
|
|
|
|
// this.secondBreadcrumb = '编辑角色'
|
|
|
|
|
// }
|
|
|
|
|
else {
|
|
|
|
|
this.getRoleInfo(this.currentRoleId)
|
|
|
|
|
} else {
|
|
|
|
|
this.secondBreadcrumb = '添加角色'
|
|
|
|
|
this.getRolePermission()
|
|
|
|
|
}
|
|
|
|
|
this.roleList = JSON.parse(this.$route.query.roleList)
|
|
|
|
|
this.middleauthor = JSON.parse(JSON.stringify(this.authorityList))
|
|
|
|
|
this.$emit('setTitle', this.secondBreadcrumb)
|
|
|
|
|
},
|
|
|
|
|
@ -379,6 +127,73 @@ export default {
|
|
|
|
|
cancelAdd() {
|
|
|
|
|
this.$router.back()
|
|
|
|
|
},
|
|
|
|
|
getRoleInfo(id, type) {
|
|
|
|
|
getRoleInfoApi(id).then(({ data }) => {
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
if (!type) {
|
|
|
|
|
this.roleInfo = data.data.role
|
|
|
|
|
this.roleForm.setFieldsValue({
|
|
|
|
|
roleName: this.roleInfo.roleName,
|
|
|
|
|
desp: this.roleInfo.desp,
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.showScopeType = data.data.role.visibleRange
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.handlePermission(data.data.menus)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getRolePermission() {
|
|
|
|
|
getRolePermissionApi().then(({ data }) => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
this.handlePermission(data.data.menus)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 处理返回的权限列表
|
|
|
|
|
*/
|
|
|
|
|
handlePermission(menus) {
|
|
|
|
|
console.log(menus)
|
|
|
|
|
menus.forEach((item) => {
|
|
|
|
|
// console.log(item)
|
|
|
|
|
item.checked = false
|
|
|
|
|
let tagNamesList = item.tagNames.split(',')
|
|
|
|
|
item.tagNamesList = []
|
|
|
|
|
tagNamesList.forEach((namieItem, index) => {
|
|
|
|
|
let label
|
|
|
|
|
if (namieItem == 'addTag') {
|
|
|
|
|
label = '新增'
|
|
|
|
|
} else if (namieItem == 'updateTag') {
|
|
|
|
|
label = '修改'
|
|
|
|
|
} else if (namieItem == 'deleteTag') {
|
|
|
|
|
label = '删除'
|
|
|
|
|
} else if (namieItem == 'queryTag') {
|
|
|
|
|
label = '查询'
|
|
|
|
|
} else if (namieItem == 'exportTag') {
|
|
|
|
|
label = '导出'
|
|
|
|
|
} else if (namieItem == 'importTag') {
|
|
|
|
|
label = '导入'
|
|
|
|
|
}
|
|
|
|
|
let checked = false
|
|
|
|
|
for (var k in item) {
|
|
|
|
|
if (item[namieItem] == 1) {
|
|
|
|
|
checked = true
|
|
|
|
|
item.checked = true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
item.tagNamesList.push({
|
|
|
|
|
id: index,
|
|
|
|
|
type: namieItem,
|
|
|
|
|
label,
|
|
|
|
|
checked,
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
this.authorityList = menus
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 添加角色信息表单提交
|
|
|
|
|
*/
|
|
|
|
|
@ -387,29 +202,55 @@ export default {
|
|
|
|
|
console.log(err)
|
|
|
|
|
console.log(this.roleForm.getFieldsValue())
|
|
|
|
|
if (err == null) {
|
|
|
|
|
if (this.showScopeType == 0) {
|
|
|
|
|
this.$message.warning('请选择数据可见范围')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let menus = []
|
|
|
|
|
this.authorityList.forEach((item) => {
|
|
|
|
|
let obj = {}
|
|
|
|
|
item.tagNamesList.forEach((subItem) => {
|
|
|
|
|
obj[subItem.type] = item[subItem.type]
|
|
|
|
|
obj['menuId'] = item.id
|
|
|
|
|
})
|
|
|
|
|
console.log(obj)
|
|
|
|
|
menus.push(obj)
|
|
|
|
|
console.log(menus)
|
|
|
|
|
// for (var k in item) {
|
|
|
|
|
// if (k == 'addTag' || k == 'deleteTag' || k == 'exportTag' || k == 'importTag' || k == 'queryTag' || k == 'updateTag') {
|
|
|
|
|
// obj[k] = item[k]
|
|
|
|
|
// } else if (k == 'id') {
|
|
|
|
|
// obj.menuId = item[k]
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
let formData = this.roleForm.getFieldsValue()
|
|
|
|
|
delete formData.agencyTeamId
|
|
|
|
|
if (this.secondBreadcrumb == '添加角色') {
|
|
|
|
|
addRoleApi({
|
|
|
|
|
...formData,
|
|
|
|
|
menus: JSON.stringify(menus),
|
|
|
|
|
visibleRange: this.showScopeType,
|
|
|
|
|
}).then(({ data }) => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
this.secondBreadcrumb = ''
|
|
|
|
|
this.$message.success('添加成功')
|
|
|
|
|
this.getRoleList()
|
|
|
|
|
this.$router.back()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
updateRoleApi({
|
|
|
|
|
...formData,
|
|
|
|
|
recordId: currentRole.id,
|
|
|
|
|
recordId: this.currentRoleId,
|
|
|
|
|
menus: JSON.stringify(menus),
|
|
|
|
|
visibleRange: this.showScopeType,
|
|
|
|
|
}).then(({ data }) => {
|
|
|
|
|
console.log(data)
|
|
|
|
|
if (data.status == 200) {
|
|
|
|
|
this.secondBreadcrumb = ''
|
|
|
|
|
this.$message.success('修改成功')
|
|
|
|
|
this.getRoleList()
|
|
|
|
|
this.$router.back()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
@ -417,20 +258,54 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
showScopeChange(e) {
|
|
|
|
|
console.log(e)
|
|
|
|
|
this.showScopeType = e.target.value
|
|
|
|
|
},
|
|
|
|
|
checkboxChange(e, key, index) {
|
|
|
|
|
// console.log(e)
|
|
|
|
|
// console.log(key)
|
|
|
|
|
// console.log(index)
|
|
|
|
|
// console.log(this.authorityList[key]);
|
|
|
|
|
// console.log(this.authorityList[key][index]);
|
|
|
|
|
if (e.children) {
|
|
|
|
|
this.authorityList[key].checked = !this.authorityList[key].checked
|
|
|
|
|
/**
|
|
|
|
|
* 角色权限全选反选
|
|
|
|
|
*/
|
|
|
|
|
checkboxChange(item, subItem) {
|
|
|
|
|
var value = this.authorityList[this.authorityList.indexOf(item)] // 获取当前点击的权限
|
|
|
|
|
// 判断是不是点击的子复选框
|
|
|
|
|
if (!subItem) {
|
|
|
|
|
value.checked = !value.checked
|
|
|
|
|
value.tagNamesList.forEach((item) => {
|
|
|
|
|
item.checked = value.checked
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
value[item.type] = 1
|
|
|
|
|
} else {
|
|
|
|
|
value[item.type] = 0
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.authorityList[key].children[index].checked = !this.authorityList[key].children[index].checked
|
|
|
|
|
// debugger
|
|
|
|
|
let subInd = value.tagNamesList.indexOf(subItem)
|
|
|
|
|
console.log(subInd)
|
|
|
|
|
value.tagNamesList[subInd].checked = !value.tagNamesList[subInd].checked
|
|
|
|
|
let result = value.tagNamesList.some((item) => {
|
|
|
|
|
return item.checked == true
|
|
|
|
|
})
|
|
|
|
|
if (result) {
|
|
|
|
|
value.checked = true
|
|
|
|
|
} else {
|
|
|
|
|
value.checked = false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log(this.authorityList)
|
|
|
|
|
value.tagNamesList.forEach((item) => {
|
|
|
|
|
console.log(item)
|
|
|
|
|
if (item.checked) {
|
|
|
|
|
value[item.type] = 1
|
|
|
|
|
} else {
|
|
|
|
|
value[item.type] = 0
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
console.log(value)
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 选区基础角色作为权限
|
|
|
|
|
*/
|
|
|
|
|
setRoleBase(val) {
|
|
|
|
|
console.log(val)
|
|
|
|
|
this.getRoleInfo(val.id, 'permission')
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
@ -453,10 +328,13 @@ export default {
|
|
|
|
|
justify-content: start;
|
|
|
|
|
width: 400px;
|
|
|
|
|
> label {
|
|
|
|
|
width: 23%;
|
|
|
|
|
// width: 23%;
|
|
|
|
|
}
|
|
|
|
|
// >label:not(:first-child){
|
|
|
|
|
// margin-left: 64px;
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
.fss {
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|