@utogether/udp-core 1.0.0 → 1.0.1-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/build/plugins.ts +8 -2
- package/dist/{403-B1R-4vXw.js → 403-BBQoJwTM.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-BbJPSIWM.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-BtFL9R4M.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-DhiwCeLN.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js → AuthorityInfo.vue_vue_type_style_index_0_lang-Duyweh89.js} +3 -3
- package/dist/{AuthorityPanel-BaLMwMgW.js → AuthorityPanel-BeBNiwqc.js} +1 -1
- package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-C_bkqLD9.js → AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js} +6 -6
- package/dist/{Company-CYC9Avfz.js → Company-CGqmslx-.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-hlDsxD-6.js} +10 -10
- package/dist/{Department-B4BNSiYx.js → Department-BZyJtacc.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-D-a_EBFt.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-Bl4luWDV.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-I8C3iGvz.js} +6 -6
- package/dist/{DictView-bIS5-rK-.js → DictView-B4a7Hs1X.js} +9 -9
- package/dist/InvOrganization-q4T3y8dQ.js +260 -0
- package/dist/{Org-kXHSjsgJ.js → Org-BTGTrAVz.js} +3 -3
- package/dist/{Preview-CRyiwUIR.js → Preview-pHD84xqI.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-DnnCNQWS.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-BnI_Q4pg.js} +10 -10
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-Dby2MmtM.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-Blm1N8P1.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CnG_Ybnt.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-D65RXRY_.js} +11 -11
- package/dist/{Role-BwTV2QMH.js → Role-eFZoTpXc.js} +3 -3
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-D9-Y3UNz.js} +3 -3
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-CoUOc3sX.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-DlFw6HSf.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-Clwk-MHw.js} +12 -12
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js → RolePanel.vue_vue_type_script_setup_true_lang-DKHgNWQP.js} +4 -4
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-M2FQJwPU.js} +8 -8
- package/dist/{Staff-Czm7A8vI.js → Staff-DFBLCsAd.js} +3 -3
- package/dist/StaffInfo-d2CK0oBA.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-4m8wK9tq.js} +7 -7
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-D6aWLKN3.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-C7YT2CVb.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-BdZvYxQH.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-BIVa6LLr.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BsBKpYR7.js} +1 -2
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-C-5VKlHK.js} +51 -49
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-DqXCRZts.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-N3TwfpPx.js} +13 -13
- package/dist/{childView-CyuLTUqC.js → childView-B2lSsqS3.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-DRUNqgjI.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-B9XBDDU_.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-oGriyFTv.js} +6 -6
- package/dist/{code-rule-Bz-gnktN.js → code-rule-DZC9T6cl.js} +6 -6
- package/dist/core.es.js +4 -4
- package/dist/{cron-task-CIifSUdW.js → cron-task-BJwPeA5F.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-C6wkvok-.js} +15 -14
- package/dist/index-DZc3qRTx.js +2650 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-CeJBpZb_.js} +658 -653
- package/dist/{login-LREiDfFU.js → login-BOxwzwdB.js} +26 -25
- package/dist/{lov-view-DDrIVILB.js → lov-view-DRF-99U4.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-3Sjvs9nM.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-DrQ560nm.js} +95 -94
- package/dist/pda-app-B9tn7jdv.js +696 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-BqnxbQNe.js} +7 -7
- package/dist/{su-welcome-189A7N4r.js → su-welcome-VwifUK_O.js} +41 -40
- package/dist/{sys-config-BZ3sejow.js → sys-config-C0-gSBFO.js} +18 -18
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-Di1byIum.js} +6 -6
- package/package.json +18 -16
- package/src/App.vue +3 -3
- package/src/components/udp/form-upload.vue +183 -0
- package/src/components/udp/index.ts +4 -0
- package/src/components/udp/modal-form.vue +180 -0
- package/src/components/udp/utils.ts +40 -0
- package/src/main.ts +109 -108
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +604 -184
- package/src/utils/udp/useRender.ts +420 -0
- package/src/views/organization/inv-org/InvOrganization.vue +2 -1
- package/src/views/organization/staff/StaffInfo.vue +0 -30
- package/src/views/organization/staff/StaffPanel.vue +4 -3
- package/src/views/system/menu/AuthorityPanel.vue +2 -2
- package/src/views/system/menu/SystemMenu.vue +197 -191
- package/src/views/system/menu/menuInfo.vue +11 -6
- package/src/views/system/role/AuthorityInfo.vue +1 -19
- package/src/views/system/sysUser/SysUserPanel.vue +1 -1
- package/src/views/udev/dict/DictView.vue +2 -2
- package/src/views/uhome/components/menu-favorite.vue +1 -1
- package/src/views/uhome/su-welcome.vue +1 -1
- package/src/views/ulogin/login.vue +1 -1
- package/types/global.d.ts +0 -1
- package/vite.config.ts +9 -2
- package/dist/InvOrganization-MuM2jtsG.js +0 -66
- package/dist/StaffInfo-DJzvBuxy.js +0 -4
- package/dist/core.umd.js +0 -173
- package/dist/index-BKIw8tSn.js +0 -9195
- package/dist/pda-app-CRhVGijN.js +0 -2209
- package/dist/redirect-DiaNDu8F.js +0 -15
- package/src/assets/images/empty.png +0 -0
- package/src/assets/images/logo.png +0 -0
- package/src/components/ReCountTo/README.md +0 -2
- package/src/components/ReCountTo/index.ts +0 -18
- package/src/components/ReCountTo/src/normal/index.tsx +0 -165
- package/src/components/ReCountTo/src/normal/props.ts +0 -37
- package/src/components/ReCountTo/src/rebound/index.tsx +0 -67
- package/src/components/ReCountTo/src/rebound/props.ts +0 -14
- package/src/components/ReCountTo/src/rebound/rebound.css +0 -77
- package/src/components/ReCropper/index.ts +0 -14
- package/src/components/ReCropper/src/index.tsx +0 -141
- package/src/components/ReFlicker/index.css +0 -39
- package/src/components/ReFlicker/index.ts +0 -50
- package/src/components/ReFlop/index.ts +0 -14
- package/src/components/ReFlop/src/Filpper.tsx +0 -99
- package/src/components/ReFlop/src/filpper.css +0 -184
- package/src/components/ReFlop/src/index.vue +0 -126
- package/src/components/ReFlowChart/index.ts +0 -24
- package/src/components/ReFlowChart/src/Control.vue +0 -139
- package/src/components/ReFlowChart/src/DataDialog.vue +0 -12
- package/src/components/ReFlowChart/src/NodePanel.vue +0 -151
- package/src/components/ReFlowChart/src/adpterForTurbo.ts +0 -160
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.css +0 -49
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.eot +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.js +0 -61
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.json +0 -58
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.svg +0 -47
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.ttf +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff +0 -0
- package/src/components/ReFlowChart/src/assets/iconfont/iconfont.woff2 +0 -0
- package/src/components/ReFlowChart/src/config.ts +0 -62
- package/src/components/ReSplitPane/index.css +0 -49
- package/src/components/ReSplitPane/index.tsx +0 -119
- package/src/components/ReSplitPane/resizer.css +0 -45
- package/src/components/ReSplitPane/resizer.tsx +0 -30
- package/src/components/SuCommon/card/components/Card.vue +0 -148
- package/src/components/SuCommon/card/components/DialogForm.vue +0 -127
- package/src/components/SuCommon/card/index.vue +0 -142
- package/src/components/SuCommon/icon-select/index.vue +0 -241
- package/src/components/SuCommon/table/index.vue +0 -208
- package/src/components/SuCommon/utils/index.ts +0 -103
- package/src/components/SuCommon/utils/slot.tsx +0 -50
- package/src/views/components/contextmenu/basic.vue +0 -74
- package/src/views/components/contextmenu/context-menu.vue +0 -40
- package/src/views/components/contextmenu/menuDynamic.vue +0 -99
- package/src/views/components/contextmenu/menuGroup.vue +0 -71
- package/src/views/components/count-to/index.vue +0 -43
- package/src/views/components/cropping/index.vue +0 -59
- package/src/views/components/cropping/picture.jpeg +0 -0
- package/src/views/components/split-pane/index.vue +0 -82
- package/src/views/components/video/index.vue +0 -57
|
@@ -1,191 +1,197 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-content">
|
|
3
|
-
<ut-grid
|
|
4
|
-
ref="xgrid"
|
|
5
|
-
:tree-config="{
|
|
6
|
-
childrenField: 'children',
|
|
7
|
-
lazy: true,
|
|
8
|
-
hasChild: 'hasChildren',
|
|
9
|
-
loadMethod: loadChildrenMethod,
|
|
10
|
-
iconOpen: 'ri-checkbox-indeterminate-line ri-lg',
|
|
11
|
-
iconClose: 'ri-add-box-line ri-lg'
|
|
12
|
-
}"
|
|
13
|
-
:columns="columns"
|
|
14
|
-
:url="url"
|
|
15
|
-
:stripe="false"
|
|
16
|
-
mode="form"
|
|
17
|
-
@toolbarButtonClick="handleToolClick"
|
|
18
|
-
/>
|
|
19
|
-
<MenuInfo
|
|
20
|
-
:show="data.showDrawer"
|
|
21
|
-
:record="data.record"
|
|
22
|
-
:data-status="data.dataStatus"
|
|
23
|
-
@
|
|
24
|
-
/>
|
|
25
|
-
<AuthorityPanel :show="data.showAuthority" :record="data.record" @
|
|
26
|
-
</div>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script lang="tsx">
|
|
30
|
-
export default { name: 'SystemMenu' };
|
|
31
|
-
</script>
|
|
32
|
-
<script setup lang="tsx">
|
|
33
|
-
import { useI18n } from 'vue-i18n';
|
|
34
|
-
import { ref, reactive } from 'vue';
|
|
35
|
-
import MenuInfo from './menuInfo.vue';
|
|
36
|
-
import AuthorityPanel from './AuthorityPanel.vue';
|
|
37
|
-
import { clone } from 'xe-utils';
|
|
38
|
-
import to from 'await-to-js';
|
|
39
|
-
import { VxeUI } from 'vxe-pc-ui';
|
|
40
|
-
import { useRender } from '@utogether/utils';
|
|
41
|
-
import { getServiceApi } from '../../../api';
|
|
42
|
-
|
|
43
|
-
const data = reactive<IRecord>({
|
|
44
|
-
record: {},
|
|
45
|
-
dataList: [],
|
|
46
|
-
submitLoading: false,
|
|
47
|
-
showDrawer: false,
|
|
48
|
-
dataStatus: '',
|
|
49
|
-
total: 0,
|
|
50
|
-
listQuery: {
|
|
51
|
-
pageSize: 10,
|
|
52
|
-
pageNum: 1
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
const { t } = useI18n();
|
|
57
|
-
|
|
58
|
-
const renderHook = useRender();
|
|
59
|
-
|
|
60
|
-
const serviceApi = getServiceApi();
|
|
61
|
-
|
|
62
|
-
const xgrid = ref(null);
|
|
63
|
-
|
|
64
|
-
const url = '/uums/menu';
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
{
|
|
72
|
-
{ field: '
|
|
73
|
-
{ field: '
|
|
74
|
-
{ field: '
|
|
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
|
-
// data.
|
|
125
|
-
//
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
//
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
data.
|
|
147
|
-
data.
|
|
148
|
-
|
|
149
|
-
data.record.
|
|
150
|
-
data.record.
|
|
151
|
-
data.record.
|
|
152
|
-
data.record.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
//
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
data.record =
|
|
188
|
-
data.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="page-content">
|
|
3
|
+
<ut-grid
|
|
4
|
+
ref="xgrid"
|
|
5
|
+
:tree-config="{
|
|
6
|
+
childrenField: 'children',
|
|
7
|
+
lazy: true,
|
|
8
|
+
hasChild: 'hasChildren',
|
|
9
|
+
loadMethod: loadChildrenMethod,
|
|
10
|
+
iconOpen: 'ri-checkbox-indeterminate-line ri-lg',
|
|
11
|
+
iconClose: 'ri-add-box-line ri-lg'
|
|
12
|
+
}"
|
|
13
|
+
:columns="columns"
|
|
14
|
+
:url="url"
|
|
15
|
+
:stripe="false"
|
|
16
|
+
mode="form"
|
|
17
|
+
@toolbarButtonClick="handleToolClick"
|
|
18
|
+
/>
|
|
19
|
+
<MenuInfo
|
|
20
|
+
:show="data.showDrawer"
|
|
21
|
+
:record="data.record"
|
|
22
|
+
:data-status="data.dataStatus"
|
|
23
|
+
@close="onClose"
|
|
24
|
+
/>
|
|
25
|
+
<AuthorityPanel :show="data.showAuthority" :record="data.record" @close="onClose" />
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script lang="tsx">
|
|
30
|
+
export default { name: 'SystemMenu' };
|
|
31
|
+
</script>
|
|
32
|
+
<script setup lang="tsx">
|
|
33
|
+
import { useI18n } from 'vue-i18n';
|
|
34
|
+
import { ref, reactive } from 'vue';
|
|
35
|
+
import MenuInfo from './menuInfo.vue';
|
|
36
|
+
import AuthorityPanel from './AuthorityPanel.vue';
|
|
37
|
+
import { clone } from 'xe-utils';
|
|
38
|
+
import to from 'await-to-js';
|
|
39
|
+
import { VxeUI } from 'vxe-pc-ui';
|
|
40
|
+
import { useRender } from '@utogether/utils';
|
|
41
|
+
import { getServiceApi } from '../../../api';
|
|
42
|
+
|
|
43
|
+
const data = reactive<IRecord>({
|
|
44
|
+
record: {},
|
|
45
|
+
dataList: [],
|
|
46
|
+
submitLoading: false,
|
|
47
|
+
showDrawer: false,
|
|
48
|
+
dataStatus: '',
|
|
49
|
+
total: 0,
|
|
50
|
+
listQuery: {
|
|
51
|
+
pageSize: 10,
|
|
52
|
+
pageNum: 1
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
const { t } = useI18n();
|
|
57
|
+
|
|
58
|
+
const renderHook = useRender();
|
|
59
|
+
|
|
60
|
+
const serviceApi = getServiceApi();
|
|
61
|
+
|
|
62
|
+
const xgrid = ref(null);
|
|
63
|
+
|
|
64
|
+
const url = '/uums/menu';
|
|
65
|
+
|
|
66
|
+
let row;
|
|
67
|
+
|
|
68
|
+
// const buttons = [{ code: 'add', status: 'u-cyan', icon: 'plus', auth: 'add' }];
|
|
69
|
+
|
|
70
|
+
const columns = [
|
|
71
|
+
{ type: 'checkbox', width: 50, align: 'center' },
|
|
72
|
+
{ field: 'menuName', width: 180, treeNode: true },
|
|
73
|
+
{ field: 'menuNameEn', width: 140 },
|
|
74
|
+
{ field: 'sort', width: 70 },
|
|
75
|
+
{ field: 'menuCode', width: 140 },
|
|
76
|
+
{ field: 'permissionCode', minWidth: 180 },
|
|
77
|
+
{
|
|
78
|
+
field: 'menuCategory',
|
|
79
|
+
title: 'message.menuType',
|
|
80
|
+
formatter: ['formatDict', 'SU.MENU.TYPE'],
|
|
81
|
+
width: 100
|
|
82
|
+
},
|
|
83
|
+
{ field: 'enabled', width: 80, cellRender: renderHook.renderEnabled(handleUpdate) },
|
|
84
|
+
{
|
|
85
|
+
field: 'operate',
|
|
86
|
+
width: 140,
|
|
87
|
+
fixed: 'right',
|
|
88
|
+
slots: {
|
|
89
|
+
default: ({ row }) => {
|
|
90
|
+
const type = row.menuType;
|
|
91
|
+
const addCmp = (
|
|
92
|
+
<ut-button status="u-cyan" icon="ri-add-fill" content="add" onTap={() => handleAdd(row)} />
|
|
93
|
+
);
|
|
94
|
+
const authCmp = (
|
|
95
|
+
<ut-button icon="ri-lock-fill" content="auth" onTap={() => handleAuthorityPanel(row)} />
|
|
96
|
+
);
|
|
97
|
+
return [
|
|
98
|
+
<>
|
|
99
|
+
{!type ? (
|
|
100
|
+
<>
|
|
101
|
+
<ut-button
|
|
102
|
+
status="success"
|
|
103
|
+
icon="ri-edit-box-line"
|
|
104
|
+
content="edit"
|
|
105
|
+
onTap={() => handleEdit(row)}
|
|
106
|
+
/>
|
|
107
|
+
{['0', '5'].includes(row.menuCategory) ? addCmp : authCmp}
|
|
108
|
+
</>
|
|
109
|
+
) : null}
|
|
110
|
+
</>
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
];
|
|
116
|
+
|
|
117
|
+
// const resetListQuery = () => {
|
|
118
|
+
// data.listQuery.pageSize = 99;
|
|
119
|
+
// data.listQuery.pageNum = 1;
|
|
120
|
+
// getDataList();
|
|
121
|
+
// };
|
|
122
|
+
|
|
123
|
+
// const getDataList = async () => {
|
|
124
|
+
// const res = (await serviceApi('sys/listMenus', data.listQuery)) as IResponseData;
|
|
125
|
+
// data.dataList = res.list;
|
|
126
|
+
// data.total = res.total;
|
|
127
|
+
// };
|
|
128
|
+
|
|
129
|
+
const handleToolClick = ({ code }) => {
|
|
130
|
+
code === 'add' && handleAdd();
|
|
131
|
+
code === 'del' && handleDel();
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
// 异步加载子节点
|
|
135
|
+
const loadChildrenMethod = async ({ row }: any) => {
|
|
136
|
+
const data = (await serviceApi.get(url, { parentId: row.id })) as IResponseData;
|
|
137
|
+
return new Promise(resolve => {
|
|
138
|
+
resolve(data.list);
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
// 新增子类型
|
|
143
|
+
// menuType:保持原有不懂, 0:菜单 1,数据权限
|
|
144
|
+
// 新增menuCategory: 0、根目录 1、菜单 2、内部链接3、外部链接
|
|
145
|
+
const handleAdd = (record?: IRecord) => {
|
|
146
|
+
data.showDrawer = true;
|
|
147
|
+
data.dataStatus = 'add';
|
|
148
|
+
data.record.dispalyCode = record?.permissionCode; // 前缀
|
|
149
|
+
data.record.permissionCode = record?.permissionCode;
|
|
150
|
+
// data.record.menuType = !record || !record.parentId ? '0' : '1';
|
|
151
|
+
data.record.menuType = '0';
|
|
152
|
+
data.record.menuCategory = !record ? '0' : '';
|
|
153
|
+
data.record.parentId = record?.id;
|
|
154
|
+
data.record.hasChildren = record?.hasChildren;
|
|
155
|
+
data.record.children = data.record.children || [];
|
|
156
|
+
console.log(data.record);
|
|
157
|
+
row = record;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
// 编辑
|
|
161
|
+
const handleEdit = (record: IRecord) => {
|
|
162
|
+
data.showDrawer = true;
|
|
163
|
+
data.dataStatus = 'update';
|
|
164
|
+
data.record = clone(record, true);
|
|
165
|
+
data.record.menuType = data.record.menuType.toString();
|
|
166
|
+
data.record.dispalyCode = record.permissionCode;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// 启用/禁用
|
|
170
|
+
async function handleUpdate({ row }) {
|
|
171
|
+
await serviceApi.put(url, [row]);
|
|
172
|
+
xgrid.value.refreshData();
|
|
173
|
+
}
|
|
174
|
+
// 删除
|
|
175
|
+
const handleDel = async () => {
|
|
176
|
+
const type = await VxeUI.modal.confirm(t('message.delRecord'));
|
|
177
|
+
const records = xgrid.value.getInstance().getCheckboxRecords();
|
|
178
|
+
if (type === 'confirm') {
|
|
179
|
+
const [err] = await to(serviceApi.delete(url, records));
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
const handleAuthorityPanel = record => {
|
|
184
|
+
data.showAuthority = true;
|
|
185
|
+
data.dataStatus = 'update';
|
|
186
|
+
data.record = clone(record, true);
|
|
187
|
+
data.record.menuType = data.record.menuType.toString();
|
|
188
|
+
data.record.dispalyCode = record.permissionCode;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
const onClose = (type?, record?) => {
|
|
192
|
+
type === 'submit' && row && xgrid.value.getInstance().reloadTreeExpand(row || record);
|
|
193
|
+
data.record = {};
|
|
194
|
+
data.showDrawer = false;
|
|
195
|
+
data.showAuthority = false;
|
|
196
|
+
};
|
|
197
|
+
</script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-11-17 16:44:08
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-07-17 18:47:22
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
|
|
@@ -242,7 +242,7 @@ const authority = ref(['fetch']);
|
|
|
242
242
|
const url = '/uums/menu';
|
|
243
243
|
|
|
244
244
|
const emit = defineEmits<{
|
|
245
|
-
(e: '
|
|
245
|
+
(e: 'close', type, data?): void;
|
|
246
246
|
}>();
|
|
247
247
|
|
|
248
248
|
const getPrefixCode = () => {
|
|
@@ -261,6 +261,7 @@ const onSubmit = () => {
|
|
|
261
261
|
xForm.value.validate(async valid => {
|
|
262
262
|
if (!valid) {
|
|
263
263
|
loading.value = true;
|
|
264
|
+
let resData;
|
|
264
265
|
const { record, dataStatus } = props;
|
|
265
266
|
if (dataStatus === 'add') {
|
|
266
267
|
record.permissionCode = `${prefixCode.value}.${record.dispalyCode}`;
|
|
@@ -276,14 +277,18 @@ const onSubmit = () => {
|
|
|
276
277
|
sort: (idx + 1) * 10
|
|
277
278
|
};
|
|
278
279
|
});
|
|
279
|
-
await to(serviceApi.post(url, dataList));
|
|
280
|
+
const [err, res] = await to(serviceApi.post(url, dataList));
|
|
281
|
+
if (!err) {
|
|
282
|
+
// props.record.children.push(...res);
|
|
283
|
+
resData = res[0];
|
|
284
|
+
}
|
|
280
285
|
}
|
|
281
286
|
loading.value = false;
|
|
282
287
|
} else {
|
|
283
288
|
await to(serviceApi.put(url, [record]));
|
|
284
289
|
loading.value = false;
|
|
285
290
|
}
|
|
286
|
-
handleClose('submit');
|
|
291
|
+
handleClose('submit', resData);
|
|
287
292
|
}
|
|
288
293
|
});
|
|
289
294
|
};
|
|
@@ -304,8 +309,8 @@ const getLovList = code => {
|
|
|
304
309
|
});
|
|
305
310
|
};
|
|
306
311
|
// 抽屉关闭
|
|
307
|
-
function handleClose(type) {
|
|
308
|
-
emit('
|
|
312
|
+
function handleClose(type, data) {
|
|
313
|
+
emit('close', type, data);
|
|
309
314
|
}
|
|
310
315
|
</script>
|
|
311
316
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-11-22 19:50:48
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-07-14 14:58:13
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
|
|
@@ -113,24 +113,6 @@ onBeforeMount(() => {
|
|
|
113
113
|
</script>
|
|
114
114
|
|
|
115
115
|
<style lang="scss">
|
|
116
|
-
.u-menu-prefix.vxe-input {
|
|
117
|
-
height: 34px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.u-menu-prefix.vxe-input .vxe-input--prefix {
|
|
121
|
-
top: 1px;
|
|
122
|
-
width: 150px;
|
|
123
|
-
height: 32px;
|
|
124
|
-
text-align: center;
|
|
125
|
-
background-color: #f5f7fa;
|
|
126
|
-
border-right: 1px solid #dcdfe6;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.u-menu-prefix.vxe-input .vxe-input--inner {
|
|
130
|
-
padding-left: 160px;
|
|
131
|
-
border: 1px solid #dcdfe6;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
116
|
.my-dropdown2 {
|
|
135
117
|
background-color: #fff;
|
|
136
118
|
border: 1px solid #dcdfe6;
|
|
@@ -265,7 +265,7 @@ const getUnitList = () => {
|
|
|
265
265
|
serviceApi
|
|
266
266
|
.get('/uums/unit', { pageSize: 10 })
|
|
267
267
|
.then(res => {
|
|
268
|
-
paramExt.value = { unitId: res[0].id,
|
|
268
|
+
paramExt.value = { unitId: res[0].id, enabled: '1' };
|
|
269
269
|
})
|
|
270
270
|
.catch(() => {
|
|
271
271
|
errorMessage('获取租户失败,刷新后重试');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-12-23 17:33:21
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-07-16 15:26:43
|
|
6
6
|
* @Description: 数据字典
|
|
7
7
|
-->
|
|
8
8
|
<template>
|
|
@@ -47,7 +47,7 @@ const columns = [
|
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
field: 'dictName',
|
|
50
|
-
title: 'message.udp.
|
|
50
|
+
title: 'message.udp.dictName',
|
|
51
51
|
required: true,
|
|
52
52
|
editRender: renderHook.renderInput()
|
|
53
53
|
},
|
|
@@ -160,7 +160,7 @@ const loading = ref(false);
|
|
|
160
160
|
const checkboxModel = ref<IRecord>({});
|
|
161
161
|
// const cacheCheckModel = {}; // 缓存最初选中的数据
|
|
162
162
|
|
|
163
|
-
const url = '/
|
|
163
|
+
const url = '/upfm/v1/menuFavority';
|
|
164
164
|
|
|
165
165
|
const getCacheMenuList = async () => {
|
|
166
166
|
menuList.value = await dbstorage.getItem(`U-${props.userName}-ROUTES`);
|
|
@@ -215,7 +215,7 @@ const getLunarDay = () => {
|
|
|
215
215
|
|
|
216
216
|
/** 查询收藏菜单功能 */
|
|
217
217
|
const getMenuList = () => {
|
|
218
|
-
const url = '/
|
|
218
|
+
const url = '/upfm/v1/menuFavority';
|
|
219
219
|
loading.value = true;
|
|
220
220
|
const query = { pageSize: 20, pageNum: 1, userName: cookies.get(kLOGINER) };
|
|
221
221
|
getServiceApi()
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
SHENZHEN U-TOGETHER CO. LTD
|
|
95
95
|
</a>
|
|
96
96
|
</span>
|
|
97
|
-
<span class="flex items-center text-white" style="width:
|
|
97
|
+
<span class="flex items-center text-white" style="width: 75px; font-size: 10px">技术支持</span>
|
|
98
98
|
</span>
|
|
99
99
|
</div>
|
|
100
100
|
</div>
|
package/types/global.d.ts
CHANGED
package/vite.config.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: wei.li
|
|
3
3
|
* @Date: 2021-12-23 17:33:21
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-07-16 17:59:59
|
|
6
6
|
* @Description: file content
|
|
7
7
|
*/
|
|
8
8
|
import { resolve } from 'path';
|
|
@@ -60,11 +60,18 @@ export default () => {
|
|
|
60
60
|
'@logicflow/extension',
|
|
61
61
|
'remixicon',
|
|
62
62
|
'socket.io-client',
|
|
63
|
-
'crypto-js'
|
|
63
|
+
'crypto-js',
|
|
64
|
+
'version-rocket',
|
|
65
|
+
'vue-tippy',
|
|
66
|
+
'vue-router',
|
|
67
|
+
'@iconify/vue',
|
|
68
|
+
'qrcode',
|
|
69
|
+
'element-resize-detector'
|
|
64
70
|
]
|
|
65
71
|
},
|
|
66
72
|
lib: {
|
|
67
73
|
entry: resolve(__dirname, 'index.ts'),
|
|
74
|
+
formats: ['es'],
|
|
68
75
|
name: '@utogether/udp-core',
|
|
69
76
|
fileName: format => `core.${format}.js`
|
|
70
77
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, ref as s, reactive as m, resolveComponent as f, createBlock as p, openBlock as g } from "vue";
|
|
2
|
-
import { t as _ } from "./await-to-js.es5-BtRbN2QH.js";
|
|
3
|
-
import { useRender as h } from "@utogether/utils";
|
|
4
|
-
import { w as z } from "./index-BKIw8tSn.js";
|
|
5
|
-
const k = {
|
|
6
|
-
name: "InvOrganization"
|
|
7
|
-
}, R = /* @__PURE__ */ u({
|
|
8
|
-
...k,
|
|
9
|
-
setup(w) {
|
|
10
|
-
const r = "/uums/cusOrganization", n = s(null), e = h(), i = [{
|
|
11
|
-
field: "organizationCode"
|
|
12
|
-
}, {
|
|
13
|
-
field: "organizationName"
|
|
14
|
-
}], d = [{
|
|
15
|
-
type: "checkbox",
|
|
16
|
-
width: 40,
|
|
17
|
-
align: "center"
|
|
18
|
-
}, {
|
|
19
|
-
field: "organizationCode",
|
|
20
|
-
width: 120,
|
|
21
|
-
required: !0,
|
|
22
|
-
editRender: e.renderInput()
|
|
23
|
-
}, {
|
|
24
|
-
field: "organizationName",
|
|
25
|
-
minWidth: 120,
|
|
26
|
-
required: !0,
|
|
27
|
-
editRender: e.renderInput()
|
|
28
|
-
}, {
|
|
29
|
-
field: "orgName",
|
|
30
|
-
minWidth: 170,
|
|
31
|
-
required: !0,
|
|
32
|
-
editRender: e.renderBU()
|
|
33
|
-
}, {
|
|
34
|
-
field: "orgCode",
|
|
35
|
-
width: 110
|
|
36
|
-
}, {
|
|
37
|
-
field: "enabled",
|
|
38
|
-
width: 80,
|
|
39
|
-
cellRender: e.renderEnabled(a)
|
|
40
|
-
}];
|
|
41
|
-
async function a(t) {
|
|
42
|
-
const [o] = await _(z().put(r, [t]));
|
|
43
|
-
!o && n.value.refreshData();
|
|
44
|
-
}
|
|
45
|
-
const c = m({
|
|
46
|
-
columns: d
|
|
47
|
-
});
|
|
48
|
-
return (t, o) => {
|
|
49
|
-
const l = f("ut-grid");
|
|
50
|
-
return g(), p(l, {
|
|
51
|
-
ref_key: "xgrid",
|
|
52
|
-
ref: n,
|
|
53
|
-
items: i,
|
|
54
|
-
"default-params": {
|
|
55
|
-
organizationId: "",
|
|
56
|
-
orgId: ""
|
|
57
|
-
},
|
|
58
|
-
columns: c.columns,
|
|
59
|
-
url: r
|
|
60
|
-
}, null, 8, ["columns"]);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
export {
|
|
65
|
-
R as default
|
|
66
|
-
};
|