@utogether/udp-core 1.0.1-beta.5 → 1.0.1-beta.7

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 (98) hide show
  1. package/dist/{403-CP2RkkAy.js → 403-BQZ5OAKL.js} +10 -10
  2. package/dist/{404-DwK-0wNQ.js → 404-H55ex36i.js} +4 -4
  3. package/dist/{500-CLbJDqnd.js → 500-bbrspTnK.js} +1 -1
  4. package/dist/{AuthorityInfo-Bi1_uhMu.js → AuthorityInfo-BWni4UPQ.js} +1 -1
  5. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-7WtOL6Hs.js +100 -0
  6. package/dist/{Company-B--cokc6.js → Company-CuebFrQ0.js} +3 -3
  7. package/dist/{CompanyPanel-B_gmcZ9L.js → CompanyPanel-DxPdJs6x.js} +6 -6
  8. package/dist/{Department-DbKdyNzK.js → Department-D2a6Juur.js} +3 -3
  9. package/dist/{DepartmentPanel-BmEttboJ.js → DepartmentPanel-C_s2R9yl.js} +24 -23
  10. package/dist/{DesignPanel-LL68_36s.js → DesignPanel-CexZj3HF.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DWPmFegv.js → DesignPanel.vue_vue_type_style_index_0_lang-DfmysqwB.js} +25 -24
  12. package/dist/{DictView-B8j-EWx5.js → DictView-C0GS72rG.js} +19 -18
  13. package/dist/{InvOrganization-DnGQlESM.js → InvOrganization-a1tQ2CEH.js} +8 -7
  14. package/dist/Org-DifvzLLy.js +35 -0
  15. package/dist/{Preview-yot4NBW5.js → Preview-BOv5j9i6.js} +1 -1
  16. package/dist/{ReportDefine-DHadqNYy.js → ReportDefine-Dli1Q0TB.js} +1 -1
  17. package/dist/{ReportDesign-CBihGRth.js → ReportDesign-zSWkcL_O.js} +37 -36
  18. package/dist/{ReportQuery-CwHQ6LUU.js → ReportQuery-D5r3bvFc.js} +1 -1
  19. package/dist/{ReportQueryFrom-ie6lQcGL.js → ReportQueryFrom-DiostHrX.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-B8LJNK0m.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-Cr2eKMmr.js} +1 -1
  21. package/dist/{ReportTemplate-B2Smwo-z.js → ReportTemplate-CYy4cZHQ.js} +24 -24
  22. package/dist/{Role-Cf7DB7uS.js → Role-BFQFxfQS.js} +6 -6
  23. package/dist/{RoleAssign-upUnqs_i.js → RoleAssign-BIdWSLTR.js} +8 -8
  24. package/dist/{RolePanel-EXL_FLvM.js → RolePanel-C7ybSknr.js} +1 -1
  25. package/dist/{RolePanel-BBGDGK8V.js → RolePanel-KC-UgmtF.js} +1 -1
  26. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-C91CJO4e.js +132 -0
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DF8qJKwW.js → RolePanel.vue_vue_type_script_setup_true_lang-C_ZsMf1f.js} +40 -34
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DbBGg32H.js → ScrollPanel.vue_vue_type_style_index_0_lang-botBBgto.js} +17 -17
  29. package/dist/{Staff-DYu5ZEyR.js → Staff-CY0DLsTN.js} +3 -3
  30. package/dist/{StaffInfo-CHvNGjtz.js → StaffInfo-DA7p265h.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-XRJVEJ-s.js → StaffInfo.vue_vue_type_script_setup_true_lang-f29A44gS.js} +5 -5
  32. package/dist/{StaffPanel-C-ygEY65.js → StaffPanel-DYP-mMp9.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-BvLrF4Yw.js → StaffPanel.vue_vue_type_script_setup_true_lang-C0YAG2xV.js} +6 -6
  34. package/dist/{SysUser-BHk_szpK.js → SysUser-FqS3Ctne.js} +2 -2
  35. package/dist/{SysUserPanel-DFvzA5d-.js → SysUserPanel-C_t6F99T.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-B9zUXXwa.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CKZjy0OF.js} +93 -86
  37. package/dist/{SystemMenu-5TK9ZA11.js → SystemMenu-ChFrMzRg.js} +14 -13
  38. package/dist/{UserInfo-Bx3zQqHa.js → UserInfo-I36LAXVj.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-C2sqUQdg.js → UserInfo.vue_vue_type_style_index_0_lang-BGY-LYeL.js} +28 -25
  40. package/dist/await-to-js.es5-BtRbN2QH.js +10 -0
  41. package/dist/{childView-BSUWnii7.js → childView-CYpuOzRx.js} +1 -1
  42. package/dist/{childView-CFC3gA_U.js → childView-Csnlaqfs.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-EcT-Dux7.js → childView.vue_vue_type_style_index_0_lang-B8EnA03l.js} +18 -17
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-WQVLSJR8.js → childView.vue_vue_type_style_index_0_lang-DNVlDM_a.js} +10 -9
  45. package/dist/{code-rule-DybjhotB.js → code-rule-DHBSC5Qp.js} +14 -13
  46. package/dist/core.es.js +2 -2
  47. package/dist/{cron-task-DGdknqaF.js → cron-task-CiI1MFla.js} +8 -7
  48. package/dist/{frameView-BOOZRv1S.js → frameView-ZWKlbz9p.js} +1 -1
  49. package/dist/index-COBMRlmJ.js +5379 -0
  50. package/dist/{layoutView-BWeDLY9C.js → layoutView-5OsbpP0u.js} +11 -10
  51. package/dist/{login-BcuCHhGE.js → login-C55sa9gN.js} +26 -25
  52. package/dist/{lov-view-DDgzqYSW.js → lov-view-DFfaUQ5m.js} +9 -8
  53. package/dist/{menuInfo-B3MOxomU.js → menuInfo-CZdLtLjN.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BXMrNMUs.js → menuInfo.vue_vue_type_style_index_0_lang-DgG0aHRy.js} +16 -15
  55. package/dist/{pda-app-Dy9WMHEG.js → pda-app-fLe8mrx-.js} +213 -196
  56. package/dist/{resource-BoCP7-dM.js → resource-ohWKO6Fh.js} +20 -20
  57. package/dist/{su-welcome-DXpI1MHr.js → su-welcome-_UZTfrXX.js} +84 -84
  58. package/dist/{sys-config-BiUWzxGU.js → sys-config-DVuBsK7p.js} +19 -18
  59. package/dist/udp-core.css +1 -1
  60. package/dist/{utogether-DXDcsKt7.js → utogether-CxobZqGL.js} +1 -1
  61. package/package.json +18 -18
  62. package/src/components/SuScrollTree/ScrollPanel.vue +3 -3
  63. package/src/components/udp/flip-down/FlipCard/flip-card.vue +251 -0
  64. package/src/components/udp/flip-down/FlipCard/interfaces.ts +4 -0
  65. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +113 -0
  66. package/src/components/udp/grid.vue +12 -6
  67. package/src/components/udp/index.ts +2 -2
  68. package/src/components/udp/lov.vue +1 -1
  69. package/src/components/udp/modal-grid.vue +288 -297
  70. package/src/components/udp/utils.ts +4 -11
  71. package/src/layout/components/lay-search/index.vue +25 -25
  72. package/src/main.ts +18 -10
  73. package/src/plugins/i18n/zh.ts +348 -338
  74. package/src/plugins/vxe-table/index.ts +2 -2
  75. package/src/plugins/vxe-table/render.tsx +95 -18
  76. package/src/views/login/login-view.vue +1 -1
  77. package/src/views/system/role/AuthorityInfo.vue +19 -15
  78. package/src/views/system/role/Role.vue +1 -5
  79. package/src/views/system/role/RolePanel.vue +11 -2
  80. package/src/views/system/role/UserInfo.vue +5 -3
  81. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  82. package/src/views/system/role-assign/RolePanel.vue +139 -136
  83. package/src/views/system/sysUser/SysUserPanel.vue +37 -37
  84. package/src/views/uapp/pda/pda-app.vue +41 -10
  85. package/src/views/udev/dict/DictView.vue +6 -1
  86. package/src/views/udev/dict/childView.vue +1 -6
  87. package/src/views/ufile/aggregation/File.vue +5 -5
  88. package/src/views/ufile/file/water-mark.vue +14 -14
  89. package/src/views/uhome/su-welcome.vue +2 -2
  90. package/src/views/ulogin/login.vue +8 -0
  91. package/src/views/urpt/design/DesignPanel.vue +10 -33
  92. package/src/views/urpt/design/ReportDesign.vue +12 -16
  93. package/src/views/urpt/static-resource/resource.vue +3 -3
  94. package/src/views/urpt/template/ReportTemplate.vue +7 -7
  95. package/dist/AuthorityInfo.vue_vue_type_style_index_0_lang-RUhvzu76.js +0 -101
  96. package/dist/Org-Dg9Xkd34.js +0 -34
  97. package/dist/RolePanel.vue_vue_type_script_setup_true_lang-BwfL_JVZ.js +0 -125
  98. package/dist/index-BDE4-ZvN.js +0 -5091
@@ -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.file.watermarkContent' },
28
+ { field: 'watermarkCode', title: 'message.urpt.watermarkContent' },
29
29
  {
30
30
  field: 'watermarkType',
31
- title: 'message.file.watermarkType',
31
+ title: 'message.urpt.watermarkType',
32
32
  itemRender: renderHook.renderDict('SU.WATERMARK.TYPE')
33
33
  },
34
34
  {
35
35
  field: 'textAlign',
36
- title: 'message.file.textAlign',
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.file.watermarkContent',
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.file.watermarkType',
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.file.watermarkContent',
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.file.textAlign',
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.file.watermarkTrigger',
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.file.color', width: 90, editRender: renderHook.renderInput() },
81
+ { field: 'color', title: 'message.urpt.color', width: 90, editRender: renderHook.renderInput() },
82
82
  {
83
83
  field: 'fillOpacity',
84
- title: 'message.file.fillOpacity',
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.file.fontSize',
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.file.rotation',
96
+ title: 'message.urpt.rotation',
97
97
  width: 110,
98
98
  editRender: renderHook.renderNumber()
99
99
  },
100
- { field: 'xAxis', title: 'message.file.xAxis', width: 100, editRender: renderHook.renderNumber() },
101
- { field: 'yAxis', title: 'message.file.yAxis', width: 100, editRender: renderHook.renderNumber() }
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-04-29 17:04:36
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-countdown :show-days="false" :show-labels="false" />
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,
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2022-03-21 10:36:15
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-04-08 15:38:16
5
+ * @LastEditTime: 2025-08-12 09:57:22
6
6
  * @Description: 设计面板
7
7
  -->
8
8
  <template>
@@ -45,21 +45,12 @@
45
45
  <div class="flex justify-center mb-1" style="width: 100%">
46
46
  <vxe-input v-model="paperSize.width" type="number" class="w-40" placeholder="宽(mm)" />
47
47
  <div class="flex items-center justify-center w-8">~</div>
48
- <vxe-input
49
- v-model="paperSize.height"
50
- type="number"
51
- class="w-40"
52
- placeholder="高(mm)"
53
- />
48
+ <vxe-input v-model="paperSize.height" type="number" class="w-40" placeholder="高(mm)" />
54
49
  </div>
55
50
  <ut-button style="width: 100%" content="confirm" @tap="handleCustomSize" />
56
51
  </div>
57
52
  <template #reference>
58
- <ut-button
59
- icon="ri-font-size"
60
- content="customSize"
61
- @click.stop="paperPopVisible = true"
62
- />
53
+ <ut-button icon="ri-font-size" content="customSize" @tap.stop="paperPopVisible = true" />
63
54
  </template>
64
55
  </el-popover>
65
56
  <ut-button
@@ -69,22 +60,9 @@
69
60
  auth="import"
70
61
  @tap="handleShowImport()"
71
62
  />
72
- <vxe-button
73
- icon="ri-indeterminate-circle-line "
74
- class="design-custom-button"
75
- @click="handleScale('N')"
76
- />
77
- <vxe-input
78
- v-model="scale.ration"
79
- disabled
80
- align="center"
81
- style="width: 70px; margin-left: 10px"
82
- />
83
- <vxe-button
84
- icon="ri-add-circle-fill "
85
- class="design-custom-button"
86
- @click="handleScale('Y')"
87
- />
63
+ <vxe-button icon="ri-indeterminate-circle-line " class="design-custom-button" @click="handleScale('N')" />
64
+ <vxe-input v-model="scale.ration" disabled align="center" style="width: 70px; margin-left: 10px" />
65
+ <vxe-button icon="ri-add-circle-fill " class="design-custom-button" @click="handleScale('Y')" />
88
66
  <ut-button
89
67
  status="danger"
90
68
  icon="ri-delete-bin-5-fill"
@@ -99,8 +77,7 @@
99
77
  </div>
100
78
  </div>
101
79
  <div style="font-size: 12px; color: red; text-align: center">
102
- 温馨提示:
103
- 蓝色线(页眉)以下,每张纸打印都会重复打印到页面底部;红色线(页尾)以下,每张纸打印都会重复打印到页面底部
80
+ 温馨提示: 蓝色线(页眉)以下,每张纸打印都会重复打印到页面底部;红色线(页尾)以下,每张纸打印都会重复打印到页面底部
104
81
  </div>
105
82
  </el-space>
106
83
  <el-row>
@@ -216,7 +193,7 @@
216
193
 
217
194
  <script setup lang="ts">
218
195
  import { onMounted, reactive, ref, nextTick, onBeforeUnmount } from 'vue';
219
- import { VXETable } from 'vxe-table';
196
+ import { VxeUI } from 'vxe-pc-ui';
220
197
  import { useGlobal } from '@utogether/utils';
221
198
  import to from 'await-to-js';
222
199
  import { clone } from 'xe-utils';
@@ -320,7 +297,7 @@ const handleScale = max => {
320
297
  * @Desc: 参数设置drawer回调,将参数设置dom添加到弹出层中
321
298
  */
322
299
  const handleClearPaper = async () => {
323
- const type = await VXETable.modal.confirm('重绘操作不可逆,您确定继续吗?', '温馨提示');
300
+ const type = await VxeUI.modal.confirm('重绘操作不可逆,您确定继续吗?', '温馨提示');
324
301
  if (type === 'confirm') {
325
302
  hiprintTemplate.clear();
326
303
  }
@@ -329,7 +306,7 @@ const handleShowImport = async () => {
329
306
  showImportView.value = true;
330
307
  };
331
308
  const handleImportJson = async () => {
332
- const type = await VXETable.modal.confirm('导入后将覆盖原有的模板,您确定继续吗?', '温馨提示');
309
+ const type = await VxeUI.modal.confirm('导入后将覆盖原有的模板,您确定继续吗?', '温馨提示');
333
310
  if (type === 'confirm') {
334
311
  handleSave(handleClose);
335
312
  showImportView.value = false;
@@ -22,8 +22,8 @@
22
22
  v-if="showModal"
23
23
  :record="record"
24
24
  :items="items"
25
- :width="300"
26
- :height="240"
25
+ width="40%"
26
+ :height="290"
27
27
  data-status="update"
28
28
  title="复制模板"
29
29
  @confirm="onConfirm"
@@ -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.file.templateCode' },
57
- { field: 'templateName', title: 'message.file.templateName' }
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.file.templateCode',
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.file.templateName',
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.file.paperType',
79
+ title: 'message.urpt.paperType',
80
80
  width: 120,
81
81
  required: true,
82
82
  editRender: renderHook.renderDict({ code: 'SU.PRINT.PAPER', defaultValue: 'A4' }),
@@ -94,12 +94,7 @@ const columns = [
94
94
  return (
95
95
  <>
96
96
  <ut-button content="design" icon="ri-quill-pen-line" onTap={() => handleDesign(row)} />
97
- <ut-button
98
- content="copy"
99
- status="warning"
100
- icon="ri-file-copy-2-fill"
101
- onTap={() => handleCopy(row)}
102
- />
97
+ <ut-button content="copy" status="warning" icon="ri-file-copy-2-fill" onTap={() => handleCopy(row)} />
103
98
  <ut-button
104
99
  content="export"
105
100
  status="u-cyan"
@@ -117,25 +112,26 @@ const columns = [
117
112
  const items = [
118
113
  {
119
114
  field: 'templateCode',
120
- title: 'message.templateCode',
115
+ title: 'message.urpt.templateCode',
121
116
  required: true,
122
117
  itemRender: { name: '$input' },
123
118
  span: 24
124
119
  },
125
120
  {
126
121
  field: 'templateName',
127
- title: 'message.templateName',
122
+ title: 'message.urpt.templateName',
128
123
  required: true,
129
124
  itemRender: { name: '$input' },
130
125
  span: 24
131
126
  },
132
127
  {
133
128
  field: 'paperType',
129
+ title: 'message.urpt.paperType',
134
130
  width: 100,
135
131
  required: true,
136
132
  itemRender: renderHook.renderDict({ code: 'SU.PRINT.PAPER', defaultValue: 'A4' })
137
133
  },
138
- { field: 'remarks', title: 'message.remark', required: true, itemRender: { name: '$input' }, span: 24 }
134
+ { field: 'remarks', title: 'message.remark', itemRender: { name: '$input' }, span: 24 }
139
135
  ];
140
136
  /*
141
137
  // 启用/禁用
@@ -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.file.resourceCode', width: 140 },
49
- { field: 'templateName', title: 'message.file.resourceName', width: 150 },
50
- { field: 'templateUrl', title: 'message.file.resourceUrl', miWidth: 200 },
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.file.templateCode' },
66
- { field: 'templateName', title: 'message.file.templateName' },
67
- { field: 'printPosition', title: 'message.file.printPosition', code: 'SU.PRINT.VIEW' }
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.file.templateCode',
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.file.templateName', width: 180 },
84
+ { field: 'templateName', title: 'message.urpt.templateName', width: 180 },
85
85
  {
86
86
  field: 'printPosition',
87
- title: 'message.file.printPosition',
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.file.buttonCode',
95
+ title: 'message.urpt.buttonCode',
96
96
  width: 120,
97
97
  required: true,
98
98
  editRender: renderHook.renderInput()
@@ -1,101 +0,0 @@
1
- import { defineComponent as N, ref as m, reactive as B, onBeforeMount as M, resolveComponent as n, resolveDirective as A, createElementBlock as f, openBlock as h, createVNode as t, withCtx as p, withDirectives as D, createElementVNode as _ } from "vue";
2
- import { v as r, q as K } from "./index-BDE4-ZvN.js";
3
- const S = { class: "config" }, E = {
4
- "element-loading-text": "Loading...",
5
- style: { position: "relative", height: "80vh" }
6
- }, I = { style: { height: "85%", overflow: "auto" } }, V = { style: { position: "absolute", width: "100%", height: "15%" } }, z = /* @__PURE__ */ N({
7
- __name: "AuthorityInfo",
8
- props: {
9
- show: { type: Boolean, default: !1 },
10
- record: { default: () => ({}) },
11
- dataStatus: { default: "detail" },
12
- direction: { default: "rtl" }
13
- },
14
- emits: ["onClose"],
15
- setup(v, { emit: y }) {
16
- const c = v, d = m(null), o = m(!1), s = B({
17
- dataList: [],
18
- defaultCheckedKeys: []
19
- // 默认权限
20
- }), g = y, w = async () => {
21
- const e = await r().get("/uums/menu/listMenuTree", {});
22
- o.value = !1, s.dataList = e;
23
- }, k = async () => {
24
- const e = {
25
- roleId: c.record.id,
26
- menuType: "1"
27
- }, a = await r().get("/uums/role/getRoleMenus", e);
28
- s.defaultCheckedKeys = a.map((l) => l.id);
29
- }, C = async () => {
30
- const { record: e } = c;
31
- o.value = !0;
32
- const a = d.value.getCheckedNodes(!1, !0);
33
- e.sysMenus = a, await K(r().put("/uums/role", [e])), o.value = !1, i();
34
- };
35
- function i() {
36
- g("onClose");
37
- }
38
- return M(() => {
39
- o.value = !0, k(), w();
40
- }), (e, a) => {
41
- const l = n("el-tree-v2"), b = n("el-divider"), u = n("ut-button"), x = n("el-row"), L = n("el-drawer"), T = A("spinning");
42
- return h(), f("div", S, [
43
- t(L, {
44
- "model-value": e.show,
45
- title: e.$t("message.title.authority", { role: e.record.roleName }),
46
- "before-close": i,
47
- direction: "rtl",
48
- "destroy-on-close": "",
49
- size: "40%"
50
- }, {
51
- default: p(() => [
52
- D((h(), f("div", E, [
53
- _("div", I, [
54
- t(l, {
55
- ref_key: "xTree",
56
- ref: d,
57
- data: s.dataList,
58
- props: { children: "children", label: "menuName" },
59
- "default-checked-keys": s.defaultCheckedKeys,
60
- height: 420,
61
- "show-checkbox": "",
62
- "node-key": "id"
63
- }, null, 8, ["data", "default-checked-keys"])
64
- ]),
65
- _("div", V, [
66
- t(b, { style: { margin: "16px 0" } }),
67
- t(x, {
68
- type: "flex",
69
- justify: "end",
70
- style: { "padding-right": "20px" }
71
- }, {
72
- default: p(() => [
73
- t(u, {
74
- content: "cancel",
75
- icon: "ri-close-fill",
76
- status: "warning",
77
- onTap: i
78
- }),
79
- t(u, {
80
- content: "confirm",
81
- icon: "ri-save-3-fill",
82
- status: "u-cyan",
83
- onTap: C
84
- })
85
- ]),
86
- _: 1
87
- })
88
- ])
89
- ])), [
90
- [T, o.value]
91
- ])
92
- ]),
93
- _: 1
94
- }, 8, ["model-value", "title"])
95
- ]);
96
- };
97
- }
98
- });
99
- export {
100
- z as _
101
- };
@@ -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
- };
@@ -1,125 +0,0 @@
1
- import { defineComponent as V, reactive as b, ref as g, inject as N, watch as B, nextTick as E, createVNode as h, resolveComponent as i, resolveDirective as M, withDirectives as A, createElementBlock as L, openBlock as w, createBlock as P, createCommentVNode as R, unref as S } from "vue";
2
- import { useI18n as T } from "vue-i18n";
3
- import { clone as U } from "xe-utils";
4
- import { VxeUI as j } from "vxe-pc-ui";
5
- import { q as _, v } from "./index-BDE4-ZvN.js";
6
- import { successMessage as C } from "@utogether/utils";
7
- const q = {
8
- class: "page-content"
9
- }, d = "/uums/orgRole", Q = /* @__PURE__ */ V({
10
- __name: "RolePanel",
11
- setup($) {
12
- const e = b({
13
- record: {},
14
- loading: !1,
15
- showModalView: !1
16
- }), {
17
- t: c
18
- } = T(), n = g(null), u = g(null), o = N("active");
19
- B(() => o.value, () => {
20
- o != null && o.value.id && (e.fetchExtParam = {
21
- orgId: o == null ? void 0 : o.value.id
22
- }, E(() => {
23
- n.value.refreshData();
24
- }));
25
- });
26
- const x = [{
27
- code: "del",
28
- auth: "/"
29
- }], m = [{
30
- field: "roleName",
31
- title: "message.udp.roleName"
32
- }, {
33
- field: "roleCode",
34
- title: "message.udp.roleCode"
35
- }], f = [{
36
- type: "checkbox",
37
- width: 40
38
- }, {
39
- field: "roleCode",
40
- title: "message.udp.roleCode"
41
- }, {
42
- field: "roleName",
43
- title: "message.udp.roleName"
44
- }, {
45
- field: "roleDesc",
46
- title: "message.udp.roleDesc"
47
- }, {
48
- field: "enabled",
49
- width: 100,
50
- formatter: ["formatDict", "SU.ENABLE"]
51
- }], p = U(f, !0);
52
- p.push({
53
- field: "operate",
54
- width: 80,
55
- fixed: "right",
56
- slots: {
57
- default: ({
58
- row: t
59
- }) => [h(i("ut-button"), {
60
- icon: "ri-delete-bin-5-fill",
61
- content: "del",
62
- status: "danger",
63
- auth: "del",
64
- onTap: () => D(t)
65
- }, null)]
66
- }
67
- });
68
- const k = () => {
69
- e.record = {}, e.record.orgId = o.value.id, e.showModalView = !0;
70
- }, D = async (t) => {
71
- if (await j.modal.confirm(c("message.tip.del")) === "confirm") {
72
- const s = {
73
- orgId: o.value.id,
74
- roleId: t.id
75
- };
76
- e.loading = !0;
77
- const [a] = await _(v().delete(d, s));
78
- a || C(c("message.operateSuccess")), n.value.refreshData(), e.loading = !1;
79
- }
80
- }, I = async (t) => {
81
- const r = [];
82
- t.forEach((l) => {
83
- l.orgId = o.value.id, l.roleId = l.id, r.push(l);
84
- });
85
- const s = {
86
- orgRoleList: r
87
- };
88
- u.value.showLoading();
89
- const [a] = await _(v().post(d, s));
90
- a || (C(), n.value.refreshData(), e.showModalView = !1);
91
- }, y = (t) => {
92
- t === "add" && k();
93
- };
94
- return (t, r) => {
95
- const s = i("ut-grid"), a = i("ut-modal-grid"), l = M("spinning");
96
- return A((w(), L("div", q, [h(s, {
97
- ref_key: "xgrid",
98
- ref: n,
99
- items: m,
100
- columns: S(p),
101
- "default-params": e.fetchExtParam,
102
- buttons: x,
103
- "auto-load": !1,
104
- url: d,
105
- mode: "form",
106
- onButtonClick: y
107
- }, null, 8, ["columns", "default-params"]), e.showModalView ? (w(), P(a, {
108
- key: 0,
109
- ref_key: "xmodal",
110
- ref: u,
111
- items: m,
112
- columns: f,
113
- "show-footer": !0,
114
- editable: !1,
115
- url: "/uums/role",
116
- width: "60%",
117
- onClose: r[0] || (r[0] = (z) => e.showModalView = !1),
118
- onConfirm: I
119
- }, null, 512)) : R("", !0)])), [[l, e.loading]]);
120
- };
121
- }
122
- });
123
- export {
124
- Q as _
125
- };