hy-dispatch-ui-v3 0.2.65 → 0.2.66

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 (128) hide show
  1. package/dist/tailwind.css +26 -12
  2. package/es/api/organization.mjs +43 -0
  3. package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
  4. package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
  5. package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
  6. package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  7. package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
  8. package/es/bussiness/hyDeviceTree/index.mjs +7 -0
  9. package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
  10. package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  11. package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
  12. package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
  13. package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
  14. package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  15. package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
  16. package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
  17. package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
  18. package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  19. package/es/bussiness/hyUserTree/index.mjs +7 -0
  20. package/es/bussiness/hyUserTree/js/index.mjs +126 -0
  21. package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
  22. package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
  23. package/es/bussiness/index.mjs +5 -0
  24. package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +18 -16
  25. package/es/components/hyButton/button.vue.mjs +3 -2
  26. package/es/components/hyButton/style/button.scss +70 -0
  27. package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
  28. package/es/components/hyForm/cpns/formItem.vue.mjs +198 -26
  29. package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
  30. package/es/components/hyForm/form.vue.mjs +74 -19
  31. package/es/components/hyForm/js/index.mjs +2 -1
  32. package/es/components/hyForm/js/useAppForm.mjs +2 -2
  33. package/es/components/hyIcon/style/icon.scss +1 -0
  34. package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
  35. package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
  36. package/es/components/hyOrgCascader/orgCascader.vue.mjs +69 -14
  37. package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
  38. package/es/components/hySearch/cpns/searchItem.vue.mjs +167 -11
  39. package/es/components/hySearch/js/index.mjs +2 -1
  40. package/es/components/hySearch/search.vue.mjs +60 -9
  41. package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
  42. package/es/components/hyTable/cpns/virtualTable.vue.mjs +10 -15
  43. package/es/components/hyTable/js/index.mjs +5 -12
  44. package/es/components/hyTable/js/search.mjs +3 -1
  45. package/es/components/hyTable/style/table.scss +13 -0
  46. package/es/components/hyTable/table.vue.mjs +21 -9
  47. package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -10
  48. package/es/components/hyTableForm/batchTableForm.vue.mjs +13 -3
  49. package/es/components/hyTableForm/tableForm.vue.mjs +17 -11
  50. package/es/components/hyTour/index.mjs +7 -0
  51. package/es/components/hyTour/style/tour.scss +0 -0
  52. package/es/components/hyTour/tour.vue.mjs +23 -0
  53. package/es/components/hyTree/config/tree-config.mjs +5 -2
  54. package/es/components/hyTree/js/index.mjs +11 -7
  55. package/es/components/hyTree/tree.vue.mjs +18 -35
  56. package/es/components/index.mjs +1 -0
  57. package/es/index.mjs +6 -0
  58. package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  59. package/es/style/element/hy-element.scss +24 -3
  60. package/es/style/theme.scss +1 -0
  61. package/es/utils/map/hook/bigMap.mjs +9 -1
  62. package/es/utils/map/hook/gaode.mjs +9 -1
  63. package/es/utils/map/hook/leafletjs.mjs +10 -1
  64. package/es/version.mjs +1 -1
  65. package/lib/api/organization.js +47 -0
  66. package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
  67. package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
  68. package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
  69. package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
  70. package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
  71. package/lib/bussiness/hyDeviceTree/index.js +12 -0
  72. package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
  73. package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
  74. package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
  75. package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
  76. package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
  77. package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
  78. package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
  79. package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
  80. package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
  81. package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
  82. package/lib/bussiness/hyUserTree/index.js +12 -0
  83. package/lib/bussiness/hyUserTree/js/index.js +128 -0
  84. package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
  85. package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
  86. package/lib/bussiness/index.js +14 -4
  87. package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +18 -16
  88. package/lib/components/hyButton/button.vue.js +3 -2
  89. package/lib/components/hyButton/style/button.scss +70 -0
  90. package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
  91. package/lib/components/hyForm/cpns/formItem.vue.js +195 -23
  92. package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
  93. package/lib/components/hyForm/form.vue.js +72 -17
  94. package/lib/components/hyForm/js/index.js +2 -0
  95. package/lib/components/hyForm/js/useAppForm.js +2 -2
  96. package/lib/components/hyIcon/style/icon.scss +1 -0
  97. package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
  98. package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
  99. package/lib/components/hyOrgCascader/orgCascader.vue.js +67 -12
  100. package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
  101. package/lib/components/hySearch/cpns/searchItem.vue.js +164 -8
  102. package/lib/components/hySearch/js/index.js +2 -0
  103. package/lib/components/hySearch/search.vue.js +58 -7
  104. package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
  105. package/lib/components/hyTable/cpns/virtualTable.vue.js +27 -32
  106. package/lib/components/hyTable/js/index.js +5 -12
  107. package/lib/components/hyTable/js/search.js +3 -1
  108. package/lib/components/hyTable/style/table.scss +13 -0
  109. package/lib/components/hyTable/table.vue.js +20 -8
  110. package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -9
  111. package/lib/components/hyTableForm/batchTableForm.vue.js +13 -3
  112. package/lib/components/hyTableForm/tableForm.vue.js +18 -12
  113. package/lib/components/hyTour/index.js +12 -0
  114. package/lib/components/hyTour/style/tour.scss +0 -0
  115. package/lib/components/hyTour/tour.vue.js +27 -0
  116. package/lib/components/hyTree/config/tree-config.js +5 -2
  117. package/lib/components/hyTree/js/index.js +11 -7
  118. package/lib/components/hyTree/tree.vue.js +18 -35
  119. package/lib/components/index.js +8 -6
  120. package/lib/index.js +67 -55
  121. package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
  122. package/lib/style/element/hy-element.scss +24 -3
  123. package/lib/style/theme.scss +1 -0
  124. package/lib/utils/map/hook/bigMap.js +9 -1
  125. package/lib/utils/map/hook/gaode.js +9 -1
  126. package/lib/utils/map/hook/leafletjs.js +10 -1
  127. package/lib/version.js +1 -1
  128. package/package.json +1 -1
@@ -0,0 +1,128 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var organization = require('../../../api/organization.js');
5
+
6
+ function useUserTree(hy) {
7
+ const emits = hy.emits;
8
+ const props = hy.props;
9
+ const hyTreeRef = vue.useTemplateRef("hyTreeRef");
10
+ const containerRef = vue.useTemplateRef("containerRef");
11
+ const treeHeight = vue.ref(400);
12
+ let resizeObserver;
13
+ function updateTreeHeight() {
14
+ const height = hy.containerRef.value?.getBoundingClientRect().height;
15
+ if (height > 0 && height - 12 !== hy.treeHeight.value) {
16
+ hy.treeHeight.value = Math.round(height) - 12;
17
+ }
18
+ }
19
+ async function setData() {
20
+ if (props.type === "custom") {
21
+ emits("onRefreshData");
22
+ return;
23
+ }
24
+ const data = await organization.orgListWithDev3Api({
25
+ showDevice: false,
26
+ showGroup: false,
27
+ ...props.requestParams
28
+ });
29
+ hy.hyTreeRef.value.getData(data).then(() => {
30
+ emits("on-load");
31
+ });
32
+ }
33
+ function getData(data) {
34
+ return new Promise((resolve) => {
35
+ hy.hyTreeRef.value.getData(data).then(() => {
36
+ emits("on-load");
37
+ resolve(200);
38
+ });
39
+ });
40
+ }
41
+ vue.onMounted(() => {
42
+ if (props.type !== "custom") {
43
+ hy.setData();
44
+ }
45
+ vue.nextTick(() => {
46
+ hy.updateTreeHeight();
47
+ if (typeof ResizeObserver === "function" && hy.containerRef.value) {
48
+ hy.resizeObserver = new ResizeObserver(hy.updateTreeHeight);
49
+ hy.resizeObserver.observe(hy.containerRef.value);
50
+ } else if (typeof window !== "undefined") {
51
+ window.addEventListener("resize", hy.updateTreeHeight);
52
+ }
53
+ });
54
+ });
55
+ vue.onUnmounted(() => {
56
+ hy.resizeObserver?.disconnect();
57
+ if (typeof window !== "undefined") {
58
+ window.removeEventListener("resize", hy.updateTreeHeight);
59
+ }
60
+ });
61
+ function onClickDelete(data) {
62
+ emits("on-click-delete", data);
63
+ }
64
+ function onClick(data) {
65
+ emits("on-click", data);
66
+ }
67
+ function onCheckTree(list, checkObj) {
68
+ emits("on-check-tree", list, checkObj);
69
+ }
70
+ function onDepartmentClick(data) {
71
+ emits("on-department-click", data);
72
+ }
73
+ function onClickDevice(data) {
74
+ emits("on-click-device", data);
75
+ }
76
+ function onContextmenu(data) {
77
+ emits("on-contextmenu", data);
78
+ }
79
+ function onDblclick(list) {
80
+ emits("on-dblclick", list);
81
+ }
82
+ function onSelectedDataList(list) {
83
+ emits("on-selectedDataList", list);
84
+ }
85
+ function singleRemovalFn(row, isForce = false) {
86
+ hy.hyTreeRef.value.singleRemovalFn(row, isForce);
87
+ }
88
+ function setCheckedKeys(dataList, isForce = false) {
89
+ hy.hyTreeRef.value.setCheckedKeys(dataList, isForce);
90
+ }
91
+ function setChecked(data, type = true) {
92
+ hy.hyTreeRef.value.setChecked(data, type);
93
+ }
94
+ function getSelectedDataList(leafOnly = false) {
95
+ return hy.hyTreeRef.value.getSelectedDataList(leafOnly);
96
+ }
97
+ function refreshData() {
98
+ hy.hyTreeRef.value.refreshData();
99
+ }
100
+ function getNode(id) {
101
+ return hy.hyTreeRef.value.getNode(id);
102
+ }
103
+ return {
104
+ hyTreeRef,
105
+ containerRef,
106
+ treeHeight,
107
+ resizeObserver,
108
+ updateTreeHeight,
109
+ setData,
110
+ getData,
111
+ onClickDelete,
112
+ onClick,
113
+ onCheckTree,
114
+ onDepartmentClick,
115
+ onClickDevice,
116
+ onContextmenu,
117
+ onDblclick,
118
+ onSelectedDataList,
119
+ singleRemovalFn,
120
+ setCheckedKeys,
121
+ setChecked,
122
+ getSelectedDataList,
123
+ refreshData,
124
+ getNode
125
+ };
126
+ }
127
+
128
+ exports.useUserTree = useUserTree;
File without changes
@@ -0,0 +1,243 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ require('../../components/index.js');
7
+ require('../../hooks/index.js');
8
+ var index = require('./js/index.js');
9
+ var useMixins = require('../../hooks/useMixins.js');
10
+ var index$1 = require('../../components/hyTree/index.js');
11
+
12
+ import "./style/userTree.scss";
13
+
14
+ const __default__ = vue.defineComponent({
15
+ name: "HyUserTree"
16
+ });
17
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
18
+ props: {
19
+ // 数据获取类型 custom 自定义数据
20
+ type: {
21
+ type: String,
22
+ default: "default"
23
+ },
24
+ // 请求的额外参数
25
+ requestParams: {
26
+ type: Object,
27
+ default: () => ({})
28
+ },
29
+ /* 禁止选择 */
30
+ disableSelection: {
31
+ type: Array,
32
+ default: () => {
33
+ return [];
34
+ }
35
+ },
36
+ // 设置勤务状态
37
+ getDutyRoster: {
38
+ type: Boolean,
39
+ default: () => {
40
+ return false;
41
+ }
42
+ },
43
+ // 仅展示在线数据
44
+ showOnlineOnly: {
45
+ type: Boolean,
46
+ default: () => {
47
+ return false;
48
+ }
49
+ },
50
+ /* 是否开启多选框 */
51
+ showCheckbox: {
52
+ type: Boolean,
53
+ default: true
54
+ },
55
+ /* 是否开启单选框 */
56
+ showSinglebox: {
57
+ type: Boolean,
58
+ default: false
59
+ },
60
+ // 是否清除无数据的部门
61
+ clearEmptyBusiness: {
62
+ type: Boolean,
63
+ default: false
64
+ },
65
+ // 是否显示自定义空数据显示
66
+ showCustomEmpty: {
67
+ type: Boolean,
68
+ default: false
69
+ },
70
+ placeholder: {
71
+ type: String,
72
+ default: "\u8BF7\u8F93\u5165"
73
+ },
74
+ // 是否返回默认选择的数据
75
+ isBackDefaultSelected: {
76
+ type: Boolean,
77
+ default: false
78
+ },
79
+ /* 默认选中列表 */
80
+ selectedByDefault: {
81
+ type: Array,
82
+ default: () => {
83
+ return [];
84
+ }
85
+ },
86
+ // 默认需要选中的部门ID
87
+ defaultSelectedOrgID: {
88
+ default: null
89
+ },
90
+ // 搜索类型
91
+ searchType: {
92
+ type: Number,
93
+ default: 1
94
+ },
95
+ // 筛选列表
96
+ selectFilterList: {
97
+ type: Array,
98
+ default: () => []
99
+ },
100
+ // 是否高亮选中节点
101
+ highlight: {
102
+ type: Boolean,
103
+ default: false
104
+ },
105
+ // 是否严格的遵循父子不互相关联
106
+ checkStrictly: {
107
+ type: Boolean,
108
+ default: false
109
+ },
110
+ // 单选时可以取消选中
111
+ cancelable: {
112
+ type: Boolean,
113
+ default: true
114
+ },
115
+ // 是否显示多选框或单选框
116
+ showSelectBox: {
117
+ type: Boolean,
118
+ default: true
119
+ },
120
+ // 是否在点击节点的时候展开或者收缩节点
121
+ expandOnClickNode: {
122
+ type: Boolean,
123
+ default: true
124
+ },
125
+ // 是否在点击节点的时候选中节点
126
+ checkOnClickNode: {
127
+ type: Boolean,
128
+ default: false
129
+ },
130
+ // 点击叶节点(最后一个子节点)时是否检查或取消节点
131
+ checkOnClickLeaf: {
132
+ type: Boolean,
133
+ default: true
134
+ },
135
+ // 双击父节点会触发选中功能
136
+ checkOnDblclickParentNode: {
137
+ type: Boolean,
138
+ default: true
139
+ },
140
+ // 初始化过滤数据
141
+ filterConfig: {
142
+ type: Array,
143
+ default: () => []
144
+ },
145
+ // 外部自定义过滤函数
146
+ filterMethod: {
147
+ type: Function,
148
+ default: null
149
+ }
150
+ },
151
+ emits: [
152
+ "on-load",
153
+ "onRefreshData",
154
+ "on-click-delete",
155
+ "on-click",
156
+ "on-check-tree",
157
+ "on-department-click",
158
+ "on-click-device",
159
+ "on-contextmenu",
160
+ "on-dblclick",
161
+ "on-selectedDataList"
162
+ ],
163
+ setup(__props, { expose: __expose, emit: __emit }) {
164
+ const props = __props;
165
+ const emits = __emit;
166
+ const slots = vue.useSlots();
167
+ const {
168
+ containerRef,
169
+ hyTreeRef,
170
+ treeHeight,
171
+ setData,
172
+ getData,
173
+ onClickDelete,
174
+ onClick,
175
+ onCheckTree,
176
+ onDepartmentClick,
177
+ onClickDevice,
178
+ onContextmenu,
179
+ onDblclick,
180
+ onSelectedDataList,
181
+ singleRemovalFn,
182
+ setCheckedKeys,
183
+ setChecked,
184
+ getSelectedDataList,
185
+ refreshData,
186
+ getNode
187
+ } = useMixins.useMixins({ props, emits }, [index.useUserTree]);
188
+ __expose({
189
+ getData,
190
+ singleRemovalFn,
191
+ setCheckedKeys,
192
+ setChecked,
193
+ getSelectedDataList,
194
+ refreshData,
195
+ getNode
196
+ });
197
+ return (_ctx, _cache) => {
198
+ return vue.openBlock(), vue.createElementBlock(
199
+ "div",
200
+ {
201
+ ref_key: "containerRef",
202
+ ref: containerRef,
203
+ class: "w-full h-full"
204
+ },
205
+ [
206
+ vue.createCommentVNode(" HyUserTree \u7528\u6237\u6811\u5F62 "),
207
+ vue.createVNode(vue.unref(index$1.HyTree), vue.mergeProps({
208
+ ref_key: "hyTreeRef",
209
+ ref: hyTreeRef
210
+ }, { ...props }, {
211
+ treeHeight: vue.unref(treeHeight),
212
+ treeType: "user",
213
+ onOnRefreshData: vue.unref(setData),
214
+ onOnClickDelete: vue.unref(onClickDelete),
215
+ onOnClick: vue.unref(onClick),
216
+ onOnCheckTree: vue.unref(onCheckTree),
217
+ onOnDepartmentClick: vue.unref(onDepartmentClick),
218
+ onOnClickDevice: vue.unref(onClickDevice),
219
+ onOnContextmenu: vue.unref(onContextmenu),
220
+ onOnDblclick: vue.unref(onDblclick),
221
+ onOnSelectedDataList: vue.unref(onSelectedDataList)
222
+ }), vue.createSlots({
223
+ _: 2
224
+ /* DYNAMIC */
225
+ }, [
226
+ vue.renderList(vue.unref(slots), (_, slotName) => {
227
+ return {
228
+ name: slotName,
229
+ fn: vue.withCtx((scope) => [
230
+ vue.renderSlot(_ctx.$slots, slotName, vue.normalizeProps(vue.guardReactiveProps(scope)))
231
+ ])
232
+ };
233
+ })
234
+ ]), 1040, ["treeHeight", "onOnRefreshData", "onOnClickDelete", "onOnClick", "onOnCheckTree", "onOnDepartmentClick", "onOnClickDevice", "onOnContextmenu", "onOnDblclick", "onOnSelectedDataList"])
235
+ ],
236
+ 512
237
+ /* NEED_PATCH */
238
+ );
239
+ };
240
+ }
241
+ });
242
+
243
+ exports.default = _sfc_main;
@@ -1,9 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./hyAddDepartmentType/index.js');
4
- var index$1 = require('./hyMapAearchPlace/index.js');
3
+ var index$1 = require('./hyAddDepartmentType/index.js');
4
+ var index$3 = require('./hyMapAearchPlace/index.js');
5
+ var index$6 = require('./hyUserTree/index.js');
6
+ var index$2 = require('./hyDeviceTree/index.js');
7
+ var index$4 = require('./hyOrgGroupTree/index.js');
8
+ var index$5 = require('./hyPlanGroupDeviceTree/index.js');
9
+ var index = require('./hyAcquisitionStationTree/index.js');
5
10
 
6
11
 
7
12
 
8
- exports.HyAddDepartmentType = index.HyAddDepartmentType;
9
- exports.HyMapAearchPlace = index$1.HyMapAearchPlace;
13
+ exports.HyAddDepartmentType = index$1.HyAddDepartmentType;
14
+ exports.HyMapAearchPlace = index$3.HyMapAearchPlace;
15
+ exports.HyUserTree = index$6.HyUserTree;
16
+ exports.HyDeviceTree = index$2.HyDeviceTree;
17
+ exports.HyOrgGroupTree = index$4.HyOrgGroupTree;
18
+ exports.HyPlanGroupDeviceTree = index$5.HyPlanGroupDeviceTree;
19
+ exports.HyAcquisitionStationTree = index.HyAcquisitionStationTree;
@@ -3,13 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
- var elementPlus = require('element-plus');
7
- var iconsVue = require('@element-plus/icons-vue');
8
6
  require('../index.js');
9
7
  var index = require('../hyDialog/index.js');
10
8
  var index$1 = require('../hyTableForm/index.js');
11
9
  var index$2 = require('../hyButton/index.js');
12
10
  var index$3 = require('../hyTooltip/index.js');
11
+ var index$4 = require('../hyIcon/index.js');
13
12
 
14
13
  import "./style/batchUploadDialog.scss";
15
14
 
@@ -109,6 +108,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
109
108
  "validate",
110
109
  "submitting",
111
110
  "submit",
111
+ "submitProgress",
112
+ "tableDataChange",
112
113
  "onMinimized",
113
114
  "onDialogMousedown"
114
115
  ], ["update:modelValue"]),
@@ -124,6 +125,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
124
125
  const totalElements = vue.ref(0);
125
126
  const failedCount = vue.ref(0);
126
127
  const failedStatus = vue.ref(null);
128
+ function tableDataChange(e) {
129
+ emits("tableDataChange", e);
130
+ }
127
131
  function setDragLevelIndex(dragLevel) {
128
132
  HyDialogRef.value.setDragLevelIndex(dragLevel);
129
133
  }
@@ -166,6 +170,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
166
170
  isSubmitting.value = true;
167
171
  emits("submitting", ...args);
168
172
  }
173
+ function onSubmitProgressHandler(submitProgress) {
174
+ emits("submitProgress", submitProgress);
175
+ }
169
176
  function onTableSubmitHandler(params) {
170
177
  const { total, success, failed, result } = params;
171
178
  if (result) {
@@ -197,7 +204,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
197
204
  }
198
205
  __expose({
199
206
  show,
200
- setDragLevelIndex,
201
207
  getTableDataSource: () => {
202
208
  return batchTableFormRef.value.getTableDataSource();
203
209
  },
@@ -242,12 +248,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
242
248
  key: 0,
243
249
  class: "flex items-center gap-1.5 text-xs text-warning"
244
250
  }, [
245
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
246
- default: vue.withCtx(() => [
247
- vue.createVNode(vue.unref(iconsVue.Warning))
248
- ]),
249
- _: 1
250
- /* STABLE */
251
+ vue.createVNode(vue.unref(index$4.HyIcon), {
252
+ "svg-name": "dispatch-share1-prompt",
253
+ class: "!w-3 !h-3"
251
254
  }),
252
255
  failedStatus.value === "validate" ? (vue.openBlock(), vue.createElementBlock(
253
256
  "span",
@@ -266,12 +269,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
266
269
  key: 1,
267
270
  class: "flex items-center gap-1.5 text-xs text-warning"
268
271
  }, [
269
- vue.createVNode(vue.unref(elementPlus.ElIcon), null, {
270
- default: vue.withCtx(() => [
271
- vue.createVNode(vue.unref(iconsVue.Warning))
272
- ]),
273
- _: 1
274
- /* STABLE */
272
+ vue.createVNode(vue.unref(index$4.HyIcon), {
273
+ "svg-name": "dispatch-share1-prompt",
274
+ class: "!w-3 !h-3"
275
275
  }),
276
276
  vue.createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
277
277
  ])) : vue.createCommentVNode("v-if", true)
@@ -338,12 +338,14 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
338
338
  onExpandRowChange: __props.onExpandRowChange,
339
339
  "submit-handler": __props.submitHandler,
340
340
  showAddBtn: __props.showAddBtn,
341
+ onTableDataChange: tableDataChange,
341
342
  onUploading: onTableUploadingHandler,
342
343
  onUploaded: onTableUploadedHandler,
343
344
  onReset: onTableResetHandler,
344
345
  onValidate: onTableValidateHandler,
345
346
  onSubmitting: onTableSubmittingHandler,
346
- onSubmit: onTableSubmitHandler
347
+ onSubmit: onTableSubmitHandler,
348
+ onSubmitProgress: onSubmitProgressHandler
347
349
  }, vue.createSlots({
348
350
  _: 2
349
351
  /* DYNAMIC */
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
19
19
  type: {
20
20
  type: String,
21
21
  default: "default"
22
- // default 默认 primary 亮色 success 添加 danger 删除
22
+ // default 默认 primary 亮色 success 添加 danger 删除 operate 操作
23
23
  },
24
24
  disabled: {
25
25
  type: Boolean,
@@ -54,7 +54,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
54
54
  default: "hy-button_default",
55
55
  primary: "hy-button_function",
56
56
  success: "hy-button_addTo",
57
- danger: "hy-button_delete"
57
+ danger: "hy-button_delete",
58
+ operate: "hy-button_operate"
58
59
  };
59
60
  const emit = __emit;
60
61
  const handleClick = (event) => {
@@ -295,6 +295,72 @@
295
295
  color: rgba(255, 255, 255, 0.68);
296
296
  }
297
297
  }
298
+
299
+ &.hy-button_operate {
300
+ background: rgba(45, 255, 211, 0.32);
301
+ border: 1px solid rgba(45, 255, 211, 1);
302
+ box-shadow: 0px 0px 0px 2px rgba(45, 255, 211, 0.5);
303
+
304
+ .hy-button__border {
305
+ background: linear-gradient(
306
+ 90deg,
307
+ rgba(45, 255, 211, 0.4) 0%,
308
+ rgba(45, 255, 211, 1) 50%,
309
+ rgba(45, 255, 211, 0.4) 100%
310
+ );
311
+ }
312
+
313
+ .hy-button__inner {
314
+ background: #002932;
315
+ box-shadow:
316
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
317
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
318
+ }
319
+
320
+ .hy-button__text {
321
+ color: #fff;
322
+ }
323
+
324
+ .hy-button__mask {
325
+ background: radial-gradient(
326
+ ellipse at center bottom,
327
+ #2DFFD3 0%,
328
+ #189177 30%,
329
+ transparent 60%
330
+ );
331
+ }
332
+
333
+ &:hover .hy-button__inner {
334
+ box-shadow:
335
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
336
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5),
337
+ inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
338
+ inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
339
+ }
340
+
341
+ &:disabled .hy-button__border,
342
+ &.is-disabled .hy-button__border {
343
+ background: linear-gradient(
344
+ 90deg,
345
+ rgba(45, 255, 211, 0.18) 0%,
346
+ rgba(45, 255, 211, 0.42) 50%,
347
+ rgba(45, 255, 211, 0.18) 100%
348
+ );
349
+ }
350
+
351
+ &:disabled .hy-button__inner,
352
+ &.is-disabled .hy-button__inner {
353
+ background: #4b0c0c;
354
+ box-shadow:
355
+ inset 0 0 4px 1px rgba(45, 255, 211, 0.2),
356
+ inset 0 0 2px 0 rgba(24, 145, 119, 0.16);
357
+ }
358
+
359
+ &:disabled .hy-button__text,
360
+ &.is-disabled .hy-button__text {
361
+ color: rgba(255, 255, 255, 0.68);
362
+ }
363
+ }
298
364
  }
299
365
 
300
366
 
@@ -347,6 +413,10 @@
347
413
  --hy-button-text-color: rgba(var(--hy-danger-2));
348
414
  }
349
415
 
416
+ &.hy-button_operate {
417
+ --hy-button-text-color: rgba(var(--hy-success-3));
418
+ }
419
+
350
420
  &.is-disabled {
351
421
  cursor: not-allowed;
352
422
  }
@@ -176,7 +176,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
176
176
  default: vue.withCtx(() => [
177
177
  vue.createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
178
178
  vue.createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
179
- vue.createCommentVNode(' <el-icon size="40" :color="iconColor"><Warning /></el-icon> '),
180
179
  vue.createVNode(vue.unref(index.HyIcon), {
181
180
  "svg-name": "dispatch-share1-prompt",
182
181
  class: "!w-[40px] !h-[40px]",