@utogether/udp-core 1.0.1-beta.24 → 1.0.1-beta.26
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-CRaWlpO4.js} +1 -1
- package/dist/{404-BMtUBfzS.js → 404-CO17saLh.js} +1 -1
- package/dist/{500-BM0zxG1M.js → 500-CZSo9D7b.js} +1 -1
- package/dist/{AuthorityInfo-BmsB4SqO.js → AuthorityInfo-B5CBOT-E.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-CKcQbO7T.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BAUfnndO.js} +1 -1
- package/dist/{Company-CwUC57TC.js → Company-DyulR9z3.js} +3 -3
- package/dist/{CompanyPanel-BAmnU8nv.js → CompanyPanel-B1FObbfo.js} +1 -1
- package/dist/{Department-BsXoz3BD.js → Department-BwqHGgU6.js} +3 -3
- package/dist/{DepartmentPanel-78TnO9Tu.js → DepartmentPanel-BdSArfIb.js} +1 -1
- package/dist/{DesignPanel-CSL9uUNR.js → DesignPanel-CM7POFYL.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-CZrUHBBj.js → DesignPanel.vue_vue_type_style_index_0_lang-L2wuXnfS.js} +2 -2
- package/dist/{DictView-BKqfJuJq.js → DictView-Cz1HXcLI.js} +16 -15
- package/dist/{InvOrganization-2gn2zpSK.js → InvOrganization-B570Y7CZ.js} +1 -1
- package/dist/{Org-C_08akFc.js → Org-4_PyJCn0.js} +1 -1
- package/dist/{Preview-CffizoOK.js → Preview-QgpTybOh.js} +1 -1
- package/dist/{ReportDefine-BmBcBFey.js → ReportDefine-BCqCBlDX.js} +1 -1
- package/dist/{ReportDesign-Dw5AZl_M.js → ReportDesign-BjxuRAVL.js} +2 -2
- package/dist/{ReportQuery-B4LyGqtT.js → ReportQuery-CEKmzHT5.js} +1 -1
- package/dist/{ReportQueryFrom-oBS0ClDQ.js → ReportQueryFrom-BTppicSp.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-DvayIk8Y.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CNyJtLRf.js} +1 -1
- package/dist/{ReportTemplate-CNcUhJRf.js → ReportTemplate-BK4hDrL1.js} +1 -1
- package/dist/{Role-RUCpeqPj.js → Role-BWXsp5qm.js} +3 -3
- package/dist/{RoleAssign-DYidK2md.js → RoleAssign-BhdOusLw.js} +3 -3
- package/dist/{RolePanel-BrtpMF69.js → RolePanel-BAc0l-2F.js} +1 -1
- package/dist/{RolePanel-BQuKAefI.js → RolePanel-D5EvY_-Q.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-CrzUrpzJ.js → RolePanel.vue_vue_type_script_setup_true_lang-DFzyHc1T.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-FAOBa5ds.js → RolePanel.vue_vue_type_script_setup_true_lang-DLCmeXCd.js} +3 -3
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CmhAWJD4.js → ScrollPanel.vue_vue_type_style_index_0_lang-ie9JsdEr.js} +1 -1
- package/dist/{Staff-MnxrATUB.js → Staff-Dz1Wf9V4.js} +3 -3
- package/dist/{StaffInfo-CXNLmE3w.js → StaffInfo-FQZG2fGB.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-AsAikm4v.js → StaffInfo.vue_vue_type_script_setup_true_lang-Do1yHo6J.js} +1 -1
- package/dist/{StaffPanel-BdhcAqQL.js → StaffPanel-CU-StSY2.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-B51ElICg.js → StaffPanel.vue_vue_type_script_setup_true_lang-DgXY4cfW.js} +2 -2
- package/dist/{SysUser-Dh70yuNE.js → SysUser-B7uyZeA3.js} +2 -2
- package/dist/{SysUserPanel-DimcWXi5.js → SysUserPanel-DqQ3U-nX.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-5U-oqRaF.js → SysUserPanel.vue_vue_type_script_setup_true_lang-oggT9dvZ.js} +1 -1
- package/dist/{SystemMenu-CH04ZC4Q.js → SystemMenu-CkilYlRc.js} +2 -2
- package/dist/{UserInfo--5jFxyNg.js → UserInfo-B_u9-T_L.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-BpS2JUoM.js → UserInfo.vue_vue_type_style_index_0_lang-DdeVvUqP.js} +1 -1
- package/dist/{childView-1QhOOcjT.js → childView-1gXcTDxu.js} +1 -1
- package/dist/{childView-q4jq8JUU.js → childView-DWEAMuXh.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-C1_CKaiz.js → childView.vue_vue_type_style_index_0_lang-CG2wvaUS.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-_9frXYVo.js → childView.vue_vue_type_style_index_0_lang-feFKg1Nw.js} +1 -1
- package/dist/{code-rule-Cmc-zh3P.js → code-rule-D1Ft0jcV.js} +1 -1
- package/dist/core.es.js +1 -1
- package/dist/{cron-task-BJC8dKFZ.js → cron-task-1nATKU7t.js} +1 -1
- package/dist/{frameView-rRbSPmqe.js → frameView-Cfzchx0E.js} +1 -1
- package/dist/{index-CU7HTsRe.js → index-CrL4X6FE.js} +47 -46
- package/dist/{layoutView-C5aVJcOn.js → layoutView-B4YfJktL.js} +1 -1
- package/dist/{login-DGj6zzD2.js → login-C4w14hqN.js} +1 -1
- package/dist/{lov-view-CDYHJIbU.js → lov-view-CKfqoFML.js} +2 -2
- package/dist/{menuInfo-N2mUoR6P.js → menuInfo-HGi2h2YV.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Y7Jg-MZO.js → menuInfo.vue_vue_type_style_index_0_lang-CK_IA37Z.js} +1 -1
- package/dist/{pda-app-D0g-Ygcq.js → pda-app-BTsz1e9J.js} +1 -1
- package/dist/{resource-DPW5r_7h.js → resource-CRLHuOfC.js} +1 -1
- package/dist/{su-welcome-GWIgWj_m.js → su-welcome-CBdJlKhI.js} +1 -1
- package/dist/{sys-config-DwaGsVVu.js → sys-config-M3ZUrG9m.js} +1 -1
- package/package.json +1 -1
- package/src/main.ts +1 -3
- package/src/router/index.ts +0 -1
- package/src/router/utils.ts +3 -2
- package/src/views/udev/dict/DictView.vue +118 -118
|
@@ -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>
|