@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.6
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-CP2RkkAy.js → 403-Co4hnzlW.js} +10 -10
- package/dist/{404-DwK-0wNQ.js → 404-BsseeBQQ.js} +4 -4
- package/dist/{500-CLbJDqnd.js → 500-DtKz7MA4.js} +1 -1
- package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-iWYEWOmC.js} +1 -1
- package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BWp7PKyH.js} +9 -8
- package/dist/{Company-B--cokc6.js → Company-CK8Zkcv3.js} +3 -3
- package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DL4UrYYG.js} +6 -6
- package/dist/{Department-DbKdyNzK.js → Department-BPHn8to4.js} +3 -3
- package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-Bqraa_NB.js} +24 -23
- package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CFOIOZme.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-H0FNG35Z.js} +9 -8
- package/dist/{DictView-B8j-EWx5.js → DictView-CaD1yHQS.js} +1 -1
- package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-CoO0_wsY.js} +8 -7
- package/dist/Org-BU3oaFx3.js +35 -0
- package/dist/{Preview-yot4NBW5.js → Preview-B-K_bxDG.js} +1 -1
- package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-DElbukSL.js} +1 -1
- package/dist/{ReportDesign-CBihGRth.js → ReportDesign-DvUHOKDK.js} +23 -22
- package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-BcSYRNT3.js} +1 -1
- package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-BGEA4Pqk.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-B-KEPnfY.js} +1 -1
- package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-DnPtEoxn.js} +24 -24
- package/dist/{Role-Cf7DB7uS.js → Role-CMKkWZil.js} +3 -3
- package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BToNzG9a.js} +8 -8
- package/dist/{RolePanel-EXL_FLvM.js → RolePanel-BNqd7-M6.js} +1 -1
- package/dist/{RolePanel-BBGDGK8V.js → RolePanel-BikZ-D2u.js} +1 -1
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js → RolePanel.vue_vue_type_script_setup_true_lang-DYP3u1Nv.js} +9 -8
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-Nngq860f.js} +9 -9
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-BDRDD2FX.js} +17 -17
- package/dist/{Staff-DYu5ZEyR.js → Staff-DBFATgM_.js} +3 -3
- package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-CrfwZcEL.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-CE3_NJF_.js} +5 -5
- package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-D54Rl_Bg.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-B8wtuSZD.js} +6 -6
- package/dist/{SysUser-BHk_szpK.js → SysUser-CsuovBei.js} +2 -2
- package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-DNUwWEVp.js} +1 -1
- package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CY6mhBV0.js} +47 -44
- package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-oLmwvaqT.js} +14 -13
- package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-LyrDwBG1.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-vinrRyOG.js} +13 -12
- package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
- package/dist/{childView-BSUWnii7.js → childView-DGKp87fT.js} +1 -1
- package/dist/{childView-CFC3gA_U.js → childView-SmYl4G6c.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-DU-Uun5d.js} +18 -17
- package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-wVoPvyRY.js} +10 -9
- package/dist/{code-rule-DybjhotB.js → code-rule-CfbGjmOs.js} +14 -13
- package/dist/core.es.js +2 -2
- package/dist/{cron-task-DGdknqaF.js → cron-task-DMfwGfms.js} +8 -7
- package/dist/{frameView-BOOZRv1S.js → frameView-D-hu_pqQ.js} +1 -1
- package/dist/index-ADANSV-q.js +4278 -0
- package/dist/{layoutView-BWeDLY9C.js → layoutView-D3SikBPr.js} +11 -10
- package/dist/{login-BcuCHhGE.js → login-CQ1yBBdY.js} +26 -25
- package/dist/{lov-view-DDgzqYSW.js → lov-view-CSobDBH7.js} +9 -8
- package/dist/{menuInfo-B3MOxomU.js → menuInfo-mFuM30f1.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-BsIPzYg0.js} +16 -15
- package/dist/{pda-app-Dy9WMHEG.js → pda-app-CIGFsvrX.js} +66 -61
- package/dist/{resource-BoCP7-dM.js → resource-mbd4LPi-.js} +20 -20
- package/dist/{su-welcome-DXpI1MHr.js → su-welcome-DruLsVvu.js} +84 -84
- package/dist/{sys-config-BiUWzxGU.js → sys-config-TXb5cJM4.js} +19 -18
- package/dist/udp-core.css +1 -1
- package/dist/{utogether-DXDcsKt7.js → utogether-Cv0UXnEX.js} +1 -1
- package/package.json +18 -18
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
- package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
- package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
- package/src/components/udp/grid.vue +12 -6
- package/src/components/udp/index.ts +1 -1
- package/src/components/udp/lov.vue +1 -1
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/main.ts +10 -10
- package/src/plugins/i18n/zh.ts +342 -338
- package/src/plugins/vxe-table/render.tsx +5 -3
- package/src/views/login/login-view.vue +1 -1
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/sysUser/SysUserPanel.vue +9 -5
- package/src/views/uapp/pda/pda-app.vue +9 -3
- package/src/views/ufile/aggregation/File.vue +5 -5
- package/src/views/ufile/file/water-mark.vue +14 -14
- package/src/views/uhome/su-welcome.vue +2 -2
- package/src/views/ulogin/login.vue +8 -0
- package/src/views/urpt/design/ReportDesign.vue +5 -5
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/dist/Org-Dg9Xkd34.js +0 -34
- package/dist/index-BDE4-ZvN.js +0 -5091
|
@@ -445,7 +445,7 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
|
|
|
445
445
|
}, '');
|
|
446
446
|
Object.assign(data, obj);
|
|
447
447
|
}
|
|
448
|
-
const parm = {
|
|
448
|
+
const parm = { data, options: record, field };
|
|
449
449
|
events?.change && events.change(parm);
|
|
450
450
|
}
|
|
451
451
|
|
|
@@ -483,7 +483,8 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
|
|
|
483
483
|
}
|
|
484
484
|
Object.assign(row, obj);
|
|
485
485
|
}
|
|
486
|
-
|
|
486
|
+
const params = { row, options: record, field: column.field, column };
|
|
487
|
+
events?.change && events.change(params);
|
|
487
488
|
}
|
|
488
489
|
|
|
489
490
|
function onClear() {
|
|
@@ -517,7 +518,8 @@ export const VxetableRender = (VXETable, { serviceApi, i18n }) => {
|
|
|
517
518
|
}
|
|
518
519
|
Object.assign(row, obj);
|
|
519
520
|
}
|
|
520
|
-
|
|
521
|
+
const params = { row, options: record, field: column.field, column };
|
|
522
|
+
events?.change && events.change(params);
|
|
521
523
|
}
|
|
522
524
|
/**
|
|
523
525
|
* @description 清空数据
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2021-11-26 14:37:07
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime:
|
|
6
|
-
* @Description: 角色分配业务单元
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div class="u-content-panel">
|
|
10
|
-
<div class="u-left-panel">
|
|
11
|
-
<ScrollPane
|
|
12
|
-
:title="$t('SuOrg')"
|
|
13
|
-
:tree-otions="{ children: 'children', label: 'orgName' }"
|
|
14
|
-
|
|
15
|
-
url="/uums/org"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="content">
|
|
19
|
-
<role-panel />
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<script lang="ts" setup>
|
|
25
|
-
import { ref, provide } from 'vue';
|
|
26
|
-
import ScrollPane from '../../../components/SuScrollTree/ScrollPanel.vue';
|
|
27
|
-
import RolePanel from './RolePanel.vue';
|
|
28
|
-
const active: any = ref({});
|
|
29
|
-
const scrollPanelChange: any = ref(false);
|
|
30
|
-
const treeList: any = ref([]);
|
|
31
|
-
provide('active', active);
|
|
32
|
-
|
|
33
|
-
provide('scrollPanelChange', scrollPanelChange);
|
|
34
|
-
|
|
35
|
-
provide('treeList', treeList);
|
|
36
|
-
</script>
|
|
37
|
-
|
|
38
|
-
<style lang="scss" scoped>
|
|
39
|
-
.u-content-panel {
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
display: flex;
|
|
42
|
-
width: 100%;
|
|
43
|
-
height: 84vh;
|
|
44
|
-
padding: 5px;
|
|
45
|
-
|
|
46
|
-
.u-left-panel {
|
|
47
|
-
width: 250px;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.content {
|
|
51
|
-
flex: 1;
|
|
52
|
-
width: calc(100% - 250px);
|
|
53
|
-
height: 82vh;
|
|
54
|
-
margin: 0 10px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
</style>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2021-11-26 14:37:07
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-08-06 17:55:03
|
|
6
|
+
* @Description: 角色分配业务单元
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div class="u-content-panel">
|
|
10
|
+
<div class="u-left-panel">
|
|
11
|
+
<ScrollPane
|
|
12
|
+
:title="$t('SuOrg')"
|
|
13
|
+
:tree-otions="{ children: 'children', label: 'orgName' }"
|
|
14
|
+
:default-params="{ pageSize: 500 }"
|
|
15
|
+
url="/uums/org"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="content">
|
|
19
|
+
<role-panel />
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script lang="ts" setup>
|
|
25
|
+
import { ref, provide } from 'vue';
|
|
26
|
+
import ScrollPane from '../../../components/SuScrollTree/ScrollPanel.vue';
|
|
27
|
+
import RolePanel from './RolePanel.vue';
|
|
28
|
+
const active: any = ref({});
|
|
29
|
+
const scrollPanelChange: any = ref(false);
|
|
30
|
+
const treeList: any = ref([]);
|
|
31
|
+
provide('active', active);
|
|
32
|
+
|
|
33
|
+
provide('scrollPanelChange', scrollPanelChange);
|
|
34
|
+
|
|
35
|
+
provide('treeList', treeList);
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<style lang="scss" scoped>
|
|
39
|
+
.u-content-panel {
|
|
40
|
+
box-sizing: border-box;
|
|
41
|
+
display: flex;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 84vh;
|
|
44
|
+
padding: 5px;
|
|
45
|
+
|
|
46
|
+
.u-left-panel {
|
|
47
|
+
width: 250px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.content {
|
|
51
|
+
flex: 1;
|
|
52
|
+
width: calc(100% - 250px);
|
|
53
|
+
height: 82vh;
|
|
54
|
+
margin: 0 10px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
:columns="columns"
|
|
6
6
|
:items="formItems"
|
|
7
7
|
:url="url"
|
|
8
|
-
:
|
|
8
|
+
:auto-load="false"
|
|
9
|
+
:default-params="defaultParams"
|
|
10
|
+
:default-value="defaultParams"
|
|
9
11
|
:events="onGridEvents"
|
|
10
12
|
/>
|
|
11
13
|
<!-- 编辑用户信息 -->
|
|
@@ -80,7 +82,7 @@
|
|
|
80
82
|
import { useI18n } from 'vue-i18n';
|
|
81
83
|
import { ref, reactive, inject, nextTick, onMounted } from 'vue';
|
|
82
84
|
import to from 'await-to-js';
|
|
83
|
-
import { useRender, errorMessage, warnMessage } from '@utogether/utils';
|
|
85
|
+
import { useRender, errorMessage, warnMessage, delay } from '@utogether/utils';
|
|
84
86
|
import { VxeUI, VxeFormPropTypes } from 'vxe-pc-ui';
|
|
85
87
|
import { isEmpty } from 'xe-utils';
|
|
86
88
|
import { getServiceApi } from '../../../api';
|
|
@@ -127,7 +129,7 @@ const rules: VxeFormPropTypes.Rules = {
|
|
|
127
129
|
]
|
|
128
130
|
};
|
|
129
131
|
const renderHook = useRender();
|
|
130
|
-
const
|
|
132
|
+
const defaultParams = ref({});
|
|
131
133
|
const treeList: IRecord[] = inject('treeList');
|
|
132
134
|
|
|
133
135
|
const url = '/uums/user';
|
|
@@ -264,8 +266,10 @@ const handleClose = () => {
|
|
|
264
266
|
const getUnitList = () => {
|
|
265
267
|
serviceApi
|
|
266
268
|
.get('/uums/unit', { pageSize: 10 })
|
|
267
|
-
.then(res => {
|
|
268
|
-
|
|
269
|
+
.then(async res => {
|
|
270
|
+
defaultParams.value = { unitId: res[0].id, enabled: '1' };
|
|
271
|
+
await delay(100);
|
|
272
|
+
xgrid.value.refreshData();
|
|
269
273
|
})
|
|
270
274
|
.catch(() => {
|
|
271
275
|
errorMessage('获取租户失败,刷新后重试');
|
|
@@ -139,12 +139,18 @@ const onButtonClick = code => {
|
|
|
139
139
|
};
|
|
140
140
|
|
|
141
141
|
const items = [
|
|
142
|
-
{ field: 'appVersion', required: true },
|
|
143
|
-
{ field: 'buildNo', required: true },
|
|
144
|
-
{
|
|
142
|
+
{ field: 'appVersion', title: 'mesage.udp.appVersion', required: true },
|
|
143
|
+
{ field: 'buildNo', title: 'mesage.udp.buildNo', required: true },
|
|
144
|
+
{
|
|
145
|
+
field: 'versionInfo',
|
|
146
|
+
title: 'mesage.udp.versionInfo',
|
|
147
|
+
required: true,
|
|
148
|
+
itemRender: renderHook.renderTextarea()
|
|
149
|
+
},
|
|
145
150
|
{
|
|
146
151
|
field: 'downloadUrl',
|
|
147
152
|
required: false,
|
|
153
|
+
title: 'mesage.udp.downloadUrl',
|
|
148
154
|
itemRender: { name: '#upload', props: { baseUrl: baseURL } }
|
|
149
155
|
}
|
|
150
156
|
];
|
|
@@ -24,17 +24,17 @@ const xgrid = ref(null);
|
|
|
24
24
|
const url = '/ufil/v1/attachment';
|
|
25
25
|
|
|
26
26
|
const formItems = [
|
|
27
|
-
{ field: 'fileName', title: 'message.
|
|
27
|
+
{ field: 'fileName', title: 'message.urpt.fileName' },
|
|
28
28
|
{ field: 'creationDate', itemRender: { name: '#SuDateRange', props: { type: 'daterange' } } },
|
|
29
29
|
{ field: 'createdByName' }
|
|
30
30
|
];
|
|
31
31
|
|
|
32
32
|
// 列字段
|
|
33
33
|
const columns = [
|
|
34
|
-
{ field: 'fileName', title: 'message.
|
|
35
|
-
{ field: 'fileSize', title: 'message.
|
|
36
|
-
{ field: 'fileExtend', title: 'message.
|
|
37
|
-
{ field: 'realpath', title: 'message.
|
|
34
|
+
{ field: 'fileName', title: 'message.urpt.fileName', width: 240 },
|
|
35
|
+
{ field: 'fileSize', title: 'message.urpt.fileSize', width: 110 },
|
|
36
|
+
{ field: 'fileExtend', title: 'message.urpt.fileExtend', width: 100 },
|
|
37
|
+
{ field: 'realpath', title: 'message.urpt.filePath' },
|
|
38
38
|
{ field: 'createdByName', width: 120 },
|
|
39
39
|
{ field: 'creationDate', width: 160 },
|
|
40
40
|
{
|
|
@@ -25,15 +25,15 @@ const renderHook = useRender();
|
|
|
25
25
|
const url = '/ufil/v1/watermark';
|
|
26
26
|
|
|
27
27
|
const formItems = [
|
|
28
|
-
{ field: 'watermarkCode', title: 'message.
|
|
28
|
+
{ field: 'watermarkCode', title: 'message.urpt.watermarkContent' },
|
|
29
29
|
{
|
|
30
30
|
field: 'watermarkType',
|
|
31
|
-
title: 'message.
|
|
31
|
+
title: 'message.urpt.watermarkType',
|
|
32
32
|
itemRender: renderHook.renderDict('SU.WATERMARK.TYPE')
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
field: 'textAlign',
|
|
36
|
-
title: 'message.
|
|
36
|
+
title: 'message.urpt.textAlign',
|
|
37
37
|
itemRender: renderHook.renderDict('SU.ALIGN.TYPE')
|
|
38
38
|
}
|
|
39
39
|
];
|
|
@@ -43,14 +43,14 @@ const columns = [
|
|
|
43
43
|
{ type: 'checkbox', width: 40, align: 'center' },
|
|
44
44
|
{
|
|
45
45
|
field: 'watermarkCode',
|
|
46
|
-
title: 'message.
|
|
46
|
+
title: 'message.urpt.watermarkContent',
|
|
47
47
|
required: true,
|
|
48
48
|
minWidth: 110,
|
|
49
49
|
editRender: renderHook.renderInput()
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
field: 'watermarkType',
|
|
53
|
-
title: 'message.
|
|
53
|
+
title: 'message.urpt.watermarkType',
|
|
54
54
|
width: 120,
|
|
55
55
|
required: true,
|
|
56
56
|
editRender: renderHook.renderDict({ code: 'SU.WATERMARK.TYPE', defaultValue: 'text' }),
|
|
@@ -58,13 +58,13 @@ const columns = [
|
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
field: 'content',
|
|
61
|
-
title: 'message.
|
|
61
|
+
title: 'message.urpt.watermarkContent',
|
|
62
62
|
width: 110,
|
|
63
63
|
editRender: renderHook.renderInput()
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
field: 'textAlign',
|
|
67
|
-
title: 'message.
|
|
67
|
+
title: 'message.urpt.textAlign',
|
|
68
68
|
width: 120,
|
|
69
69
|
required: true,
|
|
70
70
|
editRender: renderHook.renderDict('SU.ALIGN.TYPE'),
|
|
@@ -72,32 +72,32 @@ const columns = [
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
field: 'watermarkTrigger',
|
|
75
|
-
title: 'message.
|
|
75
|
+
title: 'message.urpt.watermarkTrigger',
|
|
76
76
|
width: 120,
|
|
77
77
|
required: true,
|
|
78
78
|
editRender: renderHook.renderDict('SU.WATERMARK.TRIGGER'),
|
|
79
79
|
formatter: ['formatDict', 'SU.WATERMARK.TRIGGER']
|
|
80
80
|
},
|
|
81
|
-
{ field: 'color', title: 'message.
|
|
81
|
+
{ field: 'color', title: 'message.urpt.color', width: 90, editRender: renderHook.renderInput() },
|
|
82
82
|
{
|
|
83
83
|
field: 'fillOpacity',
|
|
84
|
-
title: 'message.
|
|
84
|
+
title: 'message.urpt.fillOpacity',
|
|
85
85
|
width: 100,
|
|
86
86
|
editRender: renderHook.renderNumber()
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
field: 'fontSize',
|
|
90
|
-
title: 'message.
|
|
90
|
+
title: 'message.urpt.fontSize',
|
|
91
91
|
width: 110,
|
|
92
92
|
editRender: renderHook.renderNumber()
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
field: 'rotation',
|
|
96
|
-
title: 'message.
|
|
96
|
+
title: 'message.urpt.rotation',
|
|
97
97
|
width: 110,
|
|
98
98
|
editRender: renderHook.renderNumber()
|
|
99
99
|
},
|
|
100
|
-
{ field: 'xAxis', title: 'message.
|
|
101
|
-
{ field: 'yAxis', title: 'message.
|
|
100
|
+
{ field: 'xAxis', title: 'message.urpt.xAxis', width: 100, editRender: renderHook.renderNumber() },
|
|
101
|
+
{ field: 'yAxis', title: 'message.urpt.yAxis', width: 100, editRender: renderHook.renderNumber() }
|
|
102
102
|
];
|
|
103
103
|
</script>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: levi7754 levi7754@163.com
|
|
3
3
|
* @Date: 2023-11-02 10:04:05
|
|
4
4
|
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-
|
|
5
|
+
* @LastEditTime: 2025-08-06 14:47:34
|
|
6
6
|
* @FilePath: /front-web-mes/src/views/uhome/su-welcome.vue
|
|
7
7
|
* @Description: 欢迎页面
|
|
8
8
|
-->
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<div class="flex flex-col">
|
|
40
40
|
<span class="text-4xl">
|
|
41
|
-
<ut-
|
|
41
|
+
<ut-flip-down :show-days="false" :show-labels="false" />
|
|
42
42
|
</span>
|
|
43
43
|
<div class="mt-1 ml-3">{{ getLunarDay() }}</div>
|
|
44
44
|
</div>
|
|
@@ -113,6 +113,7 @@ import { useFavicon } from '@vueuse/core';
|
|
|
113
113
|
import { isEmpty, toDateString } from 'xe-utils';
|
|
114
114
|
import { removeClass, storageLocal, errorMessage, cookies, delay } from '@utogether/utils';
|
|
115
115
|
import to from 'await-to-js';
|
|
116
|
+
// import JSEencrypt from 'jsencrypt';
|
|
116
117
|
import { useSystemStoreHook } from '../../store/modules/system';
|
|
117
118
|
import { useLayout } from '../../layout/hooks/useLayout';
|
|
118
119
|
import { useDataThemeChange } from '../../layout/hooks/useDataThemeChange';
|
|
@@ -187,6 +188,13 @@ const onLogin = async () => {
|
|
|
187
188
|
const rsakeypair = new RSAKeyPair(publicRSA.publicKeyExponent, '', publicRSA.publicKeyModulus);
|
|
188
189
|
// @ts-ignore
|
|
189
190
|
const password = encryptedString(rsakeypair, passWord.split('').reverse().join(''));
|
|
191
|
+
// const key = new JSEencrypt();
|
|
192
|
+
// key.setPublicKey(
|
|
193
|
+
// '-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQChJwirJjZ+FxG9dn9rsfKa+9hTgBhXI9e0kiMOJWfJXPVxjsp0XaBkNADKYZ++7Ikt9hq+H3GtO4ItB27YMQgMU3gu34wGJ+6VxX4r7hL+VdorPK3sWZR6dczMu/Nvs7eByTtL9RSJeJ8cCEn5AjoW7HC+9BpQR4XhCCtvE1iOKQIDAQAB-----END PUBLIC KEY-----'
|
|
194
|
+
// );
|
|
195
|
+
// const password = key.encrypt(passWord);
|
|
196
|
+
// // console.log('password1 ===', password1);
|
|
197
|
+
// console.log('password ===', password);
|
|
190
198
|
const param = {
|
|
191
199
|
username,
|
|
192
200
|
password,
|
|
@@ -53,8 +53,8 @@ const { copy } = useClipboard();
|
|
|
53
53
|
// const printPlugin = $printPlugin.print;
|
|
54
54
|
const serviceApi = getServiceApi();
|
|
55
55
|
const formItems = [
|
|
56
|
-
{ field: 'templateCode', title: 'message.
|
|
57
|
-
{ field: 'templateName', title: 'message.
|
|
56
|
+
{ field: 'templateCode', title: 'message.urpt.templateCode' },
|
|
57
|
+
{ field: 'templateName', title: 'message.urpt.templateName' }
|
|
58
58
|
];
|
|
59
59
|
const url = '/urpt/v1/printTemplate';
|
|
60
60
|
// 列字段
|
|
@@ -62,21 +62,21 @@ const columns = [
|
|
|
62
62
|
{ type: 'checkbox', width: 50, align: 'center' },
|
|
63
63
|
{
|
|
64
64
|
field: 'templateCode',
|
|
65
|
-
title: 'message.
|
|
65
|
+
title: 'message.urpt.templateCode',
|
|
66
66
|
required: true,
|
|
67
67
|
width: 150,
|
|
68
68
|
editRender: renderHook.renderInput()
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
field: 'templateName',
|
|
72
|
-
title: 'message.
|
|
72
|
+
title: 'message.urpt.templateName',
|
|
73
73
|
required: true,
|
|
74
74
|
width: 240,
|
|
75
75
|
editRender: renderHook.renderInput()
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
field: 'paperType',
|
|
79
|
-
title: 'message.
|
|
79
|
+
title: 'message.urpt.paperType',
|
|
80
80
|
width: 120,
|
|
81
81
|
required: true,
|
|
82
82
|
editRender: renderHook.renderDict({ code: 'SU.PRINT.PAPER', defaultValue: 'A4' }),
|
|
@@ -45,9 +45,9 @@ const baseUrl = getBaseURL();
|
|
|
45
45
|
// 列字段
|
|
46
46
|
const columns = [
|
|
47
47
|
{ type: 'checkbox', width: 40, align: 'center' },
|
|
48
|
-
{ field: 'templateCode', title: 'message.
|
|
49
|
-
{ field: 'templateName', title: 'message.
|
|
50
|
-
{ field: 'templateUrl', title: 'message.
|
|
48
|
+
{ field: 'templateCode', title: 'message.urpt.resourceCode', width: 140 },
|
|
49
|
+
{ field: 'templateName', title: 'message.urpt.resourceName', width: 150 },
|
|
50
|
+
{ field: 'templateUrl', title: 'message.urpt.resourceUrl', miWidth: 200 },
|
|
51
51
|
{
|
|
52
52
|
field: 'operate',
|
|
53
53
|
width: 180,
|
|
@@ -62,9 +62,9 @@ const record = ref<IRecord>({});
|
|
|
62
62
|
|
|
63
63
|
const url = '/upms/v1/printTemplateConfig';
|
|
64
64
|
const formItems = [
|
|
65
|
-
{ field: 'templateCode', title: 'message.
|
|
66
|
-
{ field: 'templateName', title: 'message.
|
|
67
|
-
{ field: 'printPosition', title: 'message.
|
|
65
|
+
{ field: 'templateCode', title: 'message.urpt.templateCode' },
|
|
66
|
+
{ field: 'templateName', title: 'message.urpt.templateName' },
|
|
67
|
+
{ field: 'printPosition', title: 'message.urpt.printPosition', code: 'SU.PRINT.VIEW' }
|
|
68
68
|
];
|
|
69
69
|
|
|
70
70
|
// 列字段
|
|
@@ -72,7 +72,7 @@ const columns = [
|
|
|
72
72
|
{ type: 'checkbox', width: 40, align: 'center' },
|
|
73
73
|
{
|
|
74
74
|
field: 'templateCode',
|
|
75
|
-
title: 'message.
|
|
75
|
+
title: 'message.urpt.templateCode',
|
|
76
76
|
required: true,
|
|
77
77
|
width: 120,
|
|
78
78
|
editRender: renderHook.renderLov({
|
|
@@ -81,10 +81,10 @@ const columns = [
|
|
|
81
81
|
mapField: { templateName: 'templateName' }
|
|
82
82
|
})
|
|
83
83
|
},
|
|
84
|
-
{ field: 'templateName', title: 'message.
|
|
84
|
+
{ field: 'templateName', title: 'message.urpt.templateName', width: 180 },
|
|
85
85
|
{
|
|
86
86
|
field: 'printPosition',
|
|
87
|
-
title: 'message.
|
|
87
|
+
title: 'message.urpt.printPosition',
|
|
88
88
|
required: true,
|
|
89
89
|
width: 120,
|
|
90
90
|
formatter: ['formatDict', 'SU.PRINT.VIEW'],
|
|
@@ -92,7 +92,7 @@ const columns = [
|
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
field: 'buttonCode',
|
|
95
|
-
title: 'message.
|
|
95
|
+
title: 'message.urpt.buttonCode',
|
|
96
96
|
width: 120,
|
|
97
97
|
required: true,
|
|
98
98
|
editRender: renderHook.renderInput()
|
package/dist/Org-Dg9Xkd34.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, ref as s, resolveComponent as u, createBlock as m, openBlock as f } from "vue";
|
|
2
|
-
import { q as p, v as g } from "./index-BDE4-ZvN.js";
|
|
3
|
-
import { clone as _ } from "xe-utils";
|
|
4
|
-
import { useRender as h } from "@utogether/utils";
|
|
5
|
-
const k = { name: "OrgUnit" }, y = /* @__PURE__ */ a({
|
|
6
|
-
...k,
|
|
7
|
-
setup(R) {
|
|
8
|
-
const r = "/uums/org", n = s(null), i = h(), d = [{ field: "orgCode" }, { field: "orgName" }, { field: "orgAlias" }], l = [
|
|
9
|
-
{ type: "checkbox", width: 50, align: "center" },
|
|
10
|
-
{ field: "orgCode", required: !0, editRender: { name: "$input" } },
|
|
11
|
-
{ field: "orgName", required: !0, minWidth: 200, editRender: { name: "$input" } },
|
|
12
|
-
{ field: "orgAlias", editRender: { name: "$input" } },
|
|
13
|
-
{ field: "orgDesc", editRender: { name: "$input" } },
|
|
14
|
-
{ field: "enabled", width: 80, cellRender: i.renderEnabled(c) }
|
|
15
|
-
];
|
|
16
|
-
async function c({ row: t }) {
|
|
17
|
-
const o = _(t, !0), [e] = await p(g().put(r, [o]));
|
|
18
|
-
!e && n.value.refreshData();
|
|
19
|
-
}
|
|
20
|
-
return (t, o) => {
|
|
21
|
-
const e = u("ut-grid");
|
|
22
|
-
return f(), m(e, {
|
|
23
|
-
ref_key: "xgrid",
|
|
24
|
-
ref: n,
|
|
25
|
-
items: d,
|
|
26
|
-
columns: l,
|
|
27
|
-
url: r
|
|
28
|
-
}, null, 512);
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
y as default
|
|
34
|
-
};
|