@utogether/udp-core 1.0.1-beta.16 → 1.0.1-beta.18

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 (123) hide show
  1. package/build/plugins.ts +39 -39
  2. package/dist/{403-RBzulrcG.js → 403-B8xAGW0x.js} +1 -1
  3. package/dist/{404-DX-dU_6C.js → 404-BtgajMpP.js} +1 -1
  4. package/dist/{500-BCTk0__d.js → 500-DFWWZylZ.js} +1 -1
  5. package/dist/{AuthorityInfo-BADTOenq.js → AuthorityInfo-BxWSZs7n.js} +1 -1
  6. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-Cv46yAx_.js → AuthorityInfo.vue_vue_type_style_index_0_lang-XIiFdjxN.js} +1 -1
  7. package/dist/{Company-B-61KrWd.js → Company-BbUJtuvr.js} +3 -3
  8. package/dist/{CompanyPanel-CawSrEff.js → CompanyPanel-KOOFrGjk.js} +8 -8
  9. package/dist/{Department-CrzJPtvP.js → Department-BimSgBm2.js} +3 -3
  10. package/dist/{DepartmentPanel-DYuL8H-j.js → DepartmentPanel-DYXPUCDs.js} +3 -3
  11. package/dist/{DesignPanel-DEAv6V68.js → DesignPanel-CHZ36J4q.js} +1 -1
  12. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-BsnXZ2td.js → DesignPanel.vue_vue_type_style_index_0_lang-ZbNixuuY.js} +2 -2
  13. package/dist/{DictView-BuO-2b-c.js → DictView-7RQYVj4H.js} +1 -1
  14. package/dist/{InvOrganization-CBgKBJAn.js → InvOrganization-esq9FI1K.js} +1 -1
  15. package/dist/{Org-BaQw2r-o.js → Org-BGswGV9g.js} +1 -1
  16. package/dist/{Preview-DvCrmKNk.js → Preview-DP0pD6Kf.js} +1 -1
  17. package/dist/{ReportDefine-DyhWz0as.js → ReportDefine-1rjKlbK-.js} +1 -1
  18. package/dist/{ReportDesign-DgZ2f2zv.js → ReportDesign-BIUj35Kh.js} +2 -2
  19. package/dist/{ReportQuery-DTZYbCDi.js → ReportQuery-CWevStRg.js} +1 -1
  20. package/dist/{ReportQueryFrom-B-vtJegP.js → ReportQueryFrom-vlOF5_gc.js} +1 -1
  21. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-D6izgxph.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-BGyeoYxo.js} +1 -1
  22. package/dist/{ReportTemplate-DA1ZqKGf.js → ReportTemplate-BPURQOFZ.js} +1 -1
  23. package/dist/{Role-mbqoav5t.js → Role-D8xJ3rai.js} +3 -3
  24. package/dist/{RoleAssign-ltEJIEcr.js → RoleAssign-CE5FeHLd.js} +8 -8
  25. package/dist/{RolePanel-u90v9eS0.js → RolePanel-B6wskQVB.js} +1 -1
  26. package/dist/{RolePanel-1g1a-G8D.js → RolePanel-CqHsGjrK.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-LC4Egk-Q.js → RolePanel.vue_vue_type_script_setup_true_lang-Bjoq-nCm.js} +3 -3
  28. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-D9YxpGnt.js → RolePanel.vue_vue_type_script_setup_true_lang-Dv5IVELj.js} +1 -1
  29. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-DZ3W1epK.js → ScrollPanel.vue_vue_type_style_index_0_lang-Bp8Y_5A2.js} +1 -1
  30. package/dist/{Staff-CJ2GgCL3.js → Staff-DuYrik71.js} +3 -3
  31. package/dist/{StaffInfo-3KkodDCK.js → StaffInfo-CZiak-1b.js} +1 -1
  32. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-CW-isIxJ.js → StaffInfo.vue_vue_type_script_setup_true_lang-LCuqxUh8.js} +1 -1
  33. package/dist/{StaffPanel-DoXPSoY5.js → StaffPanel-DI6MBAJH.js} +1 -1
  34. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DvhGnOMZ.js → StaffPanel.vue_vue_type_script_setup_true_lang-DxJhnVpd.js} +2 -2
  35. package/dist/{SysUser-BuIZhMPh.js → SysUser-DoNj2tIV.js} +2 -2
  36. package/dist/{SysUserPanel-t1GJcJGM.js → SysUserPanel-CvfyRxel.js} +1 -1
  37. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-CDDkFLlN.js → SysUserPanel.vue_vue_type_script_setup_true_lang-BoghL7F3.js} +43 -39
  38. package/dist/{SystemMenu-DuLEL6_l.js → SystemMenu-Cr3vUEQU.js} +2 -2
  39. package/dist/{UserInfo-WWby4lts.js → UserInfo-6c8UDIVO.js} +1 -1
  40. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-B06ZSrJV.js → UserInfo.vue_vue_type_style_index_0_lang-DstUSeNQ.js} +1 -1
  41. package/dist/{childView-B0-EAoAi.js → childView-BlmHw5jv.js} +1 -1
  42. package/dist/{childView-IYY4L8VK.js → childView-C050pf1v.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-B56v6yK7.js → childView.vue_vue_type_style_index_0_lang-BxLT1Dz0.js} +1 -1
  44. package/dist/{childView.vue_vue_type_style_index_0_lang-CjF8nZuj.js → childView.vue_vue_type_style_index_0_lang-D0nlTIP-.js} +2 -2
  45. package/dist/{code-rule-DDLdi3pP.js → code-rule-Br1Mh3_M.js} +1 -1
  46. package/dist/core.es.js +1 -1
  47. package/dist/{cron-task-p3-AFN1w.js → cron-task-DhuIk5pP.js} +1 -1
  48. package/dist/{frameView-B_WAZErD.js → frameView-hJoSI0Ai.js} +1 -1
  49. package/dist/index-1dgWFXT2.js +5436 -0
  50. package/dist/{layoutView-CoEp2afn.js → layoutView-DU-TVfOp.js} +1340 -1337
  51. package/dist/{login-DP0oP70W.js → login-CzJBV0x8.js} +2 -2
  52. package/dist/{lov-view-BDoZRK-v.js → lov-view-BxaHaVKE.js} +2 -2
  53. package/dist/{menuInfo-5Xls76qB.js → menuInfo-Dp7nAbgM.js} +1 -1
  54. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-BfZczW9a.js → menuInfo.vue_vue_type_style_index_0_lang-Ch4NbiCL.js} +1 -1
  55. package/dist/{pda-app-DxGYn4G7.js → pda-app-BmxY3H7y.js} +2 -2
  56. package/dist/{resource-BnYWe_-Q.js → resource-D2dCI_x9.js} +1 -1
  57. package/dist/{su-welcome-B2rNhhDH.js → su-welcome-BKGU5HUf.js} +1 -1
  58. package/dist/{sys-config-Bb4WkxZK.js → sys-config-s8DnZMOd.js} +1 -1
  59. package/dist/udp-core.css +1 -9
  60. package/index.ts +48 -48
  61. package/package.json +1 -1
  62. package/src/App.vue +65 -65
  63. package/src/components/SuCharts/src/UserInfo.vue +78 -78
  64. package/src/components/SuScrollTree/ScrollPanel.vue +170 -175
  65. package/src/components/udp/{grid.vue → grid/index.vue} +39 -25
  66. package/src/components/udp/index.ts +2 -9
  67. package/src/components/udp/utils.ts +63 -108
  68. package/src/layout/components/lay-navbar/index.vue +239 -239
  69. package/src/layout/components/lay-panel/index.vue +150 -150
  70. package/src/layout/components/lay-search/index.vue +25 -25
  71. package/src/layout/components/lay-select-org/index.vue +64 -64
  72. package/src/layout/components/lay-sidebar/horizontal.vue +190 -190
  73. package/src/layout/components/lay-sidebar/mixNav.vue +260 -260
  74. package/src/layout/components/lay-sidebar/sidebar-logo.vue +1 -0
  75. package/src/layout/components/lay-tag/index.vue +20 -48
  76. package/src/layout/hooks/useNav.ts +173 -173
  77. package/src/layout/hooks/useTag.ts +5 -3
  78. package/src/layout/types.ts +3 -2
  79. package/src/main.ts +24 -21
  80. package/src/plugins/i18n/en.ts +302 -302
  81. package/src/plugins/i18n/zh.ts +356 -354
  82. package/src/plugins/vxe-table/index.ts +67 -4
  83. package/src/plugins/vxe-table/render.tsx +18 -29
  84. package/src/router/index.ts +186 -177
  85. package/src/router/modules/remaining.ts +58 -58
  86. package/src/router/utils.ts +393 -377
  87. package/src/store/modules/app.ts +1 -3
  88. package/src/store/modules/multiTags.ts +110 -109
  89. package/src/store/modules/permission.ts +113 -100
  90. package/src/style/button.scss +85 -85
  91. package/src/style/login.css +336 -336
  92. package/src/style/vxetable.scss +338 -321
  93. package/src/views/organization/company/CompanyPanel.vue +259 -259
  94. package/src/views/organization/department/DepartmentPanel.vue +269 -283
  95. package/src/views/system/menu/SystemMenu.vue +183 -183
  96. package/src/views/system/menu/menuInfo.vue +363 -363
  97. package/src/views/system/role/UserInfo.vue +195 -195
  98. package/src/views/system/role-assign/RoleAssign.vue +57 -57
  99. package/src/views/system/role-assign/RolePanel.vue +139 -139
  100. package/src/views/system/sys/sys-config.vue +336 -336
  101. package/src/views/system/sysUser/SysUserPanel.vue +279 -278
  102. package/src/views/uapp/pda/pda-app.vue +208 -208
  103. package/src/views/udev/dict/DictView.vue +118 -118
  104. package/src/views/udev/dict/childView.vue +1 -1
  105. package/src/views/udev/lov/lov-view.vue +91 -91
  106. package/src/views/ulogin/login.vue +323 -323
  107. package/src/views/upms/interface/log-out.vue +101 -101
  108. package/src/views/urpt/design/DesignPanel.vue +507 -507
  109. package/types/global.d.ts +230 -230
  110. package/dist/index-24fnvUBy.js +0 -2822
  111. package/src/components/udp/count-down.vue +0 -536
  112. package/src/components/udp/flip-down/FlipCard/flip-card.vue +0 -251
  113. package/src/components/udp/flip-down/FlipCard/interfaces.ts +0 -4
  114. package/src/components/udp/flip-down/FlipClock/flip-clock.vue +0 -113
  115. package/src/components/udp/form-upload.vue +0 -482
  116. package/src/components/udp/form.vue +0 -112
  117. package/src/components/udp/lov.vue +0 -388
  118. package/src/components/udp/modal-form.vue +0 -190
  119. package/src/components/udp/modal-grid.vue +0 -298
  120. package/src/components/udp/upload.vue +0 -423
  121. package/src/utils/udp/http/index.ts +0 -294
  122. package/src/utils/udp/http/types.d.ts +0 -49
  123. package/src/utils/udp/useRender.ts +0 -431
@@ -1,175 +1,170 @@
1
- <template>
2
- <div class="u-scroll-panel" @click.prevent="handleClickPanel">
3
- <div class="u-panel-header">
4
- <h2>{{ title }}</h2>
5
- <ut-button v-if="showAllButton" content="BtnExpand" @click="handleExpand(data, true)" />
6
- <ut-button
7
- v-if="showAllButton"
8
- status="warning"
9
- content="BtnCollapse"
10
- @click="handleExpand(data, false)"
11
- />
12
- <vxe-button icon="vxe-icon-refresh" @click="onRefresh" />
13
- </div>
14
- <div class="u-panel-content system-scrollbar">
15
- <el-tree
16
- ref="tree"
17
- :data="data"
18
- :props="treeOtions"
19
- :expand-on-click-node="false"
20
- style="background-color: #fff"
21
- class="u-tree-panel"
22
- node-key="id"
23
- highlight-current
24
- @node-click="handleNodeClick"
25
- >
26
- <template #default="{ node }">
27
- <span class="prefix" :class="{ 'is-leaf': node.isLeaf }">
28
- <i class="ri-folder-2-fill ri-lg mr-1" style="color: #fadb14" />
29
- </span>
30
- <span>{{ node.label }}</span>
31
- </template>
32
- </el-tree>
33
- </div>
34
- </div>
35
- </template>
36
-
37
- <script lang="ts" setup>
38
- import { getServiceApi } from '../../api';
39
- import type { Ref } from 'vue';
40
- import { ref, inject, watch, nextTick } from 'vue';
41
-
42
- interface IProps {
43
- title: string;
44
- url: string;
45
- showAllButton?: boolean;
46
- treeOtions: Object;
47
- defaultParams?: Object;
48
- }
49
- const props = withDefaults(defineProps<IProps>(), {
50
- treeOtions: () => {
51
- return {
52
- children: 'children',
53
- label: 'label'
54
- };
55
- },
56
- defaultParams: () => {
57
- return {};
58
- },
59
- showAllButton: false
60
- });
61
-
62
- const data = ref<any>([]);
63
- const tree: Ref<any | null> = ref(null);
64
- // 当前激活item
65
- const active: IRecord = inject('active');
66
- // tree面板变更
67
- const scrollPanelChange: IRecord = inject('scrollPanelChange');
68
- // tree 列表
69
- const treeList: IRecord = inject('treeList');
70
-
71
- watch(
72
- () => scrollPanelChange.value,
73
- () => {
74
- scrollPanelChange.value && getDataList();
75
- }
76
- );
77
-
78
- const getDataList = async (params = {}) => {
79
- const query = Object.assign(params, props.defaultParams);
80
- const serverData = (await getServiceApi().get(props.url, query)) as IResponseData;
81
- data.value = serverData.list || serverData;
82
- treeList.value = serverData.list || serverData;
83
- active.value = serverData.list ? serverData.list[0] : serverData[0];
84
- nextTick(() => {
85
- tree.value && tree?.value.setCurrentKey(active.value?.id || '');
86
- });
87
- scrollPanelChange.value = false;
88
- };
89
- const handleNodeClick = (row: any) => {
90
- active.value = row;
91
- };
92
-
93
- const handleClickPanel = () => {
94
- active.value = {};
95
- };
96
-
97
- const handleExpand = (array, expanded) => {
98
- array.forEach(el => {
99
- tree.value.store.nodesMap[el.id].expanded = expanded;
100
- if (el.children?.length) {
101
- handleExpand(el.children, expanded);
102
- }
103
- });
104
- console.log('[ tree.value ] >', tree.value);
105
- };
106
-
107
- const onRefresh = () => {
108
- getDataList();
109
- };
110
- defineExpose({
111
- onRefresh
112
- });
113
- getDataList();
114
- </script>
115
-
116
- <style lang="scss">
117
- .u-scroll-panel {
118
- display: flex;
119
- flex-direction: column;
120
- width: 100%;
121
- height: 100%;
122
- background: #fff;
123
-
124
- .u-panel-header {
125
- display: flex;
126
- align-items: center;
127
- padding: 10px;
128
- border-bottom: 1px solid #eee;
129
-
130
- h2 {
131
- // display: box;
132
- height: 30px;
133
- padding: 0;
134
- margin: 0;
135
- margin-right: 20px;
136
- overflow: hidden;
137
- -webkit-line-clamp: 1;
138
- font-size: 14px;
139
- line-height: 30px;
140
- -webkit-box-orient: vertical;
141
- }
142
-
143
- .el-input {
144
- flex: 1;
145
- }
146
- }
147
-
148
- .u-panel-content {
149
- flex: 1;
150
- overflow: auto;
151
- }
152
-
153
- .u-tree-panel {
154
- height: 100%; // 0630
155
- :deep(.el-tree-node__content) {
156
- height: 36px;
157
- }
158
-
159
- :deep(.el-tree-node.is-current > .el-tree-node__content) {
160
- background-color: rgb(64 158 255 / 40%);
161
- }
162
-
163
- :deep(.el-tree-node > .el-tree-node__content) {
164
- transition: 0.2s;
165
- }
166
- }
167
-
168
- .el-vl__window {
169
- height: 360px !important;
170
- // &:first-child {
171
- // height: 100% !important;
172
- // }
173
- }
174
- }
175
- </style>
1
+ <template>
2
+ <div class="u-scroll-panel" @click.prevent="handleClickPanel">
3
+ <div class="u-panel-header">
4
+ <h2>{{ title }}</h2>
5
+ <ut-button v-if="showAllButton" content="BtnExpand" @click="handleExpand(data, true)" />
6
+ <ut-button v-if="showAllButton" status="warning" content="BtnCollapse" @click="handleExpand(data, false)" />
7
+ <vxe-button icon="vxe-icon-refresh" @click="onRefresh" />
8
+ </div>
9
+ <div class="u-panel-content system-scrollbar">
10
+ <el-tree
11
+ ref="tree"
12
+ :data="data"
13
+ :props="treeOtions"
14
+ :expand-on-click-node="false"
15
+ style="background-color: #fff"
16
+ class="u-tree-panel"
17
+ node-key="id"
18
+ highlight-current
19
+ @node-click="handleNodeClick"
20
+ >
21
+ <template #default="{ node }">
22
+ <span class="prefix" :class="{ 'is-leaf': node.isLeaf }">
23
+ <i class="ri-folder-2-fill ri-lg mr-1" style="color: #fadb14" />
24
+ </span>
25
+ <span>{{ node.label }}</span>
26
+ </template>
27
+ </el-tree>
28
+ </div>
29
+ </div>
30
+ </template>
31
+
32
+ <script lang="ts" setup>
33
+ import { getServiceApi } from '../../api';
34
+ import type { Ref } from 'vue';
35
+ import { ref, inject, watch, nextTick } from 'vue';
36
+
37
+ interface IProps {
38
+ title: string;
39
+ url: string;
40
+ showAllButton?: boolean;
41
+ treeOtions: Object;
42
+ defaultParams?: Object;
43
+ }
44
+ const props = withDefaults(defineProps<IProps>(), {
45
+ treeOtions: () => {
46
+ return {
47
+ children: 'children',
48
+ label: 'label'
49
+ };
50
+ },
51
+ defaultParams: () => {
52
+ return {};
53
+ },
54
+ showAllButton: false
55
+ });
56
+
57
+ const data = ref<any>([]);
58
+ const tree: Ref<any | null> = ref(null);
59
+ // 当前激活item
60
+ const active: IRecord = inject('active');
61
+ // tree面板变更
62
+ const scrollPanelChange: IRecord = inject('scrollPanelChange');
63
+ // tree 列表
64
+ const treeList: IRecord = inject('treeList');
65
+
66
+ watch(
67
+ () => scrollPanelChange.value,
68
+ () => {
69
+ scrollPanelChange.value && getDataList();
70
+ }
71
+ );
72
+
73
+ const getDataList = async (params = {}) => {
74
+ const query = Object.assign(params, props.defaultParams);
75
+ const serverData = (await getServiceApi().get(props.url, query)) as IResponseData;
76
+ data.value = serverData.list || serverData;
77
+ treeList.value = serverData.list || serverData;
78
+ active.value = serverData.list ? serverData.list[0] : serverData[0];
79
+ nextTick(() => {
80
+ tree.value && tree?.value.setCurrentKey(active.value?.id || '');
81
+ });
82
+ scrollPanelChange.value = false;
83
+ };
84
+ const handleNodeClick = (row: any) => {
85
+ active.value = row;
86
+ };
87
+
88
+ const handleClickPanel = () => {
89
+ active.value = {};
90
+ };
91
+
92
+ const handleExpand = (array, expanded) => {
93
+ array.forEach(el => {
94
+ tree.value.store.nodesMap[el.id].expanded = expanded;
95
+ if (el.children?.length) {
96
+ handleExpand(el.children, expanded);
97
+ }
98
+ });
99
+ console.log('[ tree.value ] >', tree.value);
100
+ };
101
+
102
+ const onRefresh = () => {
103
+ getDataList();
104
+ };
105
+ defineExpose({
106
+ onRefresh
107
+ });
108
+ getDataList();
109
+ </script>
110
+
111
+ <style lang="scss">
112
+ .u-scroll-panel {
113
+ display: flex;
114
+ flex-direction: column;
115
+ width: 100%;
116
+ height: 100%;
117
+ background: #fff;
118
+
119
+ .u-panel-header {
120
+ display: flex;
121
+ align-items: center;
122
+ padding: 10px;
123
+ border-bottom: 1px solid #eee;
124
+
125
+ h2 {
126
+ // display: box;
127
+ height: 30px;
128
+ padding: 0;
129
+ margin: 0;
130
+ margin-right: 20px;
131
+ overflow: hidden;
132
+ -webkit-line-clamp: 1;
133
+ font-size: 14px;
134
+ line-height: 30px;
135
+ -webkit-box-orient: vertical;
136
+ }
137
+
138
+ .el-input {
139
+ flex: 1;
140
+ }
141
+ }
142
+
143
+ .u-panel-content {
144
+ flex: 1;
145
+ overflow: auto;
146
+ }
147
+
148
+ .u-tree-panel {
149
+ height: 100%; // 0630
150
+ :deep(.el-tree-node__content) {
151
+ height: 36px;
152
+ }
153
+
154
+ :deep(.el-tree-node.is-current > .el-tree-node__content) {
155
+ background-color: rgb(64 158 255 / 40%);
156
+ }
157
+
158
+ :deep(.el-tree-node > .el-tree-node__content) {
159
+ transition: 0.2s;
160
+ }
161
+ }
162
+
163
+ .el-vl__window {
164
+ height: 360px !important;
165
+ // &:first-child {
166
+ // height: 100% !important;
167
+ // }
168
+ }
169
+ }
170
+ </style>
@@ -2,11 +2,11 @@
2
2
  * @Author: wei.li
3
3
  * @Date: 2021-11-17 16:33:37
4
4
  * @LastEditors: levi7754 levi7754@163.com
5
- * @LastEditTime: 2025-08-06 11:53:11
5
+ * @LastEditTime: 2025-10-29 17:55:12
6
6
  * @Description: file content
7
7
  -->
8
8
  <template>
9
- <div style="width: 100%">
9
+ <div style="width: 100%; height: 100%">
10
10
  <vxe-grid
11
11
  ref="xgrid"
12
12
  v-bind="data"
@@ -17,6 +17,7 @@
17
17
  @cell-click="cellClick"
18
18
  @cell-dblclick="cellDbclick"
19
19
  @edit-activated="editEctivated"
20
+ @form-reset="onReset"
20
21
  />
21
22
  <!-- <SearchScheme
22
23
  v-if="showModal && props.url"
@@ -46,9 +47,8 @@ import {
46
47
  defaultColums,
47
48
  onCheckMethod,
48
49
  getAttrs
49
- } from './utils';
50
+ } from '../utils';
50
51
  // import SearchScheme from '../components/SuSearch.vue';
51
- // import type { IRecord, IFormItemProps, ITableColProps } from '../../types';
52
52
 
53
53
  defineOptions({
54
54
  name: 'UtGrid'
@@ -142,7 +142,7 @@ const getColumns = () => {
142
142
  }
143
143
  const act_columns = attrs.gridId ? formatColums(columns) : columns;
144
144
 
145
- return i18nColums(act_columns);
145
+ return i18nColums(act_columns, attrs.sortable);
146
146
  };
147
147
 
148
148
  dbstorage.getItem(kSTORECOLUM).then(value => {
@@ -159,7 +159,7 @@ const data = reactive<VxeGridProps>({
159
159
  columnConfig: { useKey: true },
160
160
  toolbarConfig: { enabled: false },
161
161
  sortConfig: { multiple: true, trigger: 'cell' },
162
- height: $mode ? undefined : window.innerHeight - 90,
162
+ height: $mode ? undefined : window.innerHeight - 92,
163
163
 
164
164
  checkboxConfig: {
165
165
  checkMethod: ({ row }) => onCheckMethod(row, props),
@@ -170,19 +170,20 @@ const data = reactive<VxeGridProps>({
170
170
  proxyConfig: {
171
171
  form: true, // 查询是需要启用表单代理
172
172
  autoLoad: props.autoLoad,
173
+ showResponseMsgvxe: false,
174
+ showActionMsgvxe: false,
173
175
  // 接收 Promise
174
176
  ajax: {
175
177
  queryAll: ({ form }) => queryAll(props, serviceApi, form),
176
- query: ({ page, form }) => query(props, form, page, serviceApi, $mode),
178
+ query: ({ page, form, code }) => query(props, form, page, serviceApi, code, $mode),
177
179
  delete: ({ body: { removeRecords } }) => del(serviceApi, removeRecords, props),
178
180
  save: ({ body }) => Promise.all(save(serviceApi, body, props)),
179
-
180
- querySuccess: response => callback('querySuccess', response),
181
- queryError: response => callback('queryError', response),
182
- deleteSuccess: response => callback('deleteSuccess', response),
183
- deleteError: response => callback('deleteError', response),
184
- saveSuccess: response => callback('saveSuccess', response),
185
- saveError: response => callback('saveError', response)
181
+ querySuccess: ({ response }) => callback('querySuccess', response),
182
+ queryError: ({ response }) => callback('queryError', response),
183
+ deleteSuccess: ({ response }) => callback('deleteSuccess', response),
184
+ deleteError: ({ response }) => callback('deleteError', response),
185
+ saveSuccess: ({ response }) => callback('saveSuccess', response),
186
+ saveError: ({ response }) => callback('saveError', response)
186
187
  }
187
188
  },
188
189
  columns: !attrs.gridId ? getColumns() : [],
@@ -316,6 +317,16 @@ const callback = (cb, response) => {
316
317
  attrs?.callback && attrs?.callback[cb] && attrs?.callback[cb](response);
317
318
  };
318
319
 
320
+ const onReset = ({ data }) => {
321
+ console.log(data);
322
+ const items = props.items.filter(f => f.itemRender?.props?.multiple);
323
+ console.log(items);
324
+ items.forEach(item => {
325
+ data[`_${item.field}`] = [];
326
+ });
327
+ refreshData();
328
+ };
329
+
319
330
  let sortable2: any;
320
331
  const columnDrop = () => {
321
332
  const $grid = xgrid.value;
@@ -389,11 +400,15 @@ const columnDrop = () => {
389
400
  * @description 常用查询面板确认查询
390
401
  * @param data 常用查询条件
391
402
  */
392
- const onSearch = data => {
393
- showModal.value = false;
394
- const { form } = xgrid.value.getProxyInfo();
395
- Object.assign(form, data);
396
- refreshData();
403
+ // const onSearch = data => {
404
+ // showModal.value = false;
405
+ // const { form } = xgrid.value.getProxyInfo();
406
+ // Object.assign(form, data);
407
+ // refreshData();
408
+ // };
409
+
410
+ const reloadGrid = () => {
411
+ setGridConfig();
397
412
  };
398
413
 
399
414
  /**
@@ -406,7 +421,8 @@ defineExpose({
406
421
  refreshColumn,
407
422
  getInstance,
408
423
  showLoading,
409
- hiddenLoading
424
+ hiddenLoading,
425
+ reloadGrid
410
426
  });
411
427
 
412
428
  const toolbarButtonClick = ({ code }) => {
@@ -428,13 +444,11 @@ const editEctivated = e => {
428
444
  const addResizeListener = () => {
429
445
  window.onresize = () => {
430
446
  return (() => {
431
- console.log('onresize');
432
- let height = attrs?.height || window.innerHeight - 90 - 1;
433
- if (attrs?.mode === 'form' && !attrs?.height) {
447
+ let height = attrs?.height || window.innerHeight - 90;
448
+ if (attrs.mode !== 'inline' && !attrs?.height) {
434
449
  height = window.innerHeight - 180;
435
450
  }
436
451
  data.height = height < 240 ? 240 : height;
437
- console.log(data.height);
438
452
  })();
439
453
  };
440
454
  };
@@ -446,7 +460,6 @@ nextTick(() => {
446
460
  columnDrop();
447
461
  }, 500);
448
462
  });
449
-
450
463
  /**
451
464
  * @description Vue实例卸载
452
465
  */
@@ -488,6 +501,7 @@ const emit = defineEmits<{
488
501
  }
489
502
  }
490
503
  }
504
+
491
505
  .vxe-grid--layout-body-content-wrapper {
492
506
  overflow: hidden;
493
507
  }
@@ -1,10 +1,3 @@
1
- import UtModalForm2 from './modal-form.vue';
2
- import FormUpload2 from './form-upload.vue';
3
- import utLov2 from './lov.vue';
4
- import UtModalGrid2 from './modal-grid.vue';
5
- import UtGrid2 from './grid.vue';
6
- import UtForm2 from './form.vue';
7
- import UtUpload2 from './upload.vue';
8
- // import UtCountdown2 from './flip-down/FlipClock/flip-clock.vue';
1
+ import UtGrid2 from './grid/index.vue';
9
2
 
10
- export { UtGrid2, UtModalForm2, FormUpload2, utLov2, UtModalGrid2, UtForm2, UtUpload2 };
3
+ export { UtGrid2 };