hy-dispatch-ui-v3 0.2.62 → 0.2.64
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 +4 -5
- package/es/api/device.mjs +1 -0
- package/es/api/index.mjs +1 -0
- package/es/api/sypct.mjs +1 -0
- package/es/api/task.mjs +1 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +39 -42
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +24 -5
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +2 -0
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +3 -0
- package/es/components/hyAudioPlayer/index.mjs +1 -0
- package/es/components/hyAudioPlayer/js/index.mjs +5 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +4 -0
- package/es/components/hyBatchUploadDialog/index.mjs +1 -0
- package/es/components/hyButton/button.vue.mjs +3 -2
- package/es/components/hyButton/index.mjs +1 -0
- package/es/components/hyButton/style/button.scss +9 -2
- package/es/components/hyConfigProvider/configProvider.vue.mjs +2 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +4 -0
- package/es/components/hyConfirmDialog/confirmMethod.mjs +5 -3
- package/es/components/hyConfirmDialog/index.mjs +1 -0
- package/es/components/hyCutter/cutter.vue.mjs +5 -2
- package/es/components/hyCutter/index.mjs +1 -0
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyDatePicker/index.mjs +1 -0
- package/es/components/hyDialog/dialog.vue.mjs +99 -28
- package/es/components/hyDialog/index.mjs +1 -0
- package/es/components/hyForm/cpns/arrayItem.vue.mjs +16 -3
- package/es/components/hyForm/cpns/extraItem.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +4 -1
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +5 -1
- package/es/components/hyForm/form.vue.mjs +9 -3
- package/es/components/hyForm/index.mjs +1 -0
- package/es/components/hyForm/js/index.mjs +3 -1
- package/es/components/hyForm/js/useAppForm.mjs +4 -2
- package/es/components/hyIcon/icon.vue.mjs +2 -1
- package/es/components/hyIcon/index.mjs +1 -0
- package/es/components/hyIconBox/iconBox.vue.mjs +1 -0
- package/es/components/hyIconBox/index.mjs +1 -0
- package/es/components/hyInput/index.mjs +1 -0
- package/es/components/hyInput/input.vue.mjs +3 -1
- package/es/components/hyInput/inputSearch.vue.mjs +2 -1
- package/es/components/hyLoading/index.mjs +41 -0
- package/es/components/hyMap/index.mjs +1 -0
- package/es/components/hyMap/js/index.mjs +82 -0
- package/es/components/hyMap/map.vue.mjs +1 -0
- package/es/components/hyMenu/index.mjs +1 -0
- package/es/components/hyMenu/menu.vue.mjs +4 -0
- package/es/components/hyNoPermissions/index.mjs +1 -0
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +4 -0
- package/es/components/hyNoPermissionsMap/index.mjs +1 -0
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +4 -0
- package/es/components/hyOrgCascader/index.mjs +1 -0
- package/es/components/hyOrgCascader/js/index.mjs +2 -0
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +2 -1
- package/es/components/hyRadioGroup/index.mjs +1 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +2 -2
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -1
- package/es/components/hySearch/index.mjs +1 -0
- package/es/components/hySearch/js/index.mjs +4 -2
- package/es/components/hySearch/js/useAppSearch.mjs +4 -2
- package/es/components/hySearch/search.vue.mjs +3 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +6 -3
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/headerItem.vue.mjs +3 -0
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +27 -45
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +80 -28
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +9 -5
- package/es/components/hyTable/table.vue.mjs +16 -8
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +8 -7
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +36 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +4 -2
- package/es/components/hyTimePicker/index.mjs +1 -0
- package/es/components/hyTimePicker/timePicker.vue.mjs +3 -1
- package/es/components/hyTooltip/index.mjs +1 -0
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -2
- package/es/components/hyTree/index.mjs +1 -0
- package/es/components/hyTree/js/index.mjs +49 -14
- package/es/components/hyTree/tree.vue.mjs +13 -6
- package/es/components/hyUserAvatar/index.mjs +1 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +5 -1
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -0
- package/es/components/hyVideoPlayer/index.mjs +1 -0
- package/es/components/hyVideoPlayer/js/index.mjs +7 -2
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +3 -0
- package/es/components/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +1 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +6 -0
- package/es/locale/en.mjs +1 -2
- package/es/locale/zh_CN.mjs +1 -2
- package/es/make-installer.mjs +1 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +2 -1
- package/es/utils/handler.mjs +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/input.mjs +1 -0
- package/es/utils/is.mjs +1 -0
- package/es/utils/map/hook/bigMap.mjs +3 -2
- package/es/utils/map/hook/gaode.mjs +2 -2
- package/es/utils/map/hook/leafletjs.mjs +7 -1
- package/es/utils/map/index.mjs +12 -0
- package/es/utils/map/js/webgis.mjs +4 -1
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +1 -0
- package/lib/api/index.js +1 -0
- package/lib/api/sypct.js +1 -0
- package/lib/api/task.js +1 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +37 -40
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +23 -4
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +2 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +3 -0
- package/lib/components/hyAudioPlayer/index.js +1 -0
- package/lib/components/hyAudioPlayer/js/index.js +5 -1
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +4 -0
- package/lib/components/hyBatchUploadDialog/index.js +1 -0
- package/lib/components/hyButton/button.vue.js +2 -1
- package/lib/components/hyButton/index.js +1 -0
- package/lib/components/hyButton/style/button.scss +9 -2
- package/lib/components/hyConfigProvider/configProvider.vue.js +1 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +4 -0
- package/lib/components/hyConfirmDialog/confirmMethod.js +5 -3
- package/lib/components/hyConfirmDialog/index.js +1 -0
- package/lib/components/hyCutter/cutter.vue.js +3 -0
- package/lib/components/hyCutter/index.js +1 -0
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyDatePicker/index.js +1 -0
- package/lib/components/hyDialog/dialog.vue.js +97 -26
- package/lib/components/hyDialog/index.js +1 -0
- package/lib/components/hyForm/cpns/arrayItem.vue.js +16 -3
- package/lib/components/hyForm/cpns/extraItem.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -0
- package/lib/components/hyForm/cpns/locationSelect.vue.js +5 -1
- package/lib/components/hyForm/form.vue.js +9 -3
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/index.js +3 -1
- package/lib/components/hyForm/js/useAppForm.js +3 -1
- package/lib/components/hyIcon/icon.vue.js +1 -0
- package/lib/components/hyIcon/index.js +1 -0
- package/lib/components/hyIconBox/iconBox.vue.js +1 -0
- package/lib/components/hyIconBox/index.js +1 -0
- package/lib/components/hyInput/index.js +1 -0
- package/lib/components/hyInput/input.vue.js +2 -0
- package/lib/components/hyInput/inputSearch.vue.js +1 -0
- package/lib/components/hyLoading/index.js +47 -0
- package/lib/components/hyMap/index.js +1 -0
- package/lib/components/hyMap/js/index.js +82 -0
- package/lib/components/hyMap/map.vue.js +1 -0
- package/lib/components/hyMenu/index.js +1 -0
- package/lib/components/hyMenu/menu.vue.js +4 -0
- package/lib/components/hyNoPermissions/index.js +1 -0
- package/lib/components/hyNoPermissions/noPermissions.vue.js +4 -0
- package/lib/components/hyNoPermissionsMap/index.js +1 -0
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +4 -0
- package/lib/components/hyOrgCascader/index.js +1 -0
- package/lib/components/hyOrgCascader/js/index.js +2 -0
- package/lib/components/hyOrgCascader/orgCascader.vue.js +2 -1
- package/lib/components/hyRadioGroup/index.js +1 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +2 -0
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hySearch/js/index.js +3 -1
- package/lib/components/hySearch/js/useAppSearch.js +4 -2
- package/lib/components/hySearch/search.vue.js +3 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +4 -1
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/headerItem.vue.js +3 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +25 -43
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +79 -27
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +8 -4
- package/lib/components/hyTable/table.vue.js +15 -7
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +7 -6
- package/lib/components/hyTableForm/batchTableForm.vue.js +15 -12
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +36 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +12 -10
- package/lib/components/hyTimePicker/index.js +1 -0
- package/lib/components/hyTimePicker/timePicker.vue.js +2 -0
- package/lib/components/hyTooltip/index.js +1 -0
- package/lib/components/hyTooltip/tooltip.vue.js +2 -0
- package/lib/components/hyTree/index.js +1 -0
- package/lib/components/hyTree/js/index.js +48 -13
- package/lib/components/hyTree/tree.vue.js +13 -6
- package/lib/components/hyUserAvatar/index.js +1 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +5 -1
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -0
- package/lib/components/hyVideoPlayer/index.js +1 -0
- package/lib/components/hyVideoPlayer/js/index.js +7 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +3 -0
- package/lib/components/index.js +56 -53
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +70 -61
- package/lib/locale/en.js +1 -2
- package/lib/locale/zh_CN.js +1 -2
- package/lib/make-installer.js +1 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-lod.js +14 -0
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +1 -0
- package/lib/utils/handler.js +2 -0
- package/lib/utils/index.js +3 -0
- package/lib/utils/input.js +1 -0
- package/lib/utils/is.js +1 -0
- package/lib/utils/map/hook/bigMap.js +3 -2
- package/lib/utils/map/hook/gaode.js +1 -1
- package/lib/utils/map/hook/leafletjs.js +7 -1
- package/lib/utils/map/index.js +12 -0
- package/lib/utils/map/js/webgis.js +4 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
|
@@ -5,14 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
require('../../hooks/index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
require('../index.js');
|
|
8
11
|
var tableForm = require('./tableForm.vue.js');
|
|
9
|
-
var index
|
|
12
|
+
var index = require('./js/index.js');
|
|
10
13
|
var useApi = require('../../hooks/useApi.js');
|
|
11
14
|
var useLocale = require('../../hooks/useLocale.js');
|
|
15
|
+
var index$1 = require('../hyConfirmDialog/index.js');
|
|
12
16
|
var is = require('../../utils/is.js');
|
|
13
|
-
var index = require('../hyIcon/index.js');
|
|
14
|
-
var index$
|
|
15
|
-
var index$2 = require('../hyConfirmDialog/index.js');
|
|
17
|
+
var index$2 = require('../hyIcon/index.js');
|
|
18
|
+
var index$3 = require('../hyButton/index.js');
|
|
16
19
|
|
|
17
20
|
import "./style/batchTableForm.scss";
|
|
18
21
|
|
|
@@ -152,7 +155,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
152
155
|
isUploading.value = true;
|
|
153
156
|
emits("uploading");
|
|
154
157
|
try {
|
|
155
|
-
const data = await index
|
|
158
|
+
const data = await index.doReadExcel(files, props);
|
|
156
159
|
if (!data) {
|
|
157
160
|
elementPlus.ElMessage.warning("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25");
|
|
158
161
|
throw Error("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25");
|
|
@@ -186,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
186
189
|
if (total) {
|
|
187
190
|
try {
|
|
188
191
|
await new Promise((resolve, reject) => {
|
|
189
|
-
index$
|
|
192
|
+
index$1.HyConfirmDialog.confirm({
|
|
190
193
|
content: submitNumber.value ? `\u672C\u6B21\u5DF2\u6210\u529F\u5BFC\u5165 ${submitNumber.value} \u6761\u6570\u636E\uFF0C\u91CD\u65B0\u4E0A\u4F20\u5C06\u4E0D\u4F1A\u64A4\u9500\u8FD9\u4E9B\u6570\u636E\u3002\u5269\u4F59\u672A\u5BFC\u5165\u6570\u636E\u5C06\u4F1A\u88AB\u6E05\u7A7A` : `\u91CD\u65B0\u4E0A\u4F20\u5C06\u6E05\u7A7A\u5F53\u524D ${total} \u6761\u6570\u636E, <br />\u662F\u5426\u786E\u8BA4\u91CD\u65B0\u4E0A\u4F20`,
|
|
191
194
|
onClose: reject,
|
|
192
195
|
onCancel: reject,
|
|
@@ -211,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
211
214
|
return Promise.reject();
|
|
212
215
|
}
|
|
213
216
|
if (submitting.value) {
|
|
214
|
-
index$
|
|
217
|
+
index$1.HyConfirmDialog.tip({
|
|
215
218
|
content: `\u6570\u636E\u6B63\u5728\u5904\u7406\u4E2D\uFF0C<br/>\u8BF7\u7B49\u5F85\u6570\u636E\u5904\u7406\u5B8C\u6210\u540E\u518D\u5173\u95ED\u5F39\u7A97`
|
|
216
219
|
});
|
|
217
220
|
return Promise.reject();
|
|
@@ -229,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
229
232
|
if (failed) {
|
|
230
233
|
try {
|
|
231
234
|
await new Promise((resolve, reject) => {
|
|
232
|
-
index$
|
|
235
|
+
index$1.HyConfirmDialog.confirm({
|
|
233
236
|
content: `\u5F53\u524D\u5B58\u5728<span class="text-danger-2"> ${failed} \u6761\u6570\u636E\u5F02\u5E38</span>\uFF0C\u672C\u6B21\u5C06\u4EC5\u5BFC\u5165 ${success} \u6761\u5BFC\u5165\u5C31\u7EEA\u6570\u636E\uFF0C\u5F02\u5E38\u6570\u636E\u5C06\u88AB\u5FFD\u7565`,
|
|
234
237
|
onClose: reject,
|
|
235
238
|
onCancel: reject,
|
|
@@ -348,7 +351,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
348
351
|
"on-change": onUploadChange
|
|
349
352
|
}, {
|
|
350
353
|
default: vue.withCtx(() => [
|
|
351
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
354
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
352
355
|
"svg-name": "ops-file-xls",
|
|
353
356
|
"class-name": "!w-[58px] !h-[66px] mb-4"
|
|
354
357
|
}),
|
|
@@ -458,7 +461,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
458
461
|
}, [
|
|
459
462
|
vue.createElementVNode("div", { class: "hy-batch-table-form-template-box mb-4" }, [
|
|
460
463
|
vue.createElementVNode("div", { class: "flex items-center gap-2" }, [
|
|
461
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
464
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
462
465
|
"svg-name": "ops-file-xls",
|
|
463
466
|
"class-name": "!w-[18px] !h-[22px]"
|
|
464
467
|
}),
|
|
@@ -482,7 +485,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
482
485
|
class: "text-auxiliary"
|
|
483
486
|
}, "\u6682\u672A\u5BFC\u5165\u6587\u4EF6"))
|
|
484
487
|
]),
|
|
485
|
-
vue.createVNode(vue.unref(index$
|
|
488
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
486
489
|
type: "primary",
|
|
487
490
|
link: "",
|
|
488
491
|
size: "small",
|
|
@@ -532,7 +535,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
532
535
|
}, [
|
|
533
536
|
vue.createElementVNode("div", { class: "w-full h-full absolute bg-[rgba(var(--hy-background-4),0.9)] backdrop-blur-sm" }),
|
|
534
537
|
vue.createElementVNode("div", { class: "flex flex-col items-center text-theme text-xs relative" }, [
|
|
535
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
538
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
536
539
|
"svg-name": "ops-file-xls",
|
|
537
540
|
"class-name": "!w-[58px] !h-[66px] mb-[18px]"
|
|
538
541
|
}),
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var tableForm = require('./tableForm.vue.js');
|
|
6
6
|
var batchTableForm = require('./batchTableForm.vue.js');
|
|
7
|
+
require('../../utils/index.js');
|
|
7
8
|
var useAppTableForm = require('./js/useAppTableForm.js');
|
|
8
9
|
var handler = require('../../utils/handler.js');
|
|
9
10
|
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var XLSX = require('xlsx');
|
|
4
|
+
var dayjs = require('dayjs');
|
|
5
|
+
require('vue');
|
|
4
6
|
var AsyncValidator = require('async-validator');
|
|
7
|
+
var elementPlus = require('element-plus');
|
|
5
8
|
var index = require('../../hyForm/js/index.js');
|
|
9
|
+
require('../../../utils/index.js');
|
|
10
|
+
require('../../../hooks/index.js');
|
|
6
11
|
var form = require('../../../utils/form.js');
|
|
7
12
|
var is = require('../../../utils/is.js');
|
|
8
13
|
|
|
@@ -71,6 +76,37 @@ const doReadExcel = (files, props) => {
|
|
|
71
76
|
fileReader.readAsBinaryString(files[0]);
|
|
72
77
|
});
|
|
73
78
|
};
|
|
79
|
+
function blobDownloadFn(blob, name) {
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
81
|
+
elementPlus.ElMessage.warning("\u5F00\u59CB\u4E0B\u8F7D");
|
|
82
|
+
const today = dayjs().format("YYYY-MM-DD HH:mm:ss");
|
|
83
|
+
const reader = new FileReader();
|
|
84
|
+
reader.readAsDataURL(blob);
|
|
85
|
+
reader.onload = function(ev) {
|
|
86
|
+
let url = null;
|
|
87
|
+
try {
|
|
88
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
89
|
+
const blobObject = new Blob([blob]);
|
|
90
|
+
window.navigator.msSaveOrOpenBlob(blobObject, `${name}_${today}.xls`);
|
|
91
|
+
} else {
|
|
92
|
+
url = URL.createObjectURL(new Blob([blob]));
|
|
93
|
+
const a = document.createElement("a");
|
|
94
|
+
document.body.appendChild(a);
|
|
95
|
+
a.href = url;
|
|
96
|
+
a.download = `${name}_${today}.xls`;
|
|
97
|
+
a.target = "_blank";
|
|
98
|
+
a.click();
|
|
99
|
+
a.remove();
|
|
100
|
+
}
|
|
101
|
+
resolve();
|
|
102
|
+
} catch (error) {
|
|
103
|
+
reject(error);
|
|
104
|
+
} finally {
|
|
105
|
+
if (url) URL.revokeObjectURL(url);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
}
|
|
74
110
|
|
|
75
111
|
exports.doReadExcel = doReadExcel;
|
|
76
112
|
exports.doValidate = doValidate;
|
|
@@ -5,14 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
-
|
|
8
|
+
require('../index.js');
|
|
9
|
+
require('../../utils/index.js');
|
|
10
|
+
var index = require('./js/index.js');
|
|
9
11
|
var useAppTable = require('../hyTable/js/useAppTable.js');
|
|
12
|
+
var useAppForm = require('../hyForm/js/useAppForm.js');
|
|
10
13
|
var is = require('../../utils/is.js');
|
|
11
14
|
var handler = require('../../utils/handler.js');
|
|
12
|
-
var index = require('../hyButton/index.js');
|
|
13
|
-
var index$
|
|
14
|
-
var index$
|
|
15
|
-
var useAppForm = require('../hyForm/js/useAppForm.js');
|
|
15
|
+
var index$1 = require('../hyButton/index.js');
|
|
16
|
+
var index$2 = require('../hyTable/index.js');
|
|
17
|
+
var index$3 = require('../hyForm/index.js');
|
|
16
18
|
|
|
17
19
|
import "./style/tableForm.scss";
|
|
18
20
|
|
|
@@ -181,7 +183,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
181
183
|
promiseList.push(
|
|
182
184
|
new Promise(async (resolve, reject) => {
|
|
183
185
|
try {
|
|
184
|
-
await index
|
|
186
|
+
await index.doValidate(data, props.formColumns, props.rules);
|
|
185
187
|
data.errorMsg = data.errorMsg && !data.errorMsg.prop ? data.errorMsg : null;
|
|
186
188
|
data.errorMap = /* @__PURE__ */ new Map();
|
|
187
189
|
resolve();
|
|
@@ -212,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
212
214
|
row.errorMap = /* @__PURE__ */ new Map();
|
|
213
215
|
}
|
|
214
216
|
try {
|
|
215
|
-
await index
|
|
217
|
+
await index.doValidate(row, props.formColumns, props.rules);
|
|
216
218
|
row.errorMsg = null;
|
|
217
219
|
row.errorMap = /* @__PURE__ */ new Map();
|
|
218
220
|
} catch (error) {
|
|
@@ -339,7 +341,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
339
341
|
])) : vue.createCommentVNode("v-if", true)
|
|
340
342
|
]),
|
|
341
343
|
vue.createElementVNode("div", { class: "flex items-center gap-3" }, [
|
|
342
|
-
__props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index.HyButton), {
|
|
344
|
+
__props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyButton), {
|
|
343
345
|
key: 0,
|
|
344
346
|
type: "success",
|
|
345
347
|
size: "small",
|
|
@@ -369,7 +371,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
369
371
|
])
|
|
370
372
|
])
|
|
371
373
|
]),
|
|
372
|
-
vue.createVNode(vue.unref(index$
|
|
374
|
+
vue.createVNode(vue.unref(index$2.HyTable), vue.mergeProps({
|
|
373
375
|
ref_key: "tableRef",
|
|
374
376
|
ref: tableRef
|
|
375
377
|
}, _ctx.$attrs, {
|
|
@@ -456,7 +458,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
456
458
|
/* CLASS */
|
|
457
459
|
)
|
|
458
460
|
]),
|
|
459
|
-
vue.createVNode(vue.unref(index$
|
|
461
|
+
vue.createVNode(vue.unref(index$3.HyForm), {
|
|
460
462
|
ref_key: "formRef",
|
|
461
463
|
ref: formRef,
|
|
462
464
|
model: row,
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var dayjs = require('dayjs');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
|
+
require('../../utils/index.js');
|
|
9
|
+
require('../../hooks/index.js');
|
|
8
10
|
var useLocale = require('../../hooks/useLocale.js');
|
|
9
11
|
var is = require('../../utils/is.js');
|
|
10
12
|
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../utils/index.js');
|
|
8
|
+
require('../../hooks/index.js');
|
|
7
9
|
var is = require('../../utils/is.js');
|
|
8
10
|
var useTooltipConfig = require('../../hooks/useTooltipConfig.js');
|
|
9
11
|
|
|
@@ -63,7 +63,7 @@ const useAppTreeWrapper = (hy) => {
|
|
|
63
63
|
emptyText: "\u6682\u65E0\u6570\u636E",
|
|
64
64
|
business: props2.treeType,
|
|
65
65
|
// 自定义整体的插槽
|
|
66
|
-
renderItem: props2.treeType === treeConfig.treeTypeConfig.user ? (data, node) => setUserSlot(data) : setSlot("treeParentSlot"),
|
|
66
|
+
renderItem: props2.treeType === treeConfig.treeTypeConfig.user ? (data, node) => setUserSlot(data, node) : setSlot("treeParentSlot"),
|
|
67
67
|
// // 自定义状态右侧插槽
|
|
68
68
|
renderRight: (data) => {
|
|
69
69
|
let renderRight = setSlot("renderRight");
|
|
@@ -139,7 +139,12 @@ const useAppTreeWrapper = (hy) => {
|
|
|
139
139
|
"on-check-tree",
|
|
140
140
|
JSON.parse(
|
|
141
141
|
JSON.stringify(info.checkedBusinessNodes || info.checkedNodes)
|
|
142
|
-
)
|
|
142
|
+
),
|
|
143
|
+
{
|
|
144
|
+
data,
|
|
145
|
+
info,
|
|
146
|
+
checked
|
|
147
|
+
}
|
|
143
148
|
);
|
|
144
149
|
}
|
|
145
150
|
},
|
|
@@ -154,6 +159,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
154
159
|
// 筛选方法
|
|
155
160
|
filterMethod: ({ filterValue: filterValue2 }, data) => {
|
|
156
161
|
let isFilter = true;
|
|
162
|
+
if (props2.filterMethod) {
|
|
163
|
+
isFilter = props2.filterMethod(data, { filterValue: filterValue2 });
|
|
164
|
+
}
|
|
157
165
|
if (filterValue2) {
|
|
158
166
|
isFilter = isFilter && !!filterNodeMethod(data, filterValue2, {
|
|
159
167
|
treeFilterParam: props2.treeFilterParam
|
|
@@ -358,7 +366,15 @@ const useAppTreeWrapper = (hy) => {
|
|
|
358
366
|
}
|
|
359
367
|
return true;
|
|
360
368
|
}
|
|
369
|
+
function setGroupRenderItem(data, node) {
|
|
370
|
+
const slot = setSlot("treeParentSlot");
|
|
371
|
+
if (slot) {
|
|
372
|
+
return slot(data, node);
|
|
373
|
+
}
|
|
374
|
+
return true;
|
|
375
|
+
}
|
|
361
376
|
function setSlot(slotName) {
|
|
377
|
+
console.log(slots, slotName);
|
|
362
378
|
if (!slotName || !slots[slotName]) return null;
|
|
363
379
|
return (data, node) => {
|
|
364
380
|
let container = document.createElement("div");
|
|
@@ -398,25 +414,35 @@ const useAppTreeWrapper = (hy) => {
|
|
|
398
414
|
function addDevice() {
|
|
399
415
|
emits("on-addDevice");
|
|
400
416
|
}
|
|
401
|
-
function
|
|
402
|
-
|
|
417
|
+
function setDeviceStatus(payload) {
|
|
418
|
+
virtualTree?.updateData([payload]);
|
|
419
|
+
}
|
|
420
|
+
function singleRemovalFn(row, isForce = false) {
|
|
421
|
+
if (props2.treeType === "device" || props2.treeType === "channel") {
|
|
403
422
|
virtualTree.setChecked(row.channelId || row.deviceId, false, true);
|
|
404
423
|
} else if (props2.treeType) {
|
|
405
|
-
virtualTree.setChecked(row.id, false, true);
|
|
424
|
+
virtualTree.setChecked(row.id, false, true, isForce);
|
|
406
425
|
} else if (!props2.treeType && props2.treeProps) {
|
|
407
|
-
virtualTree.setChecked(
|
|
426
|
+
virtualTree.setChecked(
|
|
427
|
+
row[`${props2.treeProps.value}`],
|
|
428
|
+
false,
|
|
429
|
+
true,
|
|
430
|
+
isForce
|
|
431
|
+
);
|
|
408
432
|
}
|
|
409
433
|
}
|
|
410
|
-
function setCheckedKeys(dataList) {
|
|
434
|
+
function setCheckedKeys(dataList, isForce = false) {
|
|
411
435
|
if (props2.treeType === "device" || props2.treeType === "channel") {
|
|
412
436
|
virtualTree?.setCheckedKeys(
|
|
413
437
|
dataList.map((v) => v.channelId || v.deviceId),
|
|
414
|
-
true
|
|
438
|
+
true,
|
|
439
|
+
isForce
|
|
415
440
|
);
|
|
416
441
|
} else if (props2.treeType) {
|
|
417
442
|
virtualTree?.setCheckedKeys(
|
|
418
443
|
dataList.map((v) => v.id),
|
|
419
|
-
true
|
|
444
|
+
true,
|
|
445
|
+
isForce
|
|
420
446
|
);
|
|
421
447
|
} else if (!props2.treeType && props2.treeProps) {
|
|
422
448
|
console.log(
|
|
@@ -424,7 +450,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
424
450
|
dataList.map((v) => v[`${props2.treeProps.value}`])
|
|
425
451
|
);
|
|
426
452
|
virtualTree?.setCheckedKeys(
|
|
427
|
-
dataList.map((v) => v[`${props2.treeProps.value}`])
|
|
453
|
+
dataList.map((v) => v[`${props2.treeProps.value}`]),
|
|
454
|
+
false,
|
|
455
|
+
isForce
|
|
428
456
|
);
|
|
429
457
|
}
|
|
430
458
|
if (props2.isBackDefaultSelected) {
|
|
@@ -457,8 +485,11 @@ const useAppTreeWrapper = (hy) => {
|
|
|
457
485
|
}
|
|
458
486
|
}
|
|
459
487
|
}
|
|
460
|
-
function getSelectedDataList() {
|
|
461
|
-
|
|
488
|
+
function getSelectedDataList(leafOnly = false) {
|
|
489
|
+
if (props2.treeType) {
|
|
490
|
+
return virtualTree?.getCheckedBusinessNodes(leafOnly) || [];
|
|
491
|
+
}
|
|
492
|
+
return virtualTree?.getCheckedNodes(leafOnly) || [];
|
|
462
493
|
}
|
|
463
494
|
function setFilterListType(type) {
|
|
464
495
|
if (props2.selectFilterList?.length) {
|
|
@@ -519,6 +550,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
519
550
|
refreshData();
|
|
520
551
|
}
|
|
521
552
|
}
|
|
553
|
+
function getNode(id) {
|
|
554
|
+
return virtualTree.getNode(id);
|
|
555
|
+
}
|
|
522
556
|
return {
|
|
523
557
|
filterValue,
|
|
524
558
|
virtualTree,
|
|
@@ -538,7 +572,8 @@ const useAppTreeWrapper = (hy) => {
|
|
|
538
572
|
selectFilterType,
|
|
539
573
|
selectedDataList,
|
|
540
574
|
getSelectedDataList,
|
|
541
|
-
loading
|
|
575
|
+
loading,
|
|
576
|
+
getNode
|
|
542
577
|
};
|
|
543
578
|
};
|
|
544
579
|
function filterNodeMethod(data, value, { selectFilterType, treeFilterParam = [] }) {
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../index.js');
|
|
8
|
+
require('../../hooks/index.js');
|
|
7
9
|
var hyVirtualTree = require('hy-virtual-tree');
|
|
8
10
|
var index = require('./js/index.js');
|
|
9
11
|
var treeConfig = require('./config/tree-config.js');
|
|
@@ -181,6 +183,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
181
183
|
filterConfig: {
|
|
182
184
|
type: Array,
|
|
183
185
|
default: () => []
|
|
186
|
+
},
|
|
187
|
+
// 外部自定义过滤函数
|
|
188
|
+
filterMethod: {
|
|
189
|
+
type: Function,
|
|
190
|
+
default: () => null
|
|
184
191
|
}
|
|
185
192
|
},
|
|
186
193
|
emits: [
|
|
@@ -215,7 +222,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
215
222
|
getInputPlaceholder,
|
|
216
223
|
onChange,
|
|
217
224
|
getSelectedDataList,
|
|
218
|
-
loading
|
|
225
|
+
loading,
|
|
226
|
+
getNode
|
|
219
227
|
} = useMixins.useMixins(
|
|
220
228
|
{
|
|
221
229
|
props,
|
|
@@ -227,7 +235,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
227
235
|
[index.useAppTreeWrapper]
|
|
228
236
|
);
|
|
229
237
|
vue.onMounted(() => {
|
|
230
|
-
if (props.searchType === 2)
|
|
238
|
+
if (props.searchType === 2) {
|
|
239
|
+
}
|
|
231
240
|
setFilterListType();
|
|
232
241
|
});
|
|
233
242
|
__expose({
|
|
@@ -236,7 +245,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
236
245
|
setCheckedKeys,
|
|
237
246
|
setChecked,
|
|
238
247
|
getSelectedDataList,
|
|
239
|
-
refreshData
|
|
248
|
+
refreshData,
|
|
249
|
+
getNode
|
|
240
250
|
});
|
|
241
251
|
return (_ctx, _cache) => {
|
|
242
252
|
const _directive_loading = vue.resolveDirective("loading");
|
|
@@ -349,9 +359,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
349
359
|
vue.withDirectives(vue.createElementVNode(
|
|
350
360
|
"div",
|
|
351
361
|
{
|
|
352
|
-
"element-loading-text": "\u52A0\u8F7D\u4E2D...",
|
|
353
|
-
"element-loading-spinner": "el-icon-loading",
|
|
354
|
-
"element-loading-background": "rgba(0, 0, 0, 0.8)",
|
|
355
362
|
ref_key: "treeRef",
|
|
356
363
|
ref: treeRef,
|
|
357
364
|
style: { "width": "100%" },
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
require('../../utils/index.js');
|
|
7
|
+
require('../../hooks/index.js');
|
|
8
|
+
require('../index.js');
|
|
6
9
|
var useLocale = require('../../hooks/useLocale.js');
|
|
7
10
|
var useUserAvatarMap = require('../../hooks/useUserAvatarMap.js');
|
|
8
|
-
var index = require('../hyIcon/index.js');
|
|
9
11
|
var adaptive = require('../../utils/adaptive.js');
|
|
12
|
+
var index = require('../hyIcon/index.js');
|
|
10
13
|
|
|
11
14
|
import "./style/userAvatar.scss";
|
|
12
15
|
|
|
@@ -57,6 +60,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
57
60
|
emits: [],
|
|
58
61
|
setup(__props, { emit: __emit }) {
|
|
59
62
|
const props = __props;
|
|
63
|
+
const emits = __emit;
|
|
60
64
|
const { t } = useLocale.useLocale();
|
|
61
65
|
const { userAvatarMap } = useUserAvatarMap.useUserAvatarMap();
|
|
62
66
|
const isGbDevice = vue.computed(
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var videoPlayer = require('./videoPlayer.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyVideoPlayer = handler.withInstall(videoPlayer.default);
|
|
@@ -2,12 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
+
require('dayjs');
|
|
6
|
+
require('../../../hooks/index.js');
|
|
7
|
+
require('../../../utils/index.js');
|
|
8
|
+
require('../../index.js');
|
|
5
9
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
6
10
|
var useVideoPlayerConfig = require('../../../hooks/useVideoPlayerConfig.js');
|
|
7
11
|
var date = require('../../../utils/date.js');
|
|
12
|
+
var is = require('../../../utils/is.js');
|
|
8
13
|
var index = require('../../hyConfirmDialog/index.js');
|
|
9
14
|
var handler = require('../../../utils/handler.js');
|
|
10
|
-
var is = require('../../../utils/is.js');
|
|
11
15
|
|
|
12
16
|
const useVideoPlayer = (hy) => {
|
|
13
17
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
|
@@ -279,7 +283,8 @@ const useVideoPlayer = (hy) => {
|
|
|
279
283
|
}
|
|
280
284
|
function fullscreenchangeHandler(e) {
|
|
281
285
|
videoWrapperRef.value.style.setProperty("transition", "none");
|
|
282
|
-
if (document.fullscreenElement)
|
|
286
|
+
if (document.fullscreenElement) {
|
|
287
|
+
} else {
|
|
283
288
|
isFullScreen.value = false;
|
|
284
289
|
}
|
|
285
290
|
setTimeout(() => {
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
|
+
require('../../hooks/index.js');
|
|
8
|
+
require('../../utils/index.js');
|
|
9
|
+
require('../index.js');
|
|
7
10
|
var mediaLoading = require('./cpns/mediaLoading.vue.js');
|
|
8
11
|
var index = require('./js/index.js');
|
|
9
12
|
var useLocale = require('../../hooks/useLocale.js');
|