fix : 屏蔽导出修复角色权限

This commit is contained in:
2024-06-11 20:56:22 +08:00
parent 78ab1ddc45
commit a2977d0702
4 changed files with 47 additions and 36 deletions

View File

@@ -4,9 +4,9 @@
<fvForm :schema="schame" @getInstance="getInstance" :rules="rules"></fvForm>
<div class="assign-menu-title" >
<baseTitle title="分配菜单"></baseTitle>
<fvSelect
<fvSelect
:options="localData.tempRoleOpt"
v-model="localData.tempRoleSelect"
v-model="localData.tempRoleSelect"
style="width: 200px;"
placeholder="请选择模版角色"
@change="roleTempChange"
@@ -15,14 +15,14 @@
<fvCheckbox :options="localData.checkOptions" v-model="localData.checkList" @change="checkBoxChange" />
<el-input v-model="localData.filterText" placeholder="请输入关键词" style="width: 400px;" />
<div class="menu-assign">
<el-tree
<el-tree
ref="menuTree"
:data="localData.menuData"
:filter-node-method="filterMenu"
:props="localData.menuTreeProps"
:check-strictly="!localData.checkStrictly"
show-checkbox
node-key="menuId"
node-key="value"
@check-change="checkChange"
/>
</div>
@@ -38,7 +38,7 @@ import { useTagsView } from '@/stores/tagsview.js'
import { useAuthStore } from '@/stores/userstore.js'
import fvRadio from '@/fvcomponents/fvRadio/index.vue'
import { ElLoading, ElNotification } from 'element-plus';
import { getMenuList } from '@/api/system/menuman.js'
import { getMenuOpt } from '@/api/system/menuman.js'
import { getRoleDetail, operate, getTemRoleOption } from "@/api/role/role";
const tagsViewStore = useTagsView()
@@ -55,8 +55,8 @@ const localData = reactive({
filterText: '',
menuData: [],
menuTreeProps: {
value: "menuId",
label: 'menuName',
value: "value",
label: 'label',
children: 'children'
},
checkStrictly: true,
@@ -143,7 +143,7 @@ const init = async () => {
form.value.setValues({state: '1', template: false})
const res = await getTemRoleOption()
localData.tempRoleOpt = res.data
const { data } = await getMenuList()
const { data } = await getMenuOpt(0)
localData.menuData = data
}
@@ -171,7 +171,7 @@ const roleTempChange = async (val) => {
} catch (error) {
loading.value = false
}
}
const filterMenu = (value, data) => {
@@ -261,4 +261,4 @@ onMounted( async ()=>{
max-height: 500px;
overflow: auto;
}
</style>
</style>