mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-03 20:35:29 +08:00
3.7.1版本发布
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BasicDrawer v-bind="$attrs" @register="registerDrawer" title="数据权限规则" :width="adaptiveWidth">
|
||||
<BasicDrawer v-bind="$attrs" @register="registerDrawer" title="数据权限规则" :width="adaptiveWidth" :rootClassName="prefixCls">
|
||||
<BasicTable @register="registerTable">
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" @click="handleCreate"> 新增</a-button>
|
||||
@ -21,8 +21,10 @@
|
||||
import { dataRuleList, deleteRule } from './menu.api';
|
||||
import { ColEx } from '/@/components/Form/src/types';
|
||||
import { useDrawerAdaptiveWidth } from '/@/hooks/jeecg/useAdaptiveWidth';
|
||||
import { useDesign } from '/@/hooks/web/useDesign';
|
||||
const permissionId = ref('');
|
||||
const { adaptiveWidth } = useDrawerAdaptiveWidth();
|
||||
const { prefixCls } = useDesign('sys-menu-dataRulelist');
|
||||
//权限规则model
|
||||
const [registerModal, { openModal }] = useModal();
|
||||
const [registerDrawer] = useDrawerInner(async (data) => {
|
||||
@ -120,3 +122,23 @@
|
||||
];
|
||||
}
|
||||
</script>
|
||||
<style lang="less">
|
||||
// -update-begin--author:liaozhiyang---date:20240702---for:【TV360X-1660】菜单管理-数据权限的查询和按钮没间隙
|
||||
@prefix-cls: ~'@{namespace}-sys-menu-dataRulelist';
|
||||
.@{prefix-cls} {
|
||||
.jeecg-basic-table {
|
||||
padding: 0;
|
||||
}
|
||||
.btnArea {
|
||||
.ant-btn {
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
&:first-child {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// -update-end--author:liaozhiyang---date:20240702---for:【TV360X-1660】菜单管理-数据权限的查询和按钮没间隙
|
||||
</style>
|
||||
|
||||
@ -78,8 +78,8 @@
|
||||
tableSetting: { fullScreen: true },
|
||||
formConfig: {
|
||||
// update-begin--author:liaozhiyang---date:20230803---for:【QQYUN-5873】查询区域lablel默认居左
|
||||
labelWidth:60,
|
||||
owProps: { gutter: 24 },
|
||||
labelWidth: 74,
|
||||
rowProps: { gutter: 24 },
|
||||
// update-end--author:liaozhiyang---date:20230803---for:【QQYUN-5873】查询区域lablel默认居左
|
||||
schemas: searchFormSchema,
|
||||
autoAdvancedCol: 4,
|
||||
@ -167,7 +167,12 @@
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDeleteMenu({ ids: checkedKeys.value }, reload);
|
||||
await batchDeleteMenu({ ids: checkedKeys.value }, () => {
|
||||
// -update-begin--author:liaozhiyang---date:20240702---for:【TV360X-1662】菜单管理、定时任务批量删除清空选中
|
||||
reload();
|
||||
checkedKeys.value = [];
|
||||
// -update-end--author:liaozhiyang---date:20240702---for:【TV360X-1662】菜单管理、定时任务批量删除清空选中
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 成功回调
|
||||
|
||||
@ -399,12 +399,50 @@ export const dataRuleFormSchema: FormSchema[] = [
|
||||
getPopupContainer: (node) => document.body,
|
||||
},
|
||||
},
|
||||
// update-begin--author:liaozhiyang---date:20240724---for:【TV360X-1864】添加系统变量
|
||||
{
|
||||
field: 'ruleValue',
|
||||
component: 'JInputSelect',
|
||||
label: '规则值',
|
||||
component: 'Input',
|
||||
required: true,
|
||||
componentProps: {
|
||||
selectPlaceholder: '可选择系统变量',
|
||||
inputPlaceholder: '请输入',
|
||||
getPopupContainer: () => document.body,
|
||||
selectWidth: '200px',
|
||||
options: [
|
||||
{
|
||||
label: '登录用户账号',
|
||||
value: '#{sys_user_code}',
|
||||
},
|
||||
{
|
||||
label: '登录用户名称',
|
||||
value: '#{sys_user_name}',
|
||||
},
|
||||
{
|
||||
label: '当前日期',
|
||||
value: '#{sys_date}',
|
||||
},
|
||||
{
|
||||
label: '当前时间',
|
||||
value: '#{sys_time}',
|
||||
},
|
||||
{
|
||||
label: '登录用户部门',
|
||||
value: '#{sys_org_code}',
|
||||
},
|
||||
{
|
||||
label: '用户拥有部门',
|
||||
value: '#{sys_multi_org_code}',
|
||||
},
|
||||
{
|
||||
label: '登录用户租户',
|
||||
value: '#{tenant_id}',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
// update-end--author:liaozhiyang---date:20240724---for:【TV360X-1864】添加系统变量
|
||||
{
|
||||
field: 'status',
|
||||
label: '状态',
|
||||
|
||||
Reference in New Issue
Block a user