hy-dispatch-ui-v3 0.2.75 → 0.2.77
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/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.mjs +107 -116
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.mjs +6 -0
- package/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.mjs +8 -0
- package/es/bussiness/hyDepartmentTypeOperation/index.mjs +4 -1
- package/es/bussiness/hyDeviceTree/deviceTree.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.mjs +2 -2
- package/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.mjs +6 -0
- package/es/bussiness/hyElectronicFence/electronicFence.install.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlace.install.mjs +6 -0
- package/es/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.mjs +6 -0
- package/es/bussiness/hyOrgGroupTree/orgGroupTree.install.mjs +6 -0
- package/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.mjs +6 -0
- package/es/bussiness/hyRuleSetting/ruleSetting.install.mjs +6 -0
- package/es/bussiness/hyUserTree/userTree.install.mjs +6 -0
- package/es/bussiness/index.mjs +1 -2
- package/es/components-map.mjs +17 -1
- package/es/hooks/index.mjs +1 -0
- package/es/hooks/useGlobalConfig.mjs +9 -0
- package/es/hooks/useVersionControl.mjs +34 -0
- package/es/index.mjs +2 -2
- package/es/utils/form.mjs +11 -2
- package/es/utils/useUiComponent.mjs +34 -0
- package/es/version.mjs +1 -1
- package/lib/bussiness/hyAcquisitionStationTree/acquisitionStationTree.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation2.vue.js +106 -115
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.install.js +6 -0
- package/lib/bussiness/hyDepartmentTypeOperation/departmentTypeOperation_tiantong2.vue.js +8 -0
- package/lib/bussiness/hyDepartmentTypeOperation/index.js +4 -0
- package/lib/bussiness/hyDeviceTree/deviceTree.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog.vue.js +11 -11
- package/lib/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersItem.install.js +6 -0
- package/lib/bussiness/hyElectronicFence/electronicFence.install.js +6 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlace.install.js +6 -0
- package/lib/bussiness/hyMapAearchPlace/mapAearchPlaceItem.install.js +6 -0
- package/lib/bussiness/hyOrgGroupTree/orgGroupTree.install.js +6 -0
- package/lib/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/gatheringPeople/gatheringPeople.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionInRule/missionInRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/missionOutRule/missionOutRule.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/sedentary/sedentary.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timedVideo/timedVideo.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timerCamera/timerCamera.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/cpns/timingReturn/timingReturn.install.js +6 -0
- package/lib/bussiness/hyRuleSetting/ruleSetting.install.js +6 -0
- package/lib/bussiness/hyUserTree/userTree.install.js +6 -0
- package/lib/bussiness/index.js +1 -2
- package/lib/components-map.js +17 -1
- package/lib/hooks/index.js +4 -0
- package/lib/hooks/useGlobalConfig.js +9 -0
- package/lib/hooks/useVersionControl.js +38 -0
- package/lib/index.js +5 -2
- package/lib/utils/form.js +11 -2
- package/lib/utils/useUiComponent.js +37 -0
- package/lib/version.js +1 -1
- package/package.json +120 -18
- package/es/bussiness/hyDepartmentTypeOperation/tiantong.mjs +0 -8
- package/lib/bussiness/hyDepartmentTypeOperation/tiantong.js +0 -13
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick, resolveComponent, openBlock,
|
|
1
|
+
import { defineComponent, onUnmounted, ref, useTemplateRef, nextTick, resolveComponent, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createVNode, createElementVNode, withDirectives, withModifiers, vShow, toDisplayString } from 'vue';
|
|
2
2
|
import { useDialog, useDialogIsEdit } from '../../hooks/useDialog.mjs';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../../components/index.mjs';
|
|
@@ -222,129 +222,120 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
222
222
|
return (_ctx, _cache) => {
|
|
223
223
|
const _component_el_image = resolveComponent("el-image");
|
|
224
224
|
const _component_el_upload = resolveComponent("el-upload");
|
|
225
|
-
return openBlock(),
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
]
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
285
|
-
key: 1,
|
|
286
|
-
"svg-name": "ops-file-empty-head",
|
|
287
|
-
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
288
|
-
})),
|
|
289
|
-
createElementVNode(
|
|
290
|
-
"span",
|
|
291
|
-
{ class: "uploadTips text-center" },
|
|
292
|
-
toDisplayString($t$1("upload")),
|
|
293
|
-
1
|
|
294
|
-
/* TEXT */
|
|
295
|
-
)
|
|
296
|
-
])
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
/* STABLE */
|
|
300
|
-
}, 8, ["before-upload", "http-request"]),
|
|
301
|
-
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
225
|
+
return openBlock(), createBlock(unref(HyDialog), mergeProps({
|
|
226
|
+
ref_key: "HyDialogRef",
|
|
227
|
+
ref: HyDialogRef,
|
|
228
|
+
modelValue: unref(dialogVisible),
|
|
229
|
+
"onUpdate:modelValue": ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null,
|
|
230
|
+
loading: unref(loading),
|
|
231
|
+
"onUpdate:loading": ($event) => isRef(loading) ? loading.value = $event : null,
|
|
232
|
+
"if-shrink": true,
|
|
233
|
+
width: "310px"
|
|
234
|
+
}, _ctx.$attrs, {
|
|
235
|
+
title: unref(formModel).id ? $t$1("editDepartmentType") : $t$1("addDepartmentType"),
|
|
236
|
+
"on-submit": unref(onSubmit),
|
|
237
|
+
"on-cancel": unref(onClose),
|
|
238
|
+
"on-close": unref(onClose),
|
|
239
|
+
"operate-class": "w-full justify-center",
|
|
240
|
+
onOnMinimized: unref(onMinimized),
|
|
241
|
+
onOnDialogMousedown: ($event) => unref(setDragLevelIndex)("HyDialogRef")
|
|
242
|
+
}), {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
createVNode(unref(HyForm), {
|
|
245
|
+
ref_key: "formRef",
|
|
246
|
+
ref: formRef,
|
|
247
|
+
"column-num": 1,
|
|
248
|
+
model: unref(formModel),
|
|
249
|
+
columns: unref(formColumns)
|
|
250
|
+
}, {
|
|
251
|
+
companyNameSlot: withCtx(() => [
|
|
252
|
+
createElementVNode("div", { class: "flex flex-row departmentTypeOperation" }, [
|
|
253
|
+
createVNode(_component_el_upload, {
|
|
254
|
+
class: "w-[80px] flex items-center justify-center upload_box",
|
|
255
|
+
accept: ".png,.jpg,.gif",
|
|
256
|
+
"before-upload": unref(beforeAvatarUpload),
|
|
257
|
+
"http-request": unref(handleHttpRequestImg),
|
|
258
|
+
action: "",
|
|
259
|
+
"show-file-list": false
|
|
260
|
+
}, {
|
|
261
|
+
default: withCtx(() => [
|
|
262
|
+
withDirectives(createElementVNode("div", {
|
|
263
|
+
class: "delete_box flex items-center justify-center",
|
|
264
|
+
onClick: withModifiers(($event) => unref(setHeadImg)(null), ["stop"])
|
|
265
|
+
}, [
|
|
266
|
+
createVNode(unref(HyIcon), {
|
|
267
|
+
"svg-name": "ops-button-delete",
|
|
268
|
+
class: "svg_box"
|
|
269
|
+
})
|
|
270
|
+
], 8, ["onClick"]), [
|
|
271
|
+
[vShow, unref(formModel).icon]
|
|
272
|
+
]),
|
|
273
|
+
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
274
|
+
unref(formModel).icon ? (openBlock(), createBlock(_component_el_image, {
|
|
275
|
+
key: 0,
|
|
276
|
+
fit: "contain",
|
|
277
|
+
class: "w-[60px] h-[60px]",
|
|
278
|
+
src: unref(formModel).icon
|
|
279
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
280
|
+
key: 1,
|
|
281
|
+
"svg-name": "ops-file-empty-head",
|
|
282
|
+
class: "text-auxiliary !w-[60px] !h-[60px]"
|
|
283
|
+
})),
|
|
302
284
|
createElementVNode(
|
|
303
|
-
"
|
|
304
|
-
|
|
305
|
-
toDisplayString($t$1("
|
|
306
|
-
1
|
|
307
|
-
/* TEXT */
|
|
308
|
-
),
|
|
309
|
-
createElementVNode(
|
|
310
|
-
"div",
|
|
311
|
-
null,
|
|
312
|
-
toDisplayString($t$1("iconSize44px")) + "*44px",
|
|
313
|
-
1
|
|
314
|
-
/* TEXT */
|
|
315
|
-
),
|
|
316
|
-
createElementVNode(
|
|
317
|
-
"div",
|
|
318
|
-
null,
|
|
319
|
-
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
285
|
+
"span",
|
|
286
|
+
{ class: "uploadTips text-center" },
|
|
287
|
+
toDisplayString($t$1("upload")),
|
|
320
288
|
1
|
|
321
289
|
/* TEXT */
|
|
322
290
|
)
|
|
323
291
|
])
|
|
324
|
-
])
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
292
|
+
]),
|
|
293
|
+
_: 1
|
|
294
|
+
/* STABLE */
|
|
295
|
+
}, 8, ["before-upload", "http-request"]),
|
|
296
|
+
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
297
|
+
createElementVNode(
|
|
298
|
+
"div",
|
|
299
|
+
null,
|
|
300
|
+
toDisplayString($t$1("pleaseUploadDepartmentTypeIcon")),
|
|
301
|
+
1
|
|
302
|
+
/* TEXT */
|
|
303
|
+
),
|
|
304
|
+
createElementVNode(
|
|
305
|
+
"div",
|
|
306
|
+
null,
|
|
307
|
+
toDisplayString($t$1("iconSize44px")) + "*44px",
|
|
308
|
+
1
|
|
309
|
+
/* TEXT */
|
|
310
|
+
),
|
|
311
|
+
createElementVNode(
|
|
312
|
+
"div",
|
|
313
|
+
null,
|
|
314
|
+
toDisplayString($t$1("ifNoIconUseTheDefaultIcon")),
|
|
315
|
+
1
|
|
316
|
+
/* TEXT */
|
|
317
|
+
)
|
|
318
|
+
])
|
|
319
|
+
])
|
|
340
320
|
]),
|
|
341
321
|
_: 1
|
|
342
322
|
/* STABLE */
|
|
343
|
-
},
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
323
|
+
}, 8, ["model", "columns"]),
|
|
324
|
+
createVNode(
|
|
325
|
+
unref(HyCutter),
|
|
326
|
+
{
|
|
327
|
+
ref_key: "HyCutterRef",
|
|
328
|
+
ref: HyCutterRef,
|
|
329
|
+
"show-upload": false
|
|
330
|
+
},
|
|
331
|
+
null,
|
|
332
|
+
512
|
|
333
|
+
/* NEED_PATCH */
|
|
334
|
+
)
|
|
335
|
+
]),
|
|
336
|
+
_: 1
|
|
337
|
+
/* STABLE */
|
|
338
|
+
}, 16, ["modelValue", "onUpdate:modelValue", "loading", "onUpdate:loading", "title", "on-submit", "on-cancel", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
348
339
|
};
|
|
349
340
|
}
|
|
350
341
|
});
|
|
@@ -220,6 +220,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
220
220
|
minimizedShow
|
|
221
221
|
});
|
|
222
222
|
return (_ctx, _cache) => {
|
|
223
|
+
const _component_Test = resolveComponent("Test");
|
|
223
224
|
const _component_el_image = resolveComponent("el-image");
|
|
224
225
|
const _component_el_upload = resolveComponent("el-upload");
|
|
225
226
|
return openBlock(), createElementBlock(
|
|
@@ -227,6 +228,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
228
|
null,
|
|
228
229
|
[
|
|
229
230
|
createTextVNode(" 222222 "),
|
|
231
|
+
createVNode(
|
|
232
|
+
_component_Test,
|
|
233
|
+
{ ref: "TestRef" },
|
|
234
|
+
null,
|
|
235
|
+
512
|
|
236
|
+
/* NEED_PATCH */
|
|
237
|
+
),
|
|
230
238
|
createVNode(unref(HyDialog), mergeProps({
|
|
231
239
|
ref_key: "HyDialogRef",
|
|
232
240
|
ref: HyDialogRef,
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import './departmentTypeOperation.vue.mjs';
|
|
2
|
+
import './departmentTypeOperation_tiantong.vue.mjs';
|
|
2
3
|
import '../../utils/index.mjs';
|
|
3
4
|
import { withInstall } from '../../utils/handler.mjs';
|
|
4
5
|
import _sfc_main from './departmentTypeOperation2.vue.mjs';
|
|
6
|
+
import _sfc_main$1 from './departmentTypeOperation_tiantong2.vue.mjs';
|
|
5
7
|
|
|
6
8
|
const HyDepartmentTypeOperation = withInstall(_sfc_main);
|
|
9
|
+
const HyDepartmentTypeOperationTiantong = withInstall(_sfc_main$1);
|
|
7
10
|
|
|
8
|
-
export { HyDepartmentTypeOperation, HyDepartmentTypeOperation as default };
|
|
11
|
+
export { HyDepartmentTypeOperation, HyDepartmentTypeOperationTiantong, HyDepartmentTypeOperation as default };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, ref, computed, nextTick, shallowRef, openBlock, createBlock, unref, isRef, withCtx, createElementVNode, createVNode, mergeProps, createTextVNode, createElementBlock, createCommentVNode } from 'vue';
|
|
2
|
+
import { useUiComponent } from '../../../../utils/useUiComponent.mjs';
|
|
2
3
|
import { ElMessage, ElCheckbox } from 'element-plus';
|
|
3
4
|
import { selectApi, saveApi } from '../../../../api/index.mjs';
|
|
4
5
|
import { findAllMapRailLocationApi } from '../../../../api/mapRail.mjs';
|
|
5
6
|
import '../../../../hooks/index.mjs';
|
|
6
7
|
import '../../../../utils/index.mjs';
|
|
7
8
|
import '../../../../components/index.mjs';
|
|
8
|
-
import '../../../index.mjs';
|
|
9
9
|
import { useCurrentBus } from '../../../../hooks/useCurrentBus.mjs';
|
|
10
10
|
import { $t } from '../../../../hooks/useLocale.mjs';
|
|
11
11
|
import { useAppForm } from '../../../../components/hyForm/js/useAppForm.mjs';
|
|
@@ -15,7 +15,6 @@ import { useDialog, useDialogIsEdit } from '../../../../hooks/useDialog.mjs';
|
|
|
15
15
|
import { HyDialog } from '../../../../components/hyDialog/index.mjs';
|
|
16
16
|
import { HyForm } from '../../../../components/hyForm/index.mjs';
|
|
17
17
|
import { HyInput } from '../../../../components/hyInput/index.mjs';
|
|
18
|
-
import { HyMapAearchPlace } from '../../../hyMapAearchPlace/index.mjs';
|
|
19
18
|
import { HyMap } from '../../../../components/hyMap/index.mjs';
|
|
20
19
|
import { HyIcon } from '../../../../components/hyIcon/index.mjs';
|
|
21
20
|
import { HyButton } from '../../../../components/hyButton/index.mjs';
|
|
@@ -35,6 +34,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
35
34
|
}
|
|
36
35
|
},
|
|
37
36
|
setup(__props, { expose: __expose }) {
|
|
37
|
+
const HyMapAearchPlace = useUiComponent("HyMapAearchPlace");
|
|
38
38
|
const props = __props;
|
|
39
39
|
const { currentBus } = useCurrentBus();
|
|
40
40
|
const useAddElectronicFenceDialog = (hy) => {
|
package/es/bussiness/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { HyDepartmentTypeOperation } from './hyDepartmentTypeOperation/index.mjs';
|
|
2
|
-
export { HyDepartmentTypeOperationTiantonmg } from './hyDepartmentTypeOperation/tiantong.mjs';
|
|
1
|
+
export { HyDepartmentTypeOperation, HyDepartmentTypeOperationTiantong } from './hyDepartmentTypeOperation/index.mjs';
|
|
3
2
|
export { HyMapAearchPlace } from './hyMapAearchPlace/index.mjs';
|
|
4
3
|
export { HyUserTree } from './hyUserTree/index.mjs';
|
|
5
4
|
export { HyDeviceTree } from './hyDeviceTree/index.mjs';
|
package/es/components-map.mjs
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
,
|
|
2
|
+
HyAcquisitionStationTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyAcquisitionStationTree/acquisitionStationTree'),
|
|
3
|
+
HyDepartmentTypeOperation: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperation'),
|
|
4
|
+
HyDepartmentTypeOperationTiantong: () => import('hy-dispatch-ui-v3/es/bussiness/hyDepartmentTypeOperation/departmentTypeOperationTiantong'),
|
|
5
|
+
HyDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyDeviceTree/deviceTree'),
|
|
6
|
+
HyElectronicFence: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/electronicFence'),
|
|
7
|
+
HyAddElectronicFenceDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/addElectronicFenceDialog/addElectronicFenceDialog'),
|
|
8
|
+
HyElectronicFenceAssociatedUsersDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/electronicFenceAssociatedUsersDialog/electronicFenceAssociatedUsersDialog'),
|
|
9
|
+
HyBatchSetElectronicFenceUserDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyElectronicFence/cpns/batchSetElectronicFenceUserDialog/batchSetElectronicFenceUserDialog'),
|
|
10
|
+
HyMapAearchPlace: () => import('hy-dispatch-ui-v3/es/bussiness/hyMapAearchPlace/mapAearchPlace'),
|
|
11
|
+
HyOrgGroupTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyOrgGroupTree/orgGroupTree'),
|
|
12
|
+
HyPlanGroupDeviceTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyPlanGroupDeviceTree/planGroupDeviceTree'),
|
|
13
|
+
HyRuleSetting: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/ruleSetting'),
|
|
14
|
+
HyRuleAssignDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleAssignDialog/ruleAssignDialog'),
|
|
15
|
+
HyRuleFenceDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleFenceDialog/ruleFenceDialog'),
|
|
16
|
+
HyRuleSettingDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/ruleSettingDialog/ruleSettingDialog'),
|
|
17
|
+
HySetRuleAggregationAlarmDialog: () => import('hy-dispatch-ui-v3/es/bussiness/hyRuleSetting/cpns/setRuleAggregationAlarmDialog/setRuleAggregationAlarmDialog'),
|
|
18
|
+
HyUserTree: () => import('hy-dispatch-ui-v3/es/bussiness/hyUserTree/userTree'),
|
|
3
19
|
}
|
package/es/hooks/index.mjs
CHANGED
|
@@ -16,3 +16,4 @@ export { useBatchDialog, useDialog, useDialogIsEdit } from './useDialog.mjs';
|
|
|
16
16
|
export { useExportFile } from './useExportFile.mjs';
|
|
17
17
|
export { localBaseMainStoreKey, useBaseMainStore } from './useBaseMainStore.mjs';
|
|
18
18
|
export { localCurrentBusKey, useCurrentBus } from './useCurrentBus.mjs';
|
|
19
|
+
export { localComponentsMapKey, localVersionStoreKey, useVersionControl } from './useVersionControl.mjs';
|
|
@@ -11,6 +11,7 @@ import { localTooltipConfigKey } from './useTooltipConfig.mjs';
|
|
|
11
11
|
import { localMapConfigKey } from './useMapConfig.mjs';
|
|
12
12
|
import { localBaseMainStoreKey } from './useBaseMainStore.mjs';
|
|
13
13
|
import { localCurrentBusKey } from './useCurrentBus.mjs';
|
|
14
|
+
import { localVersionStoreKey, localComponentsMapKey } from './useVersionControl.mjs';
|
|
14
15
|
import zh_CN from '../locale/zh_CN.mjs';
|
|
15
16
|
|
|
16
17
|
const globalConfig = ref();
|
|
@@ -89,6 +90,14 @@ const provideGlobalConfig = (props, app, global = false) => {
|
|
|
89
90
|
localCurrentBusKey,
|
|
90
91
|
computed(() => context.value.currentBus)
|
|
91
92
|
);
|
|
93
|
+
provideFn(
|
|
94
|
+
localVersionStoreKey,
|
|
95
|
+
computed(() => context.value.versionStore)
|
|
96
|
+
);
|
|
97
|
+
provideFn(
|
|
98
|
+
localComponentsMapKey,
|
|
99
|
+
computed(() => context.value.componentsMap)
|
|
100
|
+
);
|
|
92
101
|
if (global || !globalConfig.value) {
|
|
93
102
|
globalConfig.value = context.value;
|
|
94
103
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { getCurrentInstance, inject, ref, unref, computed } from 'vue';
|
|
2
|
+
import { useGlobalConfig } from './useGlobalConfig.mjs';
|
|
3
|
+
|
|
4
|
+
const localVersionStoreKey = /* @__PURE__ */ Symbol("versionStore");
|
|
5
|
+
const localComponentsMapKey = /* @__PURE__ */ Symbol("componentsMap");
|
|
6
|
+
const useVersionControl = () => {
|
|
7
|
+
if (getCurrentInstance()) {
|
|
8
|
+
const versionStore = inject(localVersionStoreKey, ref());
|
|
9
|
+
const componentsMap = inject(localComponentsMapKey, ref());
|
|
10
|
+
return {
|
|
11
|
+
versionStore: unref(versionStore) ? versionStore : computed(() => {
|
|
12
|
+
const config = unref(useGlobalConfig());
|
|
13
|
+
return config?.versionStore || null;
|
|
14
|
+
}),
|
|
15
|
+
componentsMap: unref(componentsMap) ? componentsMap : computed(() => {
|
|
16
|
+
const config = unref(useGlobalConfig());
|
|
17
|
+
return config?.componentsMap || null;
|
|
18
|
+
})
|
|
19
|
+
};
|
|
20
|
+
} else {
|
|
21
|
+
return {
|
|
22
|
+
versionStore: computed(() => {
|
|
23
|
+
const config = unref(useGlobalConfig());
|
|
24
|
+
return config?.versionStore || null;
|
|
25
|
+
}),
|
|
26
|
+
componentsMap: computed(() => {
|
|
27
|
+
const config = unref(useGlobalConfig());
|
|
28
|
+
return config?.componentsMap || null;
|
|
29
|
+
})
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export { localComponentsMapKey, localVersionStoreKey, useVersionControl };
|