@utogether/udp-core 1.0.3 → 1.0.4-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{403-D6H3sArg.js → 403-BPYvIpL0.js} +1 -1
- package/dist/{404-DTyfysQ2.js → 404-DsNi_zbJ.js} +1 -1
- package/dist/{500-DKaVDaBm.js → 500-CFPwM06i.js} +1 -1
- package/dist/{AuthorityInfo-DQULR69Y.js → AuthorityInfo-Cz9aXzyD.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CzAnoTnO.js → AuthorityInfo.vue_vue_type_style_index_0_lang-DV82YhIl.js} +1 -1
- package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-BzIh29KB.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-D3GN0Ybz.js} +32 -24
- package/dist/{Company-BWFrR-Cq.js → Company-C7mOu--3.js} +3 -3
- package/dist/{CompanyPanel-Dh814lsw.js → CompanyPanel-mO9FMZiX.js} +1 -1
- package/dist/{Department-DagPxerl.js → Department--Y1ImWfA.js} +3 -3
- package/dist/{DepartmentPanel-BVy2YGED.js → DepartmentPanel-CE3L2ZMy.js} +1 -1
- package/dist/{DesignPanel-DKfjfj2S.js → DesignPanel-CYSTRBOI.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D-a8W08Y.js → DesignPanel.vue_vue_type_style_index_0_lang-NutQ08_L.js} +2 -2
- package/dist/{DictView-CE5nEiKu.js → DictView-P7SkFNgn.js} +1 -1
- package/dist/{InvOrganization-CZk_EbFZ.js → InvOrganization-C1JEXt2a.js} +1 -1
- package/dist/{Org-BO8jfnqN.js → Org-DfjFoe_o.js} +1 -1
- package/dist/{Preview-DYJaP96f.js → Preview-r4la57mV.js} +1 -1
- package/dist/{ReportDefine-DZXbs7iX.js → ReportDefine-BUbrcRFp.js} +1 -1
- package/dist/{ReportDesign-CSdqOQ1D.js → ReportDesign-B00bAfau.js} +2 -2
- package/dist/{ReportQuery-_Vdt3CnA.js → ReportQuery-DAM_-RUB.js} +1 -1
- package/dist/{ReportQueryFrom-BWKddh9p.js → ReportQueryFrom-CEvoJKlF.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DbdGwioi.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Bt59l-8f.js} +1 -1
- package/dist/{ReportTemplate-DS-DGao8.js → ReportTemplate-Du8i8rfg.js} +1 -1
- package/dist/{Role-BM0kEu7y.js → Role-D3nk1IUQ.js} +3 -3
- package/dist/{RoleAssign-Cp05HUWn.js → RoleAssign-BiO5MZhU.js} +3 -3
- package/dist/{RolePanel-hXeshcCZ.js → RolePanel-BhIqx_Wa.js} +1 -1
- package/dist/{RolePanel-DeuHpCdK.js → RolePanel-VLyqWJVN.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-Bf0pSCTN.js → RolePanel.vue_vue_type_script_setup_true_lang-B0OPjDCv.js} +3 -3
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CNyWCIJm.js → RolePanel.vue_vue_type_script_setup_true_lang-C3IFDt_Z.js} +1 -1
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-BiKe39xG.js → ScrollPanel.vue_vue_type_style_index_0_lang-DCs1XL39.js} +1 -1
- package/dist/{Staff-DLltLFMl.js → Staff-BJeVPfVm.js} +3 -3
- package/dist/{StaffInfo-pfELaI_i.js → StaffInfo-CJ8N1Iaa.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-BKKdNggm.js → StaffInfo.vue_vue_type_script_setup_true_lang-C9Qs0y63.js} +1 -1
- package/dist/{StaffPanel-D3Pk28JN.js → StaffPanel-oprQQONO.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-D9HLeyKe.js → StaffPanel.vue_vue_type_script_setup_true_lang-C5I61KMa.js} +2 -2
- package/dist/{SysUser-BOh7ejz3.js → SysUser-B4os0MUF.js} +2 -2
- package/dist/{SysUserPanel-RElVo0BV.js → SysUserPanel-D_CBonTD.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DoW0v5y9.js → SysUserPanel.vue_vue_type_script_setup_true_lang-5ziTNsQJ.js} +1 -1
- package/dist/{SystemMenu-DZneBqKO.js → SystemMenu-CTq48lhl.js} +52 -49
- package/dist/{UserInfo-D9qo_f_9.js → UserInfo-CmCYIois.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CY4dtMnZ.js → UserInfo.vue_vue_type_style_index_0_lang-JR50b-om.js} +1 -1
- package/dist/{childView-CmlGxD9G.js → childView-BdTLKLdV.js} +1 -1
- package/dist/{childView-DStrPumM.js → childView-BpjMQxXA.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-B9k694be.js → childView.vue_vue_type_style_index_0_lang-B6YHspP9.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Dtv1rrdP.js → childView.vue_vue_type_style_index_0_lang-CWEjc6-V.js} +1 -1
- package/dist/{code-rule-CxzgQDH_.js → code-rule-CohepEa6.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-kbyRTz97.js → cron-task-CW0DC8mB.js} +1 -1
- package/dist/{frameView-BawZlIge.js → frameView-CpSq5t6q.js} +1 -1
- package/dist/{index-nkstuOxE.js → index-BIkiQ8sW.js} +3562 -962
- package/dist/{layoutView-DVGqPJmA.js → layoutView-Cb-Sr4QH.js} +144 -145
- package/dist/{log-in-j2PZGLQH.js → log-in-CwE0UTx5.js} +1 -1
- package/dist/{log-out-DIJU-Vpf.js → log-out-C2YJ4VtB.js} +1 -1
- package/dist/{login-DvmHMcgD.js → login-DgulHC3K.js} +124 -134
- package/dist/{lov-view-C-dIDLh8.js → lov-view-DHruXqpk.js} +2 -2
- package/dist/{menuInfo-D0mcKmrT.js → menuInfo-TK_M-mrs.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-CbwS7aGl.js → menuInfo.vue_vue_type_style_index_0_lang-CaTPaJe-.js} +37 -35
- package/dist/{pda-app-BjvyTDkw.js → pda-app-C7JJ5ioL.js} +1 -1
- package/dist/{resource-BknIxaTQ.js → resource-DnnZBwMv.js} +1 -1
- package/dist/{su-welcome-CwtvamZC.js → su-welcome-CuYdpLi1.js} +1 -1
- package/dist/{sys-config-CCKhGcCL.js → sys-config-D1h0L-xV.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +71 -65
- package/src/components/udp/form-upload/form-upload.vue +492 -0
- package/src/components/udp/index.ts +2 -1
- package/src/layout/components/lay-content/index.vue +136 -143
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -1
- package/src/layout/layoutView.vue +7 -6
- package/src/main.ts +2 -2
- package/src/plugins/i18n/zh.ts +1 -0
- package/src/plugins/vxe-table/index.ts +1 -1
- package/src/plugins/vxe-table/render.tsx +19 -1
- package/src/style/vxetable.scss +356 -348
- package/src/views/system/menu/AuthorityPanel.vue +142 -140
- package/src/views/system/menu/SystemMenu.vue +10 -1
- package/src/views/system/menu/menuInfo.vue +384 -384
- package/src/views/ulogin/login.vue +34 -23
|
@@ -1,140 +1,142 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2022-08-05 10:05:27
|
|
4
|
-
* @LastEditors:
|
|
5
|
-
* @LastEditTime:
|
|
6
|
-
* @Description: 菜单权限列表
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div class="u-dict-config_wrapper">
|
|
10
|
-
<el-drawer
|
|
11
|
-
:model-value="show"
|
|
12
|
-
:before-close="handleClose"
|
|
13
|
-
title="权限明细"
|
|
14
|
-
direction="rtl"
|
|
15
|
-
destroy-on-close
|
|
16
|
-
size="66%"
|
|
17
|
-
>
|
|
18
|
-
<ut-grid
|
|
19
|
-
ref="SuGridRef"
|
|
20
|
-
:columns="columns"
|
|
21
|
-
url="/uums/menu"
|
|
22
|
-
:default-params="{ parentId: record.id }"
|
|
23
|
-
:default-value="{ parentId: record.id, menuType: 1 }"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
() =>
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-05 10:05:27
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-12-20 08:03:07
|
|
6
|
+
* @Description: 菜单权限列表
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div class="u-dict-config_wrapper">
|
|
10
|
+
<el-drawer
|
|
11
|
+
:model-value="show"
|
|
12
|
+
:before-close="handleClose"
|
|
13
|
+
title="权限明细"
|
|
14
|
+
direction="rtl"
|
|
15
|
+
destroy-on-close
|
|
16
|
+
size="66%"
|
|
17
|
+
>
|
|
18
|
+
<ut-grid
|
|
19
|
+
ref="SuGridRef"
|
|
20
|
+
:columns="columns"
|
|
21
|
+
url="/uums/menu"
|
|
22
|
+
:default-params="{ parentId: record.id }"
|
|
23
|
+
:default-value="{ parentId: record.id, menuType: 1 }"
|
|
24
|
+
:pager-config="{ layouts: [] }"
|
|
25
|
+
/>
|
|
26
|
+
</el-drawer>
|
|
27
|
+
</div>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
30
|
+
<script setup lang="tsx">
|
|
31
|
+
import { ref, watch } from 'vue';
|
|
32
|
+
import { useRender } from '@utogether/utils';
|
|
33
|
+
|
|
34
|
+
interface IProps {
|
|
35
|
+
record: IRecord;
|
|
36
|
+
show: boolean;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const props = withDefaults(defineProps<IProps>(), {
|
|
40
|
+
record: (): IRecord => {
|
|
41
|
+
return {};
|
|
42
|
+
},
|
|
43
|
+
show: false
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
watch(
|
|
47
|
+
() => props.show,
|
|
48
|
+
() => {
|
|
49
|
+
prefixCode.value = props.show && getPrefixCode();
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
const prefixCode = ref('');
|
|
54
|
+
|
|
55
|
+
const renderHook = useRender();
|
|
56
|
+
|
|
57
|
+
// 列字段
|
|
58
|
+
const columns = [
|
|
59
|
+
{ type: 'checkbox', width: 50, align: 'center' },
|
|
60
|
+
{
|
|
61
|
+
field: 'menuName',
|
|
62
|
+
title: 'message.permissionName',
|
|
63
|
+
required: true,
|
|
64
|
+
editRender: renderHook.renderInput()
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
field: 'permissionCode',
|
|
68
|
+
required: true,
|
|
69
|
+
minWidth: 180,
|
|
70
|
+
editRender: renderHook.renderInput(),
|
|
71
|
+
slots: {
|
|
72
|
+
edit: ({ row }) => {
|
|
73
|
+
const slots = {
|
|
74
|
+
prefix: () => <span>{prefixCode.value}.</span>
|
|
75
|
+
};
|
|
76
|
+
row.dispalyCode = row.permissionCode?.replace(`${prefixCode.value}.`, '');
|
|
77
|
+
return [
|
|
78
|
+
<vxe-input v-model={row.dispalyCode} v-slots={slots} className="ut-slot-input" onInput={() => onInput(row)} />
|
|
79
|
+
];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
field: 'remark',
|
|
85
|
+
title: 'message.udp.description',
|
|
86
|
+
required: true,
|
|
87
|
+
editRender: renderHook.renderInput()
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
field: 'enabled',
|
|
91
|
+
title: 'message.enabled',
|
|
92
|
+
width: 90,
|
|
93
|
+
editRender: renderHook.renderDict({ code: 'SU.ENABLE', defaultValue: '1' }),
|
|
94
|
+
formatter: ['formatDict', 'SU.ENABLE']
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
|
+
|
|
98
|
+
const getPrefixCode = () => {
|
|
99
|
+
const { record } = props;
|
|
100
|
+
const { id, parentId, hasChildren } = record;
|
|
101
|
+
if (!id && !parentId) return 'su';
|
|
102
|
+
if (hasChildren) {
|
|
103
|
+
record.dispalyCode = '';
|
|
104
|
+
return record.permissionCode;
|
|
105
|
+
}
|
|
106
|
+
return record.permissionCode;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
const onInput = record => {
|
|
110
|
+
record.permissionCode = `${prefixCode.value}.${record.dispalyCode}`;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const emit = defineEmits<{ (e: 'close'): void }>();
|
|
114
|
+
// 抽屉关闭
|
|
115
|
+
function handleClose() {
|
|
116
|
+
emit('close');
|
|
117
|
+
}
|
|
118
|
+
</script>
|
|
119
|
+
|
|
120
|
+
<style lang="scss">
|
|
121
|
+
.u-dict-config_wrapper {
|
|
122
|
+
.el-drawer__header {
|
|
123
|
+
margin-bottom: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ut-slot-input {
|
|
127
|
+
.vxe-input--inner {
|
|
128
|
+
width: auto;
|
|
129
|
+
max-width: 66%;
|
|
130
|
+
padding-left: 0.5em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.vxe-input--prefix {
|
|
134
|
+
display: contents;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.ut-disable-text {
|
|
139
|
+
background-color: #fefefe;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
</style>
|
|
@@ -163,8 +163,17 @@ async function handleUpdate({ row }) {
|
|
|
163
163
|
const handleDel = async () => {
|
|
164
164
|
const type = await VxeUI.modal.confirm(t('message.delRecord'));
|
|
165
165
|
const records = xgrid.value.getInstance().getCheckboxRecords();
|
|
166
|
+
console.log(records);
|
|
166
167
|
if (type === 'confirm') {
|
|
167
|
-
const [err] = await to(serviceApi.delete(url, records));
|
|
168
|
+
const [err, res] = await to(serviceApi.delete(url, records));
|
|
169
|
+
console.log(res);
|
|
170
|
+
if (err) return;
|
|
171
|
+
const parent = xgrid.value.getInstance().getTreeParentRow(records[0]);
|
|
172
|
+
if (parent) {
|
|
173
|
+
xgrid.value.getInstance().reloadTreeExpand(parent);
|
|
174
|
+
} else {
|
|
175
|
+
xgrid.value.refreshData();
|
|
176
|
+
}
|
|
168
177
|
}
|
|
169
178
|
};
|
|
170
179
|
|