@utogether/udp-core 1.0.1-beta.23 → 1.0.1-beta.25
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-CVk0Zv7-.js → 403-CcK3Z1Ut.js} +1 -1
- package/dist/{404-ndDOUJxF.js → 404-Bo_CvpAq.js} +1 -1
- package/dist/{500-CBFigQjv.js → 500-D_PHJmAt.js} +1 -1
- package/dist/{AuthorityInfo-BDf4I8In.js → AuthorityInfo-BNyWnjft.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-cEIXuHBK.js → AuthorityInfo.vue_vue_type_style_index_0_lang-KAsR77o2.js} +1 -1
- package/dist/{Company-DYDDIDa5.js → Company-CDWGarmp.js} +3 -3
- package/dist/{CompanyPanel-DggYD4kC.js → CompanyPanel-CCaP8Akz.js} +1 -1
- package/dist/{Department-DqrAvwmT.js → Department-DKtHXR1d.js} +3 -3
- package/dist/{DepartmentPanel-BjhhDlhw.js → DepartmentPanel-ClhzUdEf.js} +1 -1
- package/dist/{DesignPanel-DAR2pcpF.js → DesignPanel-C07pQw5N.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-B8GPGq0h.js → DesignPanel.vue_vue_type_style_index_0_lang-Bs3tVdcr.js} +2 -2
- package/dist/{DictView-BcLgE6q2.js → DictView-BoSLIZQg.js} +16 -15
- package/dist/{InvOrganization-B61NWug9.js → InvOrganization-DLU5itCw.js} +1 -1
- package/dist/{Org-9tL7q4mS.js → Org-CsD3SR_w.js} +1 -1
- package/dist/{Preview-Bn4QDJ6s.js → Preview-CX4fXxW0.js} +1 -1
- package/dist/{ReportDefine-BMGU8p3z.js → ReportDefine-BwBNr_Oc.js} +1 -1
- package/dist/{ReportDesign-DkwxPGCT.js → ReportDesign-Cv2Bwvye.js} +2 -2
- package/dist/{ReportQuery-DOFFL8Nn.js → ReportQuery-B2uzUNww.js} +1 -1
- package/dist/{ReportQueryFrom-BDDlluNb.js → ReportQueryFrom-DYfXC2UY.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Yqw26YrX.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BpmudBiL.js} +1 -1
- package/dist/{ReportTemplate-DmFqn7ji.js → ReportTemplate-CJo-42IC.js} +1 -1
- package/dist/{Role-DGw_eao_.js → Role-bB1Q6Yha.js} +3 -3
- package/dist/{RoleAssign-BJ32jpGq.js → RoleAssign-Drw5pVP3.js} +3 -3
- package/dist/{RolePanel-DHS9C-hf.js → RolePanel--YCIdOp8.js} +1 -1
- package/dist/{RolePanel-B2O0mFtr.js → RolePanel-BDADA7Ki.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CEYM_zn7.js → RolePanel.vue_vue_type_script_setup_true_lang-BqLVxcz-.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-T5FN19eF.js → RolePanel.vue_vue_type_script_setup_true_lang-CEJmE7mg.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CeYU2NrW.js → ScrollPanel.vue_vue_type_style_index_0_lang-C_sqOcvc.js} +1 -1
- package/dist/{Staff-3Rejxejf.js → Staff-CM_RZn0q.js} +3 -3
- package/dist/{StaffInfo-C94C3Gj7.js → StaffInfo-BQowR-hf.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-Bm76KXps.js → StaffInfo.vue_vue_type_script_setup_true_lang-unmZZb3r.js} +1 -1
- package/dist/{StaffPanel-ClhiNL5a.js → StaffPanel-BYeVwLCJ.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DjUOMmMr.js → StaffPanel.vue_vue_type_script_setup_true_lang-D5Z7wC3G.js} +2 -2
- package/dist/{SysUser-DUXK1KbY.js → SysUser-gQkVBVRy.js} +2 -2
- package/dist/{SysUserPanel-3HThXZFZ.js → SysUserPanel--NpQuDi_.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DjbpSAOd.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dp2-Jj5B.js} +1 -1
- package/dist/{SystemMenu-C1CrBLIy.js → SystemMenu-_iRBXuJt.js} +39 -39
- package/dist/{UserInfo-C1tgO95t.js → UserInfo-FenstLY2.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-CNLWkLRN.js → UserInfo.vue_vue_type_style_index_0_lang-F1VcEy9W.js} +1 -1
- package/dist/{childView-CCr-NwqZ.js → childView-C1S10Kzx.js} +1 -1
- package/dist/{childView-CeYGykew.js → childView-Cl20RURS.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-IhbVX2Xa.js → childView.vue_vue_type_style_index_0_lang-CvXI-jWg.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-D9PsELsS.js → childView.vue_vue_type_style_index_0_lang-PkzzLPiF.js} +1 -1
- package/dist/{code-rule-BVjue1Qj.js → code-rule-DcLQh0J2.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-BfVSQIgT.js → cron-task-DSTiWf2H.js} +1 -1
- package/dist/{frameView-D_YJavxB.js → frameView-BgULY6HL.js} +1 -1
- package/dist/index-CicLR1aC.js +2902 -0
- package/dist/{layoutView-DpxwrEJd.js → layoutView-CM8KvOD7.js} +1 -1
- package/dist/{login-8muEJPMg.js → login-Cn3mQTZK.js} +1 -1
- package/dist/{lov-view-DEp2h_qy.js → lov-view-Cb9MBjDA.js} +2 -2
- package/dist/{menuInfo-rPb4Ed8Q.js → menuInfo-DLMBNk6i.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-mtPuZDRn.js → menuInfo.vue_vue_type_style_index_0_lang-Ca1mQxmJ.js} +119 -99
- package/dist/{pda-app-CSrTwUo7.js → pda-app-BEMzxuBJ.js} +1 -1
- package/dist/{resource-B4Fsud2G.js → resource-BhHMd7QC.js} +1 -1
- package/dist/{su-welcome-DkwJ8pW8.js → su-welcome-BYm1CMJ2.js} +1 -1
- package/dist/{sys-config-CnMkBejC.js → sys-config-B3OKaUem.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +1 -1
- package/src/main.ts +20 -20
- package/src/plugins/i18n/zh.ts +3 -1
- package/src/router/utils.ts +2 -2
- package/src/style/button.scss +85 -85
- package/src/views/system/menu/SystemMenu.vue +185 -183
- package/src/views/system/menu/menuInfo.vue +384 -363
- package/src/views/udev/dict/DictView.vue +118 -118
- package/dist/index-ZaDSQxcf.js +0 -6495
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2021-12-23 17:33:21
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
6
|
-
* @Description: 数据字典
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div>
|
|
10
|
-
<ut-grid
|
|
11
|
-
ref="xgrid"
|
|
12
|
-
:items="formItems"
|
|
13
|
-
:columns="columns"
|
|
14
|
-
:check-method="checkMethod"
|
|
15
|
-
:events="onGridEvents"
|
|
16
|
-
url="/upfm/v1/lov"
|
|
17
|
-
/>
|
|
18
|
-
<child-view v-if="shouDrawer" :show="shouDrawer" :record="record" @onClose="handleClose" />
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script lang="tsx">
|
|
23
|
-
export default { name: 'DictView' };
|
|
24
|
-
</script>
|
|
25
|
-
<script setup lang="tsx">
|
|
26
|
-
import { ref, nextTick } from 'vue';
|
|
27
|
-
import childView from './childView.vue';
|
|
28
|
-
import { useRender } from '@utogether/utils';
|
|
29
|
-
// import { useRender } from '../../../utils/udp/useRender';
|
|
30
|
-
|
|
31
|
-
const xgrid = ref(null);
|
|
32
|
-
// const renderOption = useRenderOption();
|
|
33
|
-
|
|
34
|
-
const formItems = [
|
|
35
|
-
{ field: 'dictCode', title: 'message.udp.dictCode' },
|
|
36
|
-
{ field: 'dictName', title: 'message.udp.dictName' },
|
|
37
|
-
{ field: 'dictType', title: 'message.udp.dictType', code: 'SU.DICT.TYPE' }
|
|
38
|
-
];
|
|
39
|
-
|
|
40
|
-
const renderHook = useRender();
|
|
41
|
-
// 列字段
|
|
42
|
-
const columns = [
|
|
43
|
-
{ type: 'checkbox', width: 40, align: 'center' },
|
|
44
|
-
|
|
45
|
-
{
|
|
46
|
-
field: 'dictCode',
|
|
47
|
-
title: 'message.udp.dictCode',
|
|
48
|
-
required: true,
|
|
49
|
-
editRender: renderHook.renderInput()
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
field: 'dictName',
|
|
53
|
-
title: 'message.udp.dictName',
|
|
54
|
-
required: true,
|
|
55
|
-
editRender: renderHook.renderInput()
|
|
56
|
-
},
|
|
57
|
-
// {
|
|
58
|
-
// field: 'userName',
|
|
59
|
-
// width: 300,
|
|
60
|
-
// editRender: renderHook.renderUpload()
|
|
61
|
-
// },
|
|
62
|
-
{
|
|
63
|
-
field: 'dictType',
|
|
64
|
-
title: 'message.udp.dictType',
|
|
65
|
-
required: true,
|
|
66
|
-
editRender: renderHook.renderDict('SU.DICT.TYPE'),
|
|
67
|
-
formatter: ['formatDict', 'SU.DICT.TYPE']
|
|
68
|
-
},
|
|
69
|
-
{ field: 'dictDesc', title: 'message.remark', editRender: renderHook.renderInput() },
|
|
70
|
-
{
|
|
71
|
-
field: 'enabled',
|
|
72
|
-
width: 90,
|
|
73
|
-
editRender: renderHook.renderDict({ code: 'SU.ENABLE', defaultValue: '1' }),
|
|
74
|
-
formatter: ['formatDict', 'SU.ENABLE']
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
field: 'operate',
|
|
78
|
-
width: 80,
|
|
79
|
-
slots: {
|
|
80
|
-
default: ({ row }) => {
|
|
81
|
-
if (!row.id) return null;
|
|
82
|
-
return [<ut-button content="lov" onClick={() => hanldeDipose(row)} />];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
];
|
|
87
|
-
|
|
88
|
-
const shouDrawer = ref(false);
|
|
89
|
-
const record = ref(null);
|
|
90
|
-
const hanldeDipose = row => {
|
|
91
|
-
nextTick(() => {
|
|
92
|
-
shouDrawer.value = true;
|
|
93
|
-
record.value = row;
|
|
94
|
-
record.value.total = row.children?.length;
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
const handleClose = () => {
|
|
98
|
-
xgrid.value.refreshData();
|
|
99
|
-
shouDrawer.value = false;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
const onGridEvents = {
|
|
103
|
-
editActived({ row }) {
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
// function onChange(e) {
|
|
109
|
-
// console.log('onChange', e);
|
|
110
|
-
// }
|
|
111
|
-
// function onFocus(e) {
|
|
112
|
-
// console.log('onFocus', e);
|
|
113
|
-
// }
|
|
114
|
-
|
|
115
|
-
const checkMethod = row => {
|
|
116
|
-
return row.dictType !== '0';
|
|
117
|
-
};
|
|
118
|
-
</script>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-12-23 17:33:21
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-11-13 19:00:06
|
|
6
|
+
* @Description: 数据字典
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<ut-grid
|
|
11
|
+
ref="xgrid"
|
|
12
|
+
:items="formItems"
|
|
13
|
+
:columns="columns"
|
|
14
|
+
:check-method="checkMethod"
|
|
15
|
+
:events="onGridEvents"
|
|
16
|
+
url="/upfm/v1/lov"
|
|
17
|
+
/>
|
|
18
|
+
<child-view v-if="shouDrawer" :show="shouDrawer" :record="record" @onClose="handleClose" />
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script lang="tsx">
|
|
23
|
+
export default { name: 'DictView' };
|
|
24
|
+
</script>
|
|
25
|
+
<script setup lang="tsx">
|
|
26
|
+
import { ref, nextTick } from 'vue';
|
|
27
|
+
import childView from './childView.vue';
|
|
28
|
+
import { useRender } from '@utogether/utils';
|
|
29
|
+
// import { useRender } from '../../../utils/udp/useRender';
|
|
30
|
+
|
|
31
|
+
const xgrid = ref(null);
|
|
32
|
+
// const renderOption = useRenderOption();
|
|
33
|
+
|
|
34
|
+
const formItems = [
|
|
35
|
+
{ field: 'dictCode', title: 'message.udp.dictCode' },
|
|
36
|
+
{ field: 'dictName', title: 'message.udp.dictName' },
|
|
37
|
+
{ field: 'dictType', title: 'message.udp.dictType', code: 'SU.DICT.TYPE' }
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const renderHook = useRender();
|
|
41
|
+
// 列字段
|
|
42
|
+
const columns = [
|
|
43
|
+
{ type: 'checkbox', width: 40, align: 'center' },
|
|
44
|
+
|
|
45
|
+
{
|
|
46
|
+
field: 'dictCode',
|
|
47
|
+
title: 'message.udp.dictCode',
|
|
48
|
+
required: true,
|
|
49
|
+
editRender: renderHook.renderInput()
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
field: 'dictName',
|
|
53
|
+
title: 'message.udp.dictName',
|
|
54
|
+
required: true,
|
|
55
|
+
editRender: renderHook.renderInput()
|
|
56
|
+
},
|
|
57
|
+
// {
|
|
58
|
+
// field: 'userName',
|
|
59
|
+
// width: 300,
|
|
60
|
+
// editRender: renderHook.renderUpload()
|
|
61
|
+
// },
|
|
62
|
+
{
|
|
63
|
+
field: 'dictType',
|
|
64
|
+
title: 'message.udp.dictType',
|
|
65
|
+
required: true,
|
|
66
|
+
editRender: renderHook.renderDict('SU.DICT.TYPE'),
|
|
67
|
+
formatter: ['formatDict', 'SU.DICT.TYPE']
|
|
68
|
+
},
|
|
69
|
+
{ field: 'dictDesc', title: 'message.remark', editRender: renderHook.renderInput() },
|
|
70
|
+
{
|
|
71
|
+
field: 'enabled',
|
|
72
|
+
width: 90,
|
|
73
|
+
editRender: renderHook.renderDict({ code: 'SU.ENABLE', defaultValue: '1' }),
|
|
74
|
+
formatter: ['formatDict', 'SU.ENABLE']
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
field: 'operate',
|
|
78
|
+
width: 80,
|
|
79
|
+
slots: {
|
|
80
|
+
default: ({ row }) => {
|
|
81
|
+
if (!row.id) return null;
|
|
82
|
+
return [<ut-button content="lov" onClick={() => hanldeDipose(row)} />];
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
const shouDrawer = ref(false);
|
|
89
|
+
const record = ref(null);
|
|
90
|
+
const hanldeDipose = row => {
|
|
91
|
+
nextTick(() => {
|
|
92
|
+
shouDrawer.value = true;
|
|
93
|
+
record.value = row;
|
|
94
|
+
record.value.total = row.children?.length;
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
const handleClose = () => {
|
|
98
|
+
xgrid.value.refreshData();
|
|
99
|
+
shouDrawer.value = false;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const onGridEvents = {
|
|
103
|
+
editActived({ row }) {
|
|
104
|
+
columns[1].editRender.props.disabled = !!row.id;
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
// function onChange(e) {
|
|
109
|
+
// console.log('onChange', e);
|
|
110
|
+
// }
|
|
111
|
+
// function onFocus(e) {
|
|
112
|
+
// console.log('onFocus', e);
|
|
113
|
+
// }
|
|
114
|
+
|
|
115
|
+
const checkMethod = row => {
|
|
116
|
+
return row.dictType !== '0';
|
|
117
|
+
};
|
|
118
|
+
</script>
|