@utogether/udp-core 1.0.1-beta.1 → 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.
Files changed (140) hide show
  1. package/build/plugins.ts +39 -32
  2. package/dist/{403-Dp617CWX.js → 403-Ctxjn4q8.js} +1 -1
  3. package/dist/{404-Cz_Axb6Y.js → 404-W5yzyiZ9.js} +1 -1
  4. package/dist/{500-BGCtRNse.js → 500-DXuGEOm4.js} +1 -1
  5. package/dist/{AuthorityInfo-DGGfm7IS.js → AuthorityInfo-C2tflCt8.js} +1 -1
  6. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js +100 -0
  7. package/dist/{Company-IV3GTnzY.js → Company-PLez5GoH.js} +3 -3
  8. package/dist/{CompanyPanel-qV-_VtoL.js → CompanyPanel-CIGaQooL.js} +16 -16
  9. package/dist/{Department-B3W-OxW8.js → Department-B9wLsXFm.js} +3 -3
  10. package/dist/{DepartmentPanel-Cw3OWxE7.js → DepartmentPanel-DSM4lTaz.js} +1 -1
  11. package/dist/{DesignPanel-BFxR2fHJ.js → DesignPanel-B6a9wW_A.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DljbeFba.js → DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js} +24 -26
  13. package/dist/DictView-DhFbQxdJ.js +110 -0
  14. package/dist/InvOrganization-D90AbR3b.js +66 -0
  15. package/dist/Org-DxBkYabD.js +39 -0
  16. package/dist/{Preview-BlDMmpdR.js → Preview-BFtRpBxw.js} +1 -1
  17. package/dist/{ReportDefine-Cub_85LA.js → ReportDefine-BIa2QryC.js} +1 -1
  18. package/dist/{ReportDesign-hFhq5UVE.js → ReportDesign-CnyjI-WD.js} +43 -43
  19. package/dist/{ReportQuery-ChkWEyxT.js → ReportQuery-BiK7yEhV.js} +1 -1
  20. package/dist/{ReportQueryFrom-KVyD_8Dj.js → ReportQueryFrom-C2rqdFTm.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CLNODquq.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js} +1 -1
  22. package/dist/{ReportTemplate-ag9NDvh2.js → ReportTemplate-DdkLscP3.js} +28 -28
  23. package/dist/{Role-_q3lQ8CZ.js → Role-BrsxgK8D.js} +6 -6
  24. package/dist/{RoleAssign-DZb9IRsm.js → RoleAssign-DiqwJqDa.js} +8 -8
  25. package/dist/{RolePanel-CsLsz-Ds.js → RolePanel-BDusGyo7.js} +1 -1
  26. package/dist/{RolePanel-BQb1LlhD.js → RolePanel-Dqx5dI3f.js} +1 -1
  27. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js +132 -0
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-BrnRgHEk.js → RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js} +44 -38
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-CaFKRwXu.js → ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js} +21 -21
  30. package/dist/{Staff-BSf9Ypbk.js → Staff-Cwi9LQiZ.js} +3 -3
  31. package/dist/{StaffInfo-BNKasyMF.js → StaffInfo-XjVtyaMv.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-DDZ7ukd0.js → StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js} +11 -11
  33. package/dist/{StaffPanel-Bpq0WVlH.js → StaffPanel-C-wYcFdv.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BhiJ0Q-Q.js → StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js} +2 -2
  35. package/dist/{SysUser-FAABuNti.js → SysUser-O4tvr-Ur.js} +2 -2
  36. package/dist/{SysUserPanel-PxJeOgHm.js → SysUserPanel-B853docZ.js} +1 -1
  37. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js +294 -0
  38. package/dist/{SystemMenu-C-7NAGon.js → SystemMenu-CXR6mrXr.js} +26 -26
  39. package/dist/{UserInfo-ClXKtyGo.js → UserInfo-BkP8pE2a.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-8N7P4Hl7.js → UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js} +39 -37
  41. package/dist/{childView-C_HmDQNd.js → childView-D0HwbgDT.js} +1 -1
  42. package/dist/{childView-uUlBcTza.js → childView-TRqUkSDC.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-Ckjmw6wJ.js → childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js} +40 -40
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-y0sDvYx5.js → childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js} +1 -1
  45. package/dist/{code-rule-AgCVDKFy.js → code-rule-BV7PQWhK.js} +9 -10
  46. package/dist/core.es.js +14 -11
  47. package/dist/{cron-task-C6FgQxTi.js → cron-task-9ZS9bi7K.js} +1 -1
  48. package/dist/{frameView-BDgISK7N.js → frameView-DE83AN50.js} +1 -1
  49. package/dist/img/l_img.svg +1 -1
  50. package/dist/img/minicolors.png +0 -0
  51. package/dist/img/v_img.svg +1 -1
  52. package/dist/index-DVARtten.js +2623 -0
  53. package/dist/{layoutView-yb3DV2DQ.js → layoutView-D1U-c4By.js} +111 -110
  54. package/dist/{login-log-CvVnyGi3.js → login-log-kqKzKTto.js} +1 -1
  55. package/dist/{login-RRpljbkm.js → login-sPCEiTGT.js} +106 -113
  56. package/dist/{lov-view-C9-rjzZR.js → lov-view-76NcYTYl.js} +2 -2
  57. package/dist/{menuInfo-CzPQyFhp.js → menuInfo-CxjfjFpm.js} +1 -1
  58. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BumXunCg.js → menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js} +100 -97
  59. package/dist/{pda-app-Dvy3U-b6.js → pda-app-BUH16bLj.js} +211 -197
  60. package/dist/{resource-Fy0lFkSV.js → resource-CCuHzoA6.js} +15 -15
  61. package/dist/{su-welcome-DYvSCUST.js → su-welcome-mRArONsd.js} +109 -110
  62. package/dist/{sys-config-DJ1vNQTy.js → sys-config-Cvt05yF6.js} +7 -7
  63. package/dist/udp-core.css +2 -2
  64. package/dist/{utogether-CjmJiHoE.js → utogether-Dm_VBQHR.js} +1 -1
  65. package/index.ts +40 -36
  66. package/package.json +1 -1
  67. package/src/App.vue +65 -70
  68. package/src/api/index.ts +1 -1
  69. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  70. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  71. package/src/components/udp/count-down.vue +536 -0
  72. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  73. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  74. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  75. package/src/components/udp/form-upload.vue +414 -64
  76. package/src/components/udp/form.vue +112 -0
  77. package/src/components/udp/grid.vue +495 -0
  78. package/src/components/udp/index.ts +10 -4
  79. package/src/components/udp/lov.vue +388 -0
  80. package/src/components/udp/modal-form.vue +11 -2
  81. package/src/components/udp/modal-grid.vue +288 -0
  82. package/src/components/udp/upload.vue +423 -0
  83. package/src/components/udp/utils.ts +447 -40
  84. package/src/directives/permission/index.ts +1 -1
  85. package/src/layout/components/lay-navbar/index.vue +1 -1
  86. package/src/layout/components/lay-panel/index.vue +150 -150
  87. package/src/layout/components/lay-search/index.vue +25 -25
  88. package/src/layout/components/lay-sidebar/breadCrumb.vue +1 -1
  89. package/src/layout/components/lay-tag/index.vue +625 -625
  90. package/src/layout/layoutView.vue +215 -215
  91. package/src/main.ts +23 -13
  92. package/src/plugins/i18n/en.ts +302 -289
  93. package/src/plugins/i18n/zh.ts +348 -337
  94. package/src/plugins/vxe-table/index.ts +53 -46
  95. package/src/plugins/vxe-table/render.tsx +956 -817
  96. package/src/router/index.ts +187 -183
  97. package/src/router/modules/remaining.ts +58 -83
  98. package/src/style/button.scss +85 -78
  99. package/src/style/tailwind.css +1 -68
  100. package/src/style/vxetable.scss +44 -11
  101. package/src/utils/authority/index.ts +1 -1
  102. package/src/utils/{http → udp/http}/index.ts +8 -24
  103. package/src/utils/{http → udp/http}/types.d.ts +8 -5
  104. package/src/utils/udp/useRender.ts +17 -6
  105. package/src/views/login/login-view.vue +2 -2
  106. package/src/views/organization/company/CompanyPanel.vue +259 -259
  107. package/src/views/organization/inv-org/InvOrganization.vue +2 -3
  108. package/src/views/organization/org/Org.vue +9 -5
  109. package/src/views/system/menu/SystemMenu.vue +183 -197
  110. package/src/views/system/menu/menuInfo.vue +363 -371
  111. package/src/views/system/role/AuthorityInfo.vue +19 -15
  112. package/src/views/system/role/Role.vue +1 -5
  113. package/src/views/system/role/RolePanel.vue +11 -2
  114. package/src/views/system/role/UserInfo.vue +195 -193
  115. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  116. package/src/views/system/role-assign/RolePanel.vue +139 -136
  117. package/src/views/system/sys/sys-config.vue +1 -1
  118. package/src/views/system/sysUser/SysUserPanel.vue +278 -278
  119. package/src/views/uapp/pda/pda-app.vue +208 -176
  120. package/src/views/udev/dict/DictView.vue +118 -106
  121. package/src/views/udev/dict/childView.vue +7 -7
  122. package/src/views/udev/lov/lov-view.vue +91 -91
  123. package/src/views/ufile/aggregation/File.vue +5 -5
  124. package/src/views/ufile/file/water-mark.vue +14 -14
  125. package/src/views/uhome/su-welcome.vue +3 -3
  126. package/src/views/ulogin/login.vue +14 -9
  127. package/src/views/upms/user/login-log.vue +1 -1
  128. package/src/views/urpt/design/DesignPanel.vue +507 -526
  129. package/src/views/urpt/design/ReportDesign.vue +15 -19
  130. package/src/views/urpt/static-resource/resource.vue +3 -3
  131. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  132. package/types/global.d.ts +2 -1
  133. package/vite.config.ts +6 -2
  134. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-BqccGW7v.js +0 -102
  135. package/dist/DictView-C-i7e4hZ.js +0 -95
  136. package/dist/InvOrganization-cfT6riGU.js +0 -260
  137. package/dist/Org-CA7vTDIF.js +0 -35
  138. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-cmW7zBLu.js +0 -126
  139. package/dist/SysUserPanel.vue_vue_type_script_setup_true_lang-njefUln5.js +0 -288
  140. package/dist/index-DzOzUkf6.js +0 -3388
@@ -1,136 +1,139 @@
1
- <template>
2
- <div v-spinning="data.loading" class="page-content">
3
- <ut-grid
4
- ref="xgrid"
5
- :items="formItems"
6
- :columns="gridCol"
7
- :default-params="data.fetchExtParam"
8
- :buttons="buttons"
9
- :auto-load="false"
10
- :url="url"
11
- mode="form"
12
- @buttonClick="onButtonClick"
13
- />
14
- <ut-modal-grid
15
- v-if="data.showModalView"
16
- ref="xmodal"
17
- :items="formItems"
18
- :columns="columns"
19
- :show-footer="true"
20
- :editable="false"
21
- url="/uums/role"
22
- width="60%"
23
- @close="data.showModalView = false"
24
- @confirm="onConfirm"
25
- />
26
- </div>
27
- </template>
28
-
29
- <script setup lang="tsx">
30
- import { useI18n } from 'vue-i18n';
31
- import { ref, reactive, watch, inject, nextTick } from 'vue';
32
- import { clone } from 'xe-utils';
33
- import { VxeUI } from 'vxe-pc-ui';
34
- import to from 'await-to-js';
35
- import { successMessage } from '@utogether/utils';
36
- import { getServiceApi } from '../../../api';
37
-
38
- const data = reactive<IRecord>({
39
- record: {},
40
- loading: false,
41
- showModalView: false
42
- });
43
- const { t } = useI18n();
44
-
45
- const xgrid = ref(null);
46
- const xmodal = ref(null);
47
- const active: IRecord = inject('active');
48
-
49
- const url = '/uums/orgRole';
50
- watch(
51
- () => active.value,
52
- () => {
53
- if (!active?.value.id) return;
54
- data.fetchExtParam = { orgId: active?.value.id };
55
- nextTick(() => {
56
- xgrid.value.refreshData();
57
- });
58
- }
59
- );
60
-
61
- const buttons = [{ code: 'del', auth: '/' }];
62
-
63
- const formItems = [
64
- { field: 'roleName', title: 'message.udp.roleName' },
65
- { field: 'roleCode', title: 'message.udp.roleCode' }
66
- ];
67
-
68
- const columns = [
69
- { type: 'checkbox', width: 40 },
70
- { field: 'roleCode', title: 'message.udp.roleCode' },
71
- { field: 'roleName', title: 'message.udp.roleName' },
72
- { field: 'roleDesc', title: 'message.udp.roleDesc' },
73
- { field: 'enabled', width: 100, formatter: ['formatDict', 'SU.ENABLE'] }
74
- ];
75
-
76
- const gridCol: any[] = clone(columns, true);
77
- gridCol.push({
78
- field: 'operate',
79
- width: 80,
80
- fixed: 'right',
81
- slots: {
82
- default: ({ row }) => {
83
- return [
84
- <ut-button
85
- icon="ri-delete-bin-5-fill"
86
- content="del"
87
- status="danger"
88
- auth="del"
89
- onTap={() => handleDel(row)}
90
- />
91
- ];
92
- }
93
- }
94
- });
95
-
96
- // 新增
97
- const handleAdd = () => {
98
- data.record = {};
99
- data.record.orgId = active.value.id;
100
- data.showModalView = true;
101
- };
102
- // 删除
103
- const handleDel = async row => {
104
- const type = await VxeUI.modal.confirm(t('message.tip.del'));
105
- if (type === 'confirm') {
106
- const param = { orgId: active.value.id, roleId: row.id };
107
- data.loading = true;
108
- const [err] = await to(getServiceApi().delete(url, param));
109
- if (!err) {
110
- successMessage(t('message.operateSuccess'));
111
- }
112
- xgrid.value.refreshData();
113
- data.loading = false;
114
- }
115
- };
116
- const onConfirm = async records => {
117
- const orgRoleList = [];
118
- records.forEach(m => {
119
- m.orgId = active.value.id;
120
- m.roleId = m.id;
121
- orgRoleList.push(m);
122
- });
123
- const param = { orgRoleList };
124
- xmodal.value.showLoading();
125
- const [err] = await to(getServiceApi().post(url, param));
126
- if (!err) {
127
- successMessage();
128
- xgrid.value.refreshData();
129
- data.showModalView = false;
130
- }
131
- };
132
-
133
- const onButtonClick = code => {
134
- code === 'add' && handleAdd();
135
- };
136
- </script>
1
+ <template>
2
+ <div v-spinning="data.loading" class="page-content">
3
+ <ut-grid
4
+ ref="xgrid"
5
+ :items="formItems"
6
+ :columns="gridCol"
7
+ :default-params="data.fetchExtParam"
8
+ :default-value="data.fetchExtParam"
9
+ :buttons="buttons"
10
+ :auto-load="false"
11
+ :url="url"
12
+ :check-method="checkMethod"
13
+ mode="form"
14
+ @buttonClick="onButtonClick"
15
+ />
16
+ <ut-modal-grid
17
+ v-if="data.showModalView"
18
+ ref="xmodal"
19
+ :items="formItems"
20
+ :columns="columns"
21
+ :show-footer="true"
22
+ :editable="false"
23
+ :title="$t('message.udp.roleList')"
24
+ url="/uums/role"
25
+ width="60%"
26
+ height="75%"
27
+ @close="data.showModalView = false"
28
+ @confirm="onConfirm"
29
+ />
30
+ </div>
31
+ </template>
32
+
33
+ <script setup lang="tsx">
34
+ import { useI18n } from 'vue-i18n';
35
+ import { ref, reactive, watch, inject, nextTick } from 'vue';
36
+ import { clone } from 'xe-utils';
37
+ import { VxeUI } from 'vxe-pc-ui';
38
+ import to from 'await-to-js';
39
+ import { successMessage } from '@utogether/utils';
40
+ import { getServiceApi } from '../../../api';
41
+
42
+ const data = reactive<IRecord>({
43
+ record: {},
44
+ loading: false,
45
+ showModalView: false
46
+ });
47
+ const { t } = useI18n();
48
+
49
+ const xgrid = ref(null);
50
+ const xmodal = ref(null);
51
+ const active: IRecord = inject('active');
52
+
53
+ const url = '/uums/orgRole';
54
+ watch(
55
+ () => active.value,
56
+ () => {
57
+ if (!active?.value.id) return;
58
+ data.fetchExtParam = { orgId: active?.value.id };
59
+ nextTick(() => {
60
+ xgrid.value.refreshData();
61
+ });
62
+ }
63
+ );
64
+
65
+ const buttons = [{ code: 'del', auth: '/' }];
66
+
67
+ const formItems = [
68
+ { field: 'roleName', title: 'message.udp.roleName', span: 9 },
69
+ { field: 'roleCode', title: 'message.udp.roleCode', span: 9 }
70
+ ];
71
+
72
+ const columns = [
73
+ { type: 'checkbox', width: 40 },
74
+ { field: 'roleCode', title: 'message.udp.roleCode' },
75
+ { field: 'roleName', title: 'message.udp.roleName' },
76
+ { field: 'roleDesc', title: 'message.udp.roleDesc' },
77
+ { field: 'enabled', width: 100, formatter: ['formatDict', 'SU.ENABLE'] }
78
+ ];
79
+
80
+ const gridCol: any[] = clone(columns, true);
81
+ gridCol.push({
82
+ field: 'operate',
83
+ width: 80,
84
+ fixed: 'right',
85
+ slots: {
86
+ default: ({ row }) => {
87
+ if (row.roleCode === 'admin') return null;
88
+ return [
89
+ <ut-button icon="ri-delete-bin-5-fill" content="del" status="danger" auth="del" onTap={() => handleDel(row)} />
90
+ ];
91
+ }
92
+ }
93
+ });
94
+
95
+ // 新增
96
+ const handleAdd = () => {
97
+ data.record = {};
98
+ data.record.orgId = active.value.id;
99
+ data.showModalView = true;
100
+ };
101
+ // 删除
102
+ const handleDel = async row => {
103
+ const type = await VxeUI.modal.confirm(t('message.tip.del'));
104
+ if (type === 'confirm') {
105
+ const param = { orgId: active.value.id, roleId: row.id };
106
+ data.loading = true;
107
+ const [err] = await to(getServiceApi().delete(url, param));
108
+ if (!err) {
109
+ successMessage(t('message.operateSuccess'));
110
+ }
111
+ xgrid.value.refreshData();
112
+ data.loading = false;
113
+ }
114
+ };
115
+ const onConfirm = async records => {
116
+ const orgRoleList = [];
117
+ records.forEach(m => {
118
+ m.orgId = active.value.id;
119
+ m.roleId = m.id;
120
+ orgRoleList.push(m);
121
+ });
122
+ const param = { orgRoleList };
123
+ xmodal.value.showLoading();
124
+ const [err] = await to(getServiceApi().post(url, param));
125
+ if (!err) {
126
+ successMessage();
127
+ xgrid.value.refreshData();
128
+ data.showModalView = false;
129
+ }
130
+ };
131
+
132
+ const checkMethod = row => {
133
+ return row.roleCode !== 'admin';
134
+ };
135
+
136
+ const onButtonClick = code => {
137
+ code === 'add' && handleAdd();
138
+ };
139
+ </script>
@@ -119,7 +119,7 @@ const record = reactive({
119
119
  defaultLanguage: 'zh',
120
120
  title: 'U-DP',
121
121
  ispTitle: 'U-DP',
122
- i18nEnabled: 'Y',
122
+ i18nEnabled: 'N',
123
123
  copyright: '深圳友聚信息技术有限公司',
124
124
  logo: [],
125
125
  backgroundImg: [],