@utogether/udp-core 1.0.1-beta.1 → 1.0.1-beta.11
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 +39 -32
- package/dist/{403-Dp617CWX.js → 403-Dsgsr2M-.js} +1 -1
- package/dist/{404-Cz_Axb6Y.js → 404-DmPHEfqM.js} +1 -1
- package/dist/{500-BGCtRNse.js → 500-OYEgHR2a.js} +1 -1
- package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-B1H1txG-.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BUlmQtjQ.js +100 -0
- package/dist/{Company-IV3GTnzY.js → Company-C8ojgx93.js} +3 -3
- package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-Dageer1t.js} +16 -16
- package/dist/{Department-B3W-OxW8.js → Department-Dr94_85I.js} +3 -3
- package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-Bc5r1HpT.js} +1 -1
- package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-CcWt1Myp.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-CKA6nx1l.js} +24 -26
- package/dist/DictView-BHj6wexC.js +110 -0
- package/dist/InvOrganization-DP3Le9g-.js +72 -0
- package/dist/Org-BRGHTwsw.js +39 -0
- package/dist/{Preview-BlDMmpdR.js → Preview-CqMaUD_3.js} +1 -1
- package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-PEQdTCOY.js} +1 -1
- package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CB4bv8ba.js} +43 -43
- package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-B7t4lMK0.js} +1 -1
- package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-VBxUIMRJ.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-HeLA4Qs5.js} +1 -1
- package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DNkv7F5p.js} +28 -28
- package/dist/{Role-_q3lQ8CZ.js → Role-BGfTpZK4.js} +6 -6
- package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DrKFWZzA.js} +8 -8
- package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-3lvRh7aS.js} +1 -1
- package/dist/{RolePanel-BQb1LlhD.js → RolePanel-BRI5QYe4.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BXKZb7yt.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-Cci_Ysty.js} +44 -38
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-BmId6zzA.js} +21 -21
- package/dist/{Staff-BSf9Ypbk.js → Staff-Dr0dq3fW.js} +3 -3
- package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-_N9g2hPa.js} +1 -1
- package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-DiTJY2ug.js} +11 -11
- package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-mxJQiW3G.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-GRGn-5t6.js} +2 -2
- package/dist/{SysUser-FAABuNti.js → SysUser-DgA19hZE.js} +2 -2
- package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-Bc85z5_K.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-BHDrP1Pk.js +294 -0
- package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-Be-gFIie.js} +26 -26
- package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BCYuwFmr.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-B1lgokO6.js} +39 -37
- package/dist/{childView-C_HmDQNd.js → childView-DhcBr1UA.js} +1 -1
- package/dist/{childView-uUlBcTza.js → childView-Dk4zZoXd.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-CVnLnl03.js} +40 -40
- package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-D4GYVhOc.js} +1 -1
- package/dist/{code-rule-AgCVDKFy.js → code-rule-BSwPwuAL.js} +9 -10
- package/dist/core.es.js +14 -11
- package/dist/{cron-task-C6FgQxTi.js → cron-task-T1ztyra7.js} +1 -1
- package/dist/{frameView-BDgISK7N.js → frameView-BDgngiBq.js} +1 -1
- package/dist/img/l_img.svg +1 -1
- package/dist/img/minicolors.png +0 -0
- package/dist/img/v_img.svg +1 -1
- package/dist/index-BSj2AtVL.js +4468 -0
- package/dist/{layoutView-yb3DV2DQ.js → layoutView-i7dLLBzJ.js} +1181 -1176
- package/dist/{login-RRpljbkm.js → login-K5Ludp8x.js} +105 -113
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{lov-view-C9-rjzZR.js → lov-view-lAexiucu.js} +2 -2
- package/dist/{menuInfo-CzPQyFhp.js → menuInfo-BaN5YZPp.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-yI4QOYxG.js} +100 -97
- package/dist/{pda-app-Dvy3U-b6.js → pda-app-DEtDXFvM.js} +211 -197
- package/dist/{resource-Fy0lFkSV.js → resource-Bztmz7pn.js} +15 -15
- package/dist/{su-welcome-DYvSCUST.js → su-welcome-Bx8nBPi9.js} +109 -110
- package/dist/sys-config-nvrtYGgi.js +290 -0
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-CjmJiHoE.js → utogether-yPnwDAIH.js} +1 -1
- package/index.ts +40 -36
- package/package.json +18 -18
- package/src/App.vue +65 -70
- package/src/api/index.ts +31 -31
- package/src/components/SuCharts/src/UserInfo.vue +78 -78
- package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
- package/src/components/udp/count-down.vue +536 -0
- 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/form-upload.vue +414 -64
- package/src/components/udp/form.vue +112 -0
- package/src/components/udp/grid.vue +495 -0
- package/src/components/udp/index.ts +10 -4
- package/src/components/udp/lov.vue +388 -0
- package/src/components/udp/modal-form.vue +13 -3
- package/src/components/udp/modal-grid.vue +298 -0
- package/src/components/udp/upload.vue +423 -0
- package/src/components/udp/utils.ts +447 -40
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +239 -237
- package/src/layout/components/lay-panel/index.vue +150 -150
- package/src/layout/components/lay-search/index.vue +25 -25
- package/src/layout/components/lay-select-org/index.vue +64 -69
- package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
- package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
- package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/hooks/useNav.ts +173 -173
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +119 -109
- package/src/plugins/i18n/en.ts +302 -289
- package/src/plugins/i18n/zh.ts +349 -337
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +956 -817
- package/src/router/index.ts +177 -183
- package/src/router/modules/remaining.ts +58 -83
- package/src/store/modules/permission.ts +1 -4
- package/src/style/button.scss +85 -78
- package/src/style/tailwind.css +1 -68
- package/src/style/vxetable.scss +44 -11
- package/src/utils/authority/index.ts +1 -1
- package/src/utils/{http → udp/http}/index.ts +283 -297
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/utils/udp/useRender.ts +17 -6
- package/src/views/login/login-view.vue +300 -314
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +68 -54
- package/src/views/organization/org/Org.vue +9 -5
- package/src/views/system/menu/SystemMenu.vue +183 -197
- package/src/views/system/menu/menuInfo.vue +363 -371
- package/src/views/system/role/AuthorityInfo.vue +19 -15
- package/src/views/system/role/Role.vue +1 -5
- package/src/views/system/role/RolePanel.vue +11 -2
- package/src/views/system/role/UserInfo.vue +195 -193
- package/src/views/system/role-assign/RoleAssign.vue +57 -57
- package/src/views/system/role-assign/RolePanel.vue +139 -136
- package/src/views/system/sys/sys-config.vue +287 -291
- package/src/views/system/sysUser/SysUserPanel.vue +278 -278
- package/src/views/uapp/pda/pda-app.vue +208 -176
- package/src/views/udev/dict/DictView.vue +118 -106
- package/src/views/udev/dict/childView.vue +7 -7
- package/src/views/udev/lov/lov-view.vue +91 -91
- 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 +3 -3
- package/src/views/ulogin/login.vue +12 -8
- package/src/views/upms/user/login-log.vue +1 -1
- package/src/views/urpt/design/DesignPanel.vue +507 -526
- package/src/views/urpt/design/ReportDesign.vue +15 -19
- package/src/views/urpt/static-resource/resource.vue +3 -3
- package/src/views/urpt/template/ReportTemplate.vue +7 -7
- package/types/global.d.ts +2 -1
- package/vite.config.ts +6 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
- package/dist/DictView-C-i7e4hZ.js +0 -95
- package/dist/InvOrganization-cfT6riGU.js +0 -260
- package/dist/Org-CA7vTDIF.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
- package/dist/index-DzOzUkf6.js +0 -3388
- package/dist/sys-config-DJ1vNQTy.js +0 -277
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @Author: wei.li
|
|
3
|
-
* @Date: 2022-08-10 09:10:39
|
|
4
|
-
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
-
* @LastEditTime: 2025-04-08 15:31:20
|
|
6
|
-
* @Description: 值集视图
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div>
|
|
10
|
-
<ut-grid ref="xgrid" :items="formItems" :columns="columns" :url="url" :events="onEvents" />
|
|
11
|
-
<child-view v-if="shouDrawer" :show="shouDrawer" :record="record" @onClose="handleClose" />
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="tsx">
|
|
16
|
-
import { ref, nextTick } from 'vue';
|
|
17
|
-
// import { VxeGridInstance } from 'vxe-table';
|
|
18
|
-
import to from 'await-to-js';
|
|
19
|
-
import { getServiceApi } from '../../../api';
|
|
20
|
-
import childView from './childView.vue';
|
|
21
|
-
import { useRender } from '@utogether/utils';
|
|
22
|
-
|
|
23
|
-
defineOptions({ name: 'LovView' });
|
|
24
|
-
|
|
25
|
-
const xgrid = ref(null);
|
|
26
|
-
|
|
27
|
-
const formItems = [{ field: 'lovCode' }, { field: 'lovName' }];
|
|
28
|
-
|
|
29
|
-
const renderHook = useRender();
|
|
30
|
-
|
|
31
|
-
const url = '/upfm/v1/lovViewHeader';
|
|
32
|
-
|
|
33
|
-
// 列字段
|
|
34
|
-
const columns = [
|
|
35
|
-
{ type: 'checkbox', width: 50, align: 'center' },
|
|
36
|
-
{
|
|
37
|
-
field: 'lovCode',
|
|
38
|
-
required: true,
|
|
39
|
-
editRender: renderHook.renderInput()
|
|
40
|
-
},
|
|
41
|
-
{ field: 'lovName', required: true, editRender: renderHook.renderInput() },
|
|
42
|
-
{ field: 'valueField', required: true, editRender: renderHook.renderInput() },
|
|
43
|
-
{ field: 'lovTitle', editRender: renderHook.renderInput() },
|
|
44
|
-
{
|
|
45
|
-
field: 'lovType',
|
|
46
|
-
editRender: renderHook.renderDict('SU.LOV.TYPE'),
|
|
47
|
-
required: true,
|
|
48
|
-
formatter: ['formatDict', 'SU.LOV.TYPE']
|
|
49
|
-
},
|
|
50
|
-
{ field: 'remarks', title: 'message.remark', editRender: renderHook.renderInput() },
|
|
51
|
-
{ field: 'enabled', width: 80, cellRender: renderHook.renderEnabled(handleClick) },
|
|
52
|
-
{
|
|
53
|
-
field: 'operate',
|
|
54
|
-
width: 100,
|
|
55
|
-
fixed: 'right',
|
|
56
|
-
slots: {
|
|
57
|
-
default: ({ row }) => {
|
|
58
|
-
if (!row.id) return null;
|
|
59
|
-
return [<ut-button content="config" icon="ri-edit-box-line" onTap={() => hanldeDipose(row)} />];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
const shouDrawer = ref(false);
|
|
66
|
-
const record = ref(null);
|
|
67
|
-
const hanldeDipose = row => {
|
|
68
|
-
nextTick(() => {
|
|
69
|
-
shouDrawer.value = true;
|
|
70
|
-
record.value = row;
|
|
71
|
-
// record.value.total = row.children.length;
|
|
72
|
-
});
|
|
73
|
-
};
|
|
74
|
-
const handleClose = () => {
|
|
75
|
-
xgrid.value.refreshData();
|
|
76
|
-
shouDrawer.value = false;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
// 启用/禁用
|
|
80
|
-
async function handleClick(row) {
|
|
81
|
-
const [err] = await to(getServiceApi().put(url, [row]));
|
|
82
|
-
!err && xgrid.value.refreshData();
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
const onEvents = {
|
|
86
|
-
editActived({ row }) {
|
|
87
|
-
columns[1].editRender.props.disabled = !!row.id;
|
|
88
|
-
xgrid.value.refreshColumn();
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
</script>
|
|
1
|
+
<!--
|
|
2
|
+
* @Author: wei.li
|
|
3
|
+
* @Date: 2022-08-10 09:10:39
|
|
4
|
+
* @LastEditors: levi7754 levi7754@163.com
|
|
5
|
+
* @LastEditTime: 2025-04-08 15:31:20
|
|
6
|
+
* @Description: 值集视图
|
|
7
|
+
-->
|
|
8
|
+
<template>
|
|
9
|
+
<div>
|
|
10
|
+
<ut-grid ref="xgrid" :items="formItems" :columns="columns" :url="url" :events="onEvents" />
|
|
11
|
+
<child-view v-if="shouDrawer" :show="shouDrawer" :record="record" @onClose="handleClose" />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script setup lang="tsx">
|
|
16
|
+
import { ref, nextTick } from 'vue';
|
|
17
|
+
// import { VxeGridInstance } from 'vxe-table';
|
|
18
|
+
import to from 'await-to-js';
|
|
19
|
+
import { getServiceApi } from '../../../api';
|
|
20
|
+
import childView from './childView.vue';
|
|
21
|
+
import { useRender } from '@utogether/utils';
|
|
22
|
+
|
|
23
|
+
defineOptions({ name: 'LovView' });
|
|
24
|
+
|
|
25
|
+
const xgrid = ref(null);
|
|
26
|
+
|
|
27
|
+
const formItems = [{ field: 'lovCode' }, { field: 'lovName' }];
|
|
28
|
+
|
|
29
|
+
const renderHook = useRender();
|
|
30
|
+
|
|
31
|
+
const url = '/upfm/v1/lovViewHeader';
|
|
32
|
+
|
|
33
|
+
// 列字段
|
|
34
|
+
const columns = [
|
|
35
|
+
{ type: 'checkbox', width: 50, align: 'center' },
|
|
36
|
+
{
|
|
37
|
+
field: 'lovCode',
|
|
38
|
+
required: true,
|
|
39
|
+
editRender: renderHook.renderInput()
|
|
40
|
+
},
|
|
41
|
+
{ field: 'lovName', required: true, editRender: renderHook.renderInput() },
|
|
42
|
+
{ field: 'valueField', required: true, editRender: renderHook.renderInput() },
|
|
43
|
+
{ field: 'lovTitle', editRender: renderHook.renderInput() },
|
|
44
|
+
{
|
|
45
|
+
field: 'lovType',
|
|
46
|
+
editRender: renderHook.renderDict('SU.LOV.TYPE'),
|
|
47
|
+
required: true,
|
|
48
|
+
formatter: ['formatDict', 'SU.LOV.TYPE']
|
|
49
|
+
},
|
|
50
|
+
{ field: 'remarks', title: 'message.remark', editRender: renderHook.renderInput() },
|
|
51
|
+
{ field: 'enabled', width: 80, cellRender: renderHook.renderEnabled(handleClick) },
|
|
52
|
+
{
|
|
53
|
+
field: 'operate',
|
|
54
|
+
width: 100,
|
|
55
|
+
fixed: 'right',
|
|
56
|
+
slots: {
|
|
57
|
+
default: ({ row }) => {
|
|
58
|
+
if (!row.id) return null;
|
|
59
|
+
return [<ut-button content="config" icon="ri-edit-box-line" onTap={() => hanldeDipose(row)} />];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
const shouDrawer = ref(false);
|
|
66
|
+
const record = ref(null);
|
|
67
|
+
const hanldeDipose = row => {
|
|
68
|
+
nextTick(() => {
|
|
69
|
+
shouDrawer.value = true;
|
|
70
|
+
record.value = row;
|
|
71
|
+
// record.value.total = row.children.length;
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const handleClose = () => {
|
|
75
|
+
xgrid.value.refreshData();
|
|
76
|
+
shouDrawer.value = false;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// 启用/禁用
|
|
80
|
+
async function handleClick(row) {
|
|
81
|
+
const [err] = await to(getServiceApi().put(url, [row]));
|
|
82
|
+
!err && xgrid.value.refreshData();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const onEvents = {
|
|
86
|
+
editActived({ row }) {
|
|
87
|
+
columns[1].editRender.props.disabled = !!row.id;
|
|
88
|
+
xgrid.value.refreshColumn();
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
</script>
|
|
@@ -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>
|
|
@@ -233,7 +233,7 @@ const onClickMenu = item => {
|
|
|
233
233
|
};
|
|
234
234
|
|
|
235
235
|
const getUserLog = () => {
|
|
236
|
-
const url = '/
|
|
236
|
+
const url = '/upfm/v1/userMonitor';
|
|
237
237
|
const query = { pageSize: 8, pageNum: 1, employeeName: systemHook.getUserInfo?.name };
|
|
238
238
|
getServiceApi()
|
|
239
239
|
.get(url, query)
|
|
@@ -7,11 +7,7 @@
|
|
|
7
7
|
</div>
|
|
8
8
|
<div class="login-box">
|
|
9
9
|
<div class="login-form">
|
|
10
|
-
<h2
|
|
11
|
-
v-motion
|
|
12
|
-
:initial="{ opacity: 0, y: 100 }"
|
|
13
|
-
:enter="{ opacity: 1, y: 0, transition: { delay: 100 } }"
|
|
14
|
-
>
|
|
10
|
+
<h2 v-motion :initial="{ opacity: 0, y: 100 }" :enter="{ opacity: 1, y: 0, transition: { delay: 100 } }">
|
|
15
11
|
{{ sysConfig['title'] }}
|
|
16
12
|
</h2>
|
|
17
13
|
<div
|
|
@@ -73,7 +69,7 @@
|
|
|
73
69
|
</button>
|
|
74
70
|
</div>
|
|
75
71
|
</div>
|
|
76
|
-
<div class="absolute flex justify-center w-full font-bold bottom-1">
|
|
72
|
+
<!-- <div class="absolute flex justify-center w-full font-bold bottom-1">
|
|
77
73
|
<img :src="utogether" class="!h-10" style="height: 40px" />
|
|
78
74
|
<span class="flex flex-row justify-center" style="width: 300px">
|
|
79
75
|
<span style="font-size: 0; text-align: center">
|
|
@@ -96,7 +92,7 @@
|
|
|
96
92
|
</span>
|
|
97
93
|
<span class="flex items-center text-white" style="width: 75px; font-size: 10px">技术支持</span>
|
|
98
94
|
</span>
|
|
99
|
-
</div>
|
|
95
|
+
</div> -->
|
|
100
96
|
</div>
|
|
101
97
|
</template>
|
|
102
98
|
|
|
@@ -113,6 +109,7 @@ import { useFavicon } from '@vueuse/core';
|
|
|
113
109
|
import { isEmpty, toDateString } from 'xe-utils';
|
|
114
110
|
import { removeClass, storageLocal, errorMessage, cookies, delay } from '@utogether/utils';
|
|
115
111
|
import to from 'await-to-js';
|
|
112
|
+
// import JSEencrypt from 'jsencrypt';
|
|
116
113
|
import { useSystemStoreHook } from '../../store/modules/system';
|
|
117
114
|
import { useLayout } from '../../layout/hooks/useLayout';
|
|
118
115
|
import { useDataThemeChange } from '../../layout/hooks/useDataThemeChange';
|
|
@@ -187,6 +184,13 @@ const onLogin = async () => {
|
|
|
187
184
|
const rsakeypair = new RSAKeyPair(publicRSA.publicKeyExponent, '', publicRSA.publicKeyModulus);
|
|
188
185
|
// @ts-ignore
|
|
189
186
|
const password = encryptedString(rsakeypair, passWord.split('').reverse().join(''));
|
|
187
|
+
// const key = new JSEencrypt();
|
|
188
|
+
// key.setPublicKey(
|
|
189
|
+
// '-----BEGIN PUBLIC KEY-----MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQChJwirJjZ+FxG9dn9rsfKa+9hTgBhXI9e0kiMOJWfJXPVxjsp0XaBkNADKYZ++7Ikt9hq+H3GtO4ItB27YMQgMU3gu34wGJ+6VxX4r7hL+VdorPK3sWZR6dczMu/Nvs7eByTtL9RSJeJ8cCEn5AjoW7HC+9BpQR4XhCCtvE1iOKQIDAQAB-----END PUBLIC KEY-----'
|
|
190
|
+
// );
|
|
191
|
+
// const password = key.encrypt(passWord);
|
|
192
|
+
// // console.log('password1 ===', password1);
|
|
193
|
+
// console.log('password ===', password);
|
|
190
194
|
const param = {
|
|
191
195
|
username,
|
|
192
196
|
password,
|
|
@@ -275,7 +279,7 @@ const insertLoginInfo = username => {
|
|
|
275
279
|
browserVersion,
|
|
276
280
|
operatingSystem: getPlatform(userAgent)
|
|
277
281
|
};
|
|
278
|
-
serviceApi.post('/
|
|
282
|
+
serviceApi.post('/upfm/v1/userMonitor', obj);
|
|
279
283
|
};
|
|
280
284
|
|
|
281
285
|
const getSysConfig = async () => {
|