hy-dispatch-ui-v3 0.2.65 → 0.2.67
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.
- package/dist/tailwind.css +51 -13
- package/es/api/organization.mjs +43 -0
- package/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.mjs +245 -0
- package/es/bussiness/hyAcquisitionStationTree/index.mjs +7 -0
- package/es/bussiness/hyAcquisitionStationTree/js/index.mjs +124 -0
- package/es/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
- package/es/bussiness/hyDeviceTree/deviceTree.vue.mjs +249 -0
- package/es/bussiness/hyDeviceTree/index.mjs +7 -0
- package/es/bussiness/hyDeviceTree/js/index.mjs +126 -0
- package/es/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
- package/es/bussiness/hyOrgGroupTree/index.mjs +7 -0
- package/es/bussiness/hyOrgGroupTree/js/index.mjs +124 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.vue.mjs +245 -0
- package/es/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
- package/es/bussiness/hyPlanGroupDeviceTree/index.mjs +7 -0
- package/es/bussiness/hyPlanGroupDeviceTree/js/index.mjs +124 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.mjs +245 -0
- package/es/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
- package/es/bussiness/hyUserTree/index.mjs +7 -0
- package/es/bussiness/hyUserTree/js/index.mjs +126 -0
- package/es/bussiness/hyUserTree/style/userTree.scss +0 -0
- package/es/bussiness/hyUserTree/userTree.vue.mjs +239 -0
- package/es/bussiness/index.mjs +5 -0
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +183 -149
- package/es/components/hyButton/button.vue.mjs +19 -5
- package/es/components/hyButton/style/button.scss +72 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -2
- package/es/components/hyForm/cpns/formItem.vue.mjs +254 -32
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +8 -1
- package/es/components/hyForm/form.vue.mjs +88 -19
- package/es/components/hyForm/js/index.mjs +2 -1
- package/es/components/hyForm/js/useAppForm.mjs +3 -3
- package/es/components/hyIcon/style/icon.scss +1 -0
- package/es/components/hyMap/js/index.mjs +6 -6
- package/es/components/hyMap/map.vue.mjs +14 -4
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +75 -15
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +5 -4
- package/es/components/hySearch/cpns/searchItem.vue.mjs +434 -206
- package/es/components/hySearch/js/index.mjs +2 -1
- package/es/components/hySearch/search.vue.mjs +71 -10
- package/es/components/hySearch/style/search.scss +7 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +21 -22
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +35 -21
- package/es/components/hyTable/js/index.mjs +16 -17
- package/es/components/hyTable/js/search.mjs +28 -2
- package/es/components/hyTable/style/table.scss +13 -0
- package/es/components/hyTable/table.vue.mjs +55 -22
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +17 -12
- package/es/components/hyTableForm/batchTableForm.vue.mjs +36 -5
- package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
- package/es/components/hyTableForm/tableForm.vue.mjs +84 -32
- package/es/components/hyTour/index.mjs +7 -0
- package/es/components/hyTour/style/tour.scss +0 -0
- package/es/components/hyTour/tour.vue.mjs +23 -0
- package/es/components/hyTree/config/tree-config.mjs +5 -2
- package/es/components/hyTree/js/index.mjs +128 -56
- package/es/components/hyTree/tree.vue.mjs +22 -37
- package/es/components/index.mjs +1 -0
- package/es/index.mjs +6 -0
- package/es/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
- package/es/style/element/hy-element.scss +24 -3
- package/es/style/index.scss +0 -1
- package/es/style/tailwind.scss +0 -1
- package/es/style/theme.scss +1 -0
- package/es/utils/is.mjs +3 -1
- package/es/utils/map/hook/bigMap.mjs +11 -1
- package/es/utils/map/hook/gaode.mjs +60 -17
- package/es/utils/map/hook/leafletjs.mjs +25 -4
- package/es/utils/map/index.mjs +1 -1
- package/es/version.mjs +1 -1
- package/lib/api/organization.js +47 -0
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.vue.js +249 -0
- package/lib/bussiness/hyAcquisitionStationTree/index.js +12 -0
- package/lib/bussiness/hyAcquisitionStationTree/js/index.js +126 -0
- package/lib/bussiness/hyAcquisitionStationTree/style/acquisitionStationTree.scss +0 -0
- package/lib/bussiness/hyDeviceTree/deviceTree.vue.js +253 -0
- package/lib/bussiness/hyDeviceTree/index.js +12 -0
- package/lib/bussiness/hyDeviceTree/js/index.js +128 -0
- package/lib/bussiness/hyDeviceTree/style/deviceTree.scss +0 -0
- package/lib/bussiness/hyOrgGroupTree/index.js +12 -0
- package/lib/bussiness/hyOrgGroupTree/js/index.js +126 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.vue.js +249 -0
- package/lib/bussiness/hyOrgGroupTree/style/orgGroupTree.scss +0 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/index.js +12 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/js/index.js +126 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.vue.js +249 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/style/planGroupDeviceTree.scss +0 -0
- package/lib/bussiness/hyUserTree/index.js +12 -0
- package/lib/bussiness/hyUserTree/js/index.js +128 -0
- package/lib/bussiness/hyUserTree/style/userTree.scss +0 -0
- package/lib/bussiness/hyUserTree/userTree.vue.js +243 -0
- package/lib/bussiness/index.js +14 -4
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +182 -148
- package/lib/components/hyButton/button.vue.js +18 -4
- package/lib/components/hyButton/style/button.scss +72 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +0 -1
- package/lib/components/hyForm/cpns/formItem.vue.js +250 -28
- package/lib/components/hyForm/cpns/locationSelect.vue.js +8 -1
- package/lib/components/hyForm/form.vue.js +86 -17
- package/lib/components/hyForm/js/index.js +2 -0
- package/lib/components/hyForm/js/useAppForm.js +3 -3
- package/lib/components/hyIcon/style/icon.scss +1 -0
- package/lib/components/hyMap/js/index.js +5 -5
- package/lib/components/hyMap/map.vue.js +13 -3
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +73 -13
- package/lib/components/hyRadioGroup/radioGroup.vue.js +5 -4
- package/lib/components/hySearch/cpns/searchItem.vue.js +431 -203
- package/lib/components/hySearch/js/index.js +2 -0
- package/lib/components/hySearch/search.vue.js +69 -8
- package/lib/components/hySearch/style/search.scss +7 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +20 -21
- package/lib/components/hyTable/cpns/virtualTable.vue.js +51 -37
- package/lib/components/hyTable/js/index.js +16 -16
- package/lib/components/hyTable/js/search.js +28 -2
- package/lib/components/hyTable/style/table.scss +13 -0
- package/lib/components/hyTable/table.vue.js +53 -20
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +16 -11
- package/lib/components/hyTableForm/batchTableForm.vue.js +36 -5
- package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
- package/lib/components/hyTableForm/tableForm.vue.js +85 -33
- package/lib/components/hyTour/index.js +12 -0
- package/lib/components/hyTour/style/tour.scss +0 -0
- package/lib/components/hyTour/tour.vue.js +27 -0
- package/lib/components/hyTree/config/tree-config.js +5 -2
- package/lib/components/hyTree/js/index.js +128 -56
- package/lib/components/hyTree/tree.vue.js +22 -37
- package/lib/components/index.js +8 -6
- package/lib/index.js +67 -55
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-arrow.js +10 -0
- package/lib/style/element/hy-element.scss +24 -3
- package/lib/style/index.scss +0 -1
- package/lib/style/tailwind.scss +0 -1
- package/lib/style/theme.scss +1 -0
- package/lib/utils/is.js +5 -3
- package/lib/utils/map/hook/bigMap.js +11 -1
- package/lib/utils/map/hook/gaode.js +60 -17
- package/lib/utils/map/hook/leafletjs.js +25 -4
- package/lib/utils/map/index.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, useModel, ref, openBlock,
|
|
2
|
-
import { ElIcon } from 'element-plus';
|
|
3
|
-
import { Warning } from '@element-plus/icons-vue';
|
|
1
|
+
import { defineComponent, useTemplateRef, useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, createBlock, renderList, createTextVNode, toDisplayString, mergeModels } from 'vue';
|
|
4
2
|
import '../index.mjs';
|
|
5
3
|
import { HyDialog } from '../hyDialog/index.mjs';
|
|
6
4
|
import { HyBatchTableForm } from '../hyTableForm/index.mjs';
|
|
7
5
|
import { HyButton } from '../hyButton/index.mjs';
|
|
8
6
|
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
7
|
+
import { HyIcon } from '../hyIcon/index.mjs';
|
|
9
8
|
|
|
10
9
|
import "./style/batchUploadDialog.scss";
|
|
11
10
|
|
|
@@ -105,6 +104,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
105
104
|
"validate",
|
|
106
105
|
"submitting",
|
|
107
106
|
"submit",
|
|
107
|
+
"submitProgress",
|
|
108
|
+
"tableDataChange",
|
|
108
109
|
"onMinimized",
|
|
109
110
|
"onDialogMousedown"
|
|
110
111
|
], ["update:modelValue"]),
|
|
@@ -120,6 +121,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
120
121
|
const totalElements = ref(0);
|
|
121
122
|
const failedCount = ref(0);
|
|
122
123
|
const failedStatus = ref(null);
|
|
124
|
+
function tableDataChange(e) {
|
|
125
|
+
emits("tableDataChange", e);
|
|
126
|
+
}
|
|
123
127
|
function setDragLevelIndex(dragLevel) {
|
|
124
128
|
HyDialogRef.value.setDragLevelIndex(dragLevel);
|
|
125
129
|
}
|
|
@@ -162,6 +166,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
162
166
|
isSubmitting.value = true;
|
|
163
167
|
emits("submitting", ...args);
|
|
164
168
|
}
|
|
169
|
+
function onSubmitProgressHandler(submitProgress) {
|
|
170
|
+
emits("submitProgress", submitProgress);
|
|
171
|
+
}
|
|
165
172
|
function onTableSubmitHandler(params) {
|
|
166
173
|
const { total, success, failed, result } = params;
|
|
167
174
|
if (result) {
|
|
@@ -191,9 +198,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
191
198
|
batchTableFormRef.value.submitDataSource();
|
|
192
199
|
}
|
|
193
200
|
}
|
|
201
|
+
function getIsSubmitting() {
|
|
202
|
+
return isSubmitting.value;
|
|
203
|
+
}
|
|
194
204
|
__expose({
|
|
195
205
|
show,
|
|
196
|
-
|
|
206
|
+
getIsSubmitting,
|
|
197
207
|
getTableDataSource: () => {
|
|
198
208
|
return batchTableFormRef.value.getTableDataSource();
|
|
199
209
|
},
|
|
@@ -211,163 +221,187 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
211
221
|
},
|
|
212
222
|
setDragLevelIndex: (dragLevel) => {
|
|
213
223
|
HyDialogRef.value.setDragLevelIndex(dragLevel);
|
|
224
|
+
},
|
|
225
|
+
async getOptions() {
|
|
226
|
+
if (batchTableFormRef.value) {
|
|
227
|
+
await batchTableFormRef.value.getOptions();
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
async getOptionsFields(keys) {
|
|
231
|
+
if (batchTableFormRef.value) {
|
|
232
|
+
await batchTableFormRef.value.getOptionsFields(keys);
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
async getOptionsError() {
|
|
236
|
+
if (batchTableFormRef.value) {
|
|
237
|
+
await batchTableFormRef.value.getOptionsError();
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
getOptionsByField(key) {
|
|
241
|
+
if (batchTableFormRef.value) {
|
|
242
|
+
return batchTableFormRef.value.getOptionsByField(key);
|
|
243
|
+
}
|
|
214
244
|
}
|
|
215
245
|
});
|
|
216
246
|
return (_ctx, _cache) => {
|
|
217
|
-
return openBlock(),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}),
|
|
272
|
-
createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
|
|
273
|
-
])) : createCommentVNode("v-if", true)
|
|
274
|
-
]),
|
|
275
|
-
"operate-right-box": withCtx(() => [
|
|
276
|
-
currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
|
|
277
|
-
key: 0,
|
|
278
|
-
type: "primary",
|
|
279
|
-
class: "!min-w-[120px]",
|
|
280
|
-
onClick: onNextStep
|
|
281
|
-
}, {
|
|
282
|
-
default: withCtx(() => [
|
|
283
|
-
createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
|
|
247
|
+
return openBlock(), createElementBlock(
|
|
248
|
+
Fragment,
|
|
249
|
+
null,
|
|
250
|
+
[
|
|
251
|
+
createCommentVNode(' v-model:loading="isSubmitting"'),
|
|
252
|
+
createVNode(unref(HyDialog), mergeProps({
|
|
253
|
+
ref_key: "HyDialogRef",
|
|
254
|
+
ref: HyDialogRef,
|
|
255
|
+
modelValue: visible.value,
|
|
256
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
257
|
+
title: __props.title,
|
|
258
|
+
width: __props.width,
|
|
259
|
+
"dialog-type": __props.dialogType,
|
|
260
|
+
"show-operate": true,
|
|
261
|
+
"show-submit": false,
|
|
262
|
+
"show-cancel": !isSubmitting.value,
|
|
263
|
+
ifShrink: __props.ifShrink,
|
|
264
|
+
ifDraggable: __props.ifDraggable
|
|
265
|
+
}, _ctx.$attrs, {
|
|
266
|
+
onOnMinimized: onMinimized,
|
|
267
|
+
onOnDialogMousedown: onDialogMousedown
|
|
268
|
+
}), createSlots({
|
|
269
|
+
"operate-left-box": withCtx(() => [
|
|
270
|
+
failedCount.value ? (openBlock(), createElementBlock("div", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "flex items-center gap-1.5 text-xs text-warning"
|
|
273
|
+
}, [
|
|
274
|
+
createVNode(unref(HyIcon), {
|
|
275
|
+
"svg-name": "dispatch-share1-prompt",
|
|
276
|
+
class: "!w-3 !h-3"
|
|
277
|
+
}),
|
|
278
|
+
failedStatus.value === "validate" ? (openBlock(), createElementBlock(
|
|
279
|
+
"span",
|
|
280
|
+
{ key: 0 },
|
|
281
|
+
"\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u70B9\u51FB\u5BFC\u5165\u5C06\u4EC5\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565\u3002",
|
|
282
|
+
1
|
|
283
|
+
/* TEXT */
|
|
284
|
+
)) : (openBlock(), createElementBlock(
|
|
285
|
+
"span",
|
|
286
|
+
{ key: 1 },
|
|
287
|
+
"\u5F53\u524D " + toDisplayString(failedCount.value) + " \u6761\u5F02\u5E38\u6570\u636E\uFF0C\u8BF7\u4FEE\u6B63\u5185\u5BB9",
|
|
288
|
+
1
|
|
289
|
+
/* TEXT */
|
|
290
|
+
))
|
|
291
|
+
])) : currentStep.value === 2 && !totalElements.value ? (openBlock(), createElementBlock("div", {
|
|
292
|
+
key: 1,
|
|
293
|
+
class: "flex items-center gap-1.5 text-xs text-warning"
|
|
294
|
+
}, [
|
|
295
|
+
createVNode(unref(HyIcon), {
|
|
296
|
+
"svg-name": "dispatch-share1-prompt",
|
|
297
|
+
class: "!w-3 !h-3"
|
|
298
|
+
}),
|
|
299
|
+
createElementVNode("span", null, "\u5F53\u524D\u672A\u5BFC\u5165\u6570\u636E\uFF0C\u8BF7\u60A8\u5BFC\u5165\u6DFB\u52A0\u6570\u636E")
|
|
300
|
+
])) : createCommentVNode("v-if", true)
|
|
284
301
|
]),
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
key: 1,
|
|
289
|
-
disabled: !isSubmitting.value,
|
|
290
|
-
content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
|
|
291
|
-
}, {
|
|
292
|
-
default: withCtx(() => [
|
|
293
|
-
createVNode(unref(HyButton), {
|
|
302
|
+
"operate-right-box": withCtx(() => [
|
|
303
|
+
currentStep.value === 1 && !importing.value && __props.showAddBtn ? (openBlock(), createBlock(unref(HyButton), {
|
|
304
|
+
key: 0,
|
|
294
305
|
type: "primary",
|
|
295
|
-
loading: isSubmitting.value,
|
|
296
306
|
class: "!min-w-[120px]",
|
|
297
|
-
onClick:
|
|
307
|
+
onClick: onNextStep
|
|
308
|
+
}, {
|
|
309
|
+
default: withCtx(() => [
|
|
310
|
+
createTextVNode("\u8FDB\u5165\u6DFB\u52A0")
|
|
311
|
+
]),
|
|
312
|
+
_: 1
|
|
313
|
+
/* STABLE */
|
|
314
|
+
})) : currentStep.value === 2 ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
315
|
+
key: 1,
|
|
316
|
+
disabled: !isSubmitting.value,
|
|
317
|
+
content: "\u6570\u636E\u6B63\u5728\u5BFC\u5165\u4E2D\uFF0C\u8BF7\u7A0D\u7B49"
|
|
298
318
|
}, {
|
|
299
319
|
default: withCtx(() => [
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
320
|
+
createVNode(unref(HyButton), {
|
|
321
|
+
type: "primary",
|
|
322
|
+
loading: isSubmitting.value,
|
|
323
|
+
class: "!min-w-[120px]",
|
|
324
|
+
onClick: onSubmitHandler
|
|
325
|
+
}, {
|
|
326
|
+
default: withCtx(() => [
|
|
327
|
+
createTextVNode(
|
|
328
|
+
toDisplayString(isSubmitting.value ? "\u6B63\u5728\u5BFC\u5165" : "\u786E\u8BA4\u5BFC\u5165"),
|
|
329
|
+
1
|
|
330
|
+
/* TEXT */
|
|
331
|
+
)
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
/* STABLE */
|
|
335
|
+
}, 8, ["loading"])
|
|
305
336
|
]),
|
|
306
337
|
_: 1
|
|
307
338
|
/* STABLE */
|
|
308
|
-
}, 8, ["
|
|
339
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
309
340
|
]),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
341
|
+
default: withCtx(() => [
|
|
342
|
+
createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
|
|
343
|
+
renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
|
|
344
|
+
createElementVNode("div", { class: "flex-grow h-0" }, [
|
|
345
|
+
visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
|
|
346
|
+
key: 0,
|
|
347
|
+
ref_key: "batchTableFormRef",
|
|
348
|
+
ref: batchTableFormRef,
|
|
349
|
+
step: currentStep.value,
|
|
350
|
+
"onUpdate:step": ($event) => currentStep.value = $event,
|
|
351
|
+
tableColumns: __props.tableColumns,
|
|
352
|
+
formColumns: __props.formColumns,
|
|
353
|
+
rules: __props.rules,
|
|
354
|
+
emptyText: __props.emptyText,
|
|
355
|
+
fontSize: __props.fontSize,
|
|
356
|
+
rowClickExpand: __props.rowClickExpand,
|
|
357
|
+
columnNum: __props.columnNum,
|
|
358
|
+
size: __props.size,
|
|
359
|
+
beforeDataHandle: __props.beforeDataHandle,
|
|
360
|
+
beforeDataListHandle: __props.beforeDataListHandle,
|
|
361
|
+
onExpandRowChange: __props.onExpandRowChange,
|
|
362
|
+
"submit-handler": __props.submitHandler,
|
|
363
|
+
showAddBtn: __props.showAddBtn,
|
|
364
|
+
onTableDataChange: tableDataChange,
|
|
365
|
+
onUploading: onTableUploadingHandler,
|
|
366
|
+
onUploaded: onTableUploadedHandler,
|
|
367
|
+
onReset: onTableResetHandler,
|
|
368
|
+
onValidate: onTableValidateHandler,
|
|
369
|
+
onSubmitting: onTableSubmittingHandler,
|
|
370
|
+
onSubmit: onTableSubmitHandler,
|
|
371
|
+
onSubmitProgress: onSubmitProgressHandler,
|
|
372
|
+
onOptionsStatus: _ctx.$attrs.onOptionsStatus
|
|
373
|
+
}, createSlots({
|
|
374
|
+
_: 2
|
|
375
|
+
/* DYNAMIC */
|
|
376
|
+
}, [
|
|
377
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
378
|
+
return {
|
|
379
|
+
name: slotName,
|
|
380
|
+
fn: withCtx((scope) => [
|
|
381
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
|
|
382
|
+
])
|
|
383
|
+
};
|
|
384
|
+
})
|
|
385
|
+
]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "beforeDataListHandle", "onExpandRowChange", "submit-handler", "showAddBtn", "onOptionsStatus"])) : createCommentVNode("v-if", true)
|
|
386
|
+
])
|
|
387
|
+
])
|
|
388
|
+
]),
|
|
389
|
+
_: 2
|
|
390
|
+
/* DYNAMIC */
|
|
391
|
+
}, [
|
|
392
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
393
|
+
return {
|
|
394
|
+
name: slotName,
|
|
395
|
+
fn: withCtx((scope) => [
|
|
396
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
|
|
397
|
+
])
|
|
398
|
+
};
|
|
399
|
+
})
|
|
400
|
+
]), 1040, ["modelValue", "onUpdate:modelValue", "title", "width", "dialog-type", "show-cancel", "ifShrink", "ifDraggable"])
|
|
401
|
+
],
|
|
402
|
+
2112
|
|
403
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
404
|
+
);
|
|
371
405
|
};
|
|
372
406
|
}
|
|
373
407
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot,
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, mergeProps, renderSlot, createCommentVNode, normalizeClass, createElementVNode, createVNode, unref, withCtx, createBlock } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading } from '@element-plus/icons-vue';
|
|
4
4
|
import '../index.mjs';
|
|
@@ -15,7 +15,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
15
15
|
type: {
|
|
16
16
|
type: String,
|
|
17
17
|
default: "default"
|
|
18
|
-
// default 默认 primary 亮色 success 添加 danger 删除
|
|
18
|
+
// default 默认 primary 亮色 success 添加 danger 删除 operate 操作
|
|
19
19
|
},
|
|
20
20
|
disabled: {
|
|
21
21
|
type: Boolean,
|
|
@@ -41,6 +41,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
41
41
|
// 链接按钮
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: false
|
|
44
|
+
},
|
|
45
|
+
isDot: {
|
|
46
|
+
// 是否显示小红点
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: false
|
|
44
49
|
}
|
|
45
50
|
},
|
|
46
51
|
emits: ["click"],
|
|
@@ -50,7 +55,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
50
55
|
default: "hy-button_default",
|
|
51
56
|
primary: "hy-button_function",
|
|
52
57
|
success: "hy-button_addTo",
|
|
53
|
-
danger: "hy-button_delete"
|
|
58
|
+
danger: "hy-button_delete",
|
|
59
|
+
operate: "hy-button_operate"
|
|
54
60
|
};
|
|
55
61
|
const emit = __emit;
|
|
56
62
|
const handleClick = (event) => {
|
|
@@ -74,7 +80,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
74
80
|
}
|
|
75
81
|
]]
|
|
76
82
|
}, _ctx.$attrs, { onClick: handleClick }), [
|
|
77
|
-
renderSlot(_ctx.$slots, "default")
|
|
83
|
+
renderSlot(_ctx.$slots, "default"),
|
|
84
|
+
__props.isDot ? (openBlock(), createElementBlock("div", {
|
|
85
|
+
key: 0,
|
|
86
|
+
class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
|
|
87
|
+
})) : createCommentVNode("v-if", true)
|
|
78
88
|
], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
|
|
79
89
|
key: 1,
|
|
80
90
|
type: "button",
|
|
@@ -155,7 +165,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
155
165
|
],
|
|
156
166
|
2
|
|
157
167
|
/* CLASS */
|
|
158
|
-
)
|
|
168
|
+
),
|
|
169
|
+
__props.isDot ? (openBlock(), createElementBlock("div", {
|
|
170
|
+
key: 0,
|
|
171
|
+
class: "w-2 h-2 absolute right-0 top-0 transform translate-x-1/2 -translate-y-1/2 rounded-full bg-danger-2 z-[2]"
|
|
172
|
+
})) : createCommentVNode("v-if", true)
|
|
159
173
|
], 10, ["disabled"]));
|
|
160
174
|
};
|
|
161
175
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
font-size: 14px;
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
border-radius: 4px;
|
|
13
|
+
position: relative;
|
|
13
14
|
|
|
14
15
|
&:disabled,
|
|
15
16
|
&.is-disabled {
|
|
@@ -295,6 +296,72 @@
|
|
|
295
296
|
color: rgba(255, 255, 255, 0.68);
|
|
296
297
|
}
|
|
297
298
|
}
|
|
299
|
+
|
|
300
|
+
&.hy-button_operate {
|
|
301
|
+
background: rgba(45, 255, 211, 0.32);
|
|
302
|
+
border: 1px solid rgba(45, 255, 211, 1);
|
|
303
|
+
box-shadow: 0px 0px 0px 2px rgba(45, 255, 211, 0.5);
|
|
304
|
+
|
|
305
|
+
.hy-button__border {
|
|
306
|
+
background: linear-gradient(
|
|
307
|
+
90deg,
|
|
308
|
+
rgba(45, 255, 211, 0.4) 0%,
|
|
309
|
+
rgba(45, 255, 211, 1) 50%,
|
|
310
|
+
rgba(45, 255, 211, 0.4) 100%
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.hy-button__inner {
|
|
315
|
+
background: #002932;
|
|
316
|
+
box-shadow:
|
|
317
|
+
inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
|
|
318
|
+
inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.hy-button__text {
|
|
322
|
+
color: #fff;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.hy-button__mask {
|
|
326
|
+
background: radial-gradient(
|
|
327
|
+
ellipse at center bottom,
|
|
328
|
+
#2DFFD3 0%,
|
|
329
|
+
#189177 30%,
|
|
330
|
+
transparent 60%
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&:hover .hy-button__inner {
|
|
335
|
+
box-shadow:
|
|
336
|
+
inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
|
|
337
|
+
inset 0 0 2px 0 rgba(45, 255, 211, 0.5),
|
|
338
|
+
inset 0 0 5px 1px rgba(45, 255, 211, 0.5),
|
|
339
|
+
inset 0 0 2px 0 rgba(45, 255, 211, 0.5);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
&:disabled .hy-button__border,
|
|
343
|
+
&.is-disabled .hy-button__border {
|
|
344
|
+
background: linear-gradient(
|
|
345
|
+
90deg,
|
|
346
|
+
rgba(45, 255, 211, 0.18) 0%,
|
|
347
|
+
rgba(45, 255, 211, 0.42) 50%,
|
|
348
|
+
rgba(45, 255, 211, 0.18) 100%
|
|
349
|
+
);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&:disabled .hy-button__inner,
|
|
353
|
+
&.is-disabled .hy-button__inner {
|
|
354
|
+
background: #4b0c0c;
|
|
355
|
+
box-shadow:
|
|
356
|
+
inset 0 0 4px 1px rgba(45, 255, 211, 0.2),
|
|
357
|
+
inset 0 0 2px 0 rgba(24, 145, 119, 0.16);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
&:disabled .hy-button__text,
|
|
361
|
+
&.is-disabled .hy-button__text {
|
|
362
|
+
color: rgba(255, 255, 255, 0.68);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
298
365
|
}
|
|
299
366
|
|
|
300
367
|
|
|
@@ -310,6 +377,7 @@
|
|
|
310
377
|
background: none;
|
|
311
378
|
border: none;
|
|
312
379
|
cursor: pointer;
|
|
380
|
+
position: relative;
|
|
313
381
|
|
|
314
382
|
&:not(.is-disabled) {
|
|
315
383
|
&:active {
|
|
@@ -347,6 +415,10 @@
|
|
|
347
415
|
--hy-button-text-color: rgba(var(--hy-danger-2));
|
|
348
416
|
}
|
|
349
417
|
|
|
418
|
+
&.hy-button_operate {
|
|
419
|
+
--hy-button-text-color: rgba(var(--hy-success-3));
|
|
420
|
+
}
|
|
421
|
+
|
|
350
422
|
&.is-disabled {
|
|
351
423
|
cursor: not-allowed;
|
|
352
424
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode,
|
|
1
|
+
import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeStyle, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
|
|
2
2
|
import { ElDialog } from 'element-plus';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../index.mjs';
|
|
@@ -172,7 +172,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
172
172
|
default: withCtx(() => [
|
|
173
173
|
createElementVNode("div", { class: "flex flex-col items-center justify-between pt-[37px] pb-[27px]" }, [
|
|
174
174
|
createElementVNode("div", { class: "flex flex-col items-center text-main" }, [
|
|
175
|
-
createCommentVNode(' <el-icon size="40" :color="iconColor"><Warning /></el-icon> '),
|
|
176
175
|
createVNode(unref(HyIcon), {
|
|
177
176
|
"svg-name": "dispatch-share1-prompt",
|
|
178
177
|
class: "!w-[40px] !h-[40px]",
|