update: 组织管理添加按钮权限
This commit is contained in:
parent
d7754789bf
commit
0929185967
|
|
@ -10,9 +10,17 @@
|
||||||
<search-outlined />
|
<search-outlined />
|
||||||
</template>
|
</template>
|
||||||
</a-input>
|
</a-input>
|
||||||
<a-button type="primary" @click="openDialog()" class="add-btn">
|
<div class="add-btn">
|
||||||
新增
|
<PermissionButton
|
||||||
</a-button>
|
type="primary"
|
||||||
|
class="add-btn"
|
||||||
|
:uhasPermission="`${permission}:add`"
|
||||||
|
@click="openDialog()"
|
||||||
|
>
|
||||||
|
新增
|
||||||
|
</PermissionButton>
|
||||||
|
</div>
|
||||||
|
|
||||||
<a-tree
|
<a-tree
|
||||||
:tree-data="treeData"
|
:tree-data="treeData"
|
||||||
v-model:selected-keys="selectedKeys"
|
v-model:selected-keys="selectedKeys"
|
||||||
|
|
@ -22,13 +30,13 @@
|
||||||
<template #title="{ name, data }">
|
<template #title="{ name, data }">
|
||||||
<span>{{ name }}</span>
|
<span>{{ name }}</span>
|
||||||
<span class="func-btns" @click="(e) => e.stopPropagation()">
|
<span class="func-btns" @click="(e) => e.stopPropagation()">
|
||||||
<a-tooltip>
|
<!-- <a-tooltip>
|
||||||
<template #title>编辑</template>
|
<template #title>编辑</template>
|
||||||
<a-button style="padding: 0" type="link">
|
<a-button style="padding: 0" type="link">
|
||||||
<edit-outlined @click="openDialog(data)" />
|
<edit-outlined @click="openDialog(data)" />
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip> -->
|
||||||
<a-tooltip>
|
<!-- <a-tooltip>
|
||||||
<template #title>新增子组织</template>
|
<template #title>新增子组织</template>
|
||||||
<a-button style="padding: 0" type="link">
|
<a-button style="padding: 0" type="link">
|
||||||
<plus-circle-outlined
|
<plus-circle-outlined
|
||||||
|
|
@ -42,9 +50,9 @@
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip> -->
|
||||||
|
|
||||||
<a-popconfirm
|
<!-- <a-popconfirm
|
||||||
title="确认删除"
|
title="确认删除"
|
||||||
ok-text="确定"
|
ok-text="确定"
|
||||||
cancel-text="取消"
|
cancel-text="取消"
|
||||||
|
|
@ -56,7 +64,45 @@
|
||||||
<delete-outlined />
|
<delete-outlined />
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</a-popconfirm>
|
</a-popconfirm> -->
|
||||||
|
|
||||||
|
<PermissionButton
|
||||||
|
:uhasPermission="`${permission}:update`"
|
||||||
|
type="link"
|
||||||
|
:tooltip="{
|
||||||
|
title: '新增子组织',
|
||||||
|
}"
|
||||||
|
@click="openDialog(data)"
|
||||||
|
>
|
||||||
|
<AIcon type="EditOutlined" />
|
||||||
|
</PermissionButton>
|
||||||
|
<PermissionButton
|
||||||
|
:uhasPermission="`${permission}:add`"
|
||||||
|
type="link"
|
||||||
|
:tooltip="{
|
||||||
|
title: '新增子组织',
|
||||||
|
}"
|
||||||
|
@click="
|
||||||
|
openDialog({
|
||||||
|
...data,
|
||||||
|
id: '',
|
||||||
|
parentId: data.id,
|
||||||
|
})
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<AIcon type="PlusCircleOutlined" />
|
||||||
|
</PermissionButton>
|
||||||
|
<PermissionButton
|
||||||
|
type="link"
|
||||||
|
:uhasPermission="`${permission}:delete`"
|
||||||
|
:tooltip="{ title: '删除' }"
|
||||||
|
:popConfirm="{
|
||||||
|
title: `确定要删除吗`,
|
||||||
|
onConfirm: () => delDepartment(data.id),
|
||||||
|
}"
|
||||||
|
>
|
||||||
|
<AIcon type="DeleteOutlined" />
|
||||||
|
</PermissionButton>
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</a-tree>
|
</a-tree>
|
||||||
|
|
@ -71,19 +117,17 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import PermissionButton from '@/components/PermissionButton/index.vue';
|
||||||
import { getTreeData_api, delDepartment_api } from '@/api/system/department';
|
import { getTreeData_api, delDepartment_api } from '@/api/system/department';
|
||||||
import { debounce, cloneDeep, omit } from 'lodash-es';
|
import { debounce, cloneDeep, omit } from 'lodash-es';
|
||||||
import { ArrayToTree } from '@/utils/utils';
|
import { ArrayToTree } from '@/utils/utils';
|
||||||
import EditDepartmentDialog from './EditDepartmentDialog.vue';
|
import EditDepartmentDialog from './EditDepartmentDialog.vue';
|
||||||
|
|
||||||
import {
|
import { SearchOutlined } from '@ant-design/icons-vue';
|
||||||
SearchOutlined,
|
|
||||||
EditOutlined,
|
|
||||||
PlusCircleOutlined,
|
|
||||||
DeleteOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
|
const permission = 'system/Department';
|
||||||
|
|
||||||
const save = useRoute().query.save;
|
const save = useRoute().query.save;
|
||||||
const emits = defineEmits(['change']);
|
const emits = defineEmits(['change']);
|
||||||
const searchValue = ref(''); // 搜索内容
|
const searchValue = ref(''); // 搜索内容
|
||||||
|
|
@ -195,7 +239,10 @@ function init() {
|
||||||
|
|
||||||
.add-btn {
|
.add-btn {
|
||||||
margin: 24px 0;
|
margin: 24px 0;
|
||||||
width: 100%;
|
|
||||||
|
:deep(.ant-btn-primary) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(.ant-tree-treenode) {
|
:deep(.ant-tree-treenode) {
|
||||||
|
|
@ -210,8 +257,9 @@ function init() {
|
||||||
.func-btns {
|
.func-btns {
|
||||||
display: none;
|
display: none;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
.ant-btn {
|
.ant-btn-link {
|
||||||
height: 22px;
|
padding: 0 4px;
|
||||||
|
height: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
|
||||||
|
|
@ -14,29 +14,38 @@
|
||||||
>
|
>
|
||||||
<template #headerTitle>
|
<template #headerTitle>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="primary" @click="table.clickAdd">
|
<PermissionButton
|
||||||
<plus-outlined />资产分配
|
:uhasPermission="`${permission}:assert`"
|
||||||
</a-button>
|
type="primary"
|
||||||
|
@click="table.clickAdd"
|
||||||
|
>
|
||||||
|
<AIcon type="PlusOutlined" />资产分配
|
||||||
|
</PermissionButton>
|
||||||
<a-dropdown trigger="hover">
|
<a-dropdown trigger="hover">
|
||||||
<a-button>批量操作</a-button>
|
<a-button>批量操作</a-button>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a-popconfirm
|
<PermissionButton
|
||||||
title="是否批量解除绑定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
ok-text="确定"
|
:popConfirm="{
|
||||||
cancel-text="取消"
|
title: `是否批量解除绑定`,
|
||||||
@confirm="table.clickUnBind()"
|
onConfirm: () =>
|
||||||
|
table.clickUnBind(),
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<a-button>
|
<AIcon
|
||||||
<DisconnectOutlined /> 批量解绑
|
type="DisconnectOutlined"
|
||||||
</a-button>
|
/>批量解绑
|
||||||
</a-popconfirm>
|
</PermissionButton>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a-button @click="table.clickEdit()">
|
<PermissionButton
|
||||||
<EditOutlined /> 批量编辑
|
:uhasPermission="`${permission}:assert`"
|
||||||
</a-button>
|
@click="table.clickEdit()"
|
||||||
|
>
|
||||||
|
<AIcon type="EditOutlined" />批量编辑
|
||||||
|
</PermissionButton>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -102,21 +111,22 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<a-button
|
<PermissionButton
|
||||||
|
:uhasPermission="`${permission}:assert`"
|
||||||
@click="table.clickEdit(slotProps)"
|
@click="table.clickEdit(slotProps)"
|
||||||
style="margin-right: 10px"
|
|
||||||
>
|
>
|
||||||
<AIcon type="EditOutlined" />
|
<AIcon type="EditOutlined" />
|
||||||
</a-button>
|
</PermissionButton>
|
||||||
<a-popconfirm
|
|
||||||
title="是否解除绑定"
|
<PermissionButton
|
||||||
ok-text="确定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
cancel-text="取消"
|
:popConfirm="{
|
||||||
@confirm="table.clickUnBind(slotProps)"
|
title: `是否解除绑定`,
|
||||||
><a-button>
|
onConfirm: () => table.clickUnBind(slotProps),
|
||||||
<AIcon type="DisconnectOutlined" />
|
}"
|
||||||
</a-button>
|
>
|
||||||
</a-popconfirm>
|
<AIcon type="DisconnectOutlined" />
|
||||||
|
</PermissionButton>
|
||||||
</template>
|
</template>
|
||||||
</CardBox>
|
</CardBox>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -143,11 +153,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="device">
|
<script setup lang="ts" name="device">
|
||||||
import {
|
import PermissionButton from '@/components/PermissionButton/index.vue';
|
||||||
PlusOutlined,
|
|
||||||
EditOutlined,
|
|
||||||
DisconnectOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import AddDeviceOrProductDialog from '../components/AddDeviceOrProductDialog.vue';
|
import AddDeviceOrProductDialog from '../components/AddDeviceOrProductDialog.vue';
|
||||||
import EditPermissionDialog from '../components/EditPermissionDialog.vue';
|
import EditPermissionDialog from '../components/EditPermissionDialog.vue';
|
||||||
import { getImage } from '@/utils/comm';
|
import { getImage } from '@/utils/comm';
|
||||||
|
|
@ -163,6 +170,8 @@ import { intersection } from 'lodash-es';
|
||||||
import { dictType } from '../typing.d.ts';
|
import { dictType } from '../typing.d.ts';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
|
const permission = 'system/Department';
|
||||||
|
|
||||||
const emits = defineEmits(['update:bindBool']);
|
const emits = defineEmits(['update:bindBool']);
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
parentId: string;
|
parentId: string;
|
||||||
|
|
@ -453,7 +462,7 @@ nextTick(() => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.card-tools {
|
.card-tools {
|
||||||
.ant-btn {
|
span {
|
||||||
color: #252525;
|
color: #252525;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -55,8 +55,9 @@ const openDeviceBind = () => {
|
||||||
flex-basis: 300px;
|
flex-basis: 300px;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
flex: 1 1 auto;
|
width: calc(100% - 300px);
|
||||||
.ant-tabs-nav {
|
|
||||||
|
.ant-tabs-nav-wrap {
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,29 +14,38 @@
|
||||||
>
|
>
|
||||||
<template #headerTitle>
|
<template #headerTitle>
|
||||||
<a-space>
|
<a-space>
|
||||||
<a-button type="primary" @click="table.clickAdd">
|
<PermissionButton
|
||||||
<plus-outlined />资产分配
|
:uhasPermission="`${permission}:assert`"
|
||||||
</a-button>
|
type="primary"
|
||||||
|
@click="table.clickAdd"
|
||||||
|
>
|
||||||
|
<AIcon type="PlusOutlined" />资产分配
|
||||||
|
</PermissionButton>
|
||||||
<a-dropdown trigger="hover">
|
<a-dropdown trigger="hover">
|
||||||
<a-button>批量操作</a-button>
|
<a-button>批量操作</a-button>
|
||||||
<template #overlay>
|
<template #overlay>
|
||||||
<a-menu>
|
<a-menu>
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a-popconfirm
|
<PermissionButton
|
||||||
title="是否批量解除绑定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
ok-text="确定"
|
:popConfirm="{
|
||||||
cancel-text="取消"
|
title: `是否批量解除绑定`,
|
||||||
@confirm="table.clickUnBind()"
|
onConfirm: () =>
|
||||||
|
table.clickUnBind(),
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<a-button>
|
<AIcon
|
||||||
<DisconnectOutlined /> 批量解绑
|
type="DisconnectOutlined"
|
||||||
</a-button>
|
/>批量解绑
|
||||||
</a-popconfirm>
|
</PermissionButton>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
<a-menu-item>
|
<a-menu-item>
|
||||||
<a-button @click="table.clickEdit()">
|
<PermissionButton
|
||||||
<EditOutlined /> 批量编辑
|
:uhasPermission="`${permission}:assert`"
|
||||||
</a-button>
|
@click="()=>table.clickEdit()"
|
||||||
|
>
|
||||||
|
<AIcon type="EditOutlined" />批量编辑
|
||||||
|
</PermissionButton>
|
||||||
</a-menu-item>
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -102,21 +111,22 @@
|
||||||
</a-row>
|
</a-row>
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<a-button
|
<PermissionButton
|
||||||
@click="table.clickEdit(slotProps)"
|
:uhasPermission="`${permission}:assert`"
|
||||||
style="margin-right: 10px"
|
@click="() => table.clickEdit(slotProps)"
|
||||||
>
|
>
|
||||||
<AIcon type="EditOutlined" />
|
<AIcon type="EditOutlined" />
|
||||||
</a-button>
|
</PermissionButton>
|
||||||
<a-popconfirm
|
|
||||||
title="是否解除绑定"
|
<PermissionButton
|
||||||
ok-text="确定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
cancel-text="取消"
|
:popConfirm="{
|
||||||
@confirm="table.clickUnBind(slotProps)"
|
title: `是否解除绑定`,
|
||||||
><a-button>
|
onConfirm: () => table.clickUnBind(slotProps),
|
||||||
<AIcon type="DisconnectOutlined" />
|
}"
|
||||||
</a-button>
|
>
|
||||||
</a-popconfirm>
|
<AIcon type="DisconnectOutlined" />
|
||||||
|
</PermissionButton>
|
||||||
</template>
|
</template>
|
||||||
</CardBox>
|
</CardBox>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -138,17 +148,17 @@
|
||||||
asset-type="product"
|
asset-type="product"
|
||||||
@confirm="table.refresh"
|
@confirm="table.refresh"
|
||||||
/>
|
/>
|
||||||
<NextDialog ref="nextDialogRef" @confirm="emits('openDeviceBind')" />
|
<NextDialog
|
||||||
|
ref="nextDialogRef"
|
||||||
|
@confirm="emits('openDeviceBind')"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="product">
|
<script setup lang="ts" name="product">
|
||||||
import {
|
import PermissionButton from '@/components/PermissionButton/index.vue';
|
||||||
PlusOutlined,
|
|
||||||
EditOutlined,
|
|
||||||
DisconnectOutlined,
|
|
||||||
} from '@ant-design/icons-vue';
|
|
||||||
import AddDeviceOrProductDialog from '../components/AddDeviceOrProductDialog.vue';
|
import AddDeviceOrProductDialog from '../components/AddDeviceOrProductDialog.vue';
|
||||||
import EditPermissionDialog from '../components/EditPermissionDialog.vue';
|
import EditPermissionDialog from '../components/EditPermissionDialog.vue';
|
||||||
import NextDialog from '../components/NextDialog.vue';
|
import NextDialog from '../components/NextDialog.vue';
|
||||||
|
|
@ -164,7 +174,9 @@ import { intersection } from 'lodash-es';
|
||||||
import { dictType } from '../typing.d.ts';
|
import { dictType } from '../typing.d.ts';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
const emits = defineEmits(['openDeviceBind'])
|
const permission = 'system/Department';
|
||||||
|
|
||||||
|
const emits = defineEmits(['openDeviceBind']);
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
parentId: string;
|
parentId: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
@ -363,6 +375,8 @@ const table = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
clickAdd: () => {
|
clickAdd: () => {
|
||||||
|
console.log(222)
|
||||||
|
console.log(addDialogRef.value)
|
||||||
addDialogRef.value && addDialogRef.value.openDialog();
|
addDialogRef.value && addDialogRef.value.openDialog();
|
||||||
},
|
},
|
||||||
clickEdit: (row?: any) => {
|
clickEdit: (row?: any) => {
|
||||||
|
|
@ -405,10 +419,10 @@ const table = {
|
||||||
tableRef.value.reload();
|
tableRef.value.reload();
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addConfirm: ()=>{
|
addConfirm: () => {
|
||||||
table.refresh()
|
table.refresh();
|
||||||
nextDialogRef.value && nextDialogRef.value.openDialog()
|
nextDialogRef.value && nextDialogRef.value.openDialog();
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const addDialogRef = ref();
|
const addDialogRef = ref();
|
||||||
|
|
@ -428,7 +442,7 @@ table.init();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.card-tools {
|
.card-tools {
|
||||||
.ant-btn {
|
span {
|
||||||
color: #252525;
|
color: #252525;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,23 +15,24 @@
|
||||||
model="TABLE"
|
model="TABLE"
|
||||||
>
|
>
|
||||||
<template #headerTitle>
|
<template #headerTitle>
|
||||||
<a-button
|
<PermissionButton
|
||||||
type="primary"
|
type="primary"
|
||||||
|
:uhasPermission="`${permission}:bind-user`"
|
||||||
@click="table.openDialog"
|
@click="table.openDialog"
|
||||||
style="margin-right: 10px"
|
style="margin-right: 15px;"
|
||||||
>
|
>
|
||||||
<AIcon type="PlusOutlined" />绑定用户
|
<AIcon type="PlusOutlined" />绑定用户
|
||||||
</a-button>
|
</PermissionButton>
|
||||||
<a-popconfirm
|
<div style="display: inline-block;width: 12px;height: 1px;"></div>
|
||||||
title="是否解除绑定"
|
<PermissionButton
|
||||||
ok-text="确定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
cancel-text="取消"
|
:popConfirm="{
|
||||||
@confirm="table.unBind()"
|
title: `是否解除绑定`,
|
||||||
|
onConfirm: () => table.unBind(),
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<a-button
|
<AIcon type="DisconnectOutlined" />批量解绑
|
||||||
><AIcon type="DisconnectOutlined" />批量解绑</a-button
|
</PermissionButton>
|
||||||
>
|
|
||||||
</a-popconfirm>
|
|
||||||
</template>
|
</template>
|
||||||
<template #status="slotProps">
|
<template #status="slotProps">
|
||||||
<BadgeStatus
|
<BadgeStatus
|
||||||
|
|
@ -45,16 +46,16 @@
|
||||||
</template>
|
</template>
|
||||||
<template #action="slotProps">
|
<template #action="slotProps">
|
||||||
<a-space :size="16">
|
<a-space :size="16">
|
||||||
<a-popconfirm
|
<PermissionButton
|
||||||
title="是否解除绑定"
|
type="link"
|
||||||
ok-text="确定"
|
:uhasPermission="`${permission}:bind`"
|
||||||
cancel-text="取消"
|
:popConfirm="{
|
||||||
@confirm="table.unBind(slotProps)"
|
title: `是否解除绑定`,
|
||||||
|
onConfirm: () => table.unBind(slotProps),
|
||||||
|
}"
|
||||||
>
|
>
|
||||||
<a-button style="padding: 0" type="link">
|
<AIcon type="DisconnectOutlined" />
|
||||||
<AIcon type="DisconnectOutlined" />
|
</PermissionButton>
|
||||||
</a-button>
|
|
||||||
</a-popconfirm>
|
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
</JTable>
|
</JTable>
|
||||||
|
|
@ -70,10 +71,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts" name="user">
|
<script setup lang="ts" name="user">
|
||||||
|
import PermissionButton from '@/components/PermissionButton/index.vue';
|
||||||
import AddBindUserDialog from './components/addBindUserDialog.vue';
|
import AddBindUserDialog from './components/addBindUserDialog.vue';
|
||||||
import { getBindUserList_api, unBindUser_api } from '@/api/system/department';
|
import { getBindUserList_api, unBindUser_api } from '@/api/system/department';
|
||||||
import { message } from 'ant-design-vue';
|
import { message } from 'ant-design-vue';
|
||||||
|
|
||||||
|
const permission = 'system/Department';
|
||||||
|
|
||||||
const addDialogRef = ref();
|
const addDialogRef = ref();
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
<!-- 还差页面权限 -->
|
||||||
<a-row :gutter="24" v-if="form.IsShow('add', 'edit')">
|
<a-row :gutter="24" v-if="form.IsShow('add', 'edit')">
|
||||||
<a-col :span="12">
|
<a-col :span="12">
|
||||||
<a-form-item name="roleIdList" label="角色" class="flex">
|
<a-form-item name="roleIdList" label="角色" class="flex">
|
||||||
|
|
@ -110,6 +111,7 @@
|
||||||
placeholder="请选择角色"
|
placeholder="请选择角色"
|
||||||
:options="form.roleOptions"
|
:options="form.roleOptions"
|
||||||
></a-select>
|
></a-select>
|
||||||
|
|
||||||
<PermissionButton
|
<PermissionButton
|
||||||
:uhasPermission="`${rolePermission}:update`"
|
:uhasPermission="`${rolePermission}:update`"
|
||||||
@click="form.clickAddItem('roleIdList', 'Role')"
|
@click="form.clickAddItem('roleIdList', 'Role')"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue