@utogether/udp-core 1.0.0 → 1.0.1-beta.10
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 -26
- package/dist/{403-B1R-4vXw.js → 403-Ctxjn4q8.js} +9 -8
- package/dist/{404-fXPl8csw.js → 404-W5yzyiZ9.js} +15 -14
- package/dist/{500-eI5842YB.js → 500-DXuGEOm4.js} +11 -10
- package/dist/{AuthorityInfo-CfVH6PaB.js → AuthorityInfo-C2tflCt8.js} +1 -1
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
- 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-PLez5GoH.js} +3 -3
- package/dist/{CompanyPanel-B4MzoqN_.js → CompanyPanel-CIGaQooL.js} +20 -20
- package/dist/{Department-B4BNSiYx.js → Department-B9wLsXFm.js} +3 -3
- package/dist/{DepartmentPanel-zJO89L2O.js → DepartmentPanel-DSM4lTaz.js} +23 -23
- package/dist/{DesignPanel-S8P0J97f.js → DesignPanel-B6a9wW_A.js} +1 -1
- package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DW-_Vqrr.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +28 -30
- package/dist/DictView-DhFbQxdJ.js +110 -0
- package/dist/{InvOrganization-MuM2jtsG.js → InvOrganization-D90AbR3b.js} +2 -2
- package/dist/Org-DxBkYabD.js +39 -0
- package/dist/{Preview-CRyiwUIR.js → Preview-BFtRpBxw.js} +1 -1
- package/dist/{ReportDefine-WZYIx8Sm.js → ReportDefine-BIa2QryC.js} +1 -1
- package/dist/{ReportDesign-D-7GKgpb.js → ReportDesign-CnyjI-WD.js} +44 -44
- package/dist/{ReportQuery-BIIJny6w.js → ReportQuery-BiK7yEhV.js} +5 -5
- package/dist/{ReportQueryFrom-OoUl7N2O.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
- package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B878fgj8.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +6 -5
- package/dist/{ReportTemplate-Cfeq9US-.js → ReportTemplate-DdkLscP3.js} +30 -30
- package/dist/{Role-BwTV2QMH.js → Role-BrsxgK8D.js} +6 -6
- package/dist/{RoleAssign-De1JjOun.js → RoleAssign-DiqwJqDa.js} +8 -8
- package/dist/{RolePanel-pUBXsqCM.js → RolePanel-BDusGyo7.js} +1 -1
- package/dist/{RolePanel-E3RcdByM.js → RolePanel-Dqx5dI3f.js} +1 -1
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
- package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B2pQwHb0.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +40 -34
- package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vMR1fBi0.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +23 -23
- package/dist/{Staff-Czm7A8vI.js → Staff-Cwi9LQiZ.js} +3 -3
- package/dist/StaffInfo-XjVtyaMv.js +4 -0
- package/dist/{StaffInfo.vue_vue_type_style_index_0_lang-DMTL7KCh.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +16 -16
- package/dist/{StaffPanel-CHk60LEz.js → StaffPanel-C-wYcFdv.js} +1 -1
- package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-iPKLb5wG.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +46 -49
- package/dist/{SysUser-BGwbttRn.js → SysUser-O4tvr-Ur.js} +2 -2
- package/dist/{SysUserPanel-BCbKoLKt.js → SysUserPanel-B853docZ.js} +1 -1
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
- package/dist/{SystemMenu-BkqZSDKl.js → SystemMenu-CXR6mrXr.js} +52 -50
- package/dist/{UserInfo-BsyAcT2d.js → UserInfo-BkP8pE2a.js} +1 -1
- package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D0-KDxAh.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +38 -36
- package/dist/{childView-CyuLTUqC.js → childView-D0HwbgDT.js} +1 -1
- package/dist/{childView-CF83nhxb.js → childView-TRqUkSDC.js} +1 -1
- package/dist/{childView.vue_vue_type_style_index_0_lang-CNSgGda3.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +43 -43
- package/dist/{childView.vue_vue_type_style_index_0_lang-Cch4lE-i.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
- package/dist/{code-rule-Bz-gnktN.js → code-rule-BV7PQWhK.js} +13 -14
- package/dist/core.es.js +13 -10
- package/dist/{cron-task-CIifSUdW.js → cron-task-9ZS9bi7K.js} +11 -11
- package/dist/{frameView-_d2mqjjQ.js → frameView-DE83AN50.js} +15 -14
- 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-DVARtten.js +2623 -0
- package/dist/{layoutView-DLKVepB8.js → layoutView-D1U-c4By.js} +730 -724
- package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
- package/dist/{login-LREiDfFU.js → login-sPCEiTGT.js} +107 -113
- package/dist/{lov-view-DDrIVILB.js → lov-view-76NcYTYl.js} +5 -5
- package/dist/{menuInfo-B1FUV-Sk.js → menuInfo-CxjfjFpm.js} +1 -1
- package/dist/{menuInfo.vue_vue_type_style_index_0_lang-Cnk3vdtD.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +98 -95
- package/dist/pda-app-BUH16bLj.js +710 -0
- package/dist/redirect-BqegffKC.js +15 -0
- package/dist/{resource-BCwx9fEv.js → resource-CCuHzoA6.js} +18 -18
- package/dist/{su-welcome-189A7N4r.js → su-welcome-mRArONsd.js} +133 -133
- package/dist/{sys-config-BZ3sejow.js → sys-config-Cvt05yF6.js} +21 -21
- package/dist/udp-core.css +2 -2
- package/dist/{utogether-r08LNiIZ.js → utogether-Dm_VBQHR.js} +6 -6
- package/index.ts +40 -36
- package/package.json +4 -2
- package/src/App.vue +65 -70
- package/src/api/index.ts +1 -1
- 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 +482 -0
- package/src/components/udp/form.vue +112 -0
- package/src/components/udp/grid.vue +495 -0
- package/src/components/udp/index.ts +10 -0
- package/src/components/udp/lov.vue +388 -0
- package/src/components/udp/modal-form.vue +189 -0
- package/src/components/udp/modal-grid.vue +288 -0
- package/src/components/udp/upload.vue +423 -0
- package/src/components/udp/utils.ts +447 -0
- package/src/directives/permission/index.ts +1 -1
- package/src/layout/components/lay-navbar/index.vue +1 -1
- 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-sidebar/breadCrumb.vue +1 -1
- package/src/layout/components/lay-tag/index.vue +625 -625
- package/src/layout/layoutView.vue +215 -215
- package/src/main.ts +25 -14
- package/src/plugins/i18n/en.ts +302 -289
- package/src/plugins/i18n/zh.ts +348 -337
- package/src/plugins/vxe-table/index.ts +53 -46
- package/src/plugins/vxe-table/render.tsx +956 -397
- package/src/router/index.ts +187 -183
- package/src/router/modules/remaining.ts +58 -83
- 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 +8 -24
- package/src/utils/{http → udp/http}/types.d.ts +8 -5
- package/src/utils/udp/useRender.ts +431 -0
- package/src/views/login/login-view.vue +2 -2
- package/src/views/organization/company/CompanyPanel.vue +259 -259
- package/src/views/organization/inv-org/InvOrganization.vue +1 -1
- package/src/views/organization/org/Org.vue +9 -5
- 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 +183 -191
- package/src/views/system/menu/menuInfo.vue +363 -368
- package/src/views/system/role/AuthorityInfo.vue +19 -33
- 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 +1 -1
- 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/components/menu-favorite.vue +1 -1
- package/src/views/uhome/su-welcome.vue +4 -4
- package/src/views/ulogin/login.vue +15 -10
- 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 -2
- package/vite.config.ts +13 -2
- package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-DbK-f8jH.js +0 -102
- package/dist/DictView-bIS5-rK-.js +0 -95
- package/dist/Org-kXHSjsgJ.js +0 -35
- package/dist/RolePanel.vue_vue_type_script_setup_true_lang-CTIad9_Q.js +0 -126
- package/dist/StaffInfo-DJzvBuxy.js +0 -4
- package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-0QUjnhjF.js +0 -289
- 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,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>
|
|
@@ -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`);
|
|
@@ -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>
|
|
@@ -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()
|
|
@@ -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">
|
|
@@ -94,9 +90,9 @@
|
|
|
94
90
|
SHENZHEN U-TOGETHER CO. LTD
|
|
95
91
|
</a>
|
|
96
92
|
</span>
|
|
97
|
-
<span class="flex items-center text-white" style="width:
|
|
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,
|
|
@@ -233,7 +237,8 @@ const cacheToken = token => {
|
|
|
233
237
|
const cache = {
|
|
234
238
|
accessToken: access_token,
|
|
235
239
|
refreshToken: refresh_token,
|
|
236
|
-
expires: Date.now() + expires_in * 1000
|
|
240
|
+
// expires: Date.now() + expires_in * 1000
|
|
241
|
+
expires: Date.now() + expires_in
|
|
237
242
|
};
|
|
238
243
|
|
|
239
244
|
cookies.set(kCKTOKEN, token.access_token);
|
|
@@ -275,7 +280,7 @@ const insertLoginInfo = username => {
|
|
|
275
280
|
browserVersion,
|
|
276
281
|
operatingSystem: getPlatform(userAgent)
|
|
277
282
|
};
|
|
278
|
-
serviceApi.post('/
|
|
283
|
+
serviceApi.post('/upfm/v1/userMonitor', obj);
|
|
279
284
|
};
|
|
280
285
|
|
|
281
286
|
const getSysConfig = async () => {
|