@ibiz-template/vue3-components 0.7.41-alpha.17 → 0.7.41-alpha.19
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/chart-q7pMKjYo.js +1 -0
- package/dist/ibiz-markdown-editor-e33m6ees.js +1 -0
- package/dist/index-BoV5htv9.js +11 -0
- package/dist/{index-swminiXb.js → index-Bt6TkADL.js} +1 -1
- package/dist/{index-AOFxMmyX.js → index-K6B-Odyq.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/map-chart-user-NYROZ-6g.js +1 -0
- package/dist/wang-editor-exnzt_I1.js +1 -0
- package/dist/{xlsx-util-jYyM8alm.js → xlsx-util-fuTLwrKA.js} +1 -1
- package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +3 -1
- package/es/common/control-navigation/provider/index.mjs +1 -1
- package/es/common/control-navigation/provider/map-navigation.provider.d.ts +8 -2
- package/es/common/control-navigation/provider/map-navigation.provider.mjs +20 -1
- package/es/common/map-chart-user/map-chart-user.css +1 -1
- package/es/common/map-chart-user/map-chart-user.d.ts +11 -1
- package/es/common/map-chart-user/map-chart-user.mjs +82 -6
- package/es/common/map-chart-user/map-chart-user.util.d.ts +2 -0
- package/es/common/map-chart-user/map-chart-user.util.mjs +54 -3
- package/es/common/map-chart-user/map-user-manager.d.ts +2 -0
- package/es/common/map-chart-user/map-user-manager.mjs +46 -10
- package/es/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +30 -43
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.d.ts +6 -2
- package/es/control/calendar/components/calendar-daily/use-calendar-daily.mjs +37 -4
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +1 -0
- package/es/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +30 -45
- package/es/control/calendar/components/calendar-week/use-calendar-week.d.ts +6 -2
- package/es/control/calendar/components/calendar-week/use-calendar-week.mjs +37 -4
- package/es/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/es/control/calendar/components/util/index.mjs +1 -1
- package/es/control/calendar/components/util/util.d.ts +30 -2
- package/es/control/calendar/components/util/util.mjs +32 -2
- package/es/control/chart/chart.mjs +1 -0
- package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +5 -0
- package/es/control/drtab/drtab.controller.mjs +19 -0
- package/es/control/drtab/flow-drtab.css +1 -1
- package/es/control/drtab/flow-drtab.mjs +18 -5
- package/es/control/exp-bar/render-util.mjs +1 -12
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +8 -4
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +2 -1
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +4 -2
- package/es/control/gantt/gantt.mjs +130 -5
- package/es/control/gantt/index.d.ts +4 -2
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.mjs +11 -2
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.d.ts +1 -1
- package/es/control/grid/grid-column/grid-field-column/attachment-column/file-util.mjs +39 -24
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/es/control/grid/virtualized-table/index.d.ts +1 -1
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +1 -1
- package/es/control/kanban/index.d.ts +1 -1
- package/es/control/kanban/kanban.d.ts +1 -1
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/map/map.mjs +1 -1
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +5 -5
- package/es/control/tree/tree.mjs +5 -13
- package/es/control/tree-grid/index.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.d.ts +7 -1
- package/es/control/tree-grid/tree-grid.mjs +62 -55
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.mjs +3 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +32 -28
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +2 -75
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +24 -12
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +17 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +4 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +29 -7
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +3 -0
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +36 -5
- package/es/editor/upload/use/use-iview-upload.d.ts +0 -1
- package/es/editor/upload/use/use-iview-upload.mjs +50 -25
- package/es/index.mjs +1 -0
- package/es/locale/en/index.d.ts +9 -0
- package/es/locale/en/index.mjs +4 -0
- package/es/locale/zh-CN/index.d.ts +9 -0
- package/es/locale/zh-CN/index.mjs +4 -0
- package/es/panel-component/app-extend-menu/bottom-side-menu/bottom-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/left-side-menu/left-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/right-side-menu/right-side-menu.d.ts +1 -1
- package/es/panel-component/app-extend-menu/top-side-menu/top-side-menu.d.ts +1 -1
- package/es/panel-component/app-switch/app-switch.controller.mjs +4 -1
- package/es/panel-component/app-switch/app-switch.d.ts +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.controller.d.ts +31 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.controller.mjs +51 -0
- package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.d.ts +7 -4
- package/es/panel-component/auth-userinfo/auth-userinfo.mjs +20 -5
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.d.ts +2 -1
- package/es/panel-component/auth-userinfo/auth-userinfo.provider.mjs +2 -2
- package/es/panel-component/auth-userinfo/index.d.ts +4 -3
- package/es/panel-component/global-search/global-search.controller.d.ts +10 -3
- package/es/panel-component/global-search/global-search.controller.mjs +39 -18
- package/es/panel-component/global-search/global-search.d.ts +3 -1
- package/es/panel-component/global-search/global-search.mjs +8 -1
- package/es/panel-component/global-search/index.d.ts +1 -0
- package/es/panel-component/index-blank-placeholder/index-blank-placeholder.controller.mjs +0 -2
- package/es/panel-component/nav-breadcrumb/index.d.ts +1 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.d.ts +8 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +64 -18
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.d.ts +3 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.mjs +14 -3
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +5 -6
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.d.ts +8 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.state.mjs +6 -0
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.d.ts +26 -1
- package/es/panel-component/nav-breadcrumb/nav-breadcrumb.util.mjs +50 -6
- package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +5 -2
- package/es/panel-component/panel-app-title/panel-app-title.d.ts +1 -0
- package/es/panel-component/panel-app-title/panel-app-title.mjs +6 -0
- package/es/panel-component/panel-index-view-search/index.d.ts +4 -3
- package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.d.ts +31 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.controller.mjs +51 -0
- package/es/panel-component/panel-index-view-search/panel-index-view-search.d.ts +8 -5
- package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +17 -3
- package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.d.ts +2 -1
- package/es/panel-component/panel-index-view-search/panel-index-view-search.provider.mjs +2 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.mjs +2 -2
- package/es/panel-component/user-action/user-action.d.ts +1 -1
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +3 -1
- package/es/panel-component/view-msg-pos/view-msg-pos.d.ts +2 -1
- package/es/util/app-modal/app-modal-component.css +1 -1
- package/es/util/app-modal/app-modal-component.d.ts +6 -1
- package/es/util/app-modal/app-modal-component.mjs +45 -4
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/util/icon/icon.d.ts +3 -0
- package/es/util/icon/icon.mjs +25 -0
- package/es/util/index.d.ts +1 -0
- package/es/util/index.mjs +1 -0
- package/es/view-engine/calendar-exp-view.engine.d.ts +6 -7
- package/es/view-engine/calendar-exp-view.engine.mjs +6 -24
- package/es/view-engine/edit-view.engine.d.ts +11 -0
- package/es/view-engine/edit-view.engine.mjs +12 -0
- package/es/view-engine/login-view.engine.d.ts +11 -1
- package/es/view-engine/login-view.engine.mjs +9 -5
- package/es/view-engine/mpickup-view-engine.d.ts +8 -1
- package/es/view-engine/mpickup-view-engine.mjs +14 -8
- package/es/view-engine/pickup-view.engine.d.ts +8 -1
- package/es/view-engine/pickup-view.engine.mjs +15 -0
- package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +3 -1
- package/lib/common/control-navigation/provider/index.cjs +1 -1
- package/lib/common/control-navigation/provider/map-navigation.provider.cjs +20 -1
- package/lib/common/map-chart-user/map-chart-user.cjs +81 -5
- package/lib/common/map-chart-user/map-chart-user.css +1 -1
- package/lib/common/map-chart-user/map-chart-user.util.cjs +54 -3
- package/lib/common/map-chart-user/map-user-manager.cjs +46 -10
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +29 -42
- package/lib/control/calendar/components/calendar-daily/calendar-daily.css +1 -1
- package/lib/control/calendar/components/calendar-daily/use-calendar-daily.cjs +35 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +1 -0
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +29 -44
- package/lib/control/calendar/components/calendar-week/calendar-week.css +1 -1
- package/lib/control/calendar/components/calendar-week/use-calendar-week.cjs +35 -2
- package/lib/control/calendar/components/custom-calendar/custom-calendar.css +1 -1
- package/lib/control/calendar/components/util/index.cjs +4 -0
- package/lib/control/calendar/components/util/util.cjs +34 -0
- package/lib/control/chart/chart.cjs +1 -0
- package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +19 -0
- package/lib/control/drtab/flow-drtab.cjs +17 -4
- package/lib/control/drtab/flow-drtab.css +1 -1
- package/lib/control/exp-bar/render-util.cjs +1 -12
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +7 -3
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
- package/lib/control/gantt/gantt.cjs +129 -4
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/attachment-column.cjs +11 -2
- package/lib/control/grid/grid-column/grid-field-column/attachment-column/file-util.cjs +39 -24
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.css +1 -1
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/map/map.cjs +1 -1
- package/lib/control/tree/tree.cjs +5 -13
- package/lib/control/tree-grid/tree-grid.cjs +62 -55
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-edit-column/all-edit.cjs +3 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-ua-column/tree-grid-ex-ua-column.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +32 -28
- package/lib/control/tree-grid-ex/tree-grid-ex.css +1 -1
- package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +24 -12
- package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +17 -1
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +4 -2
- package/lib/editor/html/wang-editor/wang-editor.cjs +29 -7
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +36 -5
- package/lib/editor/upload/use/use-iview-upload.cjs +50 -25
- package/lib/index.cjs +3 -0
- package/lib/locale/en/index.cjs +4 -0
- package/lib/locale/zh-CN/index.cjs +4 -0
- package/lib/panel-component/app-switch/app-switch.controller.cjs +4 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.cjs +20 -5
- package/lib/panel-component/auth-userinfo/auth-userinfo.controller.cjs +53 -0
- package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
- package/lib/panel-component/auth-userinfo/auth-userinfo.provider.cjs +2 -2
- package/lib/panel-component/global-search/global-search.cjs +8 -1
- package/lib/panel-component/global-search/global-search.controller.cjs +39 -18
- package/lib/panel-component/index-blank-placeholder/index-blank-placeholder.controller.cjs +0 -2
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.cjs +14 -3
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +63 -17
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.css +1 -1
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +4 -5
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.state.cjs +6 -0
- package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.util.cjs +52 -5
- package/lib/panel-component/panel-app-title/panel-app-title.cjs +6 -0
- package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +5 -2
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +16 -2
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.controller.cjs +53 -0
- package/lib/panel-component/panel-index-view-search/panel-index-view-search.provider.cjs +2 -2
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.cjs +2 -2
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +3 -1
- package/lib/util/app-modal/app-modal-component.cjs +43 -2
- package/lib/util/app-modal/app-modal-component.css +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/util/icon/icon.cjs +28 -0
- package/lib/util/index.cjs +3 -0
- package/lib/view-engine/calendar-exp-view.engine.cjs +6 -24
- package/lib/view-engine/edit-view.engine.cjs +12 -0
- package/lib/view-engine/login-view.engine.cjs +9 -5
- package/lib/view-engine/mpickup-view-engine.cjs +14 -8
- package/lib/view-engine/pickup-view.engine.cjs +15 -0
- package/package.json +6 -6
- package/dist/chart-8QfxarWf.js +0 -1
- package/dist/ibiz-markdown-editor-0VHzFa2l.js +0 -1
- package/dist/index-t1aZ8OJE.js +0 -11
- package/dist/map-chart-user-xOSZGbF2.js +0 -1
- package/dist/wang-editor-Y8puaTx2.js +0 -1
- package/es/editor/upload/use/use-ibiz-upload.d.ts +0 -95
- package/es/editor/upload/use/use-ibiz-upload.mjs +0 -170
- package/lib/editor/upload/use/use-ibiz-upload.cjs +0 -175
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.17_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ExpViewEngine } from './exp-view.engine.mjs';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
-
class CalendarExpViewEngine extends
|
|
4
|
+
class CalendarExpViewEngine extends ExpViewEngine {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
6
|
+
* @description 导航栏部件名称
|
|
8
7
|
* @readonly
|
|
8
|
+
* @type {string}
|
|
9
9
|
* @memberof CalendarExpViewEngine
|
|
10
10
|
*/
|
|
11
|
-
get
|
|
12
|
-
return
|
|
13
|
-
"calendarexpbar"
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
async onCreated() {
|
|
17
|
-
await super.onCreated();
|
|
18
|
-
const { childNames } = this.view;
|
|
19
|
-
childNames.push("calendarexpbar");
|
|
20
|
-
if (!this.view.slotProps.calendarexpbar) {
|
|
21
|
-
this.view.slotProps.calendarexpbar = {};
|
|
22
|
-
}
|
|
23
|
-
this.view.slotProps.calendarexpbar.srfnav = this.view.state.srfnav;
|
|
24
|
-
}
|
|
25
|
-
async onMounted() {
|
|
26
|
-
await super.onMounted();
|
|
27
|
-
const { model } = this.view;
|
|
28
|
-
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
29
|
-
this.calendarExpBar.load();
|
|
30
|
-
}
|
|
11
|
+
get expBarName() {
|
|
12
|
+
return "calendarexpbar";
|
|
31
13
|
}
|
|
32
14
|
}
|
|
33
15
|
|
|
@@ -56,6 +56,17 @@ export declare class EditViewEngine extends DEMainViewEngine {
|
|
|
56
56
|
* @memberof EditViewEngine
|
|
57
57
|
*/
|
|
58
58
|
saveAndNew(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @description 取消变更
|
|
61
|
+
* @param {({
|
|
62
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
63
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
64
|
+
* @returns {*} {Promise<void>}
|
|
65
|
+
* @memberof EditViewEngine
|
|
66
|
+
*/
|
|
67
|
+
cancelChanges(_args?: {
|
|
68
|
+
targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
69
|
+
}): Promise<void>;
|
|
59
70
|
/**
|
|
60
71
|
* 工作流启动
|
|
61
72
|
*
|
|
@@ -261,6 +261,18 @@ class EditViewEngine extends DEMainViewEngine {
|
|
|
261
261
|
this.view.context[calcDeCodeNameById(this.view.model.appDataEntityId)] = void 0;
|
|
262
262
|
await this.form.load();
|
|
263
263
|
}
|
|
264
|
+
/**
|
|
265
|
+
* @description 取消变更
|
|
266
|
+
* @param {({
|
|
267
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
268
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
269
|
+
* @returns {*} {Promise<void>}
|
|
270
|
+
* @memberof EditViewEngine
|
|
271
|
+
*/
|
|
272
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
273
|
+
await super.cancelChanges(_args);
|
|
274
|
+
await this.form.cancelChanges(_args.targetState);
|
|
275
|
+
}
|
|
264
276
|
/**
|
|
265
277
|
* 工作流启动
|
|
266
278
|
*
|
|
@@ -37,6 +37,16 @@ export declare class LoginViewEngine extends ViewEngineBase {
|
|
|
37
37
|
onDestroyed(): Promise<void>;
|
|
38
38
|
call(key: keyof IApiLoginViewCall, args?: IData): Promise<IData | null | undefined>;
|
|
39
39
|
login(args: IData): Promise<void>;
|
|
40
|
-
|
|
40
|
+
/**
|
|
41
|
+
* @description 取消变更
|
|
42
|
+
* @param {({
|
|
43
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
44
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
45
|
+
* @returns {*} {Promise<void>}
|
|
46
|
+
* @memberof LoginViewEngine
|
|
47
|
+
*/
|
|
48
|
+
cancelChanges(_args?: {
|
|
49
|
+
targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
50
|
+
}): Promise<void>;
|
|
41
51
|
private enterKeyListener;
|
|
42
52
|
}
|
|
@@ -66,10 +66,6 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
66
66
|
await this.login(args);
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
|
-
if (key === SysUIActionTag.CANCEL_CHANGES) {
|
|
70
|
-
await this.cancelChanges();
|
|
71
|
-
return null;
|
|
72
|
-
}
|
|
73
69
|
return super.call(key, args);
|
|
74
70
|
}
|
|
75
71
|
async login(args) {
|
|
@@ -119,7 +115,15 @@ class LoginViewEngine extends ViewEngineBase {
|
|
|
119
115
|
}
|
|
120
116
|
}
|
|
121
117
|
}
|
|
122
|
-
|
|
118
|
+
/**
|
|
119
|
+
* @description 取消变更
|
|
120
|
+
* @param {({
|
|
121
|
+
* targetState: 'INIT' | 'UNDO' | 'REDO';
|
|
122
|
+
* })} [_args={ targetState: 'INIT' }] 目标状态,初始化状态|撤销上一步操作|重做下一步操作
|
|
123
|
+
* @returns {*} {Promise<void>}
|
|
124
|
+
* @memberof LoginViewEngine
|
|
125
|
+
*/
|
|
126
|
+
async cancelChanges(_args = { targetState: "INIT" }) {
|
|
123
127
|
if (this.view.layoutPanel) {
|
|
124
128
|
Object.keys(this.view.layoutPanel.panelItems).forEach((key) => {
|
|
125
129
|
const controller = this.view.layoutPanel.panelItems[key];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewController, IMPickupViewState, IMPickupViewEvent,
|
|
1
|
+
import { ViewController, IListController, IMPickupViewState, IMPickupViewEvent, IApiMPickupViewCall } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEPickupView } from '@ibiz/model-core';
|
|
3
3
|
import { PickupViewEngine } from './pickup-view.engine';
|
|
4
4
|
/**
|
|
@@ -109,6 +109,13 @@ export declare class MPickupViewEngine extends PickupViewEngine {
|
|
|
109
109
|
* @memberof MPickupViewEngine
|
|
110
110
|
*/
|
|
111
111
|
protected removeSelection(): void;
|
|
112
|
+
/**
|
|
113
|
+
* @description 设置选中数据
|
|
114
|
+
* @protected
|
|
115
|
+
* @param {IData[]} items
|
|
116
|
+
* @memberof MPickupViewEngine
|
|
117
|
+
*/
|
|
118
|
+
protected setSelectedData(items: IData[]): void;
|
|
112
119
|
/**
|
|
113
120
|
* 提交
|
|
114
121
|
*
|
|
@@ -33,10 +33,6 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
33
33
|
}
|
|
34
34
|
const { childNames } = this.view;
|
|
35
35
|
childNames.push("simplelist");
|
|
36
|
-
if (this.view.params.selecteddata) {
|
|
37
|
-
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
38
|
-
delete this.view.params.selecteddata;
|
|
39
|
-
}
|
|
40
36
|
if (!this.view.slotProps.simplelist) {
|
|
41
37
|
this.view.slotProps.simplelist = {};
|
|
42
38
|
}
|
|
@@ -61,7 +57,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
61
57
|
this.simpleList.evt.on("onActive", (event) => {
|
|
62
58
|
this.simpleListActive(event.data);
|
|
63
59
|
});
|
|
64
|
-
this.
|
|
60
|
+
this.setSelectedData(this.selectData);
|
|
65
61
|
}
|
|
66
62
|
async call(key, args) {
|
|
67
63
|
if (key === SysUIActionTag.CANCEL) {
|
|
@@ -117,7 +113,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
117
113
|
items.splice(index, 1);
|
|
118
114
|
}
|
|
119
115
|
});
|
|
120
|
-
this.
|
|
116
|
+
this.setSelectedData(items);
|
|
121
117
|
}
|
|
122
118
|
/**
|
|
123
119
|
* 添加选中
|
|
@@ -142,7 +138,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
142
138
|
const allData = this.simpleList.getAllData();
|
|
143
139
|
const items = [...allData, ...data];
|
|
144
140
|
const uniqueItems = this.handleUniqueItems(items);
|
|
145
|
-
this.
|
|
141
|
+
this.setSelectedData(uniqueItems);
|
|
146
142
|
}
|
|
147
143
|
/**
|
|
148
144
|
* 去重数组
|
|
@@ -178,7 +174,7 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
178
174
|
* @memberof MPickupViewEngine
|
|
179
175
|
*/
|
|
180
176
|
removeAll() {
|
|
181
|
-
this.
|
|
177
|
+
this.setSelectedData([]);
|
|
182
178
|
}
|
|
183
179
|
/**
|
|
184
180
|
* 删除选中
|
|
@@ -198,6 +194,16 @@ class MPickupViewEngine extends PickupViewEngine {
|
|
|
198
194
|
items.splice(index, 1);
|
|
199
195
|
}
|
|
200
196
|
});
|
|
197
|
+
this.setSelectedData(items);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* @description 设置选中数据
|
|
201
|
+
* @protected
|
|
202
|
+
* @param {IData[]} items
|
|
203
|
+
* @memberof MPickupViewEngine
|
|
204
|
+
*/
|
|
205
|
+
setSelectedData(items) {
|
|
206
|
+
super.setSelectedData(items);
|
|
201
207
|
this.simpleList.setData(items);
|
|
202
208
|
}
|
|
203
209
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewEngineBase, ViewController,
|
|
1
|
+
import { ViewEngineBase, ViewController, IPickupViewState, IPickupViewEvent, IApiPickupViewCall, IPickupViewPanelController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppDEPickupView } from '@ibiz/model-core';
|
|
3
3
|
export declare class PickupViewEngine extends ViewEngineBase {
|
|
4
4
|
/**
|
|
@@ -37,6 +37,13 @@ export declare class PickupViewEngine extends ViewEngineBase {
|
|
|
37
37
|
* @memberof PickupViewEngine
|
|
38
38
|
*/
|
|
39
39
|
onMounted(): Promise<void>;
|
|
40
|
+
/**
|
|
41
|
+
* @description 设置选中数据
|
|
42
|
+
* @protected
|
|
43
|
+
* @param {IData[]} items
|
|
44
|
+
* @memberof PickupViewEngine
|
|
45
|
+
*/
|
|
46
|
+
protected setSelectedData(items: IData[]): void;
|
|
40
47
|
/**
|
|
41
48
|
* 选则面板激活数据
|
|
42
49
|
*
|
|
@@ -39,6 +39,10 @@ class PickupViewEngine extends ViewEngineBase {
|
|
|
39
39
|
await super.onCreated();
|
|
40
40
|
const { childNames } = this.view;
|
|
41
41
|
childNames.push("pickupviewpanel");
|
|
42
|
+
if (this.view.params.selecteddata) {
|
|
43
|
+
this.selectData = JSON.parse(this.view.params.selecteddata);
|
|
44
|
+
delete this.view.params.selecteddata;
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
/**
|
|
44
48
|
* 视图mounted生命周期执行逻辑
|
|
@@ -55,6 +59,17 @@ class PickupViewEngine extends ViewEngineBase {
|
|
|
55
59
|
this.pickupViewPanel.evt.on("onDataActive", (event) => {
|
|
56
60
|
this.pickupViewPanelDataActive(event.data);
|
|
57
61
|
});
|
|
62
|
+
this.setSelectedData(this.selectData);
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @description 设置选中数据
|
|
66
|
+
* @protected
|
|
67
|
+
* @param {IData[]} items
|
|
68
|
+
* @memberof PickupViewEngine
|
|
69
|
+
*/
|
|
70
|
+
setSelectedData(items) {
|
|
71
|
+
this.selectData = items;
|
|
72
|
+
this.pickupViewPanel.setSelectedData(items);
|
|
58
73
|
}
|
|
59
74
|
/**
|
|
60
75
|
* 选则面板激活数据
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var dayjs = require('dayjs');
|
|
3
4
|
var navigationBase_provider = require('./navigation-base.provider.cjs');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
@@ -19,7 +20,8 @@ class CalendarNavigationProvider extends navigationBase_provider.NavgationBasePr
|
|
|
19
20
|
const navData = this.navStack.map((key) => items.find((item) => item.navId === key)).find((item) => item !== void 0) || items[0];
|
|
20
21
|
if (navData) {
|
|
21
22
|
const date = new Date(navData.beginTime);
|
|
22
|
-
|
|
23
|
+
if (dayjs(date).isValid())
|
|
24
|
+
this.controller.setSelectDate(date);
|
|
23
25
|
this.controller.setNavData(navData);
|
|
24
26
|
} else {
|
|
25
27
|
this.navStack = [];
|
|
@@ -10,7 +10,7 @@ function getNavigationProvider(controller) {
|
|
|
10
10
|
const { controlType } = controller.model;
|
|
11
11
|
if (controlType === "CALENDAR")
|
|
12
12
|
return new calendarNavigation_provider.CalendarNavigationProvider(controller);
|
|
13
|
-
if (controlType === "TREEVIEW")
|
|
13
|
+
if (controlType === "TREEVIEW" || controlType === "TREEGRIDEX")
|
|
14
14
|
return new treeNavigation_provider.TreeNavigationProvider(controller);
|
|
15
15
|
if (controlType === "MAP")
|
|
16
16
|
return new mapNavigation_provider.MapNavigationProvider(controller);
|
|
@@ -14,6 +14,19 @@ class MapNavigationProvider extends navigationBase_provider.NavgationBaseProvide
|
|
|
14
14
|
super(...arguments);
|
|
15
15
|
__publicField(this, "keyName", "id");
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @description 导航数据变化
|
|
19
|
+
* @param {IMapEvent['onNavDataChange']['event']} event
|
|
20
|
+
* @memberof MapNavigationProvider
|
|
21
|
+
*/
|
|
22
|
+
onNavDataChange(event) {
|
|
23
|
+
var _a;
|
|
24
|
+
const { navData } = event;
|
|
25
|
+
if (((_a = this.navViewMsg.value) == null ? void 0 : _a.key) !== navData._id) {
|
|
26
|
+
this.navStack.unshift(navData[this.keyName]);
|
|
27
|
+
this.navViewMsg.value = this.getNavViewMsg(navData);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
onNavDataByStack() {
|
|
18
31
|
const { items } = this.controller.state;
|
|
19
32
|
const navData = this.navStack.map((key) => items.find((item) => item._id === key)).find((item) => item !== void 0) || items[0];
|
|
@@ -25,15 +38,21 @@ class MapNavigationProvider extends navigationBase_provider.NavgationBaseProvide
|
|
|
25
38
|
}
|
|
26
39
|
}
|
|
27
40
|
getNavViewMsg(item) {
|
|
41
|
+
var _a;
|
|
28
42
|
const { sysMapItems } = this.model;
|
|
43
|
+
const { areaCode, areaLevel } = item;
|
|
29
44
|
const itemModel = sysMapItems == null ? void 0 : sysMapItems.find((_item) => _item.id === item._mapItemId);
|
|
30
45
|
if (itemModel) {
|
|
31
46
|
const { context, params } = this.prepareParams(
|
|
32
47
|
itemModel,
|
|
33
|
-
item._deData,
|
|
48
|
+
{ ...item._deData, areaCode, areaLevel },
|
|
34
49
|
this.controller.context,
|
|
35
50
|
this.controller.params
|
|
36
51
|
);
|
|
52
|
+
if ((_a = itemModel.itemStyle) == null ? void 0 : _a.startsWith("REGION")) {
|
|
53
|
+
params.srfareacode = areaCode;
|
|
54
|
+
params.srfarealevel = areaLevel;
|
|
55
|
+
}
|
|
37
56
|
return {
|
|
38
57
|
params,
|
|
39
58
|
context,
|
|
@@ -6,6 +6,8 @@ var vue = require('vue');
|
|
|
6
6
|
var ramda = require('ramda');
|
|
7
7
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
8
8
|
var runtime = require('@ibiz-template/runtime');
|
|
9
|
+
var core = require('@ibiz-template/core');
|
|
10
|
+
var lodashEs = require('lodash-es');
|
|
9
11
|
var mapChartUser_util = require('./map-chart-user.util.cjs');
|
|
10
12
|
var mapUserManager = require('./map-user-manager.cjs');
|
|
11
13
|
require('./map-chart-user.css');
|
|
@@ -33,6 +35,8 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
35
|
const ns = vue3Util.useNamespace("map-chart-user");
|
|
34
36
|
const c = props.controller;
|
|
35
37
|
let option = mapChartUser_util.defaultOpts;
|
|
38
|
+
const mapRef = vue.ref();
|
|
39
|
+
const isFull = vue.ref(false);
|
|
36
40
|
if (c.controlParams.defaultopts) {
|
|
37
41
|
const data = JSON.parse(c.controlParams.defaultopts);
|
|
38
42
|
option = ramda.mergeDeepLeft(data, option);
|
|
@@ -42,9 +46,12 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
42
46
|
return ramda.isNil(z) ? x : z;
|
|
43
47
|
}, option, props.options);
|
|
44
48
|
});
|
|
49
|
+
let cleanup = core.NOOP;
|
|
45
50
|
const {
|
|
46
51
|
chartRef,
|
|
47
52
|
historyNames,
|
|
53
|
+
processing,
|
|
54
|
+
areaLevelMap,
|
|
48
55
|
changeMap,
|
|
49
56
|
getCityInfo,
|
|
50
57
|
goBack
|
|
@@ -58,13 +65,21 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
65
|
...mapChartUser_util.getPointStaticOption(options.value),
|
|
59
66
|
...mapChartUser_util.getPointOption(pointData, areaData)
|
|
60
67
|
};
|
|
68
|
+
const {
|
|
69
|
+
top,
|
|
70
|
+
bottom
|
|
71
|
+
} = options.value;
|
|
61
72
|
const areaOption = {
|
|
73
|
+
top,
|
|
74
|
+
bottom,
|
|
62
75
|
...mapChartUser_util.getAreaStaticOption(options.value),
|
|
63
76
|
...mapChartUser_util.getAreaOption(mapName, pointData, areaData, cityInfo)
|
|
64
77
|
};
|
|
65
78
|
const result = {
|
|
66
79
|
geo: {
|
|
67
|
-
map: mapName
|
|
80
|
+
map: mapName,
|
|
81
|
+
top,
|
|
82
|
+
bottom
|
|
68
83
|
},
|
|
69
84
|
tooltip,
|
|
70
85
|
visualMap,
|
|
@@ -82,24 +97,85 @@ const IBizMapChartUser = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
97
|
const areaCode = c.state.strAreaCode ? "".concat(name) : Number(name);
|
|
83
98
|
c.state.areaCode = areaCode;
|
|
84
99
|
changeMap(name, areaCode, true);
|
|
100
|
+
c.evt.on("onDrillDown", async (args) => {
|
|
101
|
+
if (!processing.value) {
|
|
102
|
+
const {
|
|
103
|
+
data
|
|
104
|
+
} = args;
|
|
105
|
+
const code = data.areaCode;
|
|
106
|
+
const curAreaCode = c.state.strAreaCode ? "".concat(code) : Number(code);
|
|
107
|
+
const areaLevel = areaLevelMap.get(lodashEs.toNumber(curAreaCode)) || "";
|
|
108
|
+
c.state.areaCode = curAreaCode;
|
|
109
|
+
c.state.areaLevel = areaLevel;
|
|
110
|
+
await changeMap(code, code);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
c.evt.on("onBackClick", () => {
|
|
114
|
+
if (!processing.value) {
|
|
115
|
+
goBack();
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
cleanup = core.listenJSEvent(window, "resize", () => {
|
|
119
|
+
if (isFull.value) {
|
|
120
|
+
isFull.value = ibiz.fullscreenUtil.isFullScreen;
|
|
121
|
+
}
|
|
122
|
+
});
|
|
85
123
|
});
|
|
124
|
+
vue.onBeforeUnmount(() => {
|
|
125
|
+
if (cleanup !== core.NOOP) {
|
|
126
|
+
cleanup();
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const onBack = async () => {
|
|
130
|
+
processing.value = true;
|
|
131
|
+
await c.evt.emit("onBackClick", void 0);
|
|
132
|
+
goBack();
|
|
133
|
+
processing.value = false;
|
|
134
|
+
};
|
|
135
|
+
const toggleFullScreen = () => {
|
|
136
|
+
if (mapRef.value) {
|
|
137
|
+
if (isFull.value) {
|
|
138
|
+
ibiz.fullscreenUtil.closeElementFullscreen();
|
|
139
|
+
} else {
|
|
140
|
+
ibiz.fullscreenUtil.openElementFullscreen(mapRef.value);
|
|
141
|
+
}
|
|
142
|
+
isFull.value = !isFull.value;
|
|
143
|
+
}
|
|
144
|
+
};
|
|
86
145
|
return {
|
|
87
146
|
ns,
|
|
147
|
+
c,
|
|
148
|
+
mapRef,
|
|
88
149
|
chartRef,
|
|
89
150
|
historyNames,
|
|
90
|
-
|
|
151
|
+
isFull,
|
|
152
|
+
onBack,
|
|
153
|
+
toggleFullScreen
|
|
91
154
|
};
|
|
92
155
|
},
|
|
93
156
|
render() {
|
|
157
|
+
const {
|
|
158
|
+
enabledFullScreen
|
|
159
|
+
} = this.c.state;
|
|
94
160
|
return vue.createVNode("div", {
|
|
95
|
-
"class": this.ns.b()
|
|
96
|
-
|
|
161
|
+
"class": this.ns.b(),
|
|
162
|
+
"ref": "mapRef"
|
|
163
|
+
}, [enabledFullScreen ? vue.createVNode(vue.resolveComponent("el-button"), {
|
|
164
|
+
"type": "info",
|
|
165
|
+
"class": this.ns.e("fullscreen"),
|
|
166
|
+
"onClick": this.toggleFullScreen,
|
|
167
|
+
"title": this.isFull ? ibiz.i18n.t("app.cancelFullscreen") : ibiz.i18n.t("app.fullscreen")
|
|
168
|
+
}, {
|
|
169
|
+
default: () => [vue.createVNode("ion-icon", {
|
|
170
|
+
"name": this.isFull ? "contract-outline" : "expand-outline"
|
|
171
|
+
}, null)]
|
|
172
|
+
}) : null, vue.createVNode("div", {
|
|
97
173
|
"class": this.ns.e("chart"),
|
|
98
174
|
"ref": "chartRef"
|
|
99
175
|
}, null), this.historyNames.length > 1 && vue.createVNode("div", {
|
|
100
176
|
"class": this.ns.e("goback"),
|
|
101
177
|
"onClick": () => {
|
|
102
|
-
this.
|
|
178
|
+
this.onBack();
|
|
103
179
|
}
|
|
104
180
|
}, [ibiz.i18n.t("app.return")])]);
|
|
105
181
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:100px;height:100px;font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-link);text-decoration:underline;letter-spacing:6px;cursor:pointer}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-
|
|
1
|
+
.ibiz-map-chart-user{position:relative;min-width:300px;min-height:300px}.ibiz-map-chart-user__chart{width:100%;height:100%}.ibiz-map-chart-user__goback{position:absolute;top:60px;right:0;width:100px;height:100px;font-size:var(--ibiz-font-size-header-4);color:var(--ibiz-color-link);text-decoration:underline;letter-spacing:6px;cursor:pointer}.ibiz-map-chart-user__fullscreen{position:absolute;top:var(--ibiz-spacing-tight);right:var(--ibiz-spacing-tight);z-index:9}.ibiz-map-chart-user__popper{padding:var(--ibiz-spacing-tight)}
|
|
@@ -38,7 +38,30 @@ const defaultOpts = {
|
|
|
38
38
|
/** 地图json数据基础路径 */
|
|
39
39
|
jsonBaseUrl: "".concat(ibiz.env.assetsUrl, "/json/map"),
|
|
40
40
|
/** 默认打开的区域编码 */
|
|
41
|
-
defaultAreaCode: 1e5
|
|
41
|
+
defaultAreaCode: 1e5,
|
|
42
|
+
// 距离底部距离
|
|
43
|
+
bottom: 20,
|
|
44
|
+
// 距离顶部距离
|
|
45
|
+
top: 20
|
|
46
|
+
};
|
|
47
|
+
const getItemStyle = (item) => {
|
|
48
|
+
const itemStyle = [];
|
|
49
|
+
if (item._color) {
|
|
50
|
+
itemStyle.push("color:".concat(item._color));
|
|
51
|
+
}
|
|
52
|
+
if (item._bgcolor) {
|
|
53
|
+
itemStyle.push("background:".concat(item._bgcolor));
|
|
54
|
+
}
|
|
55
|
+
if (item._borderColor) {
|
|
56
|
+
itemStyle.push("border-color:".concat(item._borderColor));
|
|
57
|
+
}
|
|
58
|
+
if (item._borderWidth) {
|
|
59
|
+
itemStyle.push("border-width:".concat(item._borderWidth, "px"));
|
|
60
|
+
}
|
|
61
|
+
if (item._borderWidth && item._borderColor) {
|
|
62
|
+
itemStyle.push("border-style:solid");
|
|
63
|
+
}
|
|
64
|
+
return itemStyle.join(";");
|
|
42
65
|
};
|
|
43
66
|
const findData = (id, type, pointData = [], areaData = []) => {
|
|
44
67
|
if (type === "area") {
|
|
@@ -100,7 +123,21 @@ const getPointOption = (pointData, areaData) => {
|
|
|
100
123
|
return;
|
|
101
124
|
}
|
|
102
125
|
const find = findData(params.data._id, "point", pointData, areaData);
|
|
103
|
-
|
|
126
|
+
if (!find) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
const { _deData: data } = find;
|
|
130
|
+
let text = data.srfmajortext;
|
|
131
|
+
if (find._value) {
|
|
132
|
+
text = "".concat(data.srfmajortext, ": ").concat(find._value);
|
|
133
|
+
}
|
|
134
|
+
if (find._tooltip) {
|
|
135
|
+
text = find._tooltip;
|
|
136
|
+
}
|
|
137
|
+
const style = getItemStyle(find);
|
|
138
|
+
return '<div style="'.concat(style, '" class="').concat(find._className, " ").concat(ns.e(
|
|
139
|
+
"popper"
|
|
140
|
+
), '">').concat(text, "</div>");
|
|
104
141
|
},
|
|
105
142
|
padding: 0
|
|
106
143
|
};
|
|
@@ -159,7 +196,21 @@ const getAreaOption = (mapName, pointData, areaData, cityInfo = []) => {
|
|
|
159
196
|
return;
|
|
160
197
|
}
|
|
161
198
|
const find = findData(params.data._id, "area", pointData, areaData);
|
|
162
|
-
|
|
199
|
+
if (!find || !find._tooltip && !find._value) {
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
const { _deData: data } = find;
|
|
203
|
+
let text = data.srfmajortext;
|
|
204
|
+
if (find._value) {
|
|
205
|
+
text = "".concat(data.srfmajortext, ": ").concat(find._value);
|
|
206
|
+
}
|
|
207
|
+
if (find._tooltip) {
|
|
208
|
+
text = find._tooltip;
|
|
209
|
+
}
|
|
210
|
+
const style = getItemStyle(find);
|
|
211
|
+
return '<div style="'.concat(style, '" class="').concat(find._className, " ").concat(ns.e(
|
|
212
|
+
"popper"
|
|
213
|
+
), '">').concat(text, "</div>");
|
|
163
214
|
},
|
|
164
215
|
padding: 0
|
|
165
216
|
};
|