hy-dispatch-ui-v3 0.2.61 → 0.2.63
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 +70 -5
- package/es/api/device.mjs +19 -0
- package/es/api/index.mjs +2 -1
- package/es/api/sypct.mjs +19 -0
- package/es/api/task.mjs +19 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +6 -3
- package/es/bussiness/hyAddDepartmentType/index.mjs +1 -0
- package/es/bussiness/hyMapAearchPlace/index.mjs +7 -0
- package/es/bussiness/hyMapAearchPlace/js/index.mjs +650 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.vue.mjs +366 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.mjs +101 -0
- package/es/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/es/bussiness/index.mjs +1 -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 +23 -3
- 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 +10 -3
- package/es/components/hyConfigProvider/configProvider.vue.mjs +6 -1
- package/es/components/hyConfigProvider/index.mjs +1 -0
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +6 -2
- 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 +98 -14
- 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 +6 -1
- package/es/components/hyForm/form.vue.mjs +3 -0
- 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 +11 -3
- 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 +20 -2
- 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 +7 -2
- package/es/components/hyTable/index.mjs +1 -0
- package/es/components/hyTable/js/index.mjs +10 -10
- package/es/components/hyTable/js/search.mjs +2 -0
- package/es/components/hyTable/js/useAppTable.mjs +5 -2
- package/es/components/hyTable/table.vue.mjs +11 -1
- package/es/components/hyTableActionButton/index.mjs +1 -0
- package/es/components/hyTableActionButton/tableActionButton.vue.mjs +5 -2
- package/es/components/hyTableForm/batchTableForm.vue.mjs +41 -61
- package/es/components/hyTableForm/index.mjs +1 -0
- package/es/components/hyTableForm/js/index.mjs +13 -27
- package/es/components/hyTableForm/js/useAppTableForm.mjs +2 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +12 -4
- 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 +15 -2
- package/es/components/hyTree/tree.vue.mjs +9 -4
- 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/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +6 -1
- package/es/hooks/useLocale.mjs +4 -2
- package/es/hooks/useMapConfig.mjs +18 -0
- package/es/hooks/useResizeHandler.mjs +1 -0
- package/es/hooks/useResizeObserver.mjs +1 -1
- package/es/index.mjs +8 -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-editorialdownsizing.js +14 -0
- package/es/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/es/style/element/hy-element.scss +10 -1
- package/es/utils/file.mjs +1 -0
- package/es/utils/form.mjs +6 -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 +5 -2
- package/es/utils/sharedContent.mjs +12 -0
- package/es/version.mjs +1 -1
- package/lib/api/device.js +21 -0
- package/lib/api/index.js +2 -1
- package/lib/api/sypct.js +21 -0
- package/lib/api/task.js +21 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +15 -12
- package/lib/bussiness/hyAddDepartmentType/index.js +1 -0
- package/lib/bussiness/hyMapAearchPlace/index.js +12 -0
- package/lib/bussiness/hyMapAearchPlace/js/index.js +652 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.vue.js +370 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.vue.js +105 -0
- package/lib/bussiness/hyMapAearchPlace/style/mapAearchPlace.scss +71 -0
- package/lib/bussiness/index.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 +23 -3
- 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 +10 -3
- package/lib/components/hyConfigProvider/configProvider.vue.js +5 -0
- package/lib/components/hyConfigProvider/index.js +1 -0
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +6 -2
- 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 +96 -12
- 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 +6 -1
- package/lib/components/hyForm/form.vue.js +3 -0
- 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 +11 -3
- 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 +18 -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 +6 -1
- package/lib/components/hyTable/index.js +1 -0
- package/lib/components/hyTable/js/index.js +9 -9
- package/lib/components/hyTable/js/search.js +2 -0
- package/lib/components/hyTable/js/useAppTable.js +4 -1
- package/lib/components/hyTable/table.vue.js +11 -1
- package/lib/components/hyTableActionButton/index.js +1 -0
- package/lib/components/hyTableActionButton/tableActionButton.vue.js +4 -1
- package/lib/components/hyTableForm/batchTableForm.vue.js +42 -62
- package/lib/components/hyTableForm/index.js +1 -0
- package/lib/components/hyTableForm/js/index.js +12 -27
- package/lib/components/hyTableForm/js/useAppTableForm.js +2 -0
- package/lib/components/hyTableForm/tableForm.vue.js +19 -11
- 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 +14 -1
- package/lib/components/hyTree/tree.vue.js +9 -4
- 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/index.js +3 -0
- package/lib/hooks/useGlobalConfig.js +5 -0
- package/lib/hooks/useLocale.js +3 -1
- package/lib/hooks/useMapConfig.js +21 -0
- package/lib/hooks/useResizeHandler.js +1 -0
- package/lib/index.js +73 -59
- 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-editorialdownsizing.js +14 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-list-suoxiao.js +14 -0
- package/lib/style/element/hy-element.scss +10 -1
- package/lib/utils/file.js +1 -0
- package/lib/utils/form.js +5 -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 +5 -1
- package/lib/utils/sharedContent.js +14 -0
- package/lib/version.js +1 -1
- package/package.json +2 -1
|
@@ -5,6 +5,9 @@ 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('../index.js');
|
|
9
|
+
require('../../hooks/index.js');
|
|
10
|
+
require('../../utils/index.js');
|
|
8
11
|
var index = require('./js/index.js');
|
|
9
12
|
var search = require('./js/search.js');
|
|
10
13
|
var headerItem = require('./cpns/headerItem.vue.js');
|
|
@@ -243,6 +246,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
243
246
|
// 表单查询
|
|
244
247
|
totalElements,
|
|
245
248
|
showFilter,
|
|
249
|
+
selectedList,
|
|
246
250
|
getData,
|
|
247
251
|
setData,
|
|
248
252
|
resetFields,
|
|
@@ -745,7 +749,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
745
749
|
"hide-on-single-page": "",
|
|
746
750
|
onSizeChange: vue.unref(onSizeChangeHandler),
|
|
747
751
|
onCurrentChange: vue.unref(onCurrentChangeHandler)
|
|
748
|
-
}, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"])
|
|
752
|
+
}, null, 8, ["current-page", "onUpdate:currentPage", "page-size", "onUpdate:pageSize", "total", "pager-count", "layout", "onSizeChange", "onCurrentChange"]),
|
|
753
|
+
vue.unref(selectedList) && vue.unref(selectedList).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
754
|
+
key: 0,
|
|
755
|
+
class: "absolute right-4 top-1/2 transform -translate-y-1/2"
|
|
756
|
+
}, [
|
|
757
|
+
vue.renderSlot(_ctx.$slots, "multiple-operator-slot")
|
|
758
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
749
759
|
])) : vue.createCommentVNode("v-if", true)
|
|
750
760
|
]),
|
|
751
761
|
vue.createCommentVNode(" \u8868\u683C\u884C\u53F3\u952E\u5C55\u793A\u64CD\u4F5C\u5217\u8868 "),
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tableActionButton = require('./tableActionButton.vue.js');
|
|
6
|
+
require('../../utils/index.js');
|
|
6
7
|
var handler = require('../../utils/handler.js');
|
|
7
8
|
|
|
8
9
|
const HyTableActionButton = handler.withInstall(tableActionButton.default);
|
|
@@ -5,11 +5,14 @@ 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 useLocale = require('../../hooks/useLocale.js');
|
|
12
|
+
var is = require('../../utils/is.js');
|
|
9
13
|
var index = require('../hyTooltip/index.js');
|
|
10
14
|
var index$1 = require('../hyButton/index.js');
|
|
11
15
|
var index$2 = require('../hyIcon/index.js');
|
|
12
|
-
var is = require('../../utils/is.js');
|
|
13
16
|
|
|
14
17
|
import "./style/tableActionButton.scss";
|
|
15
18
|
|
|
@@ -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$3 = 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
|
|
|
@@ -68,21 +71,16 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
68
71
|
onExpandRowChange: {
|
|
69
72
|
type: Function
|
|
70
73
|
},
|
|
71
|
-
|
|
72
|
-
type:
|
|
73
|
-
default: () => ({
|
|
74
|
-
title: "\u4E0B\u8F7D\u6A21\u677F",
|
|
75
|
-
url: "",
|
|
76
|
-
fileName: ""
|
|
77
|
-
})
|
|
78
|
-
},
|
|
79
|
-
url: {
|
|
80
|
-
type: String
|
|
74
|
+
submitHandler: {
|
|
75
|
+
type: Function
|
|
81
76
|
},
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
// 是否显示添加按钮
|
|
78
|
+
showAddBtn: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: true
|
|
84
81
|
},
|
|
85
|
-
|
|
82
|
+
// 外部整体数据处理
|
|
83
|
+
beforeDataListHandle: {
|
|
86
84
|
type: Function
|
|
87
85
|
}
|
|
88
86
|
}, {
|
|
@@ -146,6 +144,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
146
144
|
return tableRef.value.validate();
|
|
147
145
|
}
|
|
148
146
|
async function onUploadChange(file) {
|
|
147
|
+
const { beforeDataListHandle } = props;
|
|
149
148
|
const type = file.raw.type;
|
|
150
149
|
if (file.raw.size > 1024 * 1024 * 10) {
|
|
151
150
|
elementPlus.ElMessage.error(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC710M\uFF01`);
|
|
@@ -153,31 +152,32 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
153
152
|
} else {
|
|
154
153
|
if (type.indexOf("application") !== -1) {
|
|
155
154
|
const files = { 0: file.raw };
|
|
155
|
+
isUploading.value = true;
|
|
156
|
+
emits("uploading");
|
|
156
157
|
try {
|
|
157
|
-
|
|
158
|
-
emits("uploading");
|
|
159
|
-
const data = await index$2.doReadExcel(files, props);
|
|
158
|
+
const data = await index.doReadExcel(files, props);
|
|
160
159
|
if (!data) {
|
|
161
160
|
elementPlus.ElMessage.warning("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25");
|
|
162
|
-
|
|
163
|
-
return;
|
|
161
|
+
throw Error("\u8BFB\u53D6\u6587\u4EF6\u5931\u8D25");
|
|
164
162
|
}
|
|
165
163
|
if (!data.length) {
|
|
166
164
|
elementPlus.ElMessage.warning("\u8BE5\u6587\u4EF6\u6CA1\u6709\u6570\u636E");
|
|
167
|
-
|
|
168
|
-
return;
|
|
165
|
+
throw Error("\u8BE5\u6587\u4EF6\u6CA1\u6709\u6570\u636E");
|
|
169
166
|
}
|
|
170
167
|
active.value++;
|
|
171
|
-
isUploading.value = false;
|
|
172
|
-
emits("uploaded");
|
|
173
168
|
await vue.nextTick();
|
|
174
|
-
|
|
169
|
+
if (beforeDataListHandle) {
|
|
170
|
+
const processData = await beforeDataListHandle(data);
|
|
171
|
+
setData(processData);
|
|
172
|
+
} else {
|
|
173
|
+
setData(data);
|
|
174
|
+
}
|
|
175
175
|
templateFileName.value = file.name;
|
|
176
176
|
} catch (err) {
|
|
177
|
-
isUploading.value = false;
|
|
178
177
|
console.error(err);
|
|
179
|
-
return;
|
|
180
178
|
}
|
|
179
|
+
isUploading.value = false;
|
|
180
|
+
emits("uploaded");
|
|
181
181
|
} else {
|
|
182
182
|
elementPlus.ElMessage.error("\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF");
|
|
183
183
|
}
|
|
@@ -189,7 +189,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
189
189
|
if (total) {
|
|
190
190
|
try {
|
|
191
191
|
await new Promise((resolve, reject) => {
|
|
192
|
-
index$
|
|
192
|
+
index$1.HyConfirmDialog.confirm({
|
|
193
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`,
|
|
194
194
|
onClose: reject,
|
|
195
195
|
onCancel: reject,
|
|
@@ -209,12 +209,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
209
209
|
uploadRef.value.click();
|
|
210
210
|
}
|
|
211
211
|
async function submitDataSource() {
|
|
212
|
-
if (!props.
|
|
213
|
-
elementPlus.ElMessage.warning("\u8BF7\u914D\u7F6E\u63D0\u4EA4\
|
|
212
|
+
if (!props.submitHandler) {
|
|
213
|
+
elementPlus.ElMessage.warning("\u8BF7\u914D\u7F6E\u63D0\u4EA4\u903B\u8F91");
|
|
214
214
|
return Promise.reject();
|
|
215
215
|
}
|
|
216
216
|
if (submitting.value) {
|
|
217
|
-
index$
|
|
217
|
+
index$1.HyConfirmDialog.tip({
|
|
218
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`
|
|
219
219
|
});
|
|
220
220
|
return Promise.reject();
|
|
@@ -232,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
232
232
|
if (failed) {
|
|
233
233
|
try {
|
|
234
234
|
await new Promise((resolve, reject) => {
|
|
235
|
-
index$
|
|
235
|
+
index$1.HyConfirmDialog.confirm({
|
|
236
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`,
|
|
237
237
|
onClose: reject,
|
|
238
238
|
onCancel: reject,
|
|
@@ -254,13 +254,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
254
254
|
if (errorMsg) {
|
|
255
255
|
continue;
|
|
256
256
|
}
|
|
257
|
-
let res2;
|
|
258
257
|
try {
|
|
259
|
-
|
|
260
|
-
res2 = await props.submitHandler(data);
|
|
261
|
-
} else {
|
|
262
|
-
res2 = await unref(api).post(props.url, props.submitParams);
|
|
263
|
-
}
|
|
258
|
+
const res2 = await props.submitHandler(data);
|
|
264
259
|
if (res2.code === 200) {
|
|
265
260
|
submitNumber.value++;
|
|
266
261
|
submitList.push(target);
|
|
@@ -356,7 +351,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
356
351
|
"on-change": onUploadChange
|
|
357
352
|
}, {
|
|
358
353
|
default: vue.withCtx(() => [
|
|
359
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
354
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
360
355
|
"svg-name": "ops-file-xls",
|
|
361
356
|
"class-name": "!w-[58px] !h-[66px] mb-4"
|
|
362
357
|
}),
|
|
@@ -446,23 +441,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
446
441
|
innerHTML: item.description,
|
|
447
442
|
class: "text-auxiliary text-center mb-3 whitespace-nowrap"
|
|
448
443
|
}, null, 8, ["innerHTML"]),
|
|
449
|
-
index === 0 ? vue.renderSlot(_ctx.$slots, "template-down", {},
|
|
450
|
-
vue.createVNode(vue.unref(index$1.HyButton), {
|
|
451
|
-
type: "primary",
|
|
452
|
-
link: "",
|
|
453
|
-
onClick: () => vue.unref(index$2.downloadTemplateHandler)(props)
|
|
454
|
-
}, {
|
|
455
|
-
default: vue.withCtx(() => [
|
|
456
|
-
vue.createTextVNode(
|
|
457
|
-
vue.toDisplayString(__props.templateConfig ? __props.templateConfig.title : "\u4E0B\u8F7D\u6A21\u677F"),
|
|
458
|
-
1
|
|
459
|
-
/* TEXT */
|
|
460
|
-
)
|
|
461
|
-
]),
|
|
462
|
-
_: 1
|
|
463
|
-
/* STABLE */
|
|
464
|
-
}, 8, ["onClick"])
|
|
465
|
-
], void 0, 1) : vue.createCommentVNode("v-if", true)
|
|
444
|
+
index === 0 ? vue.renderSlot(_ctx.$slots, "template-down", {}, void 0, void 0, 1) : vue.createCommentVNode("v-if", true)
|
|
466
445
|
]);
|
|
467
446
|
}),
|
|
468
447
|
64
|
|
@@ -482,7 +461,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
482
461
|
}, [
|
|
483
462
|
vue.createElementVNode("div", { class: "hy-batch-table-form-template-box mb-4" }, [
|
|
484
463
|
vue.createElementVNode("div", { class: "flex items-center gap-2" }, [
|
|
485
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
464
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
486
465
|
"svg-name": "ops-file-xls",
|
|
487
466
|
"class-name": "!w-[18px] !h-[22px]"
|
|
488
467
|
}),
|
|
@@ -506,7 +485,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
506
485
|
class: "text-auxiliary"
|
|
507
486
|
}, "\u6682\u672A\u5BFC\u5165\u6587\u4EF6"))
|
|
508
487
|
]),
|
|
509
|
-
vue.createVNode(vue.unref(index$
|
|
488
|
+
vue.createVNode(vue.unref(index$3.HyButton), {
|
|
510
489
|
type: "primary",
|
|
511
490
|
link: "",
|
|
512
491
|
size: "small",
|
|
@@ -534,6 +513,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
534
513
|
rowClickExpand: __props.rowClickExpand,
|
|
535
514
|
columnNum: __props.columnNum,
|
|
536
515
|
size: __props.size,
|
|
516
|
+
showAddBtn: __props.showAddBtn,
|
|
537
517
|
class: "h-0 flex-1"
|
|
538
518
|
}), vue.createSlots({
|
|
539
519
|
_: 2
|
|
@@ -547,7 +527,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
547
527
|
])
|
|
548
528
|
};
|
|
549
529
|
})
|
|
550
|
-
]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size"])
|
|
530
|
+
]), 1040, ["tableColumns", "formColumns", "onExpandRowChange", "rules", "rowClickExpand", "columnNum", "size", "showAddBtn"])
|
|
551
531
|
])) : vue.createCommentVNode("v-if", true),
|
|
552
532
|
submitting.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
553
533
|
key: 1,
|
|
@@ -555,7 +535,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
555
535
|
}, [
|
|
556
536
|
vue.createElementVNode("div", { class: "w-full h-full absolute bg-[rgba(var(--hy-background-4),0.9)] backdrop-blur-sm" }),
|
|
557
537
|
vue.createElementVNode("div", { class: "flex flex-col items-center text-theme text-xs relative" }, [
|
|
558
|
-
vue.createVNode(vue.unref(index.HyIcon), {
|
|
538
|
+
vue.createVNode(vue.unref(index$2.HyIcon), {
|
|
559
539
|
"svg-name": "ops-file-xls",
|
|
560
540
|
"class-name": "!w-[58px] !h-[66px] mb-[18px]"
|
|
561
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
|
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var XLSX = require('xlsx');
|
|
4
4
|
var dayjs = require('dayjs');
|
|
5
|
-
|
|
5
|
+
require('vue');
|
|
6
6
|
var AsyncValidator = require('async-validator');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
8
|
var index = require('../../hyForm/js/index.js');
|
|
9
|
-
|
|
9
|
+
require('../../../utils/index.js');
|
|
10
|
+
require('../../../hooks/index.js');
|
|
10
11
|
var form = require('../../../utils/form.js');
|
|
11
12
|
var is = require('../../../utils/is.js');
|
|
12
13
|
|
|
@@ -41,7 +42,7 @@ const doValidate = async (target = {}, columns = [], ruleList = {}) => {
|
|
|
41
42
|
});
|
|
42
43
|
};
|
|
43
44
|
const doReadExcel = (files, props) => {
|
|
44
|
-
return new Promise((
|
|
45
|
+
return new Promise((resolve, reject) => {
|
|
45
46
|
const { formColumns, beforeDataHandle } = props;
|
|
46
47
|
const fileReader = new FileReader();
|
|
47
48
|
fileReader.onload = (ev) => {
|
|
@@ -61,9 +62,13 @@ const doReadExcel = (files, props) => {
|
|
|
61
62
|
}, JSON.stringify(ws1));
|
|
62
63
|
let dataSource = JSON.parse(content);
|
|
63
64
|
if (beforeDataHandle) {
|
|
64
|
-
|
|
65
|
+
const handlePromises = dataSource.map(
|
|
66
|
+
(item) => Promise.resolve().then(() => beforeDataHandle(item)).catch(() => item)
|
|
67
|
+
);
|
|
68
|
+
Promise.all(handlePromises).then(resolve, reject);
|
|
69
|
+
return;
|
|
65
70
|
}
|
|
66
|
-
|
|
71
|
+
resolve(dataSource);
|
|
67
72
|
} catch (err) {
|
|
68
73
|
reject(err);
|
|
69
74
|
}
|
|
@@ -71,27 +76,8 @@ const doReadExcel = (files, props) => {
|
|
|
71
76
|
fileReader.readAsBinaryString(files[0]);
|
|
72
77
|
});
|
|
73
78
|
};
|
|
74
|
-
const downloadTemplateHandler = async (props) => {
|
|
75
|
-
const { templateConfig } = props;
|
|
76
|
-
const { url, fileName } = templateConfig;
|
|
77
|
-
if (!url) {
|
|
78
|
-
elementPlus.ElMessage.warning("\u8BF7\u914D\u7F6E\u4E0B\u8F7D\u6A21\u677F\u5730\u5740");
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
const { api } = useApi.useApi();
|
|
82
|
-
try {
|
|
83
|
-
const blob = await vue.unref(api).get(url, {
|
|
84
|
-
responseType: "blob"
|
|
85
|
-
});
|
|
86
|
-
blobDownloadFn(blob, fileName).then(() => {
|
|
87
|
-
resolve();
|
|
88
|
-
});
|
|
89
|
-
} catch (err) {
|
|
90
|
-
console.error(err);
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
79
|
function blobDownloadFn(blob, name) {
|
|
94
|
-
return new Promise((
|
|
80
|
+
return new Promise((resolve, reject) => {
|
|
95
81
|
elementPlus.ElMessage.warning("\u5F00\u59CB\u4E0B\u8F7D");
|
|
96
82
|
const today = dayjs().format("YYYY-MM-DD HH:mm:ss");
|
|
97
83
|
const reader = new FileReader();
|
|
@@ -112,7 +98,7 @@ function blobDownloadFn(blob, name) {
|
|
|
112
98
|
a.click();
|
|
113
99
|
a.remove();
|
|
114
100
|
}
|
|
115
|
-
|
|
101
|
+
resolve();
|
|
116
102
|
} catch (error) {
|
|
117
103
|
reject(error);
|
|
118
104
|
} finally {
|
|
@@ -124,4 +110,3 @@ function blobDownloadFn(blob, name) {
|
|
|
124
110
|
|
|
125
111
|
exports.doReadExcel = doReadExcel;
|
|
126
112
|
exports.doValidate = doValidate;
|
|
127
|
-
exports.downloadTemplateHandler = downloadTemplateHandler;
|
|
@@ -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
|
|
|
@@ -63,6 +65,11 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
63
65
|
type: String,
|
|
64
66
|
default: "default"
|
|
65
67
|
// 'large' | 'default' | 'small'
|
|
68
|
+
},
|
|
69
|
+
// 是否显示添加按钮
|
|
70
|
+
showAddBtn: {
|
|
71
|
+
type: Boolean,
|
|
72
|
+
default: true
|
|
66
73
|
}
|
|
67
74
|
},
|
|
68
75
|
emits: ["validate"],
|
|
@@ -176,7 +183,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
176
183
|
promiseList.push(
|
|
177
184
|
new Promise(async (resolve, reject) => {
|
|
178
185
|
try {
|
|
179
|
-
await index
|
|
186
|
+
await index.doValidate(data, props.formColumns, props.rules);
|
|
180
187
|
data.errorMsg = data.errorMsg && !data.errorMsg.prop ? data.errorMsg : null;
|
|
181
188
|
data.errorMap = /* @__PURE__ */ new Map();
|
|
182
189
|
resolve();
|
|
@@ -207,7 +214,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
207
214
|
row.errorMap = /* @__PURE__ */ new Map();
|
|
208
215
|
}
|
|
209
216
|
try {
|
|
210
|
-
await index
|
|
217
|
+
await index.doValidate(row, props.formColumns, props.rules);
|
|
211
218
|
row.errorMsg = null;
|
|
212
219
|
row.errorMap = /* @__PURE__ */ new Map();
|
|
213
220
|
} catch (error) {
|
|
@@ -334,7 +341,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
334
341
|
])) : vue.createCommentVNode("v-if", true)
|
|
335
342
|
]),
|
|
336
343
|
vue.createElementVNode("div", { class: "flex items-center gap-3" }, [
|
|
337
|
-
vue.
|
|
344
|
+
__props.showAddBtn ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyButton), {
|
|
345
|
+
key: 0,
|
|
338
346
|
type: "success",
|
|
339
347
|
size: "small",
|
|
340
348
|
"svg-name": "ops-button-add",
|
|
@@ -345,7 +353,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
345
353
|
]),
|
|
346
354
|
_: 1
|
|
347
355
|
/* STABLE */
|
|
348
|
-
}),
|
|
356
|
+
})) : vue.createCommentVNode("v-if", true),
|
|
349
357
|
vue.createElementVNode("div", { class: "hy-table-form-tabs" }, [
|
|
350
358
|
(vue.openBlock(true), vue.createElementBlock(
|
|
351
359
|
vue.Fragment,
|
|
@@ -363,7 +371,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
363
371
|
])
|
|
364
372
|
])
|
|
365
373
|
]),
|
|
366
|
-
vue.createVNode(vue.unref(index$
|
|
374
|
+
vue.createVNode(vue.unref(index$2.HyTable), vue.mergeProps({
|
|
367
375
|
ref_key: "tableRef",
|
|
368
376
|
ref: tableRef
|
|
369
377
|
}, _ctx.$attrs, {
|
|
@@ -450,7 +458,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
450
458
|
/* CLASS */
|
|
451
459
|
)
|
|
452
460
|
]),
|
|
453
|
-
vue.createVNode(vue.unref(index$
|
|
461
|
+
vue.createVNode(vue.unref(index$3.HyForm), {
|
|
454
462
|
ref_key: "formRef",
|
|
455
463
|
ref: formRef,
|
|
456
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");
|
|
@@ -154,6 +154,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
154
154
|
// 筛选方法
|
|
155
155
|
filterMethod: ({ filterValue: filterValue2 }, data) => {
|
|
156
156
|
let isFilter = true;
|
|
157
|
+
if (props2.filterMethod) {
|
|
158
|
+
isFilter = props2.filterMethod(data, { filterValue: filterValue2 });
|
|
159
|
+
}
|
|
157
160
|
if (filterValue2) {
|
|
158
161
|
isFilter = isFilter && !!filterNodeMethod(data, filterValue2, {
|
|
159
162
|
treeFilterParam: props2.treeFilterParam
|
|
@@ -358,6 +361,13 @@ const useAppTreeWrapper = (hy) => {
|
|
|
358
361
|
}
|
|
359
362
|
return true;
|
|
360
363
|
}
|
|
364
|
+
function setGroupRenderItem(data, node) {
|
|
365
|
+
const slot = setSlot("treeParentSlot");
|
|
366
|
+
if (slot) {
|
|
367
|
+
return slot(data, node);
|
|
368
|
+
}
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
361
371
|
function setSlot(slotName) {
|
|
362
372
|
if (!slotName || !slots[slotName]) return null;
|
|
363
373
|
return (data, node) => {
|
|
@@ -398,6 +408,9 @@ const useAppTreeWrapper = (hy) => {
|
|
|
398
408
|
function addDevice() {
|
|
399
409
|
emits("on-addDevice");
|
|
400
410
|
}
|
|
411
|
+
function setDeviceStatus(payload) {
|
|
412
|
+
virtualTree?.updateData([payload]);
|
|
413
|
+
}
|
|
401
414
|
function singleRemovalFn(row) {
|
|
402
415
|
if (props2.treeType === "device") {
|
|
403
416
|
virtualTree.setChecked(row.channelId || row.deviceId, false, true);
|
|
@@ -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: [
|
|
@@ -227,7 +234,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
227
234
|
[index.useAppTreeWrapper]
|
|
228
235
|
);
|
|
229
236
|
vue.onMounted(() => {
|
|
230
|
-
if (props.searchType === 2)
|
|
237
|
+
if (props.searchType === 2) {
|
|
238
|
+
}
|
|
231
239
|
setFilterListType();
|
|
232
240
|
});
|
|
233
241
|
__expose({
|
|
@@ -349,9 +357,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
349
357
|
vue.withDirectives(vue.createElementVNode(
|
|
350
358
|
"div",
|
|
351
359
|
{
|
|
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
360
|
ref_key: "treeRef",
|
|
356
361
|
ref: treeRef,
|
|
357
362
|
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);
|