@utogether/udp-core 1.0.4 → 2.0.0-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 (124) hide show
  1. package/dist/{403-DASI6Pwz.js → 403-DjXGcxpa.js} +3 -3
  2. package/dist/{404-YhBA92cb.js → 404-B_MSn6FQ.js} +1 -1
  3. package/dist/{500-ywbFF5MX.js → 500-CtI21E9g.js} +2 -2
  4. package/dist/{AuthorityInfo-tCSX2Fh7.js → AuthorityInfo-CYhRUS8K.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cwd6UT2i.js → AuthorityInfo.vue_vue_type_style_index_0_lang-BY8hkJ2R.js} +2 -2
  6. package/dist/{AuthorityPanel-BeBNiwqc.js → AuthorityPanel-CRlAwbaI.js} +1 -1
  7. package/dist/{AuthorityPanel.vue_vue_type_style_index_0_lang-CIYmnP9-.js → AuthorityPanel.vue_vue_type_style_index_0_lang-DxhZjp1S.js} +31 -24
  8. package/dist/{Company-l23MEzdM.js → Company-BVH3Zyy0.js} +3 -3
  9. package/dist/{CompanyPanel-D_s0rh6h.js → CompanyPanel-BKx3WVgS.js} +1 -1
  10. package/dist/{Department-DSEvORLg.js → Department-BZcr0_eu.js} +3 -3
  11. package/dist/{DepartmentPanel-WN8nOgCV.js → DepartmentPanel-BZNV3WaF.js} +3 -3
  12. package/dist/{DesignPanel-DirEGh9M.js → DesignPanel-7gr0Fljt.js} +1 -1
  13. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-D02hXSrN.js → DesignPanel.vue_vue_type_style_index_0_lang-By9HKa8W.js} +3 -3
  14. package/dist/{DictView-DiIQdiek.js → DictView-B0dRdinW.js} +20 -19
  15. package/dist/{InvOrganization-b7v3g9EJ.js → InvOrganization-CwTNjj-a.js} +2 -2
  16. package/dist/{Org-BORfx1PL.js → Org-D59oQ0VY.js} +2 -2
  17. package/dist/{Preview-DkRn_TSc.js → Preview-sbZrWUWr.js} +1 -1
  18. package/dist/{ReportDefine-Cd0QeaWA.js → ReportDefine-C7CZ6RSh.js} +1 -1
  19. package/dist/{ReportDesign-4qNqyeEW.js → ReportDesign-CuevdD_6.js} +3 -3
  20. package/dist/{ReportQuery-BJfTFpec.js → ReportQuery-BndhM0Ji.js} +1 -1
  21. package/dist/{ReportQueryFrom-CB7sExZx.js → ReportQueryFrom-n2k7BNX9.js} +1 -1
  22. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-CqO_2Ier.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CFtXbzOb.js} +1 -1
  23. package/dist/{ReportTemplate-B69muSgT.js → ReportTemplate-43Rx_knT.js} +1 -1
  24. package/dist/{Role-Bo4YrNDC.js → Role-BS2QH_H8.js} +3 -3
  25. package/dist/{RoleAssign-kOMYJ4s3.js → RoleAssign-C6wMcgfW.js} +3 -3
  26. package/dist/{RolePanel-BSJmjyqc.js → RolePanel-BwyuGmJw.js} +1 -1
  27. package/dist/{RolePanel-B1d4e6uk.js → RolePanel-DJop6xpJ.js} +1 -1
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DgQpfjaU.js → RolePanel.vue_vue_type_script_setup_true_lang-CSkU6fAb.js} +3 -3
  29. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-DCzX-ZP_.js → RolePanel.vue_vue_type_script_setup_true_lang-Cf0BCtgL.js} +2 -2
  30. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-WNOYFxJ1.js → ScrollPanel.vue_vue_type_style_index_0_lang-BZY0JkpB.js} +32 -31
  31. package/dist/Staff-DI6eAVQs.js +26 -0
  32. package/dist/{StaffInfo-DcU9_40C.js → StaffInfo-BQhMyQ7u.js} +1 -1
  33. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CtfN2CAr.js → StaffInfo.vue_vue_type_script_setup_true_lang-D79C6rw0.js} +9 -9
  34. package/dist/{StaffPanel-7exWkZd9.js → StaffPanel-By5elrj9.js} +1 -1
  35. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-DtbIZdcq.js +154 -0
  36. package/dist/{SysUser-B3uB_cp2.js → SysUser-DNYitHEW.js} +2 -2
  37. package/dist/{SysUserPanel-B0CLp5AO.js → SysUserPanel-_WDSXjfT.js} +1 -1
  38. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-Cwea_4dY.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BFhIa5Gs.js} +126 -111
  39. package/dist/{SystemMenu-a59l4hTk.js → SystemMenu-C_H0bTA7.js} +52 -49
  40. package/dist/{UserInfo-D1IA2oLt.js → UserInfo-Bx25xdkh.js} +1 -1
  41. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-DDVgYRD5.js → UserInfo.vue_vue_type_style_index_0_lang-B6FE4Epn.js} +2 -2
  42. package/dist/await-to-js.es5-Bv3Eu4mi.js +10 -0
  43. package/dist/{childView-6rCeLcsx.js → childView-CiKCAXKS.js} +1 -1
  44. package/dist/{childView-JdrkroL5.js → childView-WAzRvHLp.js} +1 -1
  45. package/dist/{childView.vue_vue_type_style_index_0_lang-B8x99f1B.js → childView.vue_vue_type_style_index_0_lang-3n_-DrRj.js} +2 -2
  46. package/dist/{childView.vue_vue_type_style_index_0_lang-BfcnWnx9.js → childView.vue_vue_type_style_index_0_lang-Bz4630fS.js} +26 -20
  47. package/dist/{code-rule-2lkPF547.js → code-rule-BehFVVOx.js} +2 -2
  48. package/dist/core.es.js +1 -1
  49. package/dist/{cron-task-DV1pGO1m.js → cron-task-C0-R_b64.js} +2 -2
  50. package/dist/{frameView-C0bzSB8c.js → frameView-4E2U2LM3.js} +1 -1
  51. package/dist/index-BvU3LB8R.js +7275 -0
  52. package/dist/layout-home-DJywZo1E.js +232 -0
  53. package/dist/{layoutView-CTV-E4Cj.js → layoutView-JGsVdXXu.js} +148 -149
  54. package/dist/{log-in-CoBP2x6u.js → log-in-l4FpOtBL.js} +2 -2
  55. package/dist/{log-out-KX8FiRVf.js → log-out-Cij2dkih.js} +2 -2
  56. package/dist/{login-CtCoGWzD.js → login-D4hfm7ZW.js} +124 -134
  57. package/dist/{login-log-DJBGJVV0.js → login-log-BEHYT0v0.js} +5 -5
  58. package/dist/{lov-view-Bm0JEzzg.js → lov-view-CpJedb5y.js} +3 -3
  59. package/dist/{menuInfo-D2qPoRwz.js → menuInfo-ClhT8lVG.js} +1 -1
  60. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-DoQjX9Ly.js → menuInfo.vue_vue_type_style_index_0_lang-VuKVlyhc.js} +38 -36
  61. package/dist/{pda-app-SbcIclbH.js → pda-app-D_w1bNyU.js} +2 -2
  62. package/dist/{resource-Cdq1UKGI.js → resource-BxTwBnU4.js} +1 -1
  63. package/dist/su-welcome-BLNjs5WE.js +42181 -0
  64. package/dist/{sys-config-CCOf4xbj.js → sys-config-C0RJg9l1.js} +2 -2
  65. package/dist/udp-core.css +1 -1
  66. package/package.json +5 -2
  67. package/src/App.vue +37 -31
  68. package/src/components/SuScrollTree/ScrollPanel.vue +176 -170
  69. package/src/components/udp/content/index.vue +88 -88
  70. package/src/components/udp/form-upload/form-upload.vue +496 -0
  71. package/src/components/udp/grid/index.vue +524 -524
  72. package/src/components/udp/index.ts +6 -5
  73. package/src/components/udp/ut-stamp-badge/index.vue +271 -271
  74. package/src/components/udp/utils.ts +8 -2
  75. package/src/layout/components/lay-content/index.vue +4 -11
  76. package/src/layout/components/lay-search/components/SearchModal.vue +181 -189
  77. package/src/layout/components/lay-setting/index.vue +503 -503
  78. package/src/layout/components/lay-sidebar/sidebar-logo.vue +101 -101
  79. package/src/layout/components/lay-tag/index.vue +598 -598
  80. package/src/layout/hooks/useNav.ts +176 -176
  81. package/src/layout/hooks/useTag.ts +227 -227
  82. package/src/layout/layoutView.vue +216 -215
  83. package/src/layout/types.ts +93 -93
  84. package/src/main.ts +111 -115
  85. package/src/plugins/i18n/zh.ts +19 -3
  86. package/src/plugins/vxe-table/render.tsx +60 -15
  87. package/src/router/index.ts +187 -187
  88. package/src/router/modules/home.ts +32 -32
  89. package/src/router/utils.ts +420 -420
  90. package/src/store/modules/epTheme.ts +48 -48
  91. package/src/style/vxetable.scss +18 -2
  92. package/src/utils/dataFormat/index.ts +222 -222
  93. package/src/utils/lifecycle.ts +39 -39
  94. package/src/views/organization/department/DepartmentPanel.vue +303 -303
  95. package/src/views/organization/staff/Staff.vue +59 -58
  96. package/src/views/organization/staff/StaffInfo.vue +3 -2
  97. package/src/views/organization/staff/StaffPanel.vue +13 -1
  98. package/src/views/system/layout/layout-home.vue +238 -0
  99. package/src/views/system/menu/AuthorityPanel.vue +10 -9
  100. package/src/views/system/menu/SystemMenu.vue +194 -185
  101. package/src/views/system/menu/menuInfo.vue +384 -384
  102. package/src/views/system/sysUser/SysUserPanel.vue +363 -347
  103. package/src/views/udev/coderule/code-rule.vue +132 -132
  104. package/src/views/udev/dict/DictView.vue +4 -4
  105. package/src/views/udev/dict/childView.vue +6 -4
  106. package/src/views/udev/lov/childView.vue +174 -174
  107. package/src/views/ufile/aggregation/File.vue +85 -87
  108. package/src/views/uhome/components/common-menu.vue +118 -0
  109. package/src/views/uhome/components/dynamic-component.vue +66 -0
  110. package/src/views/uhome/components/home-todo.vue +175 -0
  111. package/src/views/uhome/components/menu-favorite.vue +315 -315
  112. package/src/views/uhome/dynamic-card.vue +31 -0
  113. package/src/views/uhome/su-welcome.vue +47 -114
  114. package/src/views/ulogin/login.vue +336 -325
  115. package/src/views/upms/interface/log-in.vue +100 -100
  116. package/src/views/upms/interface/log-out.vue +104 -104
  117. package/src/views/upms/user/login-log.vue +54 -54
  118. package/types/global.d.ts +232 -231
  119. package/vite.config.ts +83 -84
  120. package/dist/Staff-BFp3zNNR.js +0 -25
  121. package/dist/StaffPanel.vue_vue_type_script_setup_true_lang-v5xOXKRS.js +0 -143
  122. package/dist/await-to-js.es5-BtRbN2QH.js +0 -10
  123. package/dist/index-BbtbEMCH.js +0 -4649
  124. package/dist/su-welcome-BHDsjqqV.js +0 -524
@@ -1,58 +1,59 @@
1
- <!--
2
- * @Author: wei.li
3
- * @Date: 2021-11-17 16:42:14
4
- * @LastEditors: wei.li
5
- * @LastEditTime: 2021-12-09 13:38:41
6
- * @Description: file content
7
- -->
8
- <template>
9
- <div class="u-content-panel">
10
- <div class="u-left-panel">
11
- <ScrollPane
12
- :title="$t('department')"
13
- url="/uums/department/treeDepartment"
14
- :tree-otions="{ children: 'children', label: 'deptName' }"
15
- />
16
- </div>
17
- <div class="content">
18
- <StaffPanel />
19
- </div>
20
- </div>
21
- </template>
22
- <script lang="ts">
23
- export default { name: 'StaffPanel' };
24
- </script>
25
- <script lang="ts" setup>
26
- import { ref, provide } from 'vue';
27
- import ScrollPane from '../../../components/SuScrollTree/ScrollPanel.vue';
28
- import StaffPanel from './StaffPanel.vue';
29
-
30
- const scrollPanelChange: any = ref(false);
31
- const treeList: any = ref([]);
32
- const active: any = ref({});
33
-
34
- provide('scrollPanelChange', scrollPanelChange);
35
- provide('active', active);
36
- provide('treeList', treeList);
37
- </script>
38
-
39
- <style lang="scss" scoped>
40
- .u-content-panel {
41
- box-sizing: border-box;
42
- display: flex;
43
- width: 100%;
44
- height: 84vh;
45
- padding: 2px;
46
-
47
- .u-left-panel {
48
- width: 250px;
49
- }
50
-
51
- .content {
52
- flex: 1;
53
- width: calc(100% - 250px);
54
- height: 82vh;
55
- margin-left: 10px;
56
- }
57
- }
58
- </style>
1
+ <!--
2
+ * @Author: wei.li
3
+ * @Date: 2021-11-17 16:42:14
4
+ * @LastEditors: wei.li
5
+ * @LastEditTime: 2021-12-09 13:38:41
6
+ * @Description: file content
7
+ -->
8
+ <template>
9
+ <div class="u-content-panel">
10
+ <div class="u-left-panel">
11
+ <ScrollPane
12
+ :title="$t('department')"
13
+ :init-load-all="true"
14
+ :tree-otions="{ children: 'children', label: 'deptName' }"
15
+ url="/uums/department/treeDepartment"
16
+ />
17
+ </div>
18
+ <div class="content">
19
+ <StaffPanel />
20
+ </div>
21
+ </div>
22
+ </template>
23
+ <script lang="ts">
24
+ export default { name: 'StaffPanel' };
25
+ </script>
26
+ <script lang="ts" setup>
27
+ import { ref, provide } from 'vue';
28
+ import ScrollPane from '../../../components/SuScrollTree/ScrollPanel.vue';
29
+ import StaffPanel from './StaffPanel.vue';
30
+
31
+ const scrollPanelChange: any = ref(false);
32
+ const treeList: any = ref([]);
33
+ const active: any = ref({});
34
+
35
+ provide('scrollPanelChange', scrollPanelChange);
36
+ provide('active', active);
37
+ provide('treeList', treeList);
38
+ </script>
39
+
40
+ <style lang="scss" scoped>
41
+ .u-content-panel {
42
+ box-sizing: border-box;
43
+ display: flex;
44
+ width: 100%;
45
+ height: 84vh;
46
+ padding: 2px;
47
+
48
+ .u-left-panel {
49
+ width: 250px;
50
+ }
51
+
52
+ .content {
53
+ flex: 1;
54
+ width: calc(100% - 250px);
55
+ height: 82vh;
56
+ margin-left: 10px;
57
+ }
58
+ }
59
+ </style>
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:42:14
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-04-08 15:50:29
5
+ * @LastEditTime: 2026-01-21 18:27:50
6
6
  * @Description: file content
7
7
  -->
8
8
  <template>
@@ -75,7 +75,7 @@ const items = [
75
75
  { field: 'phone', span: 8, itemRender: renderHook.renderInput() },
76
76
  { field: 'mobile', span: 8, itemRender: renderHook.renderInput() },
77
77
  {
78
- field: 'attribute5',
78
+ field: 'userName',
79
79
  title: 'message.releateUser',
80
80
  span: 8,
81
81
  itemRender: renderHook.renderSysUser({ mapField })
@@ -122,6 +122,7 @@ function handleClose() {
122
122
  }
123
123
 
124
124
  onMounted(() => {
125
+ console.log(props.record);
125
126
  data.value = props.record;
126
127
  });
127
128
  </script>
@@ -2,7 +2,7 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:42:14
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-12-08 08:27:39
5
+ * @LastEditTime: 2026-01-21 10:35:54
6
6
  * @Description: 员工管理
7
7
  -->
8
8
 
@@ -60,6 +60,7 @@ const buttons = [
60
60
  { code: 'sync', auth: 'wechat', status: 'success', icon: 'ri-refresh-line' },
61
61
  { code: 'sync', auth: 'dingding', status: 'success', icon: 'ri-refresh-line' },
62
62
  { code: 'sync', auth: 'OA', status: 'success', icon: 'ri-refresh-line' },
63
+ { code: 'bindUser', auth: 'bind', status: 'warning', icon: 'ri-bring-to-front' },
63
64
  { code: 'del', auth: '/' }
64
65
  ];
65
66
 
@@ -139,8 +140,19 @@ const handleSync = async () => {
139
140
  xgrid.value.refreshData();
140
141
  };
141
142
 
143
+ const handleBind = async () => {
144
+ const selectRecords = xgrid.value.getSelectRecords();
145
+ if (!selectRecords.length) return;
146
+ xgrid.value.showLoading();
147
+ const [err] = await to(getServiceApi().post('/uums/employee/bindUser', selectRecords));
148
+ xgrid.value.hiddenLoading();
149
+ if (err) return;
150
+ xgrid.value.refreshData();
151
+ };
152
+
142
153
  const onButtonClick = code => {
143
154
  code === 'sync' && handleSync();
155
+ code === 'bindUser' && handleBind();
144
156
  };
145
157
 
146
158
  const callback = {
@@ -0,0 +1,238 @@
1
+ <!--
2
+ * @Author: levi7754 levi7754@163.com
3
+ * @Date: 2025-12-23 11:00:51
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2026-01-06 18:50:23
6
+ * @FilePath: \udp-crm\packages\udp-crm\src\views\udev\layout\home-layout.vue
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ -->
9
+ <template>
10
+ <div>
11
+ <ut-grid
12
+ ref="xgrid"
13
+ :items="items"
14
+ :columns="columns"
15
+ :url="url"
16
+ :default-params="{ orgId: null }"
17
+ :check-method="onCheckMethod"
18
+ @editActivated="onEditActivated"
19
+ />
20
+ <!-- 角色分配 -->
21
+ <ut-modal-grid
22
+ v-if="showModal"
23
+ ref="ygrid"
24
+ :columns="subColumns"
25
+ mode="form"
26
+ url="/upfm/sysHomeRole"
27
+ :title="$t('message.title.layoutRole', { name: data.title })"
28
+ width="50%"
29
+ @buttonClick="onButtonClick"
30
+ @close="showModal = false"
31
+ />
32
+ <!-- 角色列表 -->
33
+ <ut-modal-grid
34
+ v-if="showRole"
35
+ ref="xmodal"
36
+ :items="subItems"
37
+ :columns="subColumns"
38
+ :show-footer="true"
39
+ :editable="false"
40
+ :title="$t('message.udp.roleList')"
41
+ url="/uums/role"
42
+ width="60%"
43
+ height="75%"
44
+ @close="showRole = false"
45
+ @confirm="onConfirm"
46
+ />
47
+ </div>
48
+ </template>
49
+
50
+ <script setup lang="tsx">
51
+ import { ref } from 'vue';
52
+ import { useRender, successMessage, warnMessage } from '@utogether/utils';
53
+ import { to } from 'await-to-js';
54
+ import { clone } from 'xe-utils';
55
+ import { VxeUI } from 'vxe-pc-ui';
56
+ import { useI18n } from 'vue-i18n';
57
+ import { getServiceApi } from '../../../api';
58
+
59
+ defineOptions({ name: 'HomeLayout' });
60
+
61
+ const renderHook = useRender();
62
+ const { t } = useI18n();
63
+
64
+ const xgrid = ref(null);
65
+ const ygrid = ref(null);
66
+ const xmodal = ref(null);
67
+
68
+ const showModal = ref(false);
69
+ const showRole = ref(false);
70
+
71
+ const data = ref<IRecord>({});
72
+
73
+ const url = '/upfm/sysHomeConfig';
74
+
75
+ const items = [
76
+ { field: 'code', title: 'message.udp.componentCode' },
77
+ { field: 'title', title: 'message.udp.componentTitle' },
78
+ { field: 'enabled', itemRender: renderHook.renderDict({ code: 'SU.ENABLE' }) }
79
+ ];
80
+
81
+ const subItems = [
82
+ { field: 'roleName', span: 9, title: 'message.udp.roleName' },
83
+ { field: 'roleCode', span: 9, title: 'message.udp.roleCode' }
84
+ ];
85
+
86
+ const options = [
87
+ { label: 3, value: 3 },
88
+ { label: 4, value: 4 },
89
+ { label: 6, value: 6 },
90
+ { label: 8, value: 8 },
91
+ { label: 12, value: 12 },
92
+ { label: 24, value: 24 }
93
+ ];
94
+
95
+ // 列字段
96
+ const columns = [
97
+ { type: 'checkbox', width: 50, align: 'center' },
98
+ { field: 'seqNo', required: true, width: 100, editRender: renderHook.renderNumber({ min: 10, step: 10 }) },
99
+ {
100
+ field: 'type',
101
+ title: 'message.udp.componentType',
102
+ width: 120,
103
+ editRender: renderHook.renderSelectLocal({
104
+ // disabled: true,
105
+ options: [
106
+ { label: '系统', value: 'system' },
107
+ { label: '自定义', value: 'custom' }
108
+ ],
109
+ defaultValue: 'custom'
110
+ })
111
+ },
112
+ {
113
+ field: 'code',
114
+ title: 'message.udp.componentCode',
115
+ width: 120,
116
+ required: true,
117
+ editRender: renderHook.renderInput()
118
+ },
119
+ {
120
+ field: 'title',
121
+ title: 'message.udp.componentTitle',
122
+ minWidth: 150,
123
+ required: true,
124
+ editRender: renderHook.renderInput()
125
+ },
126
+ {
127
+ field: 'span',
128
+ title: 'message.udp.componentSpan',
129
+ required: true,
130
+ width: 160,
131
+ editRender: renderHook.renderSelectLocal({ options })
132
+ },
133
+ {
134
+ field: 'height',
135
+ title: 'message.udp.componentHeight',
136
+ required: true,
137
+ editRender: renderHook.renderNumber({ min: 300 })
138
+ },
139
+ {
140
+ field: 'url',
141
+ title: 'message.udp.componentPath',
142
+ required: true,
143
+ minWidth: 150,
144
+ editRender: renderHook.renderInput()
145
+ },
146
+ { field: 'enabled', width: 90, formatter: ['formatDict', 'SU.ENABLE'] },
147
+ {
148
+ field: 'operate',
149
+ width: 140,
150
+ fixed: 'right',
151
+ slots: {
152
+ default: ({ row }) => {
153
+ if (!row.id) return;
154
+ const enabled = {
155
+ conent: row.enabled === '1' ? 'disabled' : 'enable',
156
+ status: row.enabled === '1' ? 'warning' : 'success',
157
+ icon: row.enabled === '1' ? 'ri-pause-circle-line' : 'ri-play-circle-line'
158
+ };
159
+ return [
160
+ <>
161
+ <ut-button content="role" auth="role" icon="ri-user-line" onTap={() => handleRole(row)} />
162
+ <ut-button content={enabled.conent} {...enabled} onTap={() => handleRowStatus(row)} />
163
+ </>
164
+ ];
165
+ }
166
+ }
167
+ }
168
+ ];
169
+
170
+ const subColumns = [
171
+ { type: 'checkbox', width: 40 },
172
+ { field: 'roleName', title: 'message.udp.roleName' },
173
+ { field: 'roleCode', title: 'message.udp.roleCode' }
174
+ ];
175
+
176
+ const handleRole = row => {
177
+ data.value = row;
178
+ showModal.value = true;
179
+ };
180
+
181
+ const handleAdd = () => {
182
+ showRole.value = true;
183
+ };
184
+
185
+ const handleRowStatus = async row => {
186
+ const message = row.enabled === '1' ? 'tip_disabledrecord' : 'tip_enabledrecord';
187
+ const type = await VxeUI.modal.confirm(t(`message.${message}`));
188
+ if (type === 'confirm') {
189
+ const body = clone(row, true);
190
+ body.enabled = body.enabled === '1' ? '0' : '1';
191
+ const [err] = await to(getServiceApi().put(url, [body]));
192
+ if (err) return;
193
+ successMessage();
194
+ xgrid.value.refreshData();
195
+ }
196
+ };
197
+
198
+ const handleDel = () => {
199
+ const selectRecords = ygrid.value.getSelectRecords();
200
+ if (!selectRecords.length) return;
201
+ ygrid.value.getInstance().commitProxy('delete');
202
+ };
203
+
204
+ const onConfirm = async records => {
205
+ if (records.length === 0) return warnMessage('message.tip.selectRole');
206
+ const body = records.map(m => {
207
+ const item = { configId: data.value.id, roleId: m.id };
208
+ return item;
209
+ });
210
+ xmodal.value.showLoading();
211
+ const [err] = await to(getServiceApi().post('/upfm/sysHomeRole', body));
212
+ if (!err) {
213
+ successMessage();
214
+ ygrid.value.refreshData();
215
+ showRole.value = false;
216
+ }
217
+ };
218
+
219
+ const onCheckMethod = row => {
220
+ return row.type !== 'system';
221
+ };
222
+
223
+ const onEditActivated = ({ row }) => {
224
+ const activeColumns = clone(columns, true);
225
+ if (row.type === 'system') {
226
+ let idx = activeColumns.findIndex(m => m.field === 'type');
227
+ activeColumns[idx].editRender.props.disabled = true;
228
+ idx = activeColumns.findIndex(m => m.field === 'url');
229
+ activeColumns[idx].editRender.props.disabled = true;
230
+ }
231
+ xgrid.value.getInstance().reloadColumn(activeColumns);
232
+ };
233
+
234
+ const onButtonClick = code => {
235
+ code === 'add' && handleAdd();
236
+ code === 'del' && handleDel();
237
+ };
238
+ </script>
@@ -1,8 +1,8 @@
1
1
  <!--
2
2
  * @Author: wei.li
3
3
  * @Date: 2022-08-05 10:05:27
4
- * @LastEditors: wei.li
5
- * @LastEditTime: 2022-08-16 18:05:43
4
+ * @LastEditors: levi7754 levi7754@163.com
5
+ * @LastEditTime: 2025-12-20 08:03:07
6
6
  * @Description: 菜单权限列表
7
7
  -->
8
8
  <template>
@@ -21,6 +21,7 @@
21
21
  url="/uums/menu"
22
22
  :default-params="{ parentId: record.id }"
23
23
  :default-value="{ parentId: record.id, menuType: 1 }"
24
+ :pager-config="{ layouts: [] }"
24
25
  />
25
26
  </el-drawer>
26
27
  </div>
@@ -65,7 +66,7 @@ const columns = [
65
66
  {
66
67
  field: 'permissionCode',
67
68
  required: true,
68
- minWidth: 200,
69
+ minWidth: 180,
69
70
  editRender: renderHook.renderInput(),
70
71
  slots: {
71
72
  edit: ({ row }) => {
@@ -74,16 +75,16 @@ const columns = [
74
75
  };
75
76
  row.dispalyCode = row.permissionCode?.replace(`${prefixCode.value}.`, '');
76
77
  return [
77
- <vxe-input
78
- v-model={row.dispalyCode}
79
- v-slots={slots}
80
- className="ut-slot-input"
81
- onInput={() => onInput(row)}
82
- />
78
+ <vxe-input v-model={row.dispalyCode} v-slots={slots} className="ut-slot-input" onInput={() => onInput(row)} />
83
79
  ];
84
80
  }
85
81
  }
86
82
  },
83
+ {
84
+ field: 'remark',
85
+ title: 'message.udp.description',
86
+ editRender: renderHook.renderInput()
87
+ },
87
88
  {
88
89
  field: 'enabled',
89
90
  title: 'message.enabled',