@utogether/udp-core 1.0.1-beta.24 → 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-Dzcgpvp0.js → 403-CcK3Z1Ut.js} +1 -1
- package/dist/{404-BMtUBfzS.js → 404-Bo_CvpAq.js} +1 -1
- package/dist/{500-BM0zxG1M.js → 500-D_PHJmAt.js} +1 -1
- package/dist/{AuthorityInfo-BmsB4SqO.js → AuthorityInfo-BNyWnjft.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CKcQbO7T.js → AuthorityInfo.vue_vue_type_style_index_0_lang-KAsR77o2.js} +1 -1
- package/dist/{Company-CwUC57TC.js → Company-CDWGarmp.js} +3 -3
- package/dist/{CompanyPanel-BAmnU8nv.js → CompanyPanel-CCaP8Akz.js} +1 -1
- package/dist/{Department-BsXoz3BD.js → Department-DKtHXR1d.js} +3 -3
- package/dist/{DepartmentPanel-78TnO9Tu.js → DepartmentPanel-ClhzUdEf.js} +1 -1
- package/dist/{DesignPanel-CSL9uUNR.js → DesignPanel-C07pQw5N.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-CZrUHBBj.js → DesignPanel.vue_vue_type_style_index_0_lang-Bs3tVdcr.js} +2 -2
- package/dist/{DictView-BKqfJuJq.js → DictView-BoSLIZQg.js} +16 -15
- package/dist/{InvOrganization-2gn2zpSK.js → InvOrganization-DLU5itCw.js} +1 -1
- package/dist/{Org-C_08akFc.js → Org-CsD3SR_w.js} +1 -1
- package/dist/{Preview-CffizoOK.js → Preview-CX4fXxW0.js} +1 -1
- package/dist/{ReportDefine-BmBcBFey.js → ReportDefine-BwBNr_Oc.js} +1 -1
- package/dist/{ReportDesign-Dw5AZl_M.js → ReportDesign-Cv2Bwvye.js} +2 -2
- package/dist/{ReportQuery-B4LyGqtT.js → ReportQuery-B2uzUNww.js} +1 -1
- package/dist/{ReportQueryFrom-oBS0ClDQ.js → ReportQueryFrom-DYfXC2UY.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DvayIk8Y.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BpmudBiL.js} +1 -1
- package/dist/{ReportTemplate-CNcUhJRf.js → ReportTemplate-CJo-42IC.js} +1 -1
- package/dist/{Role-RUCpeqPj.js → Role-bB1Q6Yha.js} +3 -3
- package/dist/{RoleAssign-DYidK2md.js → RoleAssign-Drw5pVP3.js} +3 -3
- package/dist/{RolePanel-BrtpMF69.js → RolePanel--YCIdOp8.js} +1 -1
- package/dist/{RolePanel-BQuKAefI.js → RolePanel-BDADA7Ki.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CrzUrpzJ.js → RolePanel.vue_vue_type_script_setup_true_lang-BqLVxcz-.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-FAOBa5ds.js → RolePanel.vue_vue_type_script_setup_true_lang-CEJmE7mg.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CmhAWJD4.js → ScrollPanel.vue_vue_type_style_index_0_lang-C_sqOcvc.js} +1 -1
- package/dist/{Staff-MnxrATUB.js → Staff-CM_RZn0q.js} +3 -3
- package/dist/{StaffInfo-CXNLmE3w.js → StaffInfo-BQowR-hf.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-AsAikm4v.js → StaffInfo.vue_vue_type_script_setup_true_lang-unmZZb3r.js} +1 -1
- package/dist/{StaffPanel-BdhcAqQL.js → StaffPanel-BYeVwLCJ.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B51ElICg.js → StaffPanel.vue_vue_type_script_setup_true_lang-D5Z7wC3G.js} +2 -2
- package/dist/{SysUser-Dh70yuNE.js → SysUser-gQkVBVRy.js} +2 -2
- package/dist/{SysUserPanel-DimcWXi5.js → SysUserPanel--NpQuDi_.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-5U-oqRaF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-Dp2-Jj5B.js} +1 -1
- package/dist/{SystemMenu-CH04ZC4Q.js → SystemMenu-_iRBXuJt.js} +2 -2
- package/dist/{UserInfo--5jFxyNg.js → UserInfo-FenstLY2.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BpS2JUoM.js → UserInfo.vue_vue_type_style_index_0_lang-F1VcEy9W.js} +1 -1
- package/dist/{childView-1QhOOcjT.js → childView-C1S10Kzx.js} +1 -1
- package/dist/{childView-q4jq8JUU.js → childView-Cl20RURS.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-_9frXYVo.js → childView.vue_vue_type_style_index_0_lang-CvXI-jWg.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-C1_CKaiz.js → childView.vue_vue_type_style_index_0_lang-PkzzLPiF.js} +1 -1
- package/dist/{code-rule-Cmc-zh3P.js → code-rule-DcLQh0J2.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-BJC8dKFZ.js → cron-task-DSTiWf2H.js} +1 -1
- package/dist/{frameView-rRbSPmqe.js → frameView-BgULY6HL.js} +1 -1
- package/dist/index-CicLR1aC.js +2902 -0
- package/dist/{layoutView-C5aVJcOn.js → layoutView-CM8KvOD7.js} +1 -1
- package/dist/{login-DGj6zzD2.js → login-Cn3mQTZK.js} +1 -1
- package/dist/{lov-view-CDYHJIbU.js → lov-view-Cb9MBjDA.js} +2 -2
- package/dist/{menuInfo-N2mUoR6P.js → menuInfo-DLMBNk6i.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Y7Jg-MZO.js → menuInfo.vue_vue_type_style_index_0_lang-Ca1mQxmJ.js} +1 -1
- package/dist/{pda-app-D0g-Ygcq.js → pda-app-BEMzxuBJ.js} +1 -1
- package/dist/{resource-DPW5r_7h.js → resource-BhHMd7QC.js} +1 -1
- package/dist/{su-welcome-GWIgWj_m.js → su-welcome-BYm1CMJ2.js} +1 -1
- package/dist/{sys-config-DwaGsVVu.js → sys-config-B3OKaUem.js} +1 -1
- package/dist/udp-core.css +1 -1
- package/package.json +3 -3
- package/src/main.ts +20 -20
- package/src/views/udev/dict/DictView.vue +118 -118
- package/dist/index-CU7HTsRe.js +0 -6497
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@utogether/udp-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.1-beta.
|
|
4
|
+
"version": "1.0.1-beta.25",
|
|
5
5
|
"description": "",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"main1": "index.ts",
|
|
8
|
+
"main": "dist/core.es.js",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"dev": "vite",
|
|
11
11
|
"build": "vite build",
|
package/src/main.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: levi7754 levi7754@163.com
|
|
3
3
|
* @Date: 2025-07-25 13:38:20
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-11-14 10:52:54
|
|
6
6
|
* @FilePath: \udp-front\packages\udp-core\src\main.ts
|
|
7
7
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
8
8
|
*/
|
|
@@ -32,23 +32,23 @@ import './style/index.scss';
|
|
|
32
32
|
|
|
33
33
|
// import SuTable from './components/SuTable/SuTable.vue';
|
|
34
34
|
|
|
35
|
-
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} from './components/udp';
|
|
35
|
+
// import {
|
|
36
|
+
// UtButton,
|
|
37
|
+
// utLov2,
|
|
38
|
+
// UGrid,
|
|
39
|
+
// UtDivider,
|
|
40
|
+
// UtModalForm2
|
|
41
|
+
// FormUpload2,
|
|
42
|
+
// UtForm2,
|
|
43
|
+
// UtGrid2
|
|
44
|
+
// UtContent2,
|
|
45
|
+
// UtStampBadge2
|
|
46
|
+
// UtModalGrid2
|
|
47
|
+
// UtUpload2
|
|
48
|
+
// UtIconSelect,
|
|
49
|
+
// UtCalendar
|
|
50
|
+
// uAttachment
|
|
51
|
+
// } from './components/udp';
|
|
52
52
|
|
|
53
53
|
const app = createApp(App);
|
|
54
54
|
|
|
@@ -93,8 +93,8 @@ const init = ({ router, config, lang, views, env, tableConfig }) => {
|
|
|
93
93
|
// app.component('uAttachment', uAttachment).component('UGrid', UGrid);
|
|
94
94
|
// .component('UtDivider', UtDivider)
|
|
95
95
|
// app.component('UtModalForm2', UtModalForm2);
|
|
96
|
-
app.component('UtGrid2', UtGrid2);
|
|
97
|
-
app.component('UtForm2', UtForm2);
|
|
96
|
+
// app.component('UtGrid2', UtGrid2);
|
|
97
|
+
// app.component('UtForm2', UtForm2);
|
|
98
98
|
// app.component('UtModalGrid2', UtModalGrid2);
|
|
99
99
|
// .component('UtIconSelect', UtIconSelect)
|
|
100
100
|
// app.component('FormUpload2', FormUpload2);
|
|
@@ -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>
|