@das-fed/ui 1.1.4 → 6.3.0-beta.0
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/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +13 -7
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +441 -241
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +116 -101
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +55 -45
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
|
@@ -0,0 +1,3914 @@
|
|
|
1
|
+
import { reactive, defineComponent, computed, openBlock, createElementBlock, withDirectives, createVNode, Fragment, createElementVNode, toDisplayString, createCommentVNode, renderList, createTextVNode, pushScopeId, popScopeId, ref, onMounted, createBlock, withCtx, normalizeClass, withModifiers, h, watch, nextTick, resolveDirective, normalizeStyle, watchEffect, onBeforeUnmount, Transition, createApp } from 'vue';
|
|
2
|
+
import { i18n } from '@das-fed/web';
|
|
3
|
+
import { vScrollbar, DasEmpty, vDasTooltip, DasButton, DasSpin, DasTimeLine, DasTimelineItem, DasCollaspePanel, DasCollaspe, DasIcon, DasImageViewer, DasTabs, DasFormRef, DasMessage, DasForm, DasFormItem, DasInput, DasSelect, DasSelectList, DasTooltip, DasSearch, DasTable, DasTableColumn, DasDialog, DasBaiduMapRef, DasGaodeMapRef, DasGaodeMap, DasBaiduMap } from '@das-fed/ui';
|
|
4
|
+
import { getProjectInfo, getUserInfo } from '@das-fed/utils/common-info/index';
|
|
5
|
+
import { getConfig } from '@das-fed/utils/config';
|
|
6
|
+
import { createService, enterpriseright } from '@das-fed/utils/api-services';
|
|
7
|
+
import { withInstall } from '@das-fed/utils';
|
|
8
|
+
import { useRoute } from 'vue-router';
|
|
9
|
+
import { SizeWatcher } from '@das-fed/utils/size-watcher';
|
|
10
|
+
import { getPageAuthBtn } from '@das-fed/utils/common-info';
|
|
11
|
+
import VueDragResize from 'vue-drag-resize/src/index.js';
|
|
12
|
+
|
|
13
|
+
const useI18n = () => {
|
|
14
|
+
return (message) => {
|
|
15
|
+
return i18n(message).value;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const deviceData = reactive({
|
|
20
|
+
projectId: getProjectInfo().id,
|
|
21
|
+
// 项目id
|
|
22
|
+
userId: "",
|
|
23
|
+
userName: "",
|
|
24
|
+
paneldrag: null,
|
|
25
|
+
//VueDragResize元素dom
|
|
26
|
+
urgentEventTypeCode: null
|
|
27
|
+
//应急事件类型编码
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
31
|
+
__name: "PlanInfo",
|
|
32
|
+
props: {
|
|
33
|
+
content: { type: null, required: true }
|
|
34
|
+
},
|
|
35
|
+
setup(__props, { expose: __expose }) {
|
|
36
|
+
__expose();
|
|
37
|
+
const i18n = useI18n();
|
|
38
|
+
const config = getConfig();
|
|
39
|
+
const props = __props;
|
|
40
|
+
const data = computed(() => props.content);
|
|
41
|
+
const handleUrl = (str) => {
|
|
42
|
+
return config.baseURL + "/oss/" + str;
|
|
43
|
+
};
|
|
44
|
+
const __returned__ = { i18n, config, props, data, handleUrl, get vScrollbar() {
|
|
45
|
+
return vScrollbar;
|
|
46
|
+
}, get DasEmpty() {
|
|
47
|
+
return DasEmpty;
|
|
48
|
+
}, get vDasTooltip() {
|
|
49
|
+
return vDasTooltip;
|
|
50
|
+
} };
|
|
51
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
52
|
+
return __returned__;
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
var img$2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKgAAACoCAYAAAB0S6W0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIg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GyrS0GhgvolSFjaTEdxggpReW+tw+R8OooT1Hd6yTmHyfmEFCeo79q7QfaelOIE9R1/GiZ3Q5VKUYIuWd7kfk/Uo1OUoL43fWD8mZ6iBPUdf6KcTXrKEtSze8fyZnrKErT2XEFCBE1OMYIKIZAgZUhBgvr9qM45rL8zoBhBa88EyaHmEguKEdR7BQnTSywoR1DP8ScSJB6UI6hvBo8ungXFCOpdvQ4RlAVFCCqE8BYUGTwPihCUyE9OdO98KEJQ3wSJcLyYDX8BI4H8Z0VS13AAAAAASUVORK5CYII=";
|
|
59
|
+
|
|
60
|
+
var _export_sfc = (sfc, props) => {
|
|
61
|
+
const target = sfc.__vccOpts || sfc;
|
|
62
|
+
for (const [key, val] of props) {
|
|
63
|
+
target[key] = val;
|
|
64
|
+
}
|
|
65
|
+
return target;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const _withScopeId$2 = (n) => (pushScopeId("data-v-d549c767"), n = n(), popScopeId(), n);
|
|
69
|
+
const _hoisted_1$d = { class: "urgent-plan-info-container" };
|
|
70
|
+
const _hoisted_2$d = { class: "urgent-plan-info" };
|
|
71
|
+
const _hoisted_3$c = {
|
|
72
|
+
key: 0,
|
|
73
|
+
class: "empty-block"
|
|
74
|
+
};
|
|
75
|
+
const _hoisted_4$a = { class: "plan-title" };
|
|
76
|
+
const _hoisted_5$9 = ["innerHTML"];
|
|
77
|
+
const _hoisted_6$7 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
|
|
78
|
+
"div",
|
|
79
|
+
{ class: "useless-line" },
|
|
80
|
+
null,
|
|
81
|
+
-1
|
|
82
|
+
/* HOISTED */
|
|
83
|
+
));
|
|
84
|
+
const _hoisted_7$6 = { class: "plan-title" };
|
|
85
|
+
const _hoisted_8$6 = { class: "urgent-user-list" };
|
|
86
|
+
const _hoisted_9$5 = { class: "avatar" };
|
|
87
|
+
const _hoisted_10$4 = ["src"];
|
|
88
|
+
const _hoisted_11$3 = {
|
|
89
|
+
key: 1,
|
|
90
|
+
src: img$2
|
|
91
|
+
};
|
|
92
|
+
const _hoisted_12$3 = { class: "user-info" };
|
|
93
|
+
const _hoisted_13$3 = { class: "name" };
|
|
94
|
+
const _hoisted_14$2 = { class: "tel" };
|
|
95
|
+
const _hoisted_15$2 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode(
|
|
96
|
+
"div",
|
|
97
|
+
{ class: "useless-line" },
|
|
98
|
+
null,
|
|
99
|
+
-1
|
|
100
|
+
/* HOISTED */
|
|
101
|
+
));
|
|
102
|
+
const _hoisted_16$1 = { class: "plan-title" };
|
|
103
|
+
const _hoisted_17$1 = { class: "urgent-supplies-list" };
|
|
104
|
+
const _hoisted_18$1 = { class: "avatar" };
|
|
105
|
+
const _hoisted_19$1 = ["src"];
|
|
106
|
+
const _hoisted_20$1 = {
|
|
107
|
+
key: 1,
|
|
108
|
+
src: img$1
|
|
109
|
+
};
|
|
110
|
+
const _hoisted_21$1 = { class: "supplies-info" };
|
|
111
|
+
const _hoisted_22$1 = { class: "name" };
|
|
112
|
+
const _hoisted_23$1 = { class: "tel" };
|
|
113
|
+
function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
114
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
115
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$d, [
|
|
116
|
+
!$setup.data ? (openBlock(), createElementBlock("div", _hoisted_3$c, [
|
|
117
|
+
createVNode($setup["DasEmpty"])
|
|
118
|
+
])) : (openBlock(), createElementBlock(
|
|
119
|
+
Fragment,
|
|
120
|
+
{ key: 1 },
|
|
121
|
+
[
|
|
122
|
+
createElementVNode(
|
|
123
|
+
"div",
|
|
124
|
+
_hoisted_4$a,
|
|
125
|
+
toDisplayString($setup.i18n("\u5904\u7F6E\u65B9\u6848")),
|
|
126
|
+
1
|
|
127
|
+
/* TEXT */
|
|
128
|
+
),
|
|
129
|
+
$setup.data?.html ? (openBlock(), createElementBlock("div", {
|
|
130
|
+
key: 0,
|
|
131
|
+
class: "handle-plan-content",
|
|
132
|
+
innerHTML: $setup.data?.html
|
|
133
|
+
}, null, 8, _hoisted_5$9)) : createCommentVNode("v-if", true),
|
|
134
|
+
$setup.data?.userList?.length > 0 ? (openBlock(), createElementBlock(
|
|
135
|
+
Fragment,
|
|
136
|
+
{ key: 1 },
|
|
137
|
+
[
|
|
138
|
+
_hoisted_6$7,
|
|
139
|
+
createElementVNode(
|
|
140
|
+
"div",
|
|
141
|
+
_hoisted_7$6,
|
|
142
|
+
toDisplayString($setup.i18n("\u5E94\u6025\u4EBA\u5458")),
|
|
143
|
+
1
|
|
144
|
+
/* TEXT */
|
|
145
|
+
),
|
|
146
|
+
createElementVNode("div", _hoisted_8$6, [
|
|
147
|
+
(openBlock(true), createElementBlock(
|
|
148
|
+
Fragment,
|
|
149
|
+
null,
|
|
150
|
+
renderList($setup.data?.userList, (item, index) => {
|
|
151
|
+
return openBlock(), createElementBlock("div", {
|
|
152
|
+
class: "urgent-user",
|
|
153
|
+
key: index
|
|
154
|
+
}, [
|
|
155
|
+
createElementVNode("span", _hoisted_9$5, [
|
|
156
|
+
item.headPicture ? (openBlock(), createElementBlock("img", {
|
|
157
|
+
key: 0,
|
|
158
|
+
src: $setup.handleUrl(item.headPicture)
|
|
159
|
+
}, null, 8, _hoisted_10$4)) : (openBlock(), createElementBlock("img", _hoisted_11$3))
|
|
160
|
+
]),
|
|
161
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
162
|
+
createElementVNode(
|
|
163
|
+
"span",
|
|
164
|
+
_hoisted_13$3,
|
|
165
|
+
toDisplayString(item.name),
|
|
166
|
+
1
|
|
167
|
+
/* TEXT */
|
|
168
|
+
),
|
|
169
|
+
createElementVNode(
|
|
170
|
+
"span",
|
|
171
|
+
_hoisted_14$2,
|
|
172
|
+
toDisplayString(item.phone),
|
|
173
|
+
1
|
|
174
|
+
/* TEXT */
|
|
175
|
+
)
|
|
176
|
+
])
|
|
177
|
+
]);
|
|
178
|
+
}),
|
|
179
|
+
128
|
|
180
|
+
/* KEYED_FRAGMENT */
|
|
181
|
+
))
|
|
182
|
+
])
|
|
183
|
+
],
|
|
184
|
+
64
|
|
185
|
+
/* STABLE_FRAGMENT */
|
|
186
|
+
)) : createCommentVNode("v-if", true),
|
|
187
|
+
$setup.data?.supplyList?.length > 0 ? (openBlock(), createElementBlock(
|
|
188
|
+
Fragment,
|
|
189
|
+
{ key: 2 },
|
|
190
|
+
[
|
|
191
|
+
_hoisted_15$2,
|
|
192
|
+
createElementVNode(
|
|
193
|
+
"div",
|
|
194
|
+
_hoisted_16$1,
|
|
195
|
+
toDisplayString($setup.i18n("\u5E94\u6025\u7269\u8D44")),
|
|
196
|
+
1
|
|
197
|
+
/* TEXT */
|
|
198
|
+
),
|
|
199
|
+
createElementVNode("div", _hoisted_17$1, [
|
|
200
|
+
(openBlock(true), createElementBlock(
|
|
201
|
+
Fragment,
|
|
202
|
+
null,
|
|
203
|
+
renderList($setup.data?.supplyList, (item, index) => {
|
|
204
|
+
return openBlock(), createElementBlock("div", {
|
|
205
|
+
class: "urgent-supplies",
|
|
206
|
+
key: index
|
|
207
|
+
}, [
|
|
208
|
+
createElementVNode("span", _hoisted_18$1, [
|
|
209
|
+
item.avatar ? (openBlock(), createElementBlock("img", {
|
|
210
|
+
key: 0,
|
|
211
|
+
src: $setup.handleUrl(item.avatar)
|
|
212
|
+
}, null, 8, _hoisted_19$1)) : (openBlock(), createElementBlock("img", _hoisted_20$1))
|
|
213
|
+
]),
|
|
214
|
+
createElementVNode("div", _hoisted_21$1, [
|
|
215
|
+
createElementVNode(
|
|
216
|
+
"span",
|
|
217
|
+
_hoisted_22$1,
|
|
218
|
+
toDisplayString(item.supplyName),
|
|
219
|
+
1
|
|
220
|
+
/* TEXT */
|
|
221
|
+
),
|
|
222
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_23$1, [
|
|
223
|
+
createTextVNode(
|
|
224
|
+
toDisplayString(item.locationName),
|
|
225
|
+
1
|
|
226
|
+
/* TEXT */
|
|
227
|
+
)
|
|
228
|
+
])), [
|
|
229
|
+
[$setup["vDasTooltip"]]
|
|
230
|
+
])
|
|
231
|
+
])
|
|
232
|
+
]);
|
|
233
|
+
}),
|
|
234
|
+
128
|
|
235
|
+
/* KEYED_FRAGMENT */
|
|
236
|
+
))
|
|
237
|
+
])
|
|
238
|
+
],
|
|
239
|
+
64
|
|
240
|
+
/* STABLE_FRAGMENT */
|
|
241
|
+
)) : createCommentVNode("v-if", true)
|
|
242
|
+
],
|
|
243
|
+
64
|
|
244
|
+
/* STABLE_FRAGMENT */
|
|
245
|
+
))
|
|
246
|
+
])), [
|
|
247
|
+
[$setup["vScrollbar"]]
|
|
248
|
+
])
|
|
249
|
+
]);
|
|
250
|
+
}
|
|
251
|
+
var PlanInfo = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-d549c767"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/PlanInfo.vue"]]);
|
|
252
|
+
|
|
253
|
+
const version$2 = "v1";
|
|
254
|
+
const apiBase = `/api/emergency/manage/${version$2}`;
|
|
255
|
+
const service$1 = createService(`${apiBase}`);
|
|
256
|
+
const enterpriserightQueryportalmenu = enterpriseright.get("/permissionset/user-portal-menu");
|
|
257
|
+
const getEventList = service$1.get("/emergency-event/event/type");
|
|
258
|
+
const getLevelList = service$1.get("/emergency-event/event/level");
|
|
259
|
+
const getUrgentPanel = service$1.get("/emergency-event/engine/plan-list");
|
|
260
|
+
const getUrgentEventList = service$1.get("/emergency-event/engine/event-list");
|
|
261
|
+
const getLeader = service$1.get("/emergency-event/event/group/leader");
|
|
262
|
+
const getMember = service$1.get("/emergency-event/event/group/member");
|
|
263
|
+
const getUrgentEventInfo = service$1.get("/emergency-event/engine/event");
|
|
264
|
+
const releaseUrgentDrill = service$1.post("/emergency-event/event");
|
|
265
|
+
|
|
266
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
267
|
+
|
|
268
|
+
function getDefaultExportFromCjs (x) {
|
|
269
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
var dayjs_min = {exports: {}};
|
|
273
|
+
|
|
274
|
+
(function (module, exports) {
|
|
275
|
+
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p="$isDayjsObject",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0;}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return b},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f="set"+(this.$u?"UTC":""),l=(n={},n[a]=f+"Date",n[d]=f+"Date",n[c]=f+"Month",n[h]=f+"FullYear",n[u]=f+"Hours",n[s]=f+"Minutes",n[i]=f+"Seconds",n[r]=f+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,"0")},$=f||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return b.s(e.$y,4,"0");case"M":return a+1;case"MM":return b.s(a+1,2,"0");case"MMM":return h(n.monthsShort,a,c,3);case"MMMM":return h(c,a);case"D":return e.$D;case"DD":return b.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return h(n.weekdaysMin,e.$W,o,2);case"ddd":return h(n.weekdaysShort,e.$W,o,3);case"dddd":return o[e.$W];case"H":return String(s);case"HH":return b.s(s,2,"0");case"h":return d(1);case"hh":return d(2);case"a":return $(s,u,!0);case"A":return $(s,u,!1);case"m":return String(u);case"mm":return b.s(u,2,"0");case"s":return String(e.$s);case"ss":return b.s(e.$s,2,"0");case"SSS":return b.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g;}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",c],["$y",h],["$D",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));
|
|
276
|
+
} (dayjs_min));
|
|
277
|
+
|
|
278
|
+
var dayjs_minExports = dayjs_min.exports;
|
|
279
|
+
var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
280
|
+
|
|
281
|
+
const statusNameList = ["", "\u5F85\u6838\u5B9E", "\u5F85\u5904\u7406", "\u5904\u7406\u4E2D", "\u5F85\u5F52\u6863", "\u5DF2\u5F52\u6863", "\u5DF2\u89E3\u9664", "\u5DF2\u64A4\u56DE", "\u8D85\u65F6\u672A\u5904\u7406"];
|
|
282
|
+
const levelNameList = ["", "\u4E00\u7EA7", "\u4E8C\u7EA7", "\u4E09\u7EA7", "\u56DB\u7EA7"];
|
|
283
|
+
const isEmpty = (value) => {
|
|
284
|
+
if (value === null || typeof value === "undefined" || value === "") {
|
|
285
|
+
return true;
|
|
286
|
+
} else {
|
|
287
|
+
return false;
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
const timestampConverDate = (timestamp, format = "YYYY/MM/DD HH:mm:ss") => {
|
|
291
|
+
return !isEmpty(timestamp) ? isNaN(timestamp) ? timestamp : dayjs(Number(timestamp)).format(format) : "";
|
|
292
|
+
};
|
|
293
|
+
const getTimeStamp = (val, isUnix = false) => {
|
|
294
|
+
return val ? (isUnix ? dayjs(val).unix() : dayjs(dayjs(val).utc().format())).valueOf() : "";
|
|
295
|
+
};
|
|
296
|
+
const handleContent = (data) => {
|
|
297
|
+
return {
|
|
298
|
+
html: data?.handleProgramme || "",
|
|
299
|
+
// userList: (data?.groupLeaderList || []).concat(data?.groupMemberList || []),
|
|
300
|
+
userList: data?.userVOList || [],
|
|
301
|
+
supplyList: data?.supplyList?.map((e) => {
|
|
302
|
+
return {
|
|
303
|
+
...e,
|
|
304
|
+
locationName: e.location ? JSON.parse(e.location)?.preciseLocation : "",
|
|
305
|
+
avatar: e.imgUrlList?.length > 0 ? e.imgUrlList[0] : null
|
|
306
|
+
};
|
|
307
|
+
})
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
var _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
312
|
+
__name: "EventList",
|
|
313
|
+
emits: ["routerTo"],
|
|
314
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
315
|
+
__expose();
|
|
316
|
+
const i18n = useI18n();
|
|
317
|
+
const emits = __emit;
|
|
318
|
+
let listLoading = ref(false);
|
|
319
|
+
let infoVisible = ref(false);
|
|
320
|
+
onMounted(() => {
|
|
321
|
+
getData();
|
|
322
|
+
});
|
|
323
|
+
let listData = ref([]);
|
|
324
|
+
const {
|
|
325
|
+
error: eventlistError,
|
|
326
|
+
data: eventlistData,
|
|
327
|
+
loading: eventlistLoading,
|
|
328
|
+
run: geteventlist
|
|
329
|
+
} = getUrgentEventList();
|
|
330
|
+
const getData = async () => {
|
|
331
|
+
await geteventlist({ eventTypeCode: deviceData?.urgentEventTypeCode });
|
|
332
|
+
if (eventlistError.value) {
|
|
333
|
+
console.log("\u51FA\u9519\u4E86");
|
|
334
|
+
listData.value = [];
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
listData.value = eventlistData.value?.voList?.map((e) => {
|
|
338
|
+
return {
|
|
339
|
+
...e,
|
|
340
|
+
statusName: statusNameList[e.eventStatus] || "",
|
|
341
|
+
eventLevelName: levelNameList[e.eventLevel] || "",
|
|
342
|
+
eventStatus: e.eventStatus + "",
|
|
343
|
+
creationTimeStr: timestampConverDate(e.creationTime, "YYYY/MM/DD HH:mm")
|
|
344
|
+
};
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
const toDetail = (item) => {
|
|
348
|
+
emits("routerTo", "eventInfo", item);
|
|
349
|
+
infoVisible.value = true;
|
|
350
|
+
};
|
|
351
|
+
const testData = [
|
|
352
|
+
{
|
|
353
|
+
id: "1232351649985040384",
|
|
354
|
+
eventCategory: "1",
|
|
355
|
+
eventTitle: "\u5F3A\u53F0\u98CE\u7EA2\u8272\u9884\u8B66",
|
|
356
|
+
eventCode: "11045662212233",
|
|
357
|
+
eventStatus: 1,
|
|
358
|
+
eventLevel: 1,
|
|
359
|
+
eventTypeName: "\u4E8B\u4EF6\u7C7B\u578B1",
|
|
360
|
+
creationTime: 1713857095544
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
id: "1232347026826039296",
|
|
364
|
+
eventCategory: "2",
|
|
365
|
+
eventTitle: "\u5F3A\u53F03\u98CE\u7EA2\u8272\u9884\u8B66",
|
|
366
|
+
eventCode: "1945662212233",
|
|
367
|
+
eventStatus: 2,
|
|
368
|
+
eventLevel: 2,
|
|
369
|
+
eventTypeName: "\u54C8\u54C8\u54C8\u54C82\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
370
|
+
creationTime: 1713856027310
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
id: "1232343225696096256",
|
|
374
|
+
eventCategory: "2",
|
|
375
|
+
eventTitle: "\u5F3A\u53F04\u98CE\u7EA2\u8272\u9884\u8B66",
|
|
376
|
+
eventCode: "18345662212233",
|
|
377
|
+
eventStatus: 3,
|
|
378
|
+
eventLevel: 3,
|
|
379
|
+
eventTypeName: "\u54C8\u54C8\u54C82\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
380
|
+
creationTime: 1713857095544
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
id: "2224",
|
|
384
|
+
eventCategory: "2",
|
|
385
|
+
eventTitle: "\u5F3A\u53F0\u98CE6\u7EA2\u8272\u9884\u8B66",
|
|
386
|
+
eventCode: "1123345662212233",
|
|
387
|
+
eventStatus: 4,
|
|
388
|
+
eventLevel: 4,
|
|
389
|
+
eventTypeName: "\u54C82\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
390
|
+
creationTime: 1713857095544
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
id: "2225",
|
|
394
|
+
eventCategory: "2",
|
|
395
|
+
eventTitle: "\u5F3A\u53F07\u98CE\u7EA2\u8272\u9884\u8B66",
|
|
396
|
+
eventCode: "1123345662212233",
|
|
397
|
+
eventStatus: 5,
|
|
398
|
+
eventLevel: 1,
|
|
399
|
+
eventTypeName: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C82\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
400
|
+
creationTime: 1713857095544
|
|
401
|
+
}
|
|
402
|
+
];
|
|
403
|
+
const __returned__ = { i18n, emits, get listLoading() {
|
|
404
|
+
return listLoading;
|
|
405
|
+
}, set listLoading(v) {
|
|
406
|
+
listLoading = v;
|
|
407
|
+
}, get infoVisible() {
|
|
408
|
+
return infoVisible;
|
|
409
|
+
}, set infoVisible(v) {
|
|
410
|
+
infoVisible = v;
|
|
411
|
+
}, get listData() {
|
|
412
|
+
return listData;
|
|
413
|
+
}, set listData(v) {
|
|
414
|
+
listData = v;
|
|
415
|
+
}, eventlistError, eventlistData, eventlistLoading, geteventlist, getData, toDetail, testData, get DasButton() {
|
|
416
|
+
return DasButton;
|
|
417
|
+
}, get vScrollbar() {
|
|
418
|
+
return vScrollbar;
|
|
419
|
+
}, get DasSpin() {
|
|
420
|
+
return DasSpin;
|
|
421
|
+
}, get DasEmpty() {
|
|
422
|
+
return DasEmpty;
|
|
423
|
+
}, get vDasTooltip() {
|
|
424
|
+
return vDasTooltip;
|
|
425
|
+
} };
|
|
426
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
427
|
+
return __returned__;
|
|
428
|
+
}
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
const _hoisted_1$c = { class: "urgent-panel-event-record-container" };
|
|
432
|
+
const _hoisted_2$c = {
|
|
433
|
+
key: 0,
|
|
434
|
+
class: "content-container-scroll"
|
|
435
|
+
};
|
|
436
|
+
const _hoisted_3$b = { class: "content-container-content" };
|
|
437
|
+
const _hoisted_4$9 = { class: "title-line" };
|
|
438
|
+
const _hoisted_5$8 = { class: "title" };
|
|
439
|
+
const _hoisted_6$6 = { class: "name-line" };
|
|
440
|
+
const _hoisted_7$5 = { class: "second-line" };
|
|
441
|
+
const _hoisted_8$5 = { class: "time-line" };
|
|
442
|
+
const _hoisted_9$4 = { class: "time" };
|
|
443
|
+
const _hoisted_10$3 = {
|
|
444
|
+
key: 1,
|
|
445
|
+
class: "empty-block"
|
|
446
|
+
};
|
|
447
|
+
function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
448
|
+
return openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
449
|
+
!$setup.infoVisible ? (openBlock(), createBlock($setup["DasSpin"], {
|
|
450
|
+
key: 0,
|
|
451
|
+
full: "",
|
|
452
|
+
spinning: $setup.listLoading
|
|
453
|
+
}, {
|
|
454
|
+
default: withCtx(() => [
|
|
455
|
+
$setup.listData && $setup.listData.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
|
|
456
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
457
|
+
createElementVNode("div", null, [
|
|
458
|
+
(openBlock(true), createElementBlock(
|
|
459
|
+
Fragment,
|
|
460
|
+
null,
|
|
461
|
+
renderList($setup.listData, (item, index) => {
|
|
462
|
+
return openBlock(), createElementBlock("div", {
|
|
463
|
+
class: "list-item",
|
|
464
|
+
key: index
|
|
465
|
+
}, [
|
|
466
|
+
createElementVNode("div", _hoisted_4$9, [
|
|
467
|
+
createElementVNode(
|
|
468
|
+
"span",
|
|
469
|
+
{
|
|
470
|
+
class: normalizeClass(["type", { urgent: item.eventCategory == "1" }])
|
|
471
|
+
},
|
|
472
|
+
toDisplayString(item.eventCategory == "1" ? $setup.i18n("\u5E94\u6025\u4E8B\u4EF6") : $setup.i18n("\u6F14\u7EC3\u4E8B\u4EF6")),
|
|
473
|
+
3
|
|
474
|
+
/* TEXT, CLASS */
|
|
475
|
+
),
|
|
476
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_5$8, [
|
|
477
|
+
createTextVNode(
|
|
478
|
+
toDisplayString(item.eventCode || "-"),
|
|
479
|
+
1
|
|
480
|
+
/* TEXT */
|
|
481
|
+
)
|
|
482
|
+
])), [
|
|
483
|
+
[$setup["vDasTooltip"]]
|
|
484
|
+
]),
|
|
485
|
+
createElementVNode(
|
|
486
|
+
"span",
|
|
487
|
+
{
|
|
488
|
+
class: normalizeClass([
|
|
489
|
+
"status-span",
|
|
490
|
+
{ red: ["1", "2", "4"].includes(item.eventStatus) },
|
|
491
|
+
{ green: ["3"].includes(item.eventStatus) },
|
|
492
|
+
{ blue: ["5", "6", "7", "8"].includes(item.eventStatus) }
|
|
493
|
+
])
|
|
494
|
+
},
|
|
495
|
+
toDisplayString(item.statusName),
|
|
496
|
+
3
|
|
497
|
+
/* TEXT, CLASS */
|
|
498
|
+
)
|
|
499
|
+
]),
|
|
500
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_6$6, [
|
|
501
|
+
createTextVNode(
|
|
502
|
+
toDisplayString(item.eventTitle || "-"),
|
|
503
|
+
1
|
|
504
|
+
/* TEXT */
|
|
505
|
+
)
|
|
506
|
+
])), [
|
|
507
|
+
[$setup["vDasTooltip"]]
|
|
508
|
+
]),
|
|
509
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_7$5, [
|
|
510
|
+
createTextVNode(
|
|
511
|
+
toDisplayString(item.eventLevelName ? `[${item.eventLevelName}] ` : "") + toDisplayString(item.eventTypeName || "-"),
|
|
512
|
+
1
|
|
513
|
+
/* TEXT */
|
|
514
|
+
)
|
|
515
|
+
])), [
|
|
516
|
+
[$setup["vDasTooltip"]]
|
|
517
|
+
]),
|
|
518
|
+
createElementVNode("div", _hoisted_8$5, [
|
|
519
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_9$4, [
|
|
520
|
+
createTextVNode(
|
|
521
|
+
toDisplayString(item.creationTimeStr),
|
|
522
|
+
1
|
|
523
|
+
/* TEXT */
|
|
524
|
+
)
|
|
525
|
+
])), [
|
|
526
|
+
[$setup["vDasTooltip"]]
|
|
527
|
+
]),
|
|
528
|
+
createVNode($setup["DasButton"], {
|
|
529
|
+
btnType: "primary-text",
|
|
530
|
+
block: "",
|
|
531
|
+
onClick: withModifiers(($event) => $setup.toDetail(item), ["stop"])
|
|
532
|
+
}, {
|
|
533
|
+
default: withCtx(() => [
|
|
534
|
+
createTextVNode(
|
|
535
|
+
toDisplayString($setup.i18n("\u8BE6\u60C5")),
|
|
536
|
+
1
|
|
537
|
+
/* TEXT */
|
|
538
|
+
)
|
|
539
|
+
]),
|
|
540
|
+
_: 2
|
|
541
|
+
/* DYNAMIC */
|
|
542
|
+
}, 1032, ["onClick"])
|
|
543
|
+
])
|
|
544
|
+
]);
|
|
545
|
+
}),
|
|
546
|
+
128
|
|
547
|
+
/* KEYED_FRAGMENT */
|
|
548
|
+
))
|
|
549
|
+
])
|
|
550
|
+
])), [
|
|
551
|
+
[$setup["vScrollbar"]]
|
|
552
|
+
])
|
|
553
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
554
|
+
!$setup.listLoading ? (openBlock(), createBlock($setup["DasEmpty"], { key: 0 })) : createCommentVNode("v-if", true)
|
|
555
|
+
]))
|
|
556
|
+
]),
|
|
557
|
+
_: 1
|
|
558
|
+
/* STABLE */
|
|
559
|
+
}, 8, ["spinning"])) : createCommentVNode("v-if", true)
|
|
560
|
+
]);
|
|
561
|
+
}
|
|
562
|
+
var EventList = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-f11f247c"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/EventList.vue"]]);
|
|
563
|
+
|
|
564
|
+
var _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
565
|
+
__name: "Track",
|
|
566
|
+
props: {
|
|
567
|
+
activeTab: { type: null, required: true },
|
|
568
|
+
infoData: { type: null, required: true }
|
|
569
|
+
},
|
|
570
|
+
setup(__props, { expose: __expose }) {
|
|
571
|
+
__expose();
|
|
572
|
+
const i18n = useI18n();
|
|
573
|
+
const props = __props;
|
|
574
|
+
const activeTab = computed(() => props.activeTab.value);
|
|
575
|
+
const info = computed(() => props.infoData.value);
|
|
576
|
+
const __returned__ = { i18n, props, activeTab, info, get DasTimeLine() {
|
|
577
|
+
return DasTimeLine;
|
|
578
|
+
}, get DasTimelineItem() {
|
|
579
|
+
return DasTimelineItem;
|
|
580
|
+
}, get DasEmpty() {
|
|
581
|
+
return DasEmpty;
|
|
582
|
+
}, get vScrollbar() {
|
|
583
|
+
return vScrollbar;
|
|
584
|
+
}, get timestampConverDate() {
|
|
585
|
+
return timestampConverDate;
|
|
586
|
+
} };
|
|
587
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
588
|
+
return __returned__;
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
const _hoisted_1$b = { class: "urgent-panel-schedule-track-container" };
|
|
593
|
+
const _hoisted_2$b = { class: "urgent-panel-schedule-track" };
|
|
594
|
+
const _hoisted_3$a = {
|
|
595
|
+
key: 0,
|
|
596
|
+
class: "plan-title"
|
|
597
|
+
};
|
|
598
|
+
const _hoisted_4$8 = { class: "line-node" };
|
|
599
|
+
const _hoisted_5$7 = {
|
|
600
|
+
key: 0,
|
|
601
|
+
class: "time"
|
|
602
|
+
};
|
|
603
|
+
const _hoisted_6$5 = { class: "status" };
|
|
604
|
+
const _hoisted_7$4 = {
|
|
605
|
+
key: 1,
|
|
606
|
+
class: "content"
|
|
607
|
+
};
|
|
608
|
+
const _hoisted_8$4 = { class: "content" };
|
|
609
|
+
const _hoisted_9$3 = {
|
|
610
|
+
key: 2,
|
|
611
|
+
class: "empty-block"
|
|
612
|
+
};
|
|
613
|
+
function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
614
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
615
|
+
createElementVNode("div", _hoisted_2$b, [
|
|
616
|
+
$setup.info?.trackingList && $setup.info?.trackingList.length > 0 ? (openBlock(), createElementBlock(
|
|
617
|
+
"div",
|
|
618
|
+
_hoisted_3$a,
|
|
619
|
+
toDisplayString($setup.i18n("\u8FDB\u5EA6\u8DDF\u8E2A")),
|
|
620
|
+
1
|
|
621
|
+
/* TEXT */
|
|
622
|
+
)) : createCommentVNode("v-if", true),
|
|
623
|
+
$setup.info?.trackingList && $setup.info?.trackingList.length > 0 ? (openBlock(), createBlock($setup["DasTimeLine"], {
|
|
624
|
+
key: 1,
|
|
625
|
+
layoutType: "right",
|
|
626
|
+
isThrough: ""
|
|
627
|
+
}, {
|
|
628
|
+
default: withCtx(() => [
|
|
629
|
+
(openBlock(true), createElementBlock(
|
|
630
|
+
Fragment,
|
|
631
|
+
null,
|
|
632
|
+
renderList($setup.info?.trackingList, (item, index) => {
|
|
633
|
+
return openBlock(), createBlock($setup["DasTimelineItem"], {
|
|
634
|
+
color: index === 0 ? "#276FF5" : " #1BA854 ",
|
|
635
|
+
key: index
|
|
636
|
+
}, {
|
|
637
|
+
default: withCtx(() => [
|
|
638
|
+
createElementVNode("div", _hoisted_4$8, [
|
|
639
|
+
item.creationTime ? (openBlock(), createElementBlock(
|
|
640
|
+
"div",
|
|
641
|
+
_hoisted_5$7,
|
|
642
|
+
toDisplayString(item.creationTime ? $setup.timestampConverDate(item.creationTime, "YYYY/MM/DD HH:mm") : ""),
|
|
643
|
+
1
|
|
644
|
+
/* TEXT */
|
|
645
|
+
)) : createCommentVNode("v-if", true),
|
|
646
|
+
createElementVNode(
|
|
647
|
+
"div",
|
|
648
|
+
_hoisted_6$5,
|
|
649
|
+
toDisplayString(item.status),
|
|
650
|
+
1
|
|
651
|
+
/* TEXT */
|
|
652
|
+
),
|
|
653
|
+
item.userVO?.name || item.content ? (openBlock(), createElementBlock(
|
|
654
|
+
"div",
|
|
655
|
+
_hoisted_7$4,
|
|
656
|
+
toDisplayString(item.userVO?.name) + toDisplayString(`${item.userVO?.phone ? "(" + item.userVO?.phone + ")" : ""}`) + toDisplayString(item.content),
|
|
657
|
+
1
|
|
658
|
+
/* TEXT */
|
|
659
|
+
)) : createCommentVNode("v-if", true),
|
|
660
|
+
createElementVNode(
|
|
661
|
+
"div",
|
|
662
|
+
_hoisted_8$4,
|
|
663
|
+
toDisplayString(item.content === "\u5DF2\u9A73\u56DE" ? $setup.i18n("\u9A73\u56DE\u539F\u56E0\uFF1A") : "") + toDisplayString(item.rejectReason),
|
|
664
|
+
1
|
|
665
|
+
/* TEXT */
|
|
666
|
+
)
|
|
667
|
+
])
|
|
668
|
+
]),
|
|
669
|
+
_: 2
|
|
670
|
+
/* DYNAMIC */
|
|
671
|
+
}, 1032, ["color"]);
|
|
672
|
+
}),
|
|
673
|
+
128
|
|
674
|
+
/* KEYED_FRAGMENT */
|
|
675
|
+
))
|
|
676
|
+
]),
|
|
677
|
+
_: 1
|
|
678
|
+
/* STABLE */
|
|
679
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
680
|
+
createVNode($setup["DasEmpty"])
|
|
681
|
+
]))
|
|
682
|
+
])
|
|
683
|
+
])), [
|
|
684
|
+
[$setup["vScrollbar"]]
|
|
685
|
+
]);
|
|
686
|
+
}
|
|
687
|
+
var TableSFC$2 = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-67bdcada"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/Track.vue"]]);
|
|
688
|
+
|
|
689
|
+
const useTrack = (options) => {
|
|
690
|
+
const TrackRef = ref(null);
|
|
691
|
+
const { activeTab, infoData } = options;
|
|
692
|
+
const Track = () => {
|
|
693
|
+
return h(TableSFC$2, { ref: TrackRef, activeTab, infoData });
|
|
694
|
+
};
|
|
695
|
+
return {
|
|
696
|
+
Track,
|
|
697
|
+
TrackRef
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
702
|
+
__name: "Feedback",
|
|
703
|
+
props: {
|
|
704
|
+
activeTab: { type: null, required: true },
|
|
705
|
+
infoData: { type: null, required: true }
|
|
706
|
+
},
|
|
707
|
+
setup(__props, { expose: __expose }) {
|
|
708
|
+
__expose();
|
|
709
|
+
const i18n = useI18n();
|
|
710
|
+
const props = __props;
|
|
711
|
+
const activeTab = computed(() => props.activeTab.value);
|
|
712
|
+
const info = computed(() => props.infoData.value);
|
|
713
|
+
const fileStatus = ref("info");
|
|
714
|
+
const activeKey = ref(["0"]);
|
|
715
|
+
const __returned__ = { i18n, props, activeTab, info, fileStatus, activeKey, get DasCollaspePanel() {
|
|
716
|
+
return DasCollaspePanel;
|
|
717
|
+
}, get DasCollaspe() {
|
|
718
|
+
return DasCollaspe;
|
|
719
|
+
}, get DasButton() {
|
|
720
|
+
return DasButton;
|
|
721
|
+
}, get DasIcon() {
|
|
722
|
+
return DasIcon;
|
|
723
|
+
}, get DasImageViewer() {
|
|
724
|
+
return DasImageViewer;
|
|
725
|
+
}, get DasEmpty() {
|
|
726
|
+
return DasEmpty;
|
|
727
|
+
}, get vScrollbar() {
|
|
728
|
+
return vScrollbar;
|
|
729
|
+
} };
|
|
730
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
731
|
+
return __returned__;
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
|
|
735
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-58b02ea1"), n = n(), popScopeId(), n);
|
|
736
|
+
const _hoisted_1$a = { class: "urgent-panel-feedback-container" };
|
|
737
|
+
const _hoisted_2$a = { class: "urgent-panel-feedback" };
|
|
738
|
+
const _hoisted_3$9 = { class: "header" };
|
|
739
|
+
const _hoisted_4$7 = { class: "fold-btn" };
|
|
740
|
+
const _hoisted_5$6 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
741
|
+
"div",
|
|
742
|
+
{ style: { "height": "8px" } },
|
|
743
|
+
null,
|
|
744
|
+
-1
|
|
745
|
+
/* HOISTED */
|
|
746
|
+
));
|
|
747
|
+
const _hoisted_6$4 = { class: "basic-info-wrap" };
|
|
748
|
+
const _hoisted_7$3 = { class: "basic-info-item" };
|
|
749
|
+
const _hoisted_8$3 = { class: "left" };
|
|
750
|
+
const _hoisted_9$2 = { class: "line-content" };
|
|
751
|
+
const _hoisted_10$2 = { class: "basic-info-item" };
|
|
752
|
+
const _hoisted_11$2 = { class: "left" };
|
|
753
|
+
const _hoisted_12$2 = {
|
|
754
|
+
key: 0,
|
|
755
|
+
class: "line-content"
|
|
756
|
+
};
|
|
757
|
+
const _hoisted_13$2 = { key: 1 };
|
|
758
|
+
const _hoisted_14$1 = { class: "basic-info-item" };
|
|
759
|
+
const _hoisted_15$1 = { class: "left" };
|
|
760
|
+
const _hoisted_16 = { class: "line-content" };
|
|
761
|
+
const _hoisted_17 = { class: "basic-info-item" };
|
|
762
|
+
const _hoisted_18 = { class: "left" };
|
|
763
|
+
const _hoisted_19 = { class: "line-content" };
|
|
764
|
+
const _hoisted_20 = { class: "basic-info-item" };
|
|
765
|
+
const _hoisted_21 = { class: "left" };
|
|
766
|
+
const _hoisted_22 = { class: "line-content" };
|
|
767
|
+
const _hoisted_23 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
768
|
+
"div",
|
|
769
|
+
{ style: { "width": "100%", "height": "10px" } },
|
|
770
|
+
null,
|
|
771
|
+
-1
|
|
772
|
+
/* HOISTED */
|
|
773
|
+
));
|
|
774
|
+
const _hoisted_24 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode(
|
|
775
|
+
"div",
|
|
776
|
+
{ class: "useless-line" },
|
|
777
|
+
null,
|
|
778
|
+
-1
|
|
779
|
+
/* HOISTED */
|
|
780
|
+
));
|
|
781
|
+
const _hoisted_25 = {
|
|
782
|
+
key: 1,
|
|
783
|
+
class: "empty-block"
|
|
784
|
+
};
|
|
785
|
+
function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
786
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
787
|
+
createElementVNode("div", _hoisted_2$a, [
|
|
788
|
+
$setup.info?.feedbackList && $setup.info?.feedbackList.length > 0 ? (openBlock(), createBlock($setup["DasCollaspe"], {
|
|
789
|
+
key: 0,
|
|
790
|
+
activeKey: $setup.activeKey,
|
|
791
|
+
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => $setup.activeKey = $event)
|
|
792
|
+
}, {
|
|
793
|
+
default: withCtx(() => [
|
|
794
|
+
(openBlock(true), createElementBlock(
|
|
795
|
+
Fragment,
|
|
796
|
+
null,
|
|
797
|
+
renderList($setup.info.feedbackList, (item, index) => {
|
|
798
|
+
return openBlock(), createBlock(
|
|
799
|
+
$setup["DasCollaspePanel"],
|
|
800
|
+
{
|
|
801
|
+
key: index + ""
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
header: withCtx(() => [
|
|
805
|
+
createElementVNode(
|
|
806
|
+
"div",
|
|
807
|
+
_hoisted_3$9,
|
|
808
|
+
toDisplayString($setup.i18n("\u53CD\u9988\u8BB0\u5F55")) + toDisplayString(index + 1),
|
|
809
|
+
1
|
|
810
|
+
/* TEXT */
|
|
811
|
+
)
|
|
812
|
+
]),
|
|
813
|
+
extra: withCtx(() => [
|
|
814
|
+
createElementVNode("div", _hoisted_4$7, [
|
|
815
|
+
createVNode(
|
|
816
|
+
$setup["DasButton"],
|
|
817
|
+
{
|
|
818
|
+
block: "",
|
|
819
|
+
"btn-type": "primary-text"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
default: withCtx(() => [
|
|
823
|
+
createTextVNode(
|
|
824
|
+
toDisplayString($setup.activeKey && $setup.activeKey.includes(index + "") ? "\u6536\u8D77" : "\u5C55\u5F00"),
|
|
825
|
+
1
|
|
826
|
+
/* TEXT */
|
|
827
|
+
)
|
|
828
|
+
]),
|
|
829
|
+
_: 2
|
|
830
|
+
/* DYNAMIC */
|
|
831
|
+
},
|
|
832
|
+
1024
|
|
833
|
+
/* DYNAMIC_SLOTS */
|
|
834
|
+
),
|
|
835
|
+
$setup.activeKey && $setup.activeKey.includes(index + "") ? (openBlock(), createBlock($setup["DasIcon"], {
|
|
836
|
+
key: 0,
|
|
837
|
+
icon: "unflod",
|
|
838
|
+
size: "small",
|
|
839
|
+
iconColor: "#5582F3"
|
|
840
|
+
})) : (openBlock(), createBlock($setup["DasIcon"], {
|
|
841
|
+
key: 1,
|
|
842
|
+
icon: "fold",
|
|
843
|
+
size: "small",
|
|
844
|
+
iconColor: "#5582F3"
|
|
845
|
+
}))
|
|
846
|
+
])
|
|
847
|
+
]),
|
|
848
|
+
default: withCtx(() => [
|
|
849
|
+
_hoisted_5$6,
|
|
850
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
851
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
852
|
+
createElementVNode(
|
|
853
|
+
"span",
|
|
854
|
+
_hoisted_8$3,
|
|
855
|
+
toDisplayString($setup.i18n("\u5904\u7406\u7ED3\u679C")) + "\uFF1A",
|
|
856
|
+
1
|
|
857
|
+
/* TEXT */
|
|
858
|
+
),
|
|
859
|
+
createElementVNode(
|
|
860
|
+
"span",
|
|
861
|
+
_hoisted_9$2,
|
|
862
|
+
toDisplayString(item.result || "-"),
|
|
863
|
+
1
|
|
864
|
+
/* TEXT */
|
|
865
|
+
)
|
|
866
|
+
]),
|
|
867
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
868
|
+
createElementVNode(
|
|
869
|
+
"span",
|
|
870
|
+
_hoisted_11$2,
|
|
871
|
+
toDisplayString($setup.i18n("\u53CD\u9988\u4EBA")) + "\uFF1A",
|
|
872
|
+
1
|
|
873
|
+
/* TEXT */
|
|
874
|
+
),
|
|
875
|
+
item.userVO?.name || item.userVO?.phone ? (openBlock(), createElementBlock(
|
|
876
|
+
"span",
|
|
877
|
+
_hoisted_12$2,
|
|
878
|
+
toDisplayString(item.userVO?.name || "-") + " (" + toDisplayString(item.userVO?.phone || "-") + ")",
|
|
879
|
+
1
|
|
880
|
+
/* TEXT */
|
|
881
|
+
)) : (openBlock(), createElementBlock("span", _hoisted_13$2, "-"))
|
|
882
|
+
]),
|
|
883
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
884
|
+
createElementVNode(
|
|
885
|
+
"span",
|
|
886
|
+
_hoisted_15$1,
|
|
887
|
+
toDisplayString($setup.i18n("\u53CD\u9988\u65F6\u95F4")) + "\uFF1A",
|
|
888
|
+
1
|
|
889
|
+
/* TEXT */
|
|
890
|
+
),
|
|
891
|
+
createElementVNode(
|
|
892
|
+
"span",
|
|
893
|
+
_hoisted_16,
|
|
894
|
+
toDisplayString(item.creationTimeStr || "-"),
|
|
895
|
+
1
|
|
896
|
+
/* TEXT */
|
|
897
|
+
)
|
|
898
|
+
]),
|
|
899
|
+
createElementVNode("div", _hoisted_17, [
|
|
900
|
+
createElementVNode(
|
|
901
|
+
"span",
|
|
902
|
+
_hoisted_18,
|
|
903
|
+
toDisplayString($setup.i18n("\u5907\u6CE8")) + "\uFF1A",
|
|
904
|
+
1
|
|
905
|
+
/* TEXT */
|
|
906
|
+
),
|
|
907
|
+
createElementVNode(
|
|
908
|
+
"span",
|
|
909
|
+
_hoisted_19,
|
|
910
|
+
toDisplayString(item.description || "-"),
|
|
911
|
+
1
|
|
912
|
+
/* TEXT */
|
|
913
|
+
)
|
|
914
|
+
]),
|
|
915
|
+
createElementVNode("div", _hoisted_20, [
|
|
916
|
+
createElementVNode(
|
|
917
|
+
"span",
|
|
918
|
+
_hoisted_21,
|
|
919
|
+
toDisplayString($setup.i18n("\u56FE\u7247")) + "\uFF1A",
|
|
920
|
+
1
|
|
921
|
+
/* TEXT */
|
|
922
|
+
),
|
|
923
|
+
createElementVNode("span", _hoisted_22, [
|
|
924
|
+
item.attachments && item.attachments.length > 0 ? (openBlock(), createElementBlock(
|
|
925
|
+
Fragment,
|
|
926
|
+
{ key: 0 },
|
|
927
|
+
[
|
|
928
|
+
_hoisted_23,
|
|
929
|
+
createVNode($setup["DasImageViewer"], {
|
|
930
|
+
modelValue: item.attachments,
|
|
931
|
+
"onUpdate:modelValue": ($event) => item.attachments = $event,
|
|
932
|
+
"limit-num": 6,
|
|
933
|
+
needDownloadBtn: false,
|
|
934
|
+
status: $setup.fileStatus,
|
|
935
|
+
"onUpdate:status": _cache[0] || (_cache[0] = ($event) => $setup.fileStatus = $event),
|
|
936
|
+
"service-name": "test",
|
|
937
|
+
"accept-video": "",
|
|
938
|
+
"accept-audio": ""
|
|
939
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "status"]),
|
|
940
|
+
_hoisted_24
|
|
941
|
+
],
|
|
942
|
+
64
|
|
943
|
+
/* STABLE_FRAGMENT */
|
|
944
|
+
)) : createCommentVNode("v-if", true)
|
|
945
|
+
])
|
|
946
|
+
])
|
|
947
|
+
])
|
|
948
|
+
]),
|
|
949
|
+
_: 2
|
|
950
|
+
/* DYNAMIC */
|
|
951
|
+
},
|
|
952
|
+
1024
|
|
953
|
+
/* DYNAMIC_SLOTS */
|
|
954
|
+
);
|
|
955
|
+
}),
|
|
956
|
+
128
|
|
957
|
+
/* KEYED_FRAGMENT */
|
|
958
|
+
))
|
|
959
|
+
]),
|
|
960
|
+
_: 1
|
|
961
|
+
/* STABLE */
|
|
962
|
+
}, 8, ["activeKey"])) : (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
963
|
+
createVNode($setup["DasEmpty"])
|
|
964
|
+
]))
|
|
965
|
+
])
|
|
966
|
+
])), [
|
|
967
|
+
[$setup["vScrollbar"]]
|
|
968
|
+
]);
|
|
969
|
+
}
|
|
970
|
+
var TableSFC$1 = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-58b02ea1"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-feedback-record/Feedback.vue"]]);
|
|
971
|
+
|
|
972
|
+
const useFeedback = (options) => {
|
|
973
|
+
const FeedbackRef = ref(null);
|
|
974
|
+
const { activeTab, infoData } = options;
|
|
975
|
+
const Feedback = () => {
|
|
976
|
+
return h(TableSFC$1, { ref: FeedbackRef, activeTab, infoData });
|
|
977
|
+
};
|
|
978
|
+
return {
|
|
979
|
+
Feedback,
|
|
980
|
+
FeedbackRef
|
|
981
|
+
};
|
|
982
|
+
};
|
|
983
|
+
|
|
984
|
+
var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
985
|
+
__name: "FileRecord",
|
|
986
|
+
props: {
|
|
987
|
+
content: { type: null, required: true }
|
|
988
|
+
},
|
|
989
|
+
setup(__props, { expose: __expose }) {
|
|
990
|
+
__expose();
|
|
991
|
+
const i18n = useI18n();
|
|
992
|
+
const props = __props;
|
|
993
|
+
const info = computed(() => props.content);
|
|
994
|
+
const __returned__ = { i18n, props, info, get vScrollbar() {
|
|
995
|
+
return vScrollbar;
|
|
996
|
+
}, get isEmpty() {
|
|
997
|
+
return isEmpty;
|
|
998
|
+
} };
|
|
999
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1000
|
+
return __returned__;
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
|
|
1004
|
+
const _hoisted_1$9 = { class: "urgent-panel-file-record-container" };
|
|
1005
|
+
const _hoisted_2$9 = { class: "urgent-panel-file-record" };
|
|
1006
|
+
const _hoisted_3$8 = { class: "plan-title" };
|
|
1007
|
+
const _hoisted_4$6 = { class: "basic-info-wrap" };
|
|
1008
|
+
const _hoisted_5$5 = { class: "basic-info-item" };
|
|
1009
|
+
const _hoisted_6$3 = { class: "left" };
|
|
1010
|
+
const _hoisted_7$2 = { class: "line-content" };
|
|
1011
|
+
const _hoisted_8$2 = { class: "basic-info-item" };
|
|
1012
|
+
const _hoisted_9$1 = { class: "left" };
|
|
1013
|
+
const _hoisted_10$1 = { class: "line-content" };
|
|
1014
|
+
const _hoisted_11$1 = { class: "basic-info-item" };
|
|
1015
|
+
const _hoisted_12$1 = { class: "left" };
|
|
1016
|
+
const _hoisted_13$1 = { class: "line-content" };
|
|
1017
|
+
function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1018
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
1019
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
1020
|
+
createElementVNode(
|
|
1021
|
+
"div",
|
|
1022
|
+
_hoisted_3$8,
|
|
1023
|
+
toDisplayString($setup.i18n("\u5F52\u6863\u8BB0\u5F55")),
|
|
1024
|
+
1
|
|
1025
|
+
/* TEXT */
|
|
1026
|
+
),
|
|
1027
|
+
createElementVNode("div", _hoisted_4$6, [
|
|
1028
|
+
createElementVNode("div", _hoisted_5$5, [
|
|
1029
|
+
createElementVNode(
|
|
1030
|
+
"span",
|
|
1031
|
+
_hoisted_6$3,
|
|
1032
|
+
toDisplayString($setup.i18n("\u7ECF\u6D4E\u635F\u5931(\u5143)")) + "\uFF1A",
|
|
1033
|
+
1
|
|
1034
|
+
/* TEXT */
|
|
1035
|
+
),
|
|
1036
|
+
createElementVNode(
|
|
1037
|
+
"span",
|
|
1038
|
+
_hoisted_7$2,
|
|
1039
|
+
toDisplayString($setup.isEmpty($setup.info?.economicLoss) ? "-" : $setup.info?.economicLoss),
|
|
1040
|
+
1
|
|
1041
|
+
/* TEXT */
|
|
1042
|
+
)
|
|
1043
|
+
]),
|
|
1044
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
1045
|
+
createElementVNode(
|
|
1046
|
+
"span",
|
|
1047
|
+
_hoisted_9$1,
|
|
1048
|
+
toDisplayString($setup.i18n("\u4EBA\u5458\u4F24\u4EA1(\u4EBA)")) + "\uFF1A",
|
|
1049
|
+
1
|
|
1050
|
+
/* TEXT */
|
|
1051
|
+
),
|
|
1052
|
+
createElementVNode(
|
|
1053
|
+
"span",
|
|
1054
|
+
_hoisted_10$1,
|
|
1055
|
+
toDisplayString($setup.isEmpty($setup.info?.injuredNumber) ? "-" : $setup.info?.injuredNumber),
|
|
1056
|
+
1
|
|
1057
|
+
/* TEXT */
|
|
1058
|
+
)
|
|
1059
|
+
]),
|
|
1060
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
1061
|
+
createElementVNode(
|
|
1062
|
+
"span",
|
|
1063
|
+
_hoisted_12$1,
|
|
1064
|
+
toDisplayString($setup.i18n("\u5907\u6CE8")) + "\uFF1A",
|
|
1065
|
+
1
|
|
1066
|
+
/* TEXT */
|
|
1067
|
+
),
|
|
1068
|
+
createElementVNode(
|
|
1069
|
+
"span",
|
|
1070
|
+
_hoisted_13$1,
|
|
1071
|
+
toDisplayString($setup.info?.report || "-"),
|
|
1072
|
+
1
|
|
1073
|
+
/* TEXT */
|
|
1074
|
+
)
|
|
1075
|
+
])
|
|
1076
|
+
])
|
|
1077
|
+
])
|
|
1078
|
+
])), [
|
|
1079
|
+
[$setup["vScrollbar"]]
|
|
1080
|
+
]);
|
|
1081
|
+
}
|
|
1082
|
+
var FileRecord = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-8d340185"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/FileRecord.vue"]]);
|
|
1083
|
+
|
|
1084
|
+
var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1085
|
+
__name: "EventInfo",
|
|
1086
|
+
props: {
|
|
1087
|
+
id: { type: null, required: true },
|
|
1088
|
+
tabKey: { type: null, required: true }
|
|
1089
|
+
},
|
|
1090
|
+
emits: ["update:tabKey"],
|
|
1091
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1092
|
+
__expose();
|
|
1093
|
+
const i18n = useI18n();
|
|
1094
|
+
const props = __props;
|
|
1095
|
+
const emits = __emit;
|
|
1096
|
+
let activeTab = ref("1");
|
|
1097
|
+
let infoData = ref(null);
|
|
1098
|
+
const { Track, TrackRef } = useTrack({ activeTab, infoData });
|
|
1099
|
+
const { Feedback, FeedbackRef } = useFeedback({ activeTab, infoData });
|
|
1100
|
+
watch(
|
|
1101
|
+
() => props.id,
|
|
1102
|
+
(newVal, oldVal) => {
|
|
1103
|
+
console.log(props.tabKey, newVal, oldVal, "event-info----");
|
|
1104
|
+
if (!newVal) {
|
|
1105
|
+
infoData.value = null;
|
|
1106
|
+
return;
|
|
1107
|
+
}
|
|
1108
|
+
nextTick(() => {
|
|
1109
|
+
getData();
|
|
1110
|
+
});
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
immediate: true,
|
|
1114
|
+
deep: true
|
|
1115
|
+
}
|
|
1116
|
+
);
|
|
1117
|
+
watch(
|
|
1118
|
+
() => props.tabKey,
|
|
1119
|
+
(newVal, oldVal) => {
|
|
1120
|
+
console.log(newVal, oldVal, "event-info-tab-key----");
|
|
1121
|
+
if (newVal && ["1", "2", "3", "4"].includes(newVal)) {
|
|
1122
|
+
activeTab.value = newVal;
|
|
1123
|
+
}
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
immediate: true,
|
|
1127
|
+
deep: true
|
|
1128
|
+
}
|
|
1129
|
+
);
|
|
1130
|
+
onMounted(() => {
|
|
1131
|
+
emits("update:tabKey", activeTab.value);
|
|
1132
|
+
console.log(props.tabKey, "props.tabKey");
|
|
1133
|
+
});
|
|
1134
|
+
const handleTabClick = (val) => {
|
|
1135
|
+
console.log(val, "handleTabClick");
|
|
1136
|
+
emits("update:tabKey", val);
|
|
1137
|
+
};
|
|
1138
|
+
const {
|
|
1139
|
+
error: eventInfoError,
|
|
1140
|
+
data: eventInfoData,
|
|
1141
|
+
loading: eventInfoLoading,
|
|
1142
|
+
run: geteventInfo
|
|
1143
|
+
} = getUrgentEventInfo();
|
|
1144
|
+
const getData = async () => {
|
|
1145
|
+
await geteventInfo({ id: props.id });
|
|
1146
|
+
if (eventInfoError.value) {
|
|
1147
|
+
infoData.value = null;
|
|
1148
|
+
return;
|
|
1149
|
+
}
|
|
1150
|
+
infoData.value = handleData(eventInfoData.value);
|
|
1151
|
+
};
|
|
1152
|
+
const handleData = (data) => {
|
|
1153
|
+
console.log(data, "handledata");
|
|
1154
|
+
if (!data) return null;
|
|
1155
|
+
return {
|
|
1156
|
+
...data,
|
|
1157
|
+
trackingList: data?.trackingList?.map((e) => {
|
|
1158
|
+
return {
|
|
1159
|
+
...e,
|
|
1160
|
+
statusName: statusNameList[e.status] || "",
|
|
1161
|
+
creationTimeStr: timestampConverDate(e.creationTime, "YYYY/MM/DD HH:mm")
|
|
1162
|
+
};
|
|
1163
|
+
}) || [],
|
|
1164
|
+
feedbackList: data?.feedbackList?.map((e) => {
|
|
1165
|
+
return {
|
|
1166
|
+
...e,
|
|
1167
|
+
creationTimeStr: timestampConverDate(e.creationTime, "YYYY/MM/DD HH:mm"),
|
|
1168
|
+
attachments: e.img ? JSON.parse(e.img) : []
|
|
1169
|
+
};
|
|
1170
|
+
}) || [],
|
|
1171
|
+
content: handleContent(data)
|
|
1172
|
+
};
|
|
1173
|
+
};
|
|
1174
|
+
const options = ref([
|
|
1175
|
+
{
|
|
1176
|
+
key: "1",
|
|
1177
|
+
tab: i18n("\u9884\u6848\u4FE1\u606F")
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
key: "2",
|
|
1181
|
+
tab: i18n("\u8FDB\u5EA6\u8DDF\u8E2A")
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
key: "3",
|
|
1185
|
+
tab: i18n("\u53CD\u9988\u8BB0\u5F55")
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
key: "4",
|
|
1189
|
+
tab: i18n("\u5F52\u6863\u8BB0\u5F55")
|
|
1190
|
+
}
|
|
1191
|
+
]);
|
|
1192
|
+
const testData = {
|
|
1193
|
+
feedbackList: [
|
|
1194
|
+
{
|
|
1195
|
+
result: "\u5DF2\u5904\u7406",
|
|
1196
|
+
reportUserName: "\u5F20\u4E09",
|
|
1197
|
+
phone: "15856666666",
|
|
1198
|
+
content: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
1199
|
+
creationTime: 1713920914617,
|
|
1200
|
+
img: null
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
result: "\u5DF2\u5904\u7406",
|
|
1204
|
+
reportUserName: "\u5F20\u4E09",
|
|
1205
|
+
phone: "15856666666",
|
|
1206
|
+
content: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
1207
|
+
creationTime: 1713920914617,
|
|
1208
|
+
img: null
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
result: "\u5DF2\u5904\u7406",
|
|
1212
|
+
reportUserName: "\u5F20\u4E09",
|
|
1213
|
+
phone: "15856666666",
|
|
1214
|
+
content: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
1215
|
+
creationTime: 1713920914617,
|
|
1216
|
+
img: null
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
result: "\u5DF2\u5904\u7406",
|
|
1220
|
+
reportUserName: "\u5F20\u4E09",
|
|
1221
|
+
phone: "15856666666",
|
|
1222
|
+
content: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8",
|
|
1223
|
+
creationTime: 1713920914617,
|
|
1224
|
+
img: null
|
|
1225
|
+
}
|
|
1226
|
+
],
|
|
1227
|
+
trackingList: [
|
|
1228
|
+
{
|
|
1229
|
+
creationTime: 1700203026936,
|
|
1230
|
+
status: 1,
|
|
1231
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1232
|
+
userName: "\u5F20\u4E09",
|
|
1233
|
+
rejectReason: "\u4E0D\u7EDF\u4E00",
|
|
1234
|
+
phone: 1700203026936,
|
|
1235
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
creationTime: 1700203026936,
|
|
1239
|
+
status: 1,
|
|
1240
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1241
|
+
userName: "\u5F20\u4E09",
|
|
1242
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1243
|
+
phone: 1700203026936,
|
|
1244
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
creationTime: 1700203026936,
|
|
1248
|
+
status: 1,
|
|
1249
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1250
|
+
userName: "\u5F20\u4E09",
|
|
1251
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1252
|
+
phone: 1700203026936,
|
|
1253
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
creationTime: 1700203026936,
|
|
1257
|
+
status: 1,
|
|
1258
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1259
|
+
userName: "\u5F20\u4E09",
|
|
1260
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1261
|
+
phone: 1700203026936,
|
|
1262
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
creationTime: 1700203026936,
|
|
1266
|
+
status: 1,
|
|
1267
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1268
|
+
userName: "\u5F20\u4E09",
|
|
1269
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1270
|
+
phone: 1700203026936,
|
|
1271
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
creationTime: 1700203026936,
|
|
1275
|
+
status: 1,
|
|
1276
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1277
|
+
userName: "\u5F20\u4E09",
|
|
1278
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1279
|
+
phone: 1700203026936,
|
|
1280
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
creationTime: 1700203026936,
|
|
1284
|
+
status: 1,
|
|
1285
|
+
statusName: "\u5904\u7406\u4E2D",
|
|
1286
|
+
userName: "\u5F20\u4E09",
|
|
1287
|
+
rejectReason: "\u5DF2\u9A73\u56DE",
|
|
1288
|
+
phone: 1700203026936,
|
|
1289
|
+
content: "\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D\u5904\u7406\u4E2D"
|
|
1290
|
+
}
|
|
1291
|
+
],
|
|
1292
|
+
archiveRecordVO: {
|
|
1293
|
+
economicLoss: 111,
|
|
1294
|
+
injuredNumber: 0,
|
|
1295
|
+
description: "\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8\u54C8"
|
|
1296
|
+
},
|
|
1297
|
+
userVOList: [
|
|
1298
|
+
{
|
|
1299
|
+
name: "\u5F20\u4E09",
|
|
1300
|
+
phone: "15820987763"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
name: "\u674E\u56DB",
|
|
1304
|
+
phone: "15820987763"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
name: "\u738B\u4E94",
|
|
1308
|
+
phone: "15820987763"
|
|
1309
|
+
}
|
|
1310
|
+
],
|
|
1311
|
+
handleProgramme: "<a>aadaf</a><div>46546</div><div>46546</div><div>46546</div><div>46546</div><div>46546</div><div>46546</div>",
|
|
1312
|
+
supplyList: [
|
|
1313
|
+
{
|
|
1314
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
1315
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
1316
|
+
},
|
|
1317
|
+
{
|
|
1318
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
1319
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
1323
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
1327
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
1328
|
+
}
|
|
1329
|
+
]
|
|
1330
|
+
};
|
|
1331
|
+
const __returned__ = { i18n, props, emits, get activeTab() {
|
|
1332
|
+
return activeTab;
|
|
1333
|
+
}, set activeTab(v) {
|
|
1334
|
+
activeTab = v;
|
|
1335
|
+
}, get infoData() {
|
|
1336
|
+
return infoData;
|
|
1337
|
+
}, set infoData(v) {
|
|
1338
|
+
infoData = v;
|
|
1339
|
+
}, Track, TrackRef, Feedback, FeedbackRef, handleTabClick, eventInfoError, eventInfoData, eventInfoLoading, geteventInfo, getData, handleData, options, testData, get DasTabs() {
|
|
1340
|
+
return DasTabs;
|
|
1341
|
+
}, PlanInfo, FileRecord };
|
|
1342
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1343
|
+
return __returned__;
|
|
1344
|
+
}
|
|
1345
|
+
});
|
|
1346
|
+
|
|
1347
|
+
const _hoisted_1$8 = { class: "urgent-panel-event-info-container" };
|
|
1348
|
+
const _hoisted_2$8 = { class: "nav-tabs-div" };
|
|
1349
|
+
const _hoisted_3$7 = {
|
|
1350
|
+
key: 0,
|
|
1351
|
+
class: "tab-content"
|
|
1352
|
+
};
|
|
1353
|
+
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1354
|
+
const _directive_loading = resolveDirective("loading");
|
|
1355
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
1356
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
1357
|
+
createVNode($setup["DasTabs"], {
|
|
1358
|
+
options: $setup.options,
|
|
1359
|
+
"hide-overflow": true,
|
|
1360
|
+
"tab-width": "25%",
|
|
1361
|
+
activeKey: $setup.activeTab,
|
|
1362
|
+
"onUpdate:activeKey": _cache[0] || (_cache[0] = ($event) => $setup.activeTab = $event),
|
|
1363
|
+
onTabClick: $setup.handleTabClick
|
|
1364
|
+
}, null, 8, ["options", "activeKey"])
|
|
1365
|
+
]),
|
|
1366
|
+
!$setup.eventInfoLoading ? (openBlock(), createElementBlock("div", _hoisted_3$7, [
|
|
1367
|
+
createCommentVNode(" \u9884\u6848\u4FE1\u606F "),
|
|
1368
|
+
$setup.activeTab === "1" ? (openBlock(), createBlock($setup["PlanInfo"], {
|
|
1369
|
+
key: 0,
|
|
1370
|
+
content: $setup.infoData?.content
|
|
1371
|
+
}, null, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
1372
|
+
createCommentVNode(" \u8FDB\u5EA6\u8DDF\u8E2A "),
|
|
1373
|
+
$setup.activeTab === "2" ? (openBlock(), createBlock($setup["Track"], { key: 1 })) : createCommentVNode("v-if", true),
|
|
1374
|
+
createCommentVNode(" \u53CD\u9988\u8BB0\u5F55 "),
|
|
1375
|
+
$setup.activeTab === "3" ? (openBlock(), createBlock($setup["Feedback"], { key: 2 })) : createCommentVNode("v-if", true),
|
|
1376
|
+
createCommentVNode(" \u5F52\u6863\u8BB0\u5F55 "),
|
|
1377
|
+
$setup.activeTab === "4" ? (openBlock(), createBlock($setup["FileRecord"], {
|
|
1378
|
+
key: 3,
|
|
1379
|
+
content: $setup.infoData?.archiveRecordVO
|
|
1380
|
+
}, null, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
1381
|
+
])) : createCommentVNode("v-if", true)
|
|
1382
|
+
])), [
|
|
1383
|
+
[_directive_loading, $setup.eventInfoLoading]
|
|
1384
|
+
]);
|
|
1385
|
+
}
|
|
1386
|
+
var EventInfo = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-463302d4"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/EventInfo.vue"]]);
|
|
1387
|
+
|
|
1388
|
+
var _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1389
|
+
__name: "ReleaseUrgent",
|
|
1390
|
+
props: {
|
|
1391
|
+
releaseType: { type: null, required: true }
|
|
1392
|
+
},
|
|
1393
|
+
emits: ["releaseSuccess", "openMapDialog", "openUserDialog"],
|
|
1394
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1395
|
+
const i18n = useI18n();
|
|
1396
|
+
const props = __props;
|
|
1397
|
+
const emits = __emit;
|
|
1398
|
+
const releaseType = computed(() => props.releaseType.value);
|
|
1399
|
+
const status = ref("normal");
|
|
1400
|
+
const defaultLevel = ref([]);
|
|
1401
|
+
let dropdownOptions = ref({
|
|
1402
|
+
eventType: [],
|
|
1403
|
+
eventLevel: defaultLevel,
|
|
1404
|
+
timeUnit: [
|
|
1405
|
+
{ value: "1", label: i18n("\u5206\u949F") },
|
|
1406
|
+
{ value: "2", label: i18n("\u5C0F\u65F6") },
|
|
1407
|
+
{ value: "3", label: i18n("\u4E0D\u9650") }
|
|
1408
|
+
]
|
|
1409
|
+
});
|
|
1410
|
+
let info = ref({
|
|
1411
|
+
title: "",
|
|
1412
|
+
code: "",
|
|
1413
|
+
startTime: "",
|
|
1414
|
+
eventType: null,
|
|
1415
|
+
eventLevel: null,
|
|
1416
|
+
chargeUsers: [],
|
|
1417
|
+
memberUsers: [],
|
|
1418
|
+
handleTimeNum: "",
|
|
1419
|
+
handleTimeUnit: "2",
|
|
1420
|
+
userInput: true,
|
|
1421
|
+
location: null,
|
|
1422
|
+
latitude: null,
|
|
1423
|
+
longitude: null,
|
|
1424
|
+
attaches: []
|
|
1425
|
+
});
|
|
1426
|
+
let errorLabelsData = ref({
|
|
1427
|
+
handleTimeNumTips: i18n("\u5FC5\u586B\uFF0C\u6B63\u6574\u6570\u578B\uFF0C\u96505\u4F4D"),
|
|
1428
|
+
handleTimeUnitTips: i18n("\u5FC5\u586B\uFF0C\u5355\u9009"),
|
|
1429
|
+
startTimeErrorTips: "",
|
|
1430
|
+
locationErrorTips: "",
|
|
1431
|
+
memberUsersTips: i18n("\u5E94\u6025\u6210\u5458\u4E0D\u80FD\u4E3A\u7A7A"),
|
|
1432
|
+
chargeUsersTips: i18n("\u5E94\u6025\u8D1F\u8D23\u4EBA\u4E0D\u80FD\u4E3A\u7A7A")
|
|
1433
|
+
});
|
|
1434
|
+
let tempValidateData = ref({
|
|
1435
|
+
handleTimeNumError: false,
|
|
1436
|
+
handleTimeUnitError: false,
|
|
1437
|
+
memberUsersError: "",
|
|
1438
|
+
chargeUsersError: ""
|
|
1439
|
+
});
|
|
1440
|
+
const submitSelect = (dt) => {
|
|
1441
|
+
console.log("submitSelect", dt.value);
|
|
1442
|
+
let data = [].concat(...dt.value);
|
|
1443
|
+
let keys = [];
|
|
1444
|
+
data.forEach((item) => {
|
|
1445
|
+
if (item.identityType == 1) {
|
|
1446
|
+
item._name = item.phone ? `${item.name}(${item.phone})` : item.name;
|
|
1447
|
+
}
|
|
1448
|
+
keys.push(item.id);
|
|
1449
|
+
});
|
|
1450
|
+
if (memberDialogType.value === "fzr") {
|
|
1451
|
+
info.value.chargeUsers = data;
|
|
1452
|
+
} else if (memberDialogType.value === "member") {
|
|
1453
|
+
info.value.memberUsers = data;
|
|
1454
|
+
}
|
|
1455
|
+
};
|
|
1456
|
+
let memberDialogType = ref("");
|
|
1457
|
+
const handleOpenDialog = (type = "") => {
|
|
1458
|
+
console.log("handleOpenDialog", type);
|
|
1459
|
+
memberDialogType.value = type;
|
|
1460
|
+
let data = [];
|
|
1461
|
+
if (type === "fzr") {
|
|
1462
|
+
data = [].concat(info.value.chargeUsers);
|
|
1463
|
+
} else if (type === "member") {
|
|
1464
|
+
data = [].concat(info.value.memberUsers);
|
|
1465
|
+
}
|
|
1466
|
+
emits("openUserDialog", data);
|
|
1467
|
+
};
|
|
1468
|
+
const mapConfirm = (items) => {
|
|
1469
|
+
console.log(items, "items-map");
|
|
1470
|
+
info.value.location = items?.location;
|
|
1471
|
+
info.value.latitude = items?.latitude;
|
|
1472
|
+
info.value.longitude = items?.longitude;
|
|
1473
|
+
errorLabelsData.value.locationErrorTips = "";
|
|
1474
|
+
};
|
|
1475
|
+
const mapIconClick = () => {
|
|
1476
|
+
emits("openMapDialog", info.value);
|
|
1477
|
+
};
|
|
1478
|
+
const handleClearUrl = () => {
|
|
1479
|
+
info.value.location = "";
|
|
1480
|
+
info.value.latitude = null;
|
|
1481
|
+
info.value.longitude = null;
|
|
1482
|
+
info.value.userInput = true;
|
|
1483
|
+
errorLabelsData.value.locationErrorTips = "";
|
|
1484
|
+
};
|
|
1485
|
+
const handleClearDialog = (type = "") => {
|
|
1486
|
+
if (type === "fzr") {
|
|
1487
|
+
info.value.chargeUsers = [];
|
|
1488
|
+
} else if (type === "member") {
|
|
1489
|
+
info.value.memberUsers = [];
|
|
1490
|
+
}
|
|
1491
|
+
};
|
|
1492
|
+
const checkChargeUsers = () => {
|
|
1493
|
+
tempValidateData.value.chargeUsersError = !info.value?.chargeUsers || !info.value?.chargeUsers.length ? errorLabelsData.value.chargeUsersTips : "";
|
|
1494
|
+
return !tempValidateData.value.chargeUsersError;
|
|
1495
|
+
};
|
|
1496
|
+
const checkMemberUsers = () => {
|
|
1497
|
+
tempValidateData.value.memberUsersError = !info.value?.memberUsers || !info.value?.memberUsers.length ? errorLabelsData.value.memberUsersTips : "";
|
|
1498
|
+
return !tempValidateData.value.memberUsersError;
|
|
1499
|
+
};
|
|
1500
|
+
const handleInput = ($event) => {
|
|
1501
|
+
info.value.handleTimeNum = $event.replace(/\D/g, "");
|
|
1502
|
+
if (!isEmpty(info.value.handleTimeNum)) {
|
|
1503
|
+
tempValidateData.value.handleTimeNumError = false;
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
const selectChange = (type = "", val) => {
|
|
1507
|
+
tempValidateData.value.handleTimeNumError = false;
|
|
1508
|
+
if (type === "handleTimeUnit" && val === "3") {
|
|
1509
|
+
info.value.handleTimeNum = "";
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
const checkTimeLimit = () => {
|
|
1513
|
+
const INT_REG = /^\d{0,5}$/;
|
|
1514
|
+
tempValidateData.value.handleTimeNumError = info.value.handleTimeUnit !== "3" && (isEmpty(info.value.handleTimeNum) || !INT_REG.test(info.value.handleTimeNum) || Number(info.value.handleTimeNum) === 0) ? true : false;
|
|
1515
|
+
return !tempValidateData.value.handleTimeNumError;
|
|
1516
|
+
};
|
|
1517
|
+
const rules = ref({
|
|
1518
|
+
title: [{ required: true, message: "\u5FC5\u586B\uFF0C\u965020\u4E2A\u5B57\u7B26/\u6C49\u5B57\uFF0C\u9996\u5C3E\u4E0D\u5141\u8BB8\u4E3A\u7A7A\u5916\uFF0C\u652F\u6301\u4EFB\u610F\u5B57\u7B26", trigger: "blur" }],
|
|
1519
|
+
eventType: [{ required: true, message: "\u5FC5\u586B\uFF0C\u5355\u9009", trigger: "change" }],
|
|
1520
|
+
eventLevel: [{ required: true, message: "\u5FC5\u586B\uFF0C\u5355\u9009", trigger: "change" }]
|
|
1521
|
+
});
|
|
1522
|
+
const form = DasFormRef();
|
|
1523
|
+
const { error: saveError, data: saveData, loading: saveLoading, run: saveRun } = releaseUrgentDrill();
|
|
1524
|
+
const save = async () => {
|
|
1525
|
+
errorLabelsData.value.startTimeErrorTips = isEmpty(info.value.startTime) ? "\u5FC5\u586B" : "";
|
|
1526
|
+
errorLabelsData.value.locationErrorTips = isEmpty(info.value.location) ? i18n("\u5FC5\u586B\uFF0C\u652F\u6301\u624B\u52A8\u5F55\u5165\u4E5F\u652F\u6301\u4ECE\u5730\u56FE\u4E0A\u9009\u62E9\u4F4D\u7F6E") : "";
|
|
1527
|
+
console.log(info.value, "save-form");
|
|
1528
|
+
const otherValid = checkTimeLimit();
|
|
1529
|
+
const chargeuserValid = checkChargeUsers();
|
|
1530
|
+
const memberuserValid = checkMemberUsers();
|
|
1531
|
+
form.value?.validate(async (valid) => {
|
|
1532
|
+
if (otherValid && valid && !errorLabelsData.value.startTimeErrorTips && !errorLabelsData.value.locationErrorTips && chargeuserValid && memberuserValid) {
|
|
1533
|
+
let reqData = {
|
|
1534
|
+
eventCategory: releaseType.value,
|
|
1535
|
+
eventTitle: info.value.title,
|
|
1536
|
+
eventCode: info.value.code,
|
|
1537
|
+
eventTypeId: info.value.eventType,
|
|
1538
|
+
eventLevel: info.value.eventLevel,
|
|
1539
|
+
handleTime: info.value.handleTimeNum,
|
|
1540
|
+
handleTimeUnit: info.value.handleTimeUnit,
|
|
1541
|
+
groupLeaderList: info.value.chargeUsers?.map((e) => e.id) || [],
|
|
1542
|
+
groupMemberList: info.value.memberUsers?.map((e) => e.id) || [],
|
|
1543
|
+
userInput: info.value.userInput,
|
|
1544
|
+
location: JSON.stringify({
|
|
1545
|
+
preciseLocation: info.value.location,
|
|
1546
|
+
latitude: info.value.latitude,
|
|
1547
|
+
longitude: info.value.longitude
|
|
1548
|
+
}),
|
|
1549
|
+
creationTime: currentCreateTime.value,
|
|
1550
|
+
eventImgUrl: info.value.attaches?.length > 0 ? JSON.stringify(info.value.attaches) : "[]"
|
|
1551
|
+
};
|
|
1552
|
+
if (releaseType.value === "2") {
|
|
1553
|
+
reqData.startTime = getTimeStamp(info.value.startTime);
|
|
1554
|
+
}
|
|
1555
|
+
await saveRun(reqData);
|
|
1556
|
+
if (saveError.value) {
|
|
1557
|
+
return;
|
|
1558
|
+
}
|
|
1559
|
+
DasMessage.success("\u53D1\u5E03\u6210\u529F");
|
|
1560
|
+
emits("releaseSuccess");
|
|
1561
|
+
}
|
|
1562
|
+
});
|
|
1563
|
+
};
|
|
1564
|
+
const currentCreateTime = ref(null);
|
|
1565
|
+
onMounted(() => {
|
|
1566
|
+
const current = dayjs();
|
|
1567
|
+
currentCreateTime.value = current.valueOf();
|
|
1568
|
+
info.value.code = current.format("YYYYMMDDHHmmssSSS");
|
|
1569
|
+
getEvent();
|
|
1570
|
+
getlevel();
|
|
1571
|
+
});
|
|
1572
|
+
const { error: eventError, data: eventData, loading: eventLoading, run: eventRun } = getEventList();
|
|
1573
|
+
const getEvent = async () => {
|
|
1574
|
+
await eventRun();
|
|
1575
|
+
if (eventError.value) {
|
|
1576
|
+
dropdownOptions.value.eventType = [];
|
|
1577
|
+
return;
|
|
1578
|
+
}
|
|
1579
|
+
dropdownOptions.value.eventType = eventData.value || [];
|
|
1580
|
+
};
|
|
1581
|
+
const { error: levelError, data: levelData, loading: levelLoading, run: levelRun } = getLevelList();
|
|
1582
|
+
const getlevel = async () => {
|
|
1583
|
+
if (isEmpty(info.value.eventType)) {
|
|
1584
|
+
dropdownOptions.value.eventLevel = defaultLevel.value;
|
|
1585
|
+
return;
|
|
1586
|
+
}
|
|
1587
|
+
info.value.eventLevel = "";
|
|
1588
|
+
await levelRun({ eventTypeId: info.value.eventType });
|
|
1589
|
+
if (levelError.value) {
|
|
1590
|
+
dropdownOptions.value.eventLevel = [];
|
|
1591
|
+
return;
|
|
1592
|
+
}
|
|
1593
|
+
dropdownOptions.value.eventLevel = levelData.value.map((e, index) => {
|
|
1594
|
+
return {
|
|
1595
|
+
label: levelNameList[e],
|
|
1596
|
+
value: e
|
|
1597
|
+
};
|
|
1598
|
+
}) || [];
|
|
1599
|
+
};
|
|
1600
|
+
const chooseEventType = () => {
|
|
1601
|
+
if (info.value.eventType && info.value.eventLevel) {
|
|
1602
|
+
getChargeUsers();
|
|
1603
|
+
getMemberUsers();
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1606
|
+
const getChargeUsers = async () => {
|
|
1607
|
+
info.value.chargeUsers = [];
|
|
1608
|
+
let params = {
|
|
1609
|
+
eventTypeId: info.value.eventType,
|
|
1610
|
+
eventTypeLevel: info.value.eventLevel
|
|
1611
|
+
};
|
|
1612
|
+
const [err, data] = await getLeader(params).run();
|
|
1613
|
+
if (err) return;
|
|
1614
|
+
info.value.chargeUsers = data?.map((e) => {
|
|
1615
|
+
return {
|
|
1616
|
+
...e,
|
|
1617
|
+
id: e.uid,
|
|
1618
|
+
_name: e.name + (e.phone ? `(${e.phone})` : "") || "",
|
|
1619
|
+
identityType: 1
|
|
1620
|
+
};
|
|
1621
|
+
});
|
|
1622
|
+
};
|
|
1623
|
+
const getMemberUsers = async () => {
|
|
1624
|
+
info.value.memberUsers = [];
|
|
1625
|
+
let params = {
|
|
1626
|
+
eventTypeId: info.value.eventType,
|
|
1627
|
+
eventTypeLevel: info.value.eventLevel
|
|
1628
|
+
};
|
|
1629
|
+
const [err, data] = await getMember(params).run();
|
|
1630
|
+
if (err) return;
|
|
1631
|
+
info.value.memberUsers = data?.map((e) => {
|
|
1632
|
+
return {
|
|
1633
|
+
...e,
|
|
1634
|
+
id: e.uid,
|
|
1635
|
+
_name: e.name + (e.phone ? `(${e.phone})` : "") || "",
|
|
1636
|
+
identityType: 1
|
|
1637
|
+
};
|
|
1638
|
+
});
|
|
1639
|
+
};
|
|
1640
|
+
const disabledDate = (current) => {
|
|
1641
|
+
const today = dayjs().format("YYYY/MM/DD");
|
|
1642
|
+
return current < dayjs(today);
|
|
1643
|
+
};
|
|
1644
|
+
__expose({
|
|
1645
|
+
save,
|
|
1646
|
+
submitSelect,
|
|
1647
|
+
mapConfirm
|
|
1648
|
+
});
|
|
1649
|
+
const __returned__ = { i18n, props, emits, releaseType, status, defaultLevel, get dropdownOptions() {
|
|
1650
|
+
return dropdownOptions;
|
|
1651
|
+
}, set dropdownOptions(v) {
|
|
1652
|
+
dropdownOptions = v;
|
|
1653
|
+
}, get info() {
|
|
1654
|
+
return info;
|
|
1655
|
+
}, set info(v) {
|
|
1656
|
+
info = v;
|
|
1657
|
+
}, get errorLabelsData() {
|
|
1658
|
+
return errorLabelsData;
|
|
1659
|
+
}, set errorLabelsData(v) {
|
|
1660
|
+
errorLabelsData = v;
|
|
1661
|
+
}, get tempValidateData() {
|
|
1662
|
+
return tempValidateData;
|
|
1663
|
+
}, set tempValidateData(v) {
|
|
1664
|
+
tempValidateData = v;
|
|
1665
|
+
}, submitSelect, get memberDialogType() {
|
|
1666
|
+
return memberDialogType;
|
|
1667
|
+
}, set memberDialogType(v) {
|
|
1668
|
+
memberDialogType = v;
|
|
1669
|
+
}, handleOpenDialog, mapConfirm, mapIconClick, handleClearUrl, handleClearDialog, checkChargeUsers, checkMemberUsers, handleInput, selectChange, checkTimeLimit, rules, form, saveError, saveData, saveLoading, saveRun, save, currentCreateTime, eventError, eventData, eventLoading, eventRun, getEvent, levelError, levelData, levelLoading, levelRun, getlevel, chooseEventType, getChargeUsers, getMemberUsers, disabledDate, get DasForm() {
|
|
1670
|
+
return DasForm;
|
|
1671
|
+
}, get DasFormItem() {
|
|
1672
|
+
return DasFormItem;
|
|
1673
|
+
}, get DasInput() {
|
|
1674
|
+
return DasInput;
|
|
1675
|
+
}, get DasSelect() {
|
|
1676
|
+
return DasSelect;
|
|
1677
|
+
}, get DasIcon() {
|
|
1678
|
+
return DasIcon;
|
|
1679
|
+
}, get DasImageViewer() {
|
|
1680
|
+
return DasImageViewer;
|
|
1681
|
+
}, get vScrollbar() {
|
|
1682
|
+
return vScrollbar;
|
|
1683
|
+
}, get DasButton() {
|
|
1684
|
+
return DasButton;
|
|
1685
|
+
}, get isEmpty() {
|
|
1686
|
+
return isEmpty;
|
|
1687
|
+
} };
|
|
1688
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1689
|
+
return __returned__;
|
|
1690
|
+
}
|
|
1691
|
+
});
|
|
1692
|
+
|
|
1693
|
+
const _hoisted_1$7 = { class: "urgent-panel-release-urgent-container" };
|
|
1694
|
+
const _hoisted_2$7 = { class: "urgent-panel-release-urgent" };
|
|
1695
|
+
const _hoisted_3$6 = { class: "input-item" };
|
|
1696
|
+
const _hoisted_4$5 = { style: { "display": "flex", "width": "100%" } };
|
|
1697
|
+
const _hoisted_5$4 = { style: { "flex": "1" } };
|
|
1698
|
+
function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1699
|
+
const _directive_loading = resolveDirective("loading");
|
|
1700
|
+
return openBlock(), createElementBlock(
|
|
1701
|
+
Fragment,
|
|
1702
|
+
null,
|
|
1703
|
+
[
|
|
1704
|
+
createCommentVNode(" \u53D1\u5E03\u5E94\u6025/\u6F14\u7EC3 "),
|
|
1705
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
1706
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
1707
|
+
createVNode($setup["DasForm"], {
|
|
1708
|
+
ref: "form",
|
|
1709
|
+
rules: $setup.rules,
|
|
1710
|
+
cols: 4,
|
|
1711
|
+
"label-length": "6",
|
|
1712
|
+
labelMarginRight: "19px",
|
|
1713
|
+
labelPosition: "right",
|
|
1714
|
+
alignType: "horizontal",
|
|
1715
|
+
marginRight: "0"
|
|
1716
|
+
}, {
|
|
1717
|
+
default: withCtx(() => [
|
|
1718
|
+
createVNode($setup["DasFormItem"], {
|
|
1719
|
+
prop: "title",
|
|
1720
|
+
marginRight: "0",
|
|
1721
|
+
label: $setup.i18n("\u6807\u9898"),
|
|
1722
|
+
type: "input",
|
|
1723
|
+
width: "100%",
|
|
1724
|
+
modelValue: $setup.info.title,
|
|
1725
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.info.title = $event),
|
|
1726
|
+
modelModifiers: { trim: true },
|
|
1727
|
+
maxlength: "20",
|
|
1728
|
+
required: ""
|
|
1729
|
+
}, null, 8, ["label", "modelValue"]),
|
|
1730
|
+
createVNode($setup["DasFormItem"], {
|
|
1731
|
+
marginRight: "0",
|
|
1732
|
+
width: "100%",
|
|
1733
|
+
label: $setup.i18n("\u4E8B\u4EF6\u7F16\u7801"),
|
|
1734
|
+
type: "input",
|
|
1735
|
+
modelValue: $setup.info.code,
|
|
1736
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.info.code = $event),
|
|
1737
|
+
disabled: "",
|
|
1738
|
+
required: ""
|
|
1739
|
+
}, null, 8, ["label", "modelValue"]),
|
|
1740
|
+
$setup.releaseType === "2" ? (openBlock(), createBlock($setup["DasFormItem"], {
|
|
1741
|
+
key: 0,
|
|
1742
|
+
prop: "startTime",
|
|
1743
|
+
marginRight: "0",
|
|
1744
|
+
width: "100%",
|
|
1745
|
+
label: $setup.i18n("\u542F\u52A8\u65F6\u95F4"),
|
|
1746
|
+
type: "date",
|
|
1747
|
+
disabledDate: $setup.disabledDate,
|
|
1748
|
+
format: "YYYY/MM/DD",
|
|
1749
|
+
modelValue: $setup.info.startTime,
|
|
1750
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.info.startTime = $event),
|
|
1751
|
+
required: "",
|
|
1752
|
+
error: $setup.errorLabelsData.startTimeErrorTips,
|
|
1753
|
+
"onUpdate:error": _cache[3] || (_cache[3] = ($event) => $setup.errorLabelsData.startTimeErrorTips = $event),
|
|
1754
|
+
onChange: _cache[4] || (_cache[4] = ($event) => $setup.errorLabelsData.startTimeErrorTips = "")
|
|
1755
|
+
}, null, 8, ["label", "modelValue", "error"])) : createCommentVNode("v-if", true),
|
|
1756
|
+
createVNode($setup["DasFormItem"], {
|
|
1757
|
+
prop: "eventType",
|
|
1758
|
+
label: $setup.i18n("\u4E8B\u4EF6\u7C7B\u578B"),
|
|
1759
|
+
type: "select",
|
|
1760
|
+
optionsLabelKey: "typeName",
|
|
1761
|
+
optionsValueKey: "id",
|
|
1762
|
+
modelValue: $setup.info.eventType,
|
|
1763
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.info.eventType = $event),
|
|
1764
|
+
required: "",
|
|
1765
|
+
options: $setup.dropdownOptions.eventType,
|
|
1766
|
+
onChange: $setup.getlevel
|
|
1767
|
+
}, null, 8, ["label", "modelValue", "options"]),
|
|
1768
|
+
createVNode($setup["DasFormItem"], {
|
|
1769
|
+
prop: "eventLevel",
|
|
1770
|
+
label: $setup.i18n("\u4E8B\u4EF6\u7B49\u7EA7"),
|
|
1771
|
+
type: "select",
|
|
1772
|
+
modelValue: $setup.info.eventLevel,
|
|
1773
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $setup.info.eventLevel = $event),
|
|
1774
|
+
required: "",
|
|
1775
|
+
options: $setup.dropdownOptions.eventLevel,
|
|
1776
|
+
onChange: $setup.chooseEventType
|
|
1777
|
+
}, null, 8, ["label", "modelValue", "options"]),
|
|
1778
|
+
createVNode($setup["DasFormItem"], {
|
|
1779
|
+
label: $setup.i18n("\u5E94\u6025\u8D1F\u8D23\u4EBA"),
|
|
1780
|
+
type: "inputDialogSelect",
|
|
1781
|
+
placeholder: $setup.i18n("\u8BF7\u9009\u62E9"),
|
|
1782
|
+
options: $setup.info.chargeUsers,
|
|
1783
|
+
isClear: "",
|
|
1784
|
+
optionsLabelKey: "_name",
|
|
1785
|
+
optionsValueKey: "id",
|
|
1786
|
+
onOpenDialog: _cache[7] || (_cache[7] = ($event) => $setup.handleOpenDialog("fzr")),
|
|
1787
|
+
onClearDialog: _cache[8] || (_cache[8] = ($event) => $setup.handleClearDialog("fzr")),
|
|
1788
|
+
error: $setup.tempValidateData.chargeUsersError,
|
|
1789
|
+
"onUpdate:error": _cache[9] || (_cache[9] = ($event) => $setup.tempValidateData.chargeUsersError = $event),
|
|
1790
|
+
required: ""
|
|
1791
|
+
}, null, 8, ["label", "placeholder", "options", "error"]),
|
|
1792
|
+
createVNode($setup["DasFormItem"], {
|
|
1793
|
+
label: $setup.i18n("\u5E94\u6025\u6210\u5458"),
|
|
1794
|
+
type: "inputDialogSelect",
|
|
1795
|
+
placeholder: $setup.i18n("\u8BF7\u9009\u62E9"),
|
|
1796
|
+
options: $setup.info.memberUsers,
|
|
1797
|
+
optionsLabelKey: "_name",
|
|
1798
|
+
optionsValueKey: "id",
|
|
1799
|
+
isClear: "",
|
|
1800
|
+
marginRight: "0",
|
|
1801
|
+
onOpenDialog: _cache[10] || (_cache[10] = ($event) => $setup.handleOpenDialog("member")),
|
|
1802
|
+
onClearDialog: _cache[11] || (_cache[11] = ($event) => $setup.handleClearDialog("member")),
|
|
1803
|
+
error: $setup.tempValidateData.memberUsersError,
|
|
1804
|
+
"onUpdate:error": _cache[12] || (_cache[12] = ($event) => $setup.tempValidateData.memberUsersError = $event),
|
|
1805
|
+
required: ""
|
|
1806
|
+
}, null, 8, ["label", "placeholder", "options", "error"]),
|
|
1807
|
+
createVNode($setup["DasFormItem"], {
|
|
1808
|
+
label: $setup.i18n("\u5904\u7F6E\u65F6\u9650"),
|
|
1809
|
+
type: "custom",
|
|
1810
|
+
required: ""
|
|
1811
|
+
}, {
|
|
1812
|
+
default: withCtx(() => [
|
|
1813
|
+
createVNode($setup["DasInput"], {
|
|
1814
|
+
modelValue: $setup.info.handleTimeNum,
|
|
1815
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $setup.info.handleTimeNum = $event),
|
|
1816
|
+
maxlength: "5",
|
|
1817
|
+
onInput: $setup.handleInput,
|
|
1818
|
+
width: "100%",
|
|
1819
|
+
size: "small",
|
|
1820
|
+
disabled: $setup.info.handleTimeUnit === "3",
|
|
1821
|
+
error: $setup.tempValidateData.handleTimeNumError,
|
|
1822
|
+
"error-label": $setup.errorLabelsData.handleTimeNumTips
|
|
1823
|
+
}, null, 8, ["modelValue", "disabled", "error", "error-label"]),
|
|
1824
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
1825
|
+
createVNode($setup["DasSelect"], {
|
|
1826
|
+
modelValue: $setup.info.handleTimeUnit,
|
|
1827
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $setup.info.handleTimeUnit = $event),
|
|
1828
|
+
width: "120px",
|
|
1829
|
+
size: "small",
|
|
1830
|
+
onChange: _cache[15] || (_cache[15] = ($event) => $setup.selectChange("handleTimeUnit", $event)),
|
|
1831
|
+
error: $setup.tempValidateData.handleTimeUnitError,
|
|
1832
|
+
errorLabel: $setup.errorLabelsData.handleTimeUnitTips,
|
|
1833
|
+
options: $setup.dropdownOptions.timeUnit
|
|
1834
|
+
}, null, 8, ["modelValue", "error", "errorLabel", "options"])
|
|
1835
|
+
])
|
|
1836
|
+
]),
|
|
1837
|
+
_: 1
|
|
1838
|
+
/* STABLE */
|
|
1839
|
+
}, 8, ["label"]),
|
|
1840
|
+
createVNode($setup["DasFormItem"], {
|
|
1841
|
+
label: $setup.i18n("\u4E8B\u4EF6\u5B9A\u4F4D"),
|
|
1842
|
+
contentWidth: "750",
|
|
1843
|
+
type: "custom",
|
|
1844
|
+
required: "",
|
|
1845
|
+
error: $setup.errorLabelsData.locationErrorTips,
|
|
1846
|
+
"onUpdate:error": _cache[18] || (_cache[18] = ($event) => $setup.errorLabelsData.locationErrorTips = $event),
|
|
1847
|
+
marginRight: "0"
|
|
1848
|
+
}, {
|
|
1849
|
+
default: withCtx(() => [
|
|
1850
|
+
createElementVNode("div", _hoisted_4$5, [
|
|
1851
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
1852
|
+
createVNode($setup["DasInput"], {
|
|
1853
|
+
type: "input",
|
|
1854
|
+
modelValue: $setup.info.location,
|
|
1855
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $setup.info.location = $event),
|
|
1856
|
+
maxlength: "50",
|
|
1857
|
+
disabled: $setup.info.latitude,
|
|
1858
|
+
width: "100%",
|
|
1859
|
+
onChange: _cache[17] || (_cache[17] = ($event) => $setup.errorLabelsData.locationErrorTips = "")
|
|
1860
|
+
}, {
|
|
1861
|
+
suffix: withCtx(() => [
|
|
1862
|
+
createVNode($setup["DasIcon"], {
|
|
1863
|
+
icon: "zuobiao",
|
|
1864
|
+
iconColor: "#333333",
|
|
1865
|
+
size: "medium",
|
|
1866
|
+
style: { "cursor": "pointer" },
|
|
1867
|
+
onClick: $setup.mapIconClick
|
|
1868
|
+
})
|
|
1869
|
+
]),
|
|
1870
|
+
_: 1
|
|
1871
|
+
/* STABLE */
|
|
1872
|
+
}, 8, ["modelValue", "disabled"])
|
|
1873
|
+
]),
|
|
1874
|
+
createVNode($setup["DasButton"], {
|
|
1875
|
+
btnType: "primary-text",
|
|
1876
|
+
size: "large",
|
|
1877
|
+
block: "",
|
|
1878
|
+
onClick: withModifiers($setup.handleClearUrl, ["stop"]),
|
|
1879
|
+
disabled: $setup.isEmpty($setup.info.location),
|
|
1880
|
+
style: { "margin-left": "8px", "line-height": "unset" }
|
|
1881
|
+
}, {
|
|
1882
|
+
default: withCtx(() => [
|
|
1883
|
+
createTextVNode(
|
|
1884
|
+
toDisplayString($setup.i18n("\u6E05\u9664")),
|
|
1885
|
+
1
|
|
1886
|
+
/* TEXT */
|
|
1887
|
+
)
|
|
1888
|
+
]),
|
|
1889
|
+
_: 1
|
|
1890
|
+
/* STABLE */
|
|
1891
|
+
}, 8, ["disabled"])
|
|
1892
|
+
])
|
|
1893
|
+
]),
|
|
1894
|
+
_: 1
|
|
1895
|
+
/* STABLE */
|
|
1896
|
+
}, 8, ["label", "error"]),
|
|
1897
|
+
createVNode($setup["DasFormItem"], {
|
|
1898
|
+
class: "label-test",
|
|
1899
|
+
label: "\u56FE\u7247",
|
|
1900
|
+
type: "custom",
|
|
1901
|
+
helpMessage: $setup.i18n("\u975E\u5FC5\u586B\uFF0C\u652F\u6301\u4E0A\u4F20png/jpg\u683C\u5F0F\uFF0C\u6700\u591A\u652F\u6301\u4E0A\u4F203\u5F20\uFF0C\u6BCF\u5F20\u56FE\u7247\u6700\u5927\u4E0D\u8D85\u8FC750M")
|
|
1902
|
+
}, {
|
|
1903
|
+
default: withCtx(() => [
|
|
1904
|
+
createVNode($setup["DasImageViewer"], {
|
|
1905
|
+
modelValue: $setup.info.attaches,
|
|
1906
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => $setup.info.attaches = $event),
|
|
1907
|
+
"limit-num": 3,
|
|
1908
|
+
status: $setup.status,
|
|
1909
|
+
"onUpdate:status": _cache[20] || (_cache[20] = ($event) => $setup.status = $event),
|
|
1910
|
+
maxSize: "50"
|
|
1911
|
+
}, null, 8, ["modelValue", "status"])
|
|
1912
|
+
]),
|
|
1913
|
+
_: 1
|
|
1914
|
+
/* STABLE */
|
|
1915
|
+
}, 8, ["helpMessage"])
|
|
1916
|
+
]),
|
|
1917
|
+
_: 1
|
|
1918
|
+
/* STABLE */
|
|
1919
|
+
}, 8, ["rules"])
|
|
1920
|
+
])), [
|
|
1921
|
+
[_directive_loading, $setup.saveLoading]
|
|
1922
|
+
])
|
|
1923
|
+
])), [
|
|
1924
|
+
[$setup["vScrollbar"]]
|
|
1925
|
+
])
|
|
1926
|
+
],
|
|
1927
|
+
2112
|
|
1928
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1929
|
+
);
|
|
1930
|
+
}
|
|
1931
|
+
var TableSFC = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-45c5a099"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-release-urgent/ReleaseUrgent.vue"]]);
|
|
1932
|
+
|
|
1933
|
+
const useReleaseUrgent = (options) => {
|
|
1934
|
+
const { releaseType } = options;
|
|
1935
|
+
const ReleaseUrgentRef = ref(null);
|
|
1936
|
+
const ReleaseUrgent = () => {
|
|
1937
|
+
return h(TableSFC, { ref: ReleaseUrgentRef, releaseType });
|
|
1938
|
+
};
|
|
1939
|
+
return {
|
|
1940
|
+
ReleaseUrgent,
|
|
1941
|
+
ReleaseUrgentRef
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1945
|
+
const version$1 = "v1";
|
|
1946
|
+
const fmsBase$1 = `/api/emergency/manage/${version$1}`;
|
|
1947
|
+
const service = createService(`${fmsBase$1}`);
|
|
1948
|
+
const getPersonnelPage = service.post("/user/page");
|
|
1949
|
+
|
|
1950
|
+
const selectData = ref([]);
|
|
1951
|
+
|
|
1952
|
+
const __default__$2 = {
|
|
1953
|
+
name: "selectList"
|
|
1954
|
+
};
|
|
1955
|
+
var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1956
|
+
...__default__$2,
|
|
1957
|
+
emits: ["itemRemove", "clearCheck"],
|
|
1958
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
1959
|
+
__expose();
|
|
1960
|
+
const emit = __emit;
|
|
1961
|
+
const itemRemove = (items) => {
|
|
1962
|
+
console.log("\u79FB\u9664\u7684\u6570\u636E-itemRemove", items);
|
|
1963
|
+
emit("itemRemove", items);
|
|
1964
|
+
};
|
|
1965
|
+
const clearCheck = (items) => {
|
|
1966
|
+
console.log("\u79FB\u9664\u7684\u6570\u636E-clearCheck", items);
|
|
1967
|
+
emit("clearCheck");
|
|
1968
|
+
};
|
|
1969
|
+
const __returned__ = { emit, itemRemove, clearCheck, get DasSelectList() {
|
|
1970
|
+
return DasSelectList;
|
|
1971
|
+
}, get vDasTooltip() {
|
|
1972
|
+
return vDasTooltip;
|
|
1973
|
+
}, get selectData() {
|
|
1974
|
+
return selectData;
|
|
1975
|
+
} };
|
|
1976
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
1977
|
+
return __returned__;
|
|
1978
|
+
}
|
|
1979
|
+
});
|
|
1980
|
+
|
|
1981
|
+
const _hoisted_1$6 = { class: "select-list-container" };
|
|
1982
|
+
const _hoisted_2$6 = { class: "check-text" };
|
|
1983
|
+
const _hoisted_3$5 = { key: 0 };
|
|
1984
|
+
const _hoisted_4$4 = { key: 1 };
|
|
1985
|
+
const _hoisted_5$3 = { key: 2 };
|
|
1986
|
+
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1987
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1988
|
+
createCommentVNode(' :model-value="selectData" '),
|
|
1989
|
+
createVNode($setup["DasSelectList"], {
|
|
1990
|
+
modelValue: $setup.selectData,
|
|
1991
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.selectData = $event),
|
|
1992
|
+
width: "100%",
|
|
1993
|
+
height: "100%",
|
|
1994
|
+
"custom-style": { border: "none" },
|
|
1995
|
+
onItemRemove: $setup.itemRemove,
|
|
1996
|
+
onRemoveAll: $setup.clearCheck
|
|
1997
|
+
}, {
|
|
1998
|
+
default: withCtx(({ item }) => [
|
|
1999
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_2$6, [
|
|
2000
|
+
createCommentVNode(" <span v-if=\"item.identityType == 1\">{{ item.name }}{{ item.code ? `(${item.code})` : '' }}</span> "),
|
|
2001
|
+
item.identityType == 2 ? (openBlock(), createElementBlock(
|
|
2002
|
+
"span",
|
|
2003
|
+
_hoisted_3$5,
|
|
2004
|
+
toDisplayString(item.name),
|
|
2005
|
+
1
|
|
2006
|
+
/* TEXT */
|
|
2007
|
+
)) : item.identityType == 1 ? (openBlock(), createElementBlock(
|
|
2008
|
+
"span",
|
|
2009
|
+
_hoisted_4$4,
|
|
2010
|
+
toDisplayString(item.name) + toDisplayString(item.sensitivePhone ? `(${item.sensitivePhone})` : ""),
|
|
2011
|
+
1
|
|
2012
|
+
/* TEXT */
|
|
2013
|
+
)) : (openBlock(), createElementBlock(
|
|
2014
|
+
"span",
|
|
2015
|
+
_hoisted_5$3,
|
|
2016
|
+
toDisplayString(item.name),
|
|
2017
|
+
1
|
|
2018
|
+
/* TEXT */
|
|
2019
|
+
))
|
|
2020
|
+
])), [
|
|
2021
|
+
[$setup["vDasTooltip"]]
|
|
2022
|
+
])
|
|
2023
|
+
]),
|
|
2024
|
+
_: 1
|
|
2025
|
+
/* STABLE */
|
|
2026
|
+
}, 8, ["modelValue"])
|
|
2027
|
+
]);
|
|
2028
|
+
}
|
|
2029
|
+
var selectList = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-daaba711"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectList.vue"]]);
|
|
2030
|
+
|
|
2031
|
+
const selectListRef = ref(null);
|
|
2032
|
+
const useSelectList = (itemRemove, clearCheck) => {
|
|
2033
|
+
const selectListVue = () => {
|
|
2034
|
+
return h(selectList, {
|
|
2035
|
+
onItemRemove: itemRemove,
|
|
2036
|
+
onClearCheck: clearCheck,
|
|
2037
|
+
ref: selectListRef
|
|
2038
|
+
});
|
|
2039
|
+
};
|
|
2040
|
+
return {
|
|
2041
|
+
selectListRef,
|
|
2042
|
+
selectListVue
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
2045
|
+
|
|
2046
|
+
const __default__$1 = {
|
|
2047
|
+
name: "selectUser"
|
|
2048
|
+
};
|
|
2049
|
+
var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
2050
|
+
...__default__$1,
|
|
2051
|
+
props: {
|
|
2052
|
+
projectId: { type: String, required: true, default: "" }
|
|
2053
|
+
},
|
|
2054
|
+
setup(__props, { expose: __expose }) {
|
|
2055
|
+
__expose();
|
|
2056
|
+
const props = __props;
|
|
2057
|
+
const pageLoading = ref(false);
|
|
2058
|
+
const treedata = ref([]);
|
|
2059
|
+
const currentItem = ref("");
|
|
2060
|
+
const treekeywords = ref("");
|
|
2061
|
+
const tablekeywords = ref("");
|
|
2062
|
+
const tableData = ref([]);
|
|
2063
|
+
const selectionRows = ref([]);
|
|
2064
|
+
const pageSize = ref(20);
|
|
2065
|
+
const pageIndex = ref(1);
|
|
2066
|
+
const totalCount = ref(0);
|
|
2067
|
+
onMounted(() => {
|
|
2068
|
+
console.log("onMounted-selectUser");
|
|
2069
|
+
resetSearch();
|
|
2070
|
+
initSelectionRows();
|
|
2071
|
+
});
|
|
2072
|
+
const initSelectionRows = () => {
|
|
2073
|
+
selectionRows.value = selectData.value.filter((item) => item.identityType == 1);
|
|
2074
|
+
};
|
|
2075
|
+
const itemRemove = (checkItem) => {
|
|
2076
|
+
console.log("itemRemove-\u79FB\u9664\u7684\u6570\u636E\uFF1A", checkItem);
|
|
2077
|
+
selectionRows.value = selectionRows.value.filter((item) => item.id != checkItem.id);
|
|
2078
|
+
};
|
|
2079
|
+
const clearCheck = () => {
|
|
2080
|
+
console.log("clearCheck");
|
|
2081
|
+
selectData.value = [];
|
|
2082
|
+
selectionRows.value = [];
|
|
2083
|
+
};
|
|
2084
|
+
const { selectListRef, selectListVue } = useSelectList(itemRemove, clearCheck);
|
|
2085
|
+
const getList = async () => {
|
|
2086
|
+
pageLoading.value = true;
|
|
2087
|
+
const params = {
|
|
2088
|
+
pageIndex: pageIndex.value,
|
|
2089
|
+
pageSize: pageSize.value,
|
|
2090
|
+
queryName: tablekeywords.value
|
|
2091
|
+
};
|
|
2092
|
+
const [error, data] = await getPersonnelPage(params).run();
|
|
2093
|
+
console.log("getList", error, data);
|
|
2094
|
+
if (error) {
|
|
2095
|
+
pageLoading.value = false;
|
|
2096
|
+
return;
|
|
2097
|
+
}
|
|
2098
|
+
tableData.value = data.data?.map((item) => {
|
|
2099
|
+
item.userId = item.id;
|
|
2100
|
+
item.id = item.uid;
|
|
2101
|
+
item.identityType = 1;
|
|
2102
|
+
return item;
|
|
2103
|
+
});
|
|
2104
|
+
totalCount.value = Number(data.totalCount);
|
|
2105
|
+
pageLoading.value = false;
|
|
2106
|
+
};
|
|
2107
|
+
const resetSearch = () => {
|
|
2108
|
+
console.log("---------resetSearch \u67E5\u8BE2");
|
|
2109
|
+
tablekeywords.value = "";
|
|
2110
|
+
treekeywords.value = "";
|
|
2111
|
+
tableData.value = [];
|
|
2112
|
+
pageSize.value = 20;
|
|
2113
|
+
pageIndex.value = 1;
|
|
2114
|
+
searchData();
|
|
2115
|
+
};
|
|
2116
|
+
const searchData = () => {
|
|
2117
|
+
console.log("---------change \u67E5\u8BE2");
|
|
2118
|
+
pageIndex.value = 1;
|
|
2119
|
+
getList();
|
|
2120
|
+
};
|
|
2121
|
+
const nodeClick = (item) => {
|
|
2122
|
+
console.log("nodeClick", item);
|
|
2123
|
+
currentItem.value = item.id;
|
|
2124
|
+
resetSearch();
|
|
2125
|
+
};
|
|
2126
|
+
const handleSizeChange = (val) => {
|
|
2127
|
+
console.log("handleSizeChange", val);
|
|
2128
|
+
pageIndex.value = 1;
|
|
2129
|
+
pageSize.value = val;
|
|
2130
|
+
getList();
|
|
2131
|
+
};
|
|
2132
|
+
const handleCurrentChange = (val) => {
|
|
2133
|
+
console.log("handleCurrentChange", val);
|
|
2134
|
+
pageIndex.value = val;
|
|
2135
|
+
getList();
|
|
2136
|
+
};
|
|
2137
|
+
const handleSelectionChange = (value) => {
|
|
2138
|
+
console.log("handleSelectionChange", value);
|
|
2139
|
+
let selectIds = [];
|
|
2140
|
+
let noSelectIds = [];
|
|
2141
|
+
value.forEach((item) => {
|
|
2142
|
+
selectIds.push(item.id);
|
|
2143
|
+
});
|
|
2144
|
+
tableData.value.forEach((item) => {
|
|
2145
|
+
if (!selectIds.includes(item.id)) {
|
|
2146
|
+
noSelectIds.push(item.id);
|
|
2147
|
+
}
|
|
2148
|
+
});
|
|
2149
|
+
selectData.value = selectData.value.filter((nodeItem) => !noSelectIds.includes(nodeItem.id));
|
|
2150
|
+
value.forEach((node) => {
|
|
2151
|
+
if (!selectData.value.some((item) => item.id === node.id)) {
|
|
2152
|
+
console.log("2222222222222");
|
|
2153
|
+
selectData.value.push(node);
|
|
2154
|
+
}
|
|
2155
|
+
});
|
|
2156
|
+
};
|
|
2157
|
+
const __returned__ = { props, pageLoading, treedata, currentItem, treekeywords, tablekeywords, tableData, selectionRows, pageSize, pageIndex, totalCount, initSelectionRows, itemRemove, clearCheck, selectListRef, selectListVue, getList, resetSearch, searchData, nodeClick, handleSizeChange, handleCurrentChange, handleSelectionChange, get DasTooltip() {
|
|
2158
|
+
return DasTooltip;
|
|
2159
|
+
}, get DasSearch() {
|
|
2160
|
+
return DasSearch;
|
|
2161
|
+
}, get DasSpin() {
|
|
2162
|
+
return DasSpin;
|
|
2163
|
+
}, get DasTable() {
|
|
2164
|
+
return DasTable;
|
|
2165
|
+
}, get DasTableColumn() {
|
|
2166
|
+
return DasTableColumn;
|
|
2167
|
+
}, get i18n() {
|
|
2168
|
+
return i18n;
|
|
2169
|
+
} };
|
|
2170
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2171
|
+
return __returned__;
|
|
2172
|
+
}
|
|
2173
|
+
});
|
|
2174
|
+
|
|
2175
|
+
const _hoisted_1$5 = { class: "select-user-container" };
|
|
2176
|
+
const _hoisted_2$5 = { class: "split-right-box" };
|
|
2177
|
+
const _hoisted_3$4 = { class: "split-table" };
|
|
2178
|
+
const _hoisted_4$3 = { class: "table-searc-box" };
|
|
2179
|
+
const _hoisted_5$2 = { class: "split-table-content" };
|
|
2180
|
+
const _hoisted_6$2 = { class: "split-checkd" };
|
|
2181
|
+
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2182
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
2183
|
+
createVNode($setup["DasSpin"], { spinning: $setup.pageLoading }, {
|
|
2184
|
+
default: withCtx(() => [
|
|
2185
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
2186
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
2187
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
2188
|
+
createVNode($setup["DasSearch"], {
|
|
2189
|
+
modelValue: $setup.tablekeywords,
|
|
2190
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.tablekeywords = $event),
|
|
2191
|
+
searchType: "basis",
|
|
2192
|
+
isIconLeft: "",
|
|
2193
|
+
size: "small",
|
|
2194
|
+
placeholder: $setup.i18n("\u641C\u7D22\u59D3\u540D/\u8D26\u53F7").value,
|
|
2195
|
+
onChange: $setup.searchData
|
|
2196
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
2197
|
+
]),
|
|
2198
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
2199
|
+
createVNode($setup["DasTable"], {
|
|
2200
|
+
height: "100%",
|
|
2201
|
+
ref: "treeTableRef",
|
|
2202
|
+
data: $setup.tableData,
|
|
2203
|
+
total: $setup.totalCount,
|
|
2204
|
+
selection: "",
|
|
2205
|
+
"pagination-props": { layout: "prev,next,sizes", small: true },
|
|
2206
|
+
"current-page": $setup.pageIndex,
|
|
2207
|
+
"onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => $setup.pageIndex = $event),
|
|
2208
|
+
"selection-rows": $setup.selectionRows,
|
|
2209
|
+
"onUpdate:selectionRows": _cache[2] || (_cache[2] = ($event) => $setup.selectionRows = $event),
|
|
2210
|
+
"page-size": $setup.pageSize,
|
|
2211
|
+
"onUpdate:pageSize": _cache[3] || (_cache[3] = ($event) => $setup.pageSize = $event),
|
|
2212
|
+
onSizeChange: $setup.handleSizeChange,
|
|
2213
|
+
onSelectionChange: $setup.handleSelectionChange,
|
|
2214
|
+
onCurrentPageChange: $setup.handleCurrentChange
|
|
2215
|
+
}, {
|
|
2216
|
+
default: withCtx(() => [
|
|
2217
|
+
createVNode($setup["DasTableColumn"], {
|
|
2218
|
+
label: $setup.i18n("\u59D3\u540D").value,
|
|
2219
|
+
prop: "name"
|
|
2220
|
+
}, null, 8, ["label"]),
|
|
2221
|
+
createVNode($setup["DasTableColumn"], {
|
|
2222
|
+
label: $setup.i18n("\u8D26\u53F7").value,
|
|
2223
|
+
prop: "userName"
|
|
2224
|
+
}, null, 8, ["label"]),
|
|
2225
|
+
createVNode($setup["DasTableColumn"], {
|
|
2226
|
+
label: $setup.i18n("\u624B\u673A\u53F7").value,
|
|
2227
|
+
prop: "sensitivePhone"
|
|
2228
|
+
}, {
|
|
2229
|
+
default: withCtx(({ row }) => [
|
|
2230
|
+
createVNode($setup["DasTooltip"], {
|
|
2231
|
+
placement: "top",
|
|
2232
|
+
content: row.phone
|
|
2233
|
+
}, {
|
|
2234
|
+
default: withCtx(() => [
|
|
2235
|
+
createElementVNode(
|
|
2236
|
+
"span",
|
|
2237
|
+
null,
|
|
2238
|
+
toDisplayString(row.sensitivePhone),
|
|
2239
|
+
1
|
|
2240
|
+
/* TEXT */
|
|
2241
|
+
)
|
|
2242
|
+
]),
|
|
2243
|
+
_: 2
|
|
2244
|
+
/* DYNAMIC */
|
|
2245
|
+
}, 1032, ["content"])
|
|
2246
|
+
]),
|
|
2247
|
+
_: 1
|
|
2248
|
+
/* STABLE */
|
|
2249
|
+
}, 8, ["label"])
|
|
2250
|
+
]),
|
|
2251
|
+
_: 1
|
|
2252
|
+
/* STABLE */
|
|
2253
|
+
}, 8, ["data", "total", "current-page", "selection-rows", "page-size"])
|
|
2254
|
+
])
|
|
2255
|
+
]),
|
|
2256
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
2257
|
+
createVNode($setup["selectListVue"])
|
|
2258
|
+
])
|
|
2259
|
+
])
|
|
2260
|
+
]),
|
|
2261
|
+
_: 1
|
|
2262
|
+
/* STABLE */
|
|
2263
|
+
}, 8, ["spinning"])
|
|
2264
|
+
]);
|
|
2265
|
+
}
|
|
2266
|
+
var selectUser = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5], ["__scopeId", "data-v-58526a0e"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectUser.vue"]]);
|
|
2267
|
+
|
|
2268
|
+
const selectUserRef = ref(null);
|
|
2269
|
+
const useSelectUser = (projectId) => {
|
|
2270
|
+
const selectUserVue = () => {
|
|
2271
|
+
return h(selectUser, {
|
|
2272
|
+
projectId,
|
|
2273
|
+
ref: selectUserRef
|
|
2274
|
+
});
|
|
2275
|
+
};
|
|
2276
|
+
return {
|
|
2277
|
+
selectUserRef,
|
|
2278
|
+
selectUserVue
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2281
|
+
|
|
2282
|
+
const __default__ = {
|
|
2283
|
+
name: "selectOrganizationAndUser"
|
|
2284
|
+
};
|
|
2285
|
+
var _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2286
|
+
...__default__,
|
|
2287
|
+
emits: ["submitSelect"],
|
|
2288
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2289
|
+
const projectId = ref(getProjectInfo().id);
|
|
2290
|
+
const eimt = __emit;
|
|
2291
|
+
const { selectUserVue, selectUserRef } = useSelectUser(projectId.value);
|
|
2292
|
+
const selectDialogShow = ref(false);
|
|
2293
|
+
const cancelDialog = () => {
|
|
2294
|
+
console.log("cancelDialog");
|
|
2295
|
+
close();
|
|
2296
|
+
};
|
|
2297
|
+
const submitDialog = async () => {
|
|
2298
|
+
close();
|
|
2299
|
+
eimt("submitSelect", selectData);
|
|
2300
|
+
};
|
|
2301
|
+
const menuClick = (menu) => {
|
|
2302
|
+
console.log("menuClick", menu);
|
|
2303
|
+
};
|
|
2304
|
+
const open = () => {
|
|
2305
|
+
selectDialogShow.value = true;
|
|
2306
|
+
};
|
|
2307
|
+
const close = () => {
|
|
2308
|
+
console.log("close");
|
|
2309
|
+
selectDialogShow.value = false;
|
|
2310
|
+
};
|
|
2311
|
+
__expose({
|
|
2312
|
+
open,
|
|
2313
|
+
close
|
|
2314
|
+
});
|
|
2315
|
+
const __returned__ = { projectId, eimt, selectUserVue, selectUserRef, selectDialogShow, cancelDialog, submitDialog, menuClick, open, close, get DasButton() {
|
|
2316
|
+
return DasButton;
|
|
2317
|
+
}, get DasDialog() {
|
|
2318
|
+
return DasDialog;
|
|
2319
|
+
}, get i18n() {
|
|
2320
|
+
return i18n;
|
|
2321
|
+
} };
|
|
2322
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2323
|
+
return __returned__;
|
|
2324
|
+
}
|
|
2325
|
+
});
|
|
2326
|
+
|
|
2327
|
+
const _hoisted_1$4 = { class: "select-org-user-dialog-box" };
|
|
2328
|
+
const _hoisted_2$4 = { class: "select-org-user-dialog-content" };
|
|
2329
|
+
const _hoisted_3$3 = { class: "foot-btn-box" };
|
|
2330
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2331
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
2332
|
+
createVNode($setup["DasDialog"], {
|
|
2333
|
+
modelValue: $setup.selectDialogShow,
|
|
2334
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.selectDialogShow = $event),
|
|
2335
|
+
customClass: "select-org-user-dialog",
|
|
2336
|
+
type: "basic",
|
|
2337
|
+
size: "small",
|
|
2338
|
+
width: 961,
|
|
2339
|
+
height: 580,
|
|
2340
|
+
bodyStyle: {
|
|
2341
|
+
padding: "0"
|
|
2342
|
+
},
|
|
2343
|
+
"destroy-on-close": ""
|
|
2344
|
+
}, {
|
|
2345
|
+
header: withCtx(() => [
|
|
2346
|
+
createTextVNode(
|
|
2347
|
+
toDisplayString($setup.i18n("\u6DFB\u52A0\u7528\u6237").value),
|
|
2348
|
+
1
|
|
2349
|
+
/* TEXT */
|
|
2350
|
+
)
|
|
2351
|
+
]),
|
|
2352
|
+
footer: withCtx(() => [
|
|
2353
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
2354
|
+
createVNode($setup["DasButton"], {
|
|
2355
|
+
size: "middle",
|
|
2356
|
+
onClick: $setup.cancelDialog
|
|
2357
|
+
}, {
|
|
2358
|
+
default: withCtx(() => [
|
|
2359
|
+
createTextVNode(
|
|
2360
|
+
toDisplayString($setup.i18n("\u53D6\u6D88").value),
|
|
2361
|
+
1
|
|
2362
|
+
/* TEXT */
|
|
2363
|
+
)
|
|
2364
|
+
]),
|
|
2365
|
+
_: 1
|
|
2366
|
+
/* STABLE */
|
|
2367
|
+
}),
|
|
2368
|
+
createVNode($setup["DasButton"], {
|
|
2369
|
+
btnType: "primary",
|
|
2370
|
+
size: "middle",
|
|
2371
|
+
onClick: $setup.submitDialog
|
|
2372
|
+
}, {
|
|
2373
|
+
default: withCtx(() => [
|
|
2374
|
+
createTextVNode(
|
|
2375
|
+
toDisplayString($setup.i18n("\u786E\u5B9A").value),
|
|
2376
|
+
1
|
|
2377
|
+
/* TEXT */
|
|
2378
|
+
)
|
|
2379
|
+
]),
|
|
2380
|
+
_: 1
|
|
2381
|
+
/* STABLE */
|
|
2382
|
+
})
|
|
2383
|
+
])
|
|
2384
|
+
]),
|
|
2385
|
+
default: withCtx(() => [
|
|
2386
|
+
createElementVNode("div", _hoisted_2$4, [
|
|
2387
|
+
createVNode($setup["selectUserVue"])
|
|
2388
|
+
])
|
|
2389
|
+
]),
|
|
2390
|
+
_: 1
|
|
2391
|
+
/* STABLE */
|
|
2392
|
+
}, 8, ["modelValue"])
|
|
2393
|
+
]);
|
|
2394
|
+
}
|
|
2395
|
+
var selectOrganizationAndUser = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-1eabc0d2"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-user-select/selectOrganizationAndUser.vue"]]);
|
|
2396
|
+
|
|
2397
|
+
const selectOrganizationAndUserRef = ref(null);
|
|
2398
|
+
const useSelectOrganizationAndUser = (submitSelect) => {
|
|
2399
|
+
const selectOrganizationAndUserVue = () => {
|
|
2400
|
+
return h(selectOrganizationAndUser, {
|
|
2401
|
+
onSubmitSelect: submitSelect,
|
|
2402
|
+
ref: selectOrganizationAndUserRef
|
|
2403
|
+
});
|
|
2404
|
+
};
|
|
2405
|
+
return {
|
|
2406
|
+
selectOrganizationAndUserRef,
|
|
2407
|
+
selectOrganizationAndUserVue,
|
|
2408
|
+
selectData
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
|
+
const version = "v1";
|
|
2413
|
+
const fmsBase = `/api/emergency/manage/${version}`;
|
|
2414
|
+
createService(`${fmsBase}`);
|
|
2415
|
+
const mapService = createService(`/api/system-config/${version}`);
|
|
2416
|
+
const getMapServe = createService(`/api/tool/map/${version}`);
|
|
2417
|
+
const getMapSetting = mapService.get("/platform/map/list");
|
|
2418
|
+
getMapServe.get("/regeo");
|
|
2419
|
+
|
|
2420
|
+
var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
2421
|
+
__name: "LocationSelect",
|
|
2422
|
+
emits: ["mapConfirm"],
|
|
2423
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2424
|
+
const i18n = useI18n();
|
|
2425
|
+
const emits = __emit;
|
|
2426
|
+
let mapDialog = ref(false);
|
|
2427
|
+
const mapConfig = ref({
|
|
2428
|
+
serviceProvider: null,
|
|
2429
|
+
akValue: ""
|
|
2430
|
+
});
|
|
2431
|
+
const $baidudeMap = DasBaiduMapRef();
|
|
2432
|
+
const $gaodeMap = DasGaodeMapRef();
|
|
2433
|
+
let formData = ref({
|
|
2434
|
+
totalArea: [],
|
|
2435
|
+
location: null,
|
|
2436
|
+
longitude: null,
|
|
2437
|
+
latitude: null
|
|
2438
|
+
});
|
|
2439
|
+
const defaultAddress = computed(() => {
|
|
2440
|
+
if (formData.value && formData.value.location) {
|
|
2441
|
+
return formData.value.location;
|
|
2442
|
+
} else {
|
|
2443
|
+
return void 0;
|
|
2444
|
+
}
|
|
2445
|
+
});
|
|
2446
|
+
const defaultLongitude = computed(() => {
|
|
2447
|
+
if (formData.value && formData.value.longitude) {
|
|
2448
|
+
return formData.value.longitude;
|
|
2449
|
+
} else {
|
|
2450
|
+
return void 0;
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
const defaultLatitude = computed(() => {
|
|
2454
|
+
if (formData.value && formData.value.latitude) {
|
|
2455
|
+
return formData.value.latitude;
|
|
2456
|
+
} else {
|
|
2457
|
+
return void 0;
|
|
2458
|
+
}
|
|
2459
|
+
});
|
|
2460
|
+
const openMapDialog = async (locationInfo) => {
|
|
2461
|
+
const [err, data] = await getMapSetting().run();
|
|
2462
|
+
if (err) return;
|
|
2463
|
+
if (data && data.length) {
|
|
2464
|
+
if (data.find((item) => item.enable)) {
|
|
2465
|
+
mapConfig.value = data.find((item) => item.enable);
|
|
2466
|
+
formData.value.location = locationInfo?.location ?? null;
|
|
2467
|
+
formData.value.latitude = locationInfo?.latitude ?? null;
|
|
2468
|
+
formData.value.longitude = locationInfo?.longitude ?? null;
|
|
2469
|
+
mapDialog.value = true;
|
|
2470
|
+
return;
|
|
2471
|
+
}
|
|
2472
|
+
}
|
|
2473
|
+
DasMessage.warning("\u8BF7\u5148\u5B8C\u5584\u7B2C\u4E09\u65B9\u5730\u56FE\u76F8\u5173\u914D\u7F6E\uFF01");
|
|
2474
|
+
};
|
|
2475
|
+
const closeMapDialog = () => {
|
|
2476
|
+
mapDialog.value = false;
|
|
2477
|
+
emits("mapConfirm", null);
|
|
2478
|
+
};
|
|
2479
|
+
const getAddressMsg = async () => {
|
|
2480
|
+
let address = "", res = {};
|
|
2481
|
+
if (mapConfig.value.serviceProvider == 1) {
|
|
2482
|
+
res = $baidudeMap.value?.getMapInfo();
|
|
2483
|
+
console.log("\u83B7\u53D6\u767E\u5EA6\u5730\u5740\u4FE1\u606F", res);
|
|
2484
|
+
address = res.address;
|
|
2485
|
+
} else if (mapConfig.value.serviceProvider == 2) {
|
|
2486
|
+
res = $gaodeMap.value?.getMapInfo();
|
|
2487
|
+
console.log("\u83B7\u53D6\u9AD8\u5FB7\u5730\u5740\u4FE1\u606F", res);
|
|
2488
|
+
address = res.address;
|
|
2489
|
+
}
|
|
2490
|
+
if (res && res.adCode) {
|
|
2491
|
+
let codeStr = res.adCode.toString();
|
|
2492
|
+
formData.value.totalArea = [codeStr.substring(0, 2), codeStr.substring(0, 4), codeStr.substring(0, 6)];
|
|
2493
|
+
}
|
|
2494
|
+
if (address) {
|
|
2495
|
+
formData.value.latitude = res?.latitude || "";
|
|
2496
|
+
formData.value.longitude = res?.longitude || "";
|
|
2497
|
+
formData.value.location = res?.addressInfo?.name || "";
|
|
2498
|
+
} else {
|
|
2499
|
+
formData.value.location = "";
|
|
2500
|
+
}
|
|
2501
|
+
emits("mapConfirm", formData.value);
|
|
2502
|
+
mapDialog.value = false;
|
|
2503
|
+
};
|
|
2504
|
+
__expose({
|
|
2505
|
+
openMapDialog
|
|
2506
|
+
});
|
|
2507
|
+
const __returned__ = { i18n, emits, get mapDialog() {
|
|
2508
|
+
return mapDialog;
|
|
2509
|
+
}, set mapDialog(v) {
|
|
2510
|
+
mapDialog = v;
|
|
2511
|
+
}, mapConfig, $baidudeMap, $gaodeMap, get formData() {
|
|
2512
|
+
return formData;
|
|
2513
|
+
}, set formData(v) {
|
|
2514
|
+
formData = v;
|
|
2515
|
+
}, defaultAddress, defaultLongitude, defaultLatitude, openMapDialog, closeMapDialog, getAddressMsg, get DasDialog() {
|
|
2516
|
+
return DasDialog;
|
|
2517
|
+
}, get DasButton() {
|
|
2518
|
+
return DasButton;
|
|
2519
|
+
}, get DasGaodeMap() {
|
|
2520
|
+
return DasGaodeMap;
|
|
2521
|
+
}, get DasBaiduMap() {
|
|
2522
|
+
return DasBaiduMap;
|
|
2523
|
+
} };
|
|
2524
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2525
|
+
return __returned__;
|
|
2526
|
+
}
|
|
2527
|
+
});
|
|
2528
|
+
|
|
2529
|
+
const _hoisted_1$3 = { class: "select-map-dialog-box" };
|
|
2530
|
+
const _hoisted_2$3 = { style: { "height": "100%" } };
|
|
2531
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2532
|
+
return openBlock(), createElementBlock(
|
|
2533
|
+
Fragment,
|
|
2534
|
+
null,
|
|
2535
|
+
[
|
|
2536
|
+
createCommentVNode(" \u4E8B\u4EF6\u5B9A\u4F4D "),
|
|
2537
|
+
createElementVNode("div", _hoisted_1$3, [
|
|
2538
|
+
createVNode($setup["DasDialog"], {
|
|
2539
|
+
modelValue: $setup.mapDialog,
|
|
2540
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.mapDialog = $event),
|
|
2541
|
+
onClose: $setup.closeMapDialog,
|
|
2542
|
+
title: $setup.i18n("\u9009\u62E9\u4F4D\u7F6E"),
|
|
2543
|
+
height: 580,
|
|
2544
|
+
width: 960,
|
|
2545
|
+
"body-style": { padding: "0px" },
|
|
2546
|
+
class: "map-"
|
|
2547
|
+
}, {
|
|
2548
|
+
footer: withCtx(() => [
|
|
2549
|
+
createElementVNode("div", null, [
|
|
2550
|
+
createVNode($setup["DasButton"], {
|
|
2551
|
+
size: "middle",
|
|
2552
|
+
onClick: $setup.closeMapDialog
|
|
2553
|
+
}, {
|
|
2554
|
+
default: withCtx(() => [
|
|
2555
|
+
createTextVNode(
|
|
2556
|
+
toDisplayString($setup.i18n("\u53D6\u6D88")),
|
|
2557
|
+
1
|
|
2558
|
+
/* TEXT */
|
|
2559
|
+
)
|
|
2560
|
+
]),
|
|
2561
|
+
_: 1
|
|
2562
|
+
/* STABLE */
|
|
2563
|
+
}),
|
|
2564
|
+
createVNode($setup["DasButton"], {
|
|
2565
|
+
btnType: "primary",
|
|
2566
|
+
size: "middle",
|
|
2567
|
+
style: { "margin-left": "10px" },
|
|
2568
|
+
onClick: $setup.getAddressMsg
|
|
2569
|
+
}, {
|
|
2570
|
+
default: withCtx(() => [
|
|
2571
|
+
createTextVNode(
|
|
2572
|
+
toDisplayString($setup.i18n("\u786E\u5B9A")),
|
|
2573
|
+
1
|
|
2574
|
+
/* TEXT */
|
|
2575
|
+
)
|
|
2576
|
+
]),
|
|
2577
|
+
_: 1
|
|
2578
|
+
/* STABLE */
|
|
2579
|
+
})
|
|
2580
|
+
])
|
|
2581
|
+
]),
|
|
2582
|
+
default: withCtx(() => [
|
|
2583
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
2584
|
+
$setup.mapDialog && $setup.mapConfig.serviceProvider == 1 ? (openBlock(), createBlock($setup["DasBaiduMap"], {
|
|
2585
|
+
key: 0,
|
|
2586
|
+
ref: "$baidudeMap",
|
|
2587
|
+
"ak-value": $setup.mapConfig.akValue,
|
|
2588
|
+
"default-address": $setup.defaultAddress,
|
|
2589
|
+
defaultLongitude: $setup.defaultLongitude,
|
|
2590
|
+
defaultLatitude: $setup.defaultLatitude
|
|
2591
|
+
}, null, 8, ["ak-value", "default-address", "defaultLongitude", "defaultLatitude"])) : $setup.mapDialog && $setup.mapConfig.serviceProvider == 2 ? (openBlock(), createBlock($setup["DasGaodeMap"], {
|
|
2592
|
+
key: 1,
|
|
2593
|
+
ref: "$gaodeMap",
|
|
2594
|
+
"ak-value": $setup.mapConfig.akValue,
|
|
2595
|
+
"default-address": $setup.defaultAddress,
|
|
2596
|
+
defaultLongitude: $setup.defaultLongitude,
|
|
2597
|
+
defaultLatitude: $setup.defaultLatitude
|
|
2598
|
+
}, null, 8, ["ak-value", "default-address", "defaultLongitude", "defaultLatitude"])) : createCommentVNode("v-if", true)
|
|
2599
|
+
])
|
|
2600
|
+
]),
|
|
2601
|
+
_: 1
|
|
2602
|
+
/* STABLE */
|
|
2603
|
+
}, 8, ["modelValue", "title"])
|
|
2604
|
+
])
|
|
2605
|
+
],
|
|
2606
|
+
2112
|
|
2607
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
2608
|
+
);
|
|
2609
|
+
}
|
|
2610
|
+
var LocationSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-location-select/LocationSelect.vue"]]);
|
|
2611
|
+
|
|
2612
|
+
let selectGroupData = ref([]);
|
|
2613
|
+
|
|
2614
|
+
const locationSelectRef = ref(null);
|
|
2615
|
+
const useLocationSelect = (mapConfirm) => {
|
|
2616
|
+
const locationSelectVue = () => {
|
|
2617
|
+
return h(LocationSelect, {
|
|
2618
|
+
onMapConfirm: mapConfirm,
|
|
2619
|
+
ref: locationSelectRef
|
|
2620
|
+
});
|
|
2621
|
+
};
|
|
2622
|
+
return {
|
|
2623
|
+
locationSelectRef,
|
|
2624
|
+
locationSelectVue,
|
|
2625
|
+
selectGroupData
|
|
2626
|
+
};
|
|
2627
|
+
};
|
|
2628
|
+
|
|
2629
|
+
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
2630
|
+
__name: "index",
|
|
2631
|
+
emits: ["closePanel", "updatePanelActive", "resizePanel"],
|
|
2632
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
2633
|
+
const i18n = useI18n();
|
|
2634
|
+
const emits = __emit;
|
|
2635
|
+
let activeKey = ref(1);
|
|
2636
|
+
let currentMenuInfo = ref({
|
|
2637
|
+
currentMenu: "",
|
|
2638
|
+
titleName: "\u5E94\u6025\u4E8B\u4EF6",
|
|
2639
|
+
showNav: false,
|
|
2640
|
+
navName: ""
|
|
2641
|
+
});
|
|
2642
|
+
let eventRecordId = ref(null);
|
|
2643
|
+
let eventRecordTabKey = ref(null);
|
|
2644
|
+
let originEventRecordTabKey = ref(null);
|
|
2645
|
+
let menuInfoBefore = ref({
|
|
2646
|
+
currentMenu: "",
|
|
2647
|
+
titleName: "",
|
|
2648
|
+
showNav: false,
|
|
2649
|
+
navName: ""
|
|
2650
|
+
});
|
|
2651
|
+
const backTo = () => {
|
|
2652
|
+
if (currentMenuInfo.value.currentMenu === "eventlist") {
|
|
2653
|
+
currentMenuInfo.value = {
|
|
2654
|
+
currentMenu: "",
|
|
2655
|
+
titleName: "\u5E94\u6025\u4E8B\u4EF6",
|
|
2656
|
+
showNav: false,
|
|
2657
|
+
navName: ""
|
|
2658
|
+
};
|
|
2659
|
+
resetTabKey();
|
|
2660
|
+
getPlanAjax(deviceData.urgentEventTypeCode);
|
|
2661
|
+
} else if (currentMenuInfo.value.currentMenu === "eventInfo") {
|
|
2662
|
+
currentMenuInfo.value = {
|
|
2663
|
+
currentMenu: "eventlist",
|
|
2664
|
+
titleName: "\u5E94\u6025\u4E8B\u4EF6\u5217\u8868",
|
|
2665
|
+
showNav: true,
|
|
2666
|
+
navName: "\u5217\u8868\u8BE6\u60C5"
|
|
2667
|
+
};
|
|
2668
|
+
resetTabKey();
|
|
2669
|
+
} else if (currentMenuInfo.value.currentMenu === "releaseurgent") {
|
|
2670
|
+
currentMenuInfo.value = menuInfoBefore.value;
|
|
2671
|
+
if (menuInfoBefore.value?.currentMenu === "eventInfo") {
|
|
2672
|
+
eventRecordTabKey.value = originEventRecordTabKey.value;
|
|
2673
|
+
}
|
|
2674
|
+
if (!currentMenuInfo.value.currentMenu) {
|
|
2675
|
+
getPlanAjax(deviceData.urgentEventTypeCode);
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
};
|
|
2679
|
+
const routerTo = (str = "", info = null) => {
|
|
2680
|
+
console.log(str, "str--");
|
|
2681
|
+
if (!str) ; else if (str === "eventInfo") {
|
|
2682
|
+
currentMenuInfo.value = {
|
|
2683
|
+
currentMenu: "eventInfo",
|
|
2684
|
+
titleName: info?.eventTitle,
|
|
2685
|
+
showNav: true,
|
|
2686
|
+
navName: "\u8BE6\u60C5"
|
|
2687
|
+
};
|
|
2688
|
+
eventRecordId.value = info?.id || null;
|
|
2689
|
+
} else if (str === "eventList") {
|
|
2690
|
+
currentMenuInfo.value = {
|
|
2691
|
+
currentMenu: "eventlist",
|
|
2692
|
+
titleName: "\u5E94\u6025\u4E8B\u4EF6\u5217\u8868",
|
|
2693
|
+
showNav: true,
|
|
2694
|
+
navName: "\u5217\u8868\u8BE6\u60C5"
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2698
|
+
let uncompletedNum = ref(0);
|
|
2699
|
+
let completedNum = ref(0);
|
|
2700
|
+
const { error: eventError, data: eventData, loading: eventLoading, run: getevent } = getUrgentEventList();
|
|
2701
|
+
const getEventAjax = async (code) => {
|
|
2702
|
+
await getevent({ eventTypeCode: code });
|
|
2703
|
+
if (eventError.value) {
|
|
2704
|
+
uncompletedNum.value = 0;
|
|
2705
|
+
completedNum.value = 0;
|
|
2706
|
+
return;
|
|
2707
|
+
}
|
|
2708
|
+
uncompletedNum.value = eventData.value?.unCompleted || 0;
|
|
2709
|
+
completedNum.value = eventData.value?.completed || 0;
|
|
2710
|
+
};
|
|
2711
|
+
let planListData = ref([]);
|
|
2712
|
+
const { error: planError, data: planData, loading: planLoading, run: getplan } = getUrgentPanel();
|
|
2713
|
+
const getPlanAjax = async (code) => {
|
|
2714
|
+
console.log("\u4E8B\u4EF6\u7C7B\u578B\u7F16\u7801\uFF1A" + code);
|
|
2715
|
+
await getplan({ eventTypeCode: code });
|
|
2716
|
+
if (planError.value) {
|
|
2717
|
+
planListData.value = [];
|
|
2718
|
+
return;
|
|
2719
|
+
}
|
|
2720
|
+
planListData.value = planData.value?.map((e) => {
|
|
2721
|
+
return handleData(e);
|
|
2722
|
+
});
|
|
2723
|
+
};
|
|
2724
|
+
const setConfigData = (code) => {
|
|
2725
|
+
activeKey.value = 1;
|
|
2726
|
+
eventRecordId.value = null;
|
|
2727
|
+
currentMenuInfo.value = {
|
|
2728
|
+
currentMenu: "",
|
|
2729
|
+
titleName: "\u5E94\u6025\u4E8B\u4EF6",
|
|
2730
|
+
showNav: false,
|
|
2731
|
+
navName: ""
|
|
2732
|
+
};
|
|
2733
|
+
menuInfoBefore.value = {
|
|
2734
|
+
currentMenu: "",
|
|
2735
|
+
titleName: "",
|
|
2736
|
+
showNav: false,
|
|
2737
|
+
navName: ""
|
|
2738
|
+
};
|
|
2739
|
+
getEventAjax(code);
|
|
2740
|
+
getPlanAjax(code);
|
|
2741
|
+
};
|
|
2742
|
+
const releaseType = ref("");
|
|
2743
|
+
const handleRelease = (type) => {
|
|
2744
|
+
originEventRecordTabKey.value = eventRecordTabKey.value;
|
|
2745
|
+
releaseType.value = type;
|
|
2746
|
+
menuInfoBefore.value = currentMenuInfo.value;
|
|
2747
|
+
currentMenuInfo.value = {
|
|
2748
|
+
currentMenu: "releaseurgent",
|
|
2749
|
+
titleName: type === "1" ? "\u53D1\u5E03\u5E94\u6025" : "\u53D1\u5E03\u6F14\u7EC3",
|
|
2750
|
+
showNav: true,
|
|
2751
|
+
navName: type === "1" ? "\u5E94\u6025\u5185\u5BB9" : "\u6F14\u7EC3\u5185\u5BB9"
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2754
|
+
const { ReleaseUrgent, ReleaseUrgentRef } = useReleaseUrgent({ releaseType });
|
|
2755
|
+
const cancelRelease = () => {
|
|
2756
|
+
currentMenuInfo.value = menuInfoBefore.value;
|
|
2757
|
+
};
|
|
2758
|
+
const submitRelease = () => {
|
|
2759
|
+
ReleaseUrgentRef?.value?.save();
|
|
2760
|
+
};
|
|
2761
|
+
const close = () => {
|
|
2762
|
+
emits("closePanel");
|
|
2763
|
+
};
|
|
2764
|
+
const urgentEventAuth = computed(
|
|
2765
|
+
() => authInfo.value?.filter((e) => e.code === "emergencymanagement.urgentEvent")?.length > 0
|
|
2766
|
+
);
|
|
2767
|
+
const urgentPlanAuth = computed(
|
|
2768
|
+
() => authInfo.value?.filter((e) => e.code === "emergencymanagement.urgentPlan")?.length > 0
|
|
2769
|
+
);
|
|
2770
|
+
const releaseUrgentAuth = computed(() => {
|
|
2771
|
+
const filterItem = authInfo.value?.filter((e) => e.code === "emergencymanagement.urgentEvent");
|
|
2772
|
+
if (filterItem.length > 0) {
|
|
2773
|
+
return filterItem[0].children?.filter((el) => el.code === "emergencymanagement.urgentEvent.releaseUrgent")?.length > 0;
|
|
2774
|
+
} else {
|
|
2775
|
+
return false;
|
|
2776
|
+
}
|
|
2777
|
+
});
|
|
2778
|
+
const releaseDrillAuth = computed(() => {
|
|
2779
|
+
const filterItem = authInfo.value?.filter((e) => e.code === "emergencymanagement.urgentEvent");
|
|
2780
|
+
if (filterItem.length > 0) {
|
|
2781
|
+
return filterItem[0].children?.filter((el) => el.code === "emergencymanagement.urgentEvent.releaseDrill")?.length > 0;
|
|
2782
|
+
} else {
|
|
2783
|
+
return false;
|
|
2784
|
+
}
|
|
2785
|
+
});
|
|
2786
|
+
let authInfo = ref([]);
|
|
2787
|
+
const getAuthInfo = async () => {
|
|
2788
|
+
const [err, data] = await enterpriserightQueryportalmenu().run({
|
|
2789
|
+
code: "emergencymanagement",
|
|
2790
|
+
showBtn: true
|
|
2791
|
+
});
|
|
2792
|
+
if (err) return;
|
|
2793
|
+
if (!data || !data.length) return;
|
|
2794
|
+
authInfo.value = data;
|
|
2795
|
+
};
|
|
2796
|
+
const handleData = (data) => {
|
|
2797
|
+
return {
|
|
2798
|
+
...data,
|
|
2799
|
+
content: handleContent(data)
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
2802
|
+
onMounted(() => {
|
|
2803
|
+
resetTabKey();
|
|
2804
|
+
getAuthInfo();
|
|
2805
|
+
});
|
|
2806
|
+
const resetTabKey = () => {
|
|
2807
|
+
eventRecordTabKey.value = null;
|
|
2808
|
+
originEventRecordTabKey.value = null;
|
|
2809
|
+
};
|
|
2810
|
+
const submitSelect = (data) => {
|
|
2811
|
+
ReleaseUrgentRef?.value?.submitSelect(data);
|
|
2812
|
+
};
|
|
2813
|
+
const { selectOrganizationAndUserVue, selectOrganizationAndUserRef, selectData } = useSelectOrganizationAndUser(submitSelect);
|
|
2814
|
+
const mapConfirm = (data) => {
|
|
2815
|
+
emits("updatePanelActive", true);
|
|
2816
|
+
if (data) {
|
|
2817
|
+
ReleaseUrgentRef?.value?.mapConfirm(data);
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
const { locationSelectVue, locationSelectRef } = useLocationSelect(mapConfirm);
|
|
2821
|
+
const openMapDialog = (location) => {
|
|
2822
|
+
emits("updatePanelActive", false);
|
|
2823
|
+
locationSelectRef.value?.openMapDialog(location);
|
|
2824
|
+
};
|
|
2825
|
+
const openUserDialog = (data) => {
|
|
2826
|
+
selectData.value = data;
|
|
2827
|
+
selectOrganizationAndUserRef.value?.open();
|
|
2828
|
+
};
|
|
2829
|
+
const testData = [
|
|
2830
|
+
{
|
|
2831
|
+
id: "111",
|
|
2832
|
+
title: "\u6D88\u9632\u706B\u707E\u4E00\u7EA7\u9884\u7EA7\u9884\u6848",
|
|
2833
|
+
groupLeaderList: [
|
|
2834
|
+
{
|
|
2835
|
+
name: "\u5F20\u4E09",
|
|
2836
|
+
phone: "15820987763"
|
|
2837
|
+
}
|
|
2838
|
+
],
|
|
2839
|
+
groupMemberList: [
|
|
2840
|
+
{
|
|
2841
|
+
name: "\u674E\u56DB",
|
|
2842
|
+
phone: "15820987763"
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
name: "\u738B\u4E94",
|
|
2846
|
+
phone: "15820987763"
|
|
2847
|
+
}
|
|
2848
|
+
],
|
|
2849
|
+
handleProgramme: "<a>aadaf</a><div>46546</div>",
|
|
2850
|
+
supplyList: [
|
|
2851
|
+
{
|
|
2852
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
2853
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
2854
|
+
},
|
|
2855
|
+
{
|
|
2856
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
2857
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
2861
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
supplyName: "\u52A8\u529B\u6C34\u6CF5\uFF08\u5E26\u53D1\u7535\u673A\uFF09",
|
|
2865
|
+
location: "\u6DF1\u5733\u5927\u5B66\u79D1\u6280\u697C\u5317\u95E8001\u53F7\u4ED3\u5E93"
|
|
2866
|
+
}
|
|
2867
|
+
]
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
id: "222",
|
|
2871
|
+
title: "\u6D88\u9632\u706B\u707Eer\u7EA7\u9884\u7EA7\u9884\u6848",
|
|
2872
|
+
content: ""
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
id: "333",
|
|
2876
|
+
title: "\u6D88\u9632\u706B\u707Esan\u7EA7\u9884\u7EA7\u9884\u6848",
|
|
2877
|
+
content: ""
|
|
2878
|
+
}
|
|
2879
|
+
];
|
|
2880
|
+
__expose({
|
|
2881
|
+
setConfigData
|
|
2882
|
+
});
|
|
2883
|
+
const __returned__ = { i18n, emits, get activeKey() {
|
|
2884
|
+
return activeKey;
|
|
2885
|
+
}, set activeKey(v) {
|
|
2886
|
+
activeKey = v;
|
|
2887
|
+
}, get currentMenuInfo() {
|
|
2888
|
+
return currentMenuInfo;
|
|
2889
|
+
}, set currentMenuInfo(v) {
|
|
2890
|
+
currentMenuInfo = v;
|
|
2891
|
+
}, get eventRecordId() {
|
|
2892
|
+
return eventRecordId;
|
|
2893
|
+
}, set eventRecordId(v) {
|
|
2894
|
+
eventRecordId = v;
|
|
2895
|
+
}, get eventRecordTabKey() {
|
|
2896
|
+
return eventRecordTabKey;
|
|
2897
|
+
}, set eventRecordTabKey(v) {
|
|
2898
|
+
eventRecordTabKey = v;
|
|
2899
|
+
}, get originEventRecordTabKey() {
|
|
2900
|
+
return originEventRecordTabKey;
|
|
2901
|
+
}, set originEventRecordTabKey(v) {
|
|
2902
|
+
originEventRecordTabKey = v;
|
|
2903
|
+
}, get menuInfoBefore() {
|
|
2904
|
+
return menuInfoBefore;
|
|
2905
|
+
}, set menuInfoBefore(v) {
|
|
2906
|
+
menuInfoBefore = v;
|
|
2907
|
+
}, backTo, routerTo, get uncompletedNum() {
|
|
2908
|
+
return uncompletedNum;
|
|
2909
|
+
}, set uncompletedNum(v) {
|
|
2910
|
+
uncompletedNum = v;
|
|
2911
|
+
}, get completedNum() {
|
|
2912
|
+
return completedNum;
|
|
2913
|
+
}, set completedNum(v) {
|
|
2914
|
+
completedNum = v;
|
|
2915
|
+
}, eventError, eventData, eventLoading, getevent, getEventAjax, get planListData() {
|
|
2916
|
+
return planListData;
|
|
2917
|
+
}, set planListData(v) {
|
|
2918
|
+
planListData = v;
|
|
2919
|
+
}, planError, planData, planLoading, getplan, getPlanAjax, setConfigData, releaseType, handleRelease, ReleaseUrgent, ReleaseUrgentRef, cancelRelease, submitRelease, close, urgentEventAuth, urgentPlanAuth, releaseUrgentAuth, releaseDrillAuth, get authInfo() {
|
|
2920
|
+
return authInfo;
|
|
2921
|
+
}, set authInfo(v) {
|
|
2922
|
+
authInfo = v;
|
|
2923
|
+
}, getAuthInfo, handleData, resetTabKey, submitSelect, selectOrganizationAndUserVue, selectOrganizationAndUserRef, selectData, mapConfirm, locationSelectVue, locationSelectRef, openMapDialog, openUserDialog, testData, get DasButton() {
|
|
2924
|
+
return DasButton;
|
|
2925
|
+
}, get DasCollaspe() {
|
|
2926
|
+
return DasCollaspe;
|
|
2927
|
+
}, get DasCollaspePanel() {
|
|
2928
|
+
return DasCollaspePanel;
|
|
2929
|
+
}, get DasIcon() {
|
|
2930
|
+
return DasIcon;
|
|
2931
|
+
}, get DasEmpty() {
|
|
2932
|
+
return DasEmpty;
|
|
2933
|
+
}, get DasTooltip() {
|
|
2934
|
+
return DasTooltip;
|
|
2935
|
+
}, PlanInfo, EventList, EventInfo };
|
|
2936
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
2937
|
+
return __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QQIeABIk4AEgQQIeABIk4AEgQXNlF0BpDiNitewioAz97T+UXQIUzgh+RuURD8quAYDiCPgZlWXZvbJrAKA4An5G9Xr9fyu7BgCKI+Bn1NsbKx9G5A/KrgOAYgj4GdY77X2/7BoAKIaAn2Fv/+W1e3m//+Oy6wBg9AT8jNvcaP6i18+/b7oeIC0Cnnh7Y+XD3lHv3SyyH0XEL3NhDzD1srILACZX7+PIy66B4lRvy4CUGcEDQIIEPAAkSMADQIIEPAAkSMADQIIEPAAkSMADQIIEPAAkSMADQIIEPHChLI97ZddAQfJ4UHYJFEvAAxfKMwGfrCx+WXYJFEvAAxeq9OKnEUZ6CTr802dLwgQ8cKHsg3iQ9+LHEXFYdi2MzIO8Fz/MPvCDW+q8SQh4rfw/4q1+NX6S5fFOnsU7ZdfD4LI87uVZ3Kv04qfCHQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYr/8Fd/zKzHmz05EAAAAASUVORK5CYII=";
|
|
2942
|
+
|
|
2943
|
+
const _withScopeId = (n) => (pushScopeId("data-v-f311aa77"), n = n(), popScopeId(), n);
|
|
2944
|
+
const _hoisted_1$2 = { class: "emergency-panel-container" };
|
|
2945
|
+
const _hoisted_2$2 = { class: "emergency-panel-content" };
|
|
2946
|
+
const _hoisted_3$2 = { class: "event-header" };
|
|
2947
|
+
const _hoisted_4$2 = { style: { "flex": "1", "min-width": "0", "display": "flex", "align-items": "center" } };
|
|
2948
|
+
const _hoisted_5$1 = { class: "title" };
|
|
2949
|
+
const _hoisted_6$1 = {
|
|
2950
|
+
key: 0,
|
|
2951
|
+
class: "repair-nav"
|
|
2952
|
+
};
|
|
2953
|
+
const _hoisted_7$1 = { class: "nav-detail-tit" };
|
|
2954
|
+
const _hoisted_8$1 = {
|
|
2955
|
+
key: 1,
|
|
2956
|
+
class: "plan-list-wrap"
|
|
2957
|
+
};
|
|
2958
|
+
const _hoisted_9 = {
|
|
2959
|
+
key: 1,
|
|
2960
|
+
class: "no-auth"
|
|
2961
|
+
};
|
|
2962
|
+
const _hoisted_10 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
2963
|
+
"img",
|
|
2964
|
+
{
|
|
2965
|
+
src: img,
|
|
2966
|
+
width: "168px"
|
|
2967
|
+
},
|
|
2968
|
+
null,
|
|
2969
|
+
-1
|
|
2970
|
+
/* HOISTED */
|
|
2971
|
+
));
|
|
2972
|
+
const _hoisted_11 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
|
|
2973
|
+
"span",
|
|
2974
|
+
null,
|
|
2975
|
+
"\u6682\u65E0\u6743\u9650",
|
|
2976
|
+
-1
|
|
2977
|
+
/* HOISTED */
|
|
2978
|
+
));
|
|
2979
|
+
const _hoisted_12 = [
|
|
2980
|
+
_hoisted_10,
|
|
2981
|
+
_hoisted_11
|
|
2982
|
+
];
|
|
2983
|
+
const _hoisted_13 = {
|
|
2984
|
+
key: 1,
|
|
2985
|
+
class: "empty-block"
|
|
2986
|
+
};
|
|
2987
|
+
const _hoisted_14 = {
|
|
2988
|
+
key: 0,
|
|
2989
|
+
class: "bottom-menu"
|
|
2990
|
+
};
|
|
2991
|
+
const _hoisted_15 = {
|
|
2992
|
+
key: 1,
|
|
2993
|
+
class: "bottom-menu"
|
|
2994
|
+
};
|
|
2995
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
2996
|
+
const _directive_loading = resolveDirective("loading");
|
|
2997
|
+
return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
2998
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
2999
|
+
createElementVNode(
|
|
3000
|
+
"div",
|
|
3001
|
+
{
|
|
3002
|
+
class: normalizeClass([
|
|
3003
|
+
"content-wrap",
|
|
3004
|
+
{ "has-bottom": $setup.releaseUrgentAuth || $setup.releaseDrillAuth || $setup.currentMenuInfo.currentMenu === "releaseurgent" }
|
|
3005
|
+
])
|
|
3006
|
+
},
|
|
3007
|
+
[
|
|
3008
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
3009
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
3010
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
3011
|
+
createVNode($setup["DasTooltip"], {
|
|
3012
|
+
text: $setup.currentMenuInfo.titleName
|
|
3013
|
+
}, null, 8, ["text"])
|
|
3014
|
+
]),
|
|
3015
|
+
!$setup.currentMenuInfo.currentMenu ? (openBlock(), createBlock($setup["DasButton"], {
|
|
3016
|
+
key: 0,
|
|
3017
|
+
btnType: "primary-text",
|
|
3018
|
+
size: "large",
|
|
3019
|
+
block: "",
|
|
3020
|
+
disabled: !$setup.urgentEventAuth,
|
|
3021
|
+
onClick: _cache[0] || (_cache[0] = ($event) => $setup.routerTo("eventList"))
|
|
3022
|
+
}, {
|
|
3023
|
+
default: withCtx(() => [
|
|
3024
|
+
createTextVNode(
|
|
3025
|
+
"\u672A\u5B8C\u6210" + toDisplayString($setup.uncompletedNum) + "\uFF0C\u5DF2\u5B8C\u6210" + toDisplayString($setup.completedNum),
|
|
3026
|
+
1
|
|
3027
|
+
/* TEXT */
|
|
3028
|
+
)
|
|
3029
|
+
]),
|
|
3030
|
+
_: 1
|
|
3031
|
+
/* STABLE */
|
|
3032
|
+
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
3033
|
+
]),
|
|
3034
|
+
createVNode($setup["DasIcon"], {
|
|
3035
|
+
icon: "close2",
|
|
3036
|
+
customSize: "10",
|
|
3037
|
+
onClick: $setup.close
|
|
3038
|
+
})
|
|
3039
|
+
]),
|
|
3040
|
+
createCommentVNode(" \u5BFC\u822A\u680F "),
|
|
3041
|
+
$setup.currentMenuInfo.showNav ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
3042
|
+
createElementVNode("span", {
|
|
3043
|
+
class: "back-block",
|
|
3044
|
+
onClick: $setup.backTo
|
|
3045
|
+
}, [
|
|
3046
|
+
createVNode($setup["DasIcon"], {
|
|
3047
|
+
icon: "left",
|
|
3048
|
+
size: "small",
|
|
3049
|
+
iconColor: "#666"
|
|
3050
|
+
}),
|
|
3051
|
+
createElementVNode(
|
|
3052
|
+
"span",
|
|
3053
|
+
_hoisted_7$1,
|
|
3054
|
+
toDisplayString($setup.currentMenuInfo.navName),
|
|
3055
|
+
1
|
|
3056
|
+
/* TEXT */
|
|
3057
|
+
)
|
|
3058
|
+
])
|
|
3059
|
+
])) : createCommentVNode("v-if", true),
|
|
3060
|
+
createCommentVNode(" \u9996\u9875 "),
|
|
3061
|
+
!$setup.currentMenuInfo.currentMenu ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
3062
|
+
$setup.planListData?.length > 0 ? (openBlock(), createBlock($setup["DasCollaspe"], {
|
|
3063
|
+
key: 0,
|
|
3064
|
+
activeKey: $setup.activeKey,
|
|
3065
|
+
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => $setup.activeKey = $event),
|
|
3066
|
+
accordion: ""
|
|
3067
|
+
}, {
|
|
3068
|
+
default: withCtx(() => [
|
|
3069
|
+
(openBlock(true), createElementBlock(
|
|
3070
|
+
Fragment,
|
|
3071
|
+
null,
|
|
3072
|
+
renderList($setup.planListData, (item, index) => {
|
|
3073
|
+
return openBlock(), createBlock($setup["DasCollaspePanel"], {
|
|
3074
|
+
header: item.title,
|
|
3075
|
+
key: index + 1
|
|
3076
|
+
}, {
|
|
3077
|
+
default: withCtx(() => [
|
|
3078
|
+
createCommentVNode(" \u9884\u6848\u4FE1\u606F "),
|
|
3079
|
+
$setup.urgentPlanAuth ? (openBlock(), createBlock($setup["PlanInfo"], {
|
|
3080
|
+
key: 0,
|
|
3081
|
+
content: item.content
|
|
3082
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("div", _hoisted_9, [..._hoisted_12]))
|
|
3083
|
+
]),
|
|
3084
|
+
_: 2
|
|
3085
|
+
/* DYNAMIC */
|
|
3086
|
+
}, 1032, ["header"]);
|
|
3087
|
+
}),
|
|
3088
|
+
128
|
|
3089
|
+
/* KEYED_FRAGMENT */
|
|
3090
|
+
))
|
|
3091
|
+
]),
|
|
3092
|
+
_: 1
|
|
3093
|
+
/* STABLE */
|
|
3094
|
+
}, 8, ["activeKey"])) : (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
3095
|
+
!$setup.planLoading ? (openBlock(), createBlock($setup["DasEmpty"], { key: 0 })) : createCommentVNode("v-if", true)
|
|
3096
|
+
]))
|
|
3097
|
+
])) : createCommentVNode("v-if", true),
|
|
3098
|
+
createCommentVNode(" \u5E94\u6025\u4E8B\u4EF6\u5217\u8868 "),
|
|
3099
|
+
$setup.currentMenuInfo.currentMenu === "eventlist" ? (openBlock(), createBlock($setup["EventList"], {
|
|
3100
|
+
key: 2,
|
|
3101
|
+
onRouterTo: $setup.routerTo
|
|
3102
|
+
})) : createCommentVNode("v-if", true),
|
|
3103
|
+
createCommentVNode(" \u5E94\u6025\u4E8B\u4EF6\u8BE6\u60C5 "),
|
|
3104
|
+
$setup.currentMenuInfo.currentMenu === "eventInfo" ? (openBlock(), createBlock($setup["EventInfo"], {
|
|
3105
|
+
key: 3,
|
|
3106
|
+
id: $setup.eventRecordId,
|
|
3107
|
+
tabKey: $setup.eventRecordTabKey,
|
|
3108
|
+
"onUpdate:tabKey": _cache[2] || (_cache[2] = ($event) => $setup.eventRecordTabKey = $event)
|
|
3109
|
+
}, null, 8, ["id", "tabKey"])) : createCommentVNode("v-if", true),
|
|
3110
|
+
createCommentVNode(" \u53D1\u5E03\u5E94\u6025 "),
|
|
3111
|
+
$setup.currentMenuInfo.currentMenu === "releaseurgent" ? (openBlock(), createBlock($setup["ReleaseUrgent"], {
|
|
3112
|
+
key: 4,
|
|
3113
|
+
onOpenMapDialog: $setup.openMapDialog,
|
|
3114
|
+
onReleaseSuccess: $setup.backTo,
|
|
3115
|
+
onOpenUserDialog: $setup.openUserDialog
|
|
3116
|
+
})) : createCommentVNode("v-if", true)
|
|
3117
|
+
],
|
|
3118
|
+
2
|
|
3119
|
+
/* CLASS */
|
|
3120
|
+
),
|
|
3121
|
+
$setup.currentMenuInfo.currentMenu === "releaseurgent" ? (openBlock(), createElementBlock("div", _hoisted_14, [
|
|
3122
|
+
createVNode($setup["DasButton"], { onClick: $setup.cancelRelease }, {
|
|
3123
|
+
default: withCtx(() => [
|
|
3124
|
+
createTextVNode(
|
|
3125
|
+
toDisplayString($setup.i18n("\u53D6\u6D88")),
|
|
3126
|
+
1
|
|
3127
|
+
/* TEXT */
|
|
3128
|
+
)
|
|
3129
|
+
]),
|
|
3130
|
+
_: 1
|
|
3131
|
+
/* STABLE */
|
|
3132
|
+
}),
|
|
3133
|
+
createVNode($setup["DasButton"], {
|
|
3134
|
+
btnType: "primary",
|
|
3135
|
+
onClick: $setup.submitRelease
|
|
3136
|
+
}, {
|
|
3137
|
+
default: withCtx(() => [
|
|
3138
|
+
createTextVNode(
|
|
3139
|
+
toDisplayString($setup.i18n("\u4FDD\u5B58")),
|
|
3140
|
+
1
|
|
3141
|
+
/* TEXT */
|
|
3142
|
+
)
|
|
3143
|
+
]),
|
|
3144
|
+
_: 1
|
|
3145
|
+
/* STABLE */
|
|
3146
|
+
})
|
|
3147
|
+
])) : createCommentVNode("v-if", true),
|
|
3148
|
+
$setup.currentMenuInfo.currentMenu !== "releaseurgent" && ($setup.releaseUrgentAuth || $setup.releaseDrillAuth) ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
3149
|
+
$setup.releaseUrgentAuth ? (openBlock(), createBlock($setup["DasButton"], {
|
|
3150
|
+
key: 0,
|
|
3151
|
+
block: "",
|
|
3152
|
+
onClick: _cache[3] || (_cache[3] = ($event) => $setup.handleRelease("1"))
|
|
3153
|
+
}, {
|
|
3154
|
+
default: withCtx(() => [
|
|
3155
|
+
createTextVNode(
|
|
3156
|
+
toDisplayString($setup.i18n("\u53D1\u5E03\u5E94\u6025")),
|
|
3157
|
+
1
|
|
3158
|
+
/* TEXT */
|
|
3159
|
+
)
|
|
3160
|
+
]),
|
|
3161
|
+
_: 1
|
|
3162
|
+
/* STABLE */
|
|
3163
|
+
})) : createCommentVNode("v-if", true),
|
|
3164
|
+
$setup.releaseDrillAuth ? (openBlock(), createBlock($setup["DasButton"], {
|
|
3165
|
+
key: 1,
|
|
3166
|
+
btnType: "primary",
|
|
3167
|
+
block: "",
|
|
3168
|
+
onClick: _cache[4] || (_cache[4] = ($event) => $setup.handleRelease("2"))
|
|
3169
|
+
}, {
|
|
3170
|
+
default: withCtx(() => [
|
|
3171
|
+
createTextVNode(
|
|
3172
|
+
toDisplayString($setup.i18n("\u53D1\u5E03\u6F14\u7EC3")),
|
|
3173
|
+
1
|
|
3174
|
+
/* TEXT */
|
|
3175
|
+
)
|
|
3176
|
+
]),
|
|
3177
|
+
_: 1
|
|
3178
|
+
/* STABLE */
|
|
3179
|
+
})) : createCommentVNode("v-if", true)
|
|
3180
|
+
])) : createCommentVNode("v-if", true)
|
|
3181
|
+
]),
|
|
3182
|
+
createCommentVNode(" \u6DFB\u52A0\u7528\u6237-\u5F39\u7A97 "),
|
|
3183
|
+
createVNode($setup["selectOrganizationAndUserVue"]),
|
|
3184
|
+
createCommentVNode(" \u4E8B\u4EF6\u5B9A\u4F4D\u5F39\u7A97 "),
|
|
3185
|
+
createVNode($setup["locationSelectVue"])
|
|
3186
|
+
])), [
|
|
3187
|
+
[_directive_loading, $setup.eventLoading || $setup.planLoading]
|
|
3188
|
+
]);
|
|
3189
|
+
}
|
|
3190
|
+
var urgentPanelModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-f311aa77"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/index.vue"]]);
|
|
3191
|
+
|
|
3192
|
+
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
3193
|
+
__name: "urgentMonitorPanel",
|
|
3194
|
+
emits: ["closePanel", "updatePanelActive", "resizePanel"],
|
|
3195
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
3196
|
+
const i18n = useI18n();
|
|
3197
|
+
const emits = __emit;
|
|
3198
|
+
const heardHeight = ref(0);
|
|
3199
|
+
let activeKey = ref(1);
|
|
3200
|
+
let currentMenuInfo = ref({
|
|
3201
|
+
currentMenu: "eventInfo",
|
|
3202
|
+
titleName: "",
|
|
3203
|
+
showNav: false,
|
|
3204
|
+
navName: ""
|
|
3205
|
+
});
|
|
3206
|
+
let eventRecordId = ref(null);
|
|
3207
|
+
let eventRecordTabKey = ref(null);
|
|
3208
|
+
let originEventRecordTabKey = ref(null);
|
|
3209
|
+
let menuInfoBefore = ref({
|
|
3210
|
+
currentMenu: "",
|
|
3211
|
+
titleName: "",
|
|
3212
|
+
showNav: false,
|
|
3213
|
+
navName: ""
|
|
3214
|
+
});
|
|
3215
|
+
const backTo = () => {
|
|
3216
|
+
if (currentMenuInfo.value.currentMenu === "releaseurgent") {
|
|
3217
|
+
currentMenuInfo.value = menuInfoBefore.value;
|
|
3218
|
+
if (menuInfoBefore.value?.currentMenu === "eventInfo") {
|
|
3219
|
+
eventRecordTabKey.value = originEventRecordTabKey.value;
|
|
3220
|
+
}
|
|
3221
|
+
}
|
|
3222
|
+
};
|
|
3223
|
+
let cback = () => {
|
|
3224
|
+
};
|
|
3225
|
+
const releaseSuccess = () => {
|
|
3226
|
+
if (currentMenuInfo.value.currentMenu === "releaseurgent") {
|
|
3227
|
+
currentMenuInfo.value = menuInfoBefore.value;
|
|
3228
|
+
}
|
|
3229
|
+
try {
|
|
3230
|
+
cback();
|
|
3231
|
+
} catch (error) {
|
|
3232
|
+
console.log("\u56DE\u8C03\u5931\u8D25");
|
|
3233
|
+
}
|
|
3234
|
+
};
|
|
3235
|
+
const setConfigData = (eventId, eventName, cb) => {
|
|
3236
|
+
activeKey.value = 1;
|
|
3237
|
+
eventRecordId.value = eventId;
|
|
3238
|
+
currentMenuInfo.value = {
|
|
3239
|
+
currentMenu: "eventInfo",
|
|
3240
|
+
titleName: eventName,
|
|
3241
|
+
showNav: false,
|
|
3242
|
+
navName: ""
|
|
3243
|
+
};
|
|
3244
|
+
menuInfoBefore.value = {
|
|
3245
|
+
currentMenu: "eventInfo",
|
|
3246
|
+
titleName: eventName,
|
|
3247
|
+
showNav: false,
|
|
3248
|
+
navName: ""
|
|
3249
|
+
};
|
|
3250
|
+
if (cb) {
|
|
3251
|
+
cback = cb;
|
|
3252
|
+
}
|
|
3253
|
+
};
|
|
3254
|
+
const releaseType = ref("");
|
|
3255
|
+
const handleRelease = (type) => {
|
|
3256
|
+
originEventRecordTabKey.value = eventRecordTabKey.value;
|
|
3257
|
+
releaseType.value = type;
|
|
3258
|
+
menuInfoBefore.value = currentMenuInfo.value;
|
|
3259
|
+
currentMenuInfo.value = {
|
|
3260
|
+
currentMenu: "releaseurgent",
|
|
3261
|
+
titleName: type === "1" ? "\u53D1\u5E03\u5E94\u6025" : "\u53D1\u5E03\u6F14\u7EC3",
|
|
3262
|
+
showNav: true,
|
|
3263
|
+
navName: type === "1" ? "\u5E94\u6025\u5185\u5BB9" : "\u6F14\u7EC3\u5185\u5BB9"
|
|
3264
|
+
};
|
|
3265
|
+
};
|
|
3266
|
+
const { ReleaseUrgent, ReleaseUrgentRef } = useReleaseUrgent({ releaseType });
|
|
3267
|
+
const cancelRelease = () => {
|
|
3268
|
+
currentMenuInfo.value = menuInfoBefore.value;
|
|
3269
|
+
};
|
|
3270
|
+
const submitRelease = () => {
|
|
3271
|
+
ReleaseUrgentRef?.value?.save();
|
|
3272
|
+
};
|
|
3273
|
+
const close = () => {
|
|
3274
|
+
emits("closePanel");
|
|
3275
|
+
};
|
|
3276
|
+
const urgentEventAuth = computed(
|
|
3277
|
+
() => (getPageAuthBtn("emergencymanagement.urgentEvent", "emergencymanagement") || []).length > 0
|
|
3278
|
+
);
|
|
3279
|
+
const urgentPlanAuth = computed(
|
|
3280
|
+
() => (getPageAuthBtn("emergencymanagement.urgentPlan", "emergencymanagement") || []).length > 0
|
|
3281
|
+
);
|
|
3282
|
+
const releaseUrgentAuth = computed(
|
|
3283
|
+
() => ((getPageAuthBtn("emergencymanagement.urgentEvent", "emergencymanagement") || [])?.filter(
|
|
3284
|
+
(e) => e.code === "releaseUrgent"
|
|
3285
|
+
) || []).length > 0
|
|
3286
|
+
);
|
|
3287
|
+
const releaseDrillAuth = computed(
|
|
3288
|
+
() => ((getPageAuthBtn("emergencymanagement.urgentEvent", "emergencymanagement") || [])?.filter(
|
|
3289
|
+
(e) => e.code === "releaseDrill"
|
|
3290
|
+
) || []).length > 0
|
|
3291
|
+
);
|
|
3292
|
+
onMounted(() => {
|
|
3293
|
+
resetTabKey();
|
|
3294
|
+
console.log(document.documentElement.clientHeight);
|
|
3295
|
+
console.log(window.screen.width);
|
|
3296
|
+
});
|
|
3297
|
+
const resetTabKey = () => {
|
|
3298
|
+
eventRecordTabKey.value = null;
|
|
3299
|
+
originEventRecordTabKey.value = null;
|
|
3300
|
+
};
|
|
3301
|
+
const submitSelect = (data) => {
|
|
3302
|
+
ReleaseUrgentRef?.value?.submitSelect(data);
|
|
3303
|
+
};
|
|
3304
|
+
const { selectOrganizationAndUserVue, selectOrganizationAndUserRef, selectData } = useSelectOrganizationAndUser(submitSelect);
|
|
3305
|
+
const mapConfirm = (data) => {
|
|
3306
|
+
emits("updatePanelActive", true);
|
|
3307
|
+
if (data) {
|
|
3308
|
+
ReleaseUrgentRef?.value?.mapConfirm(data);
|
|
3309
|
+
}
|
|
3310
|
+
};
|
|
3311
|
+
const { locationSelectVue, locationSelectRef } = useLocationSelect(mapConfirm);
|
|
3312
|
+
const openMapDialog = (location) => {
|
|
3313
|
+
locationSelectRef.value?.openMapDialog(location);
|
|
3314
|
+
};
|
|
3315
|
+
const openUserDialog = (data) => {
|
|
3316
|
+
emits("updatePanelActive", false);
|
|
3317
|
+
selectData.value = data;
|
|
3318
|
+
selectOrganizationAndUserRef.value?.open();
|
|
3319
|
+
};
|
|
3320
|
+
__expose({
|
|
3321
|
+
setConfigData
|
|
3322
|
+
});
|
|
3323
|
+
const __returned__ = { i18n, emits, heardHeight, get activeKey() {
|
|
3324
|
+
return activeKey;
|
|
3325
|
+
}, set activeKey(v) {
|
|
3326
|
+
activeKey = v;
|
|
3327
|
+
}, get currentMenuInfo() {
|
|
3328
|
+
return currentMenuInfo;
|
|
3329
|
+
}, set currentMenuInfo(v) {
|
|
3330
|
+
currentMenuInfo = v;
|
|
3331
|
+
}, get eventRecordId() {
|
|
3332
|
+
return eventRecordId;
|
|
3333
|
+
}, set eventRecordId(v) {
|
|
3334
|
+
eventRecordId = v;
|
|
3335
|
+
}, get eventRecordTabKey() {
|
|
3336
|
+
return eventRecordTabKey;
|
|
3337
|
+
}, set eventRecordTabKey(v) {
|
|
3338
|
+
eventRecordTabKey = v;
|
|
3339
|
+
}, get originEventRecordTabKey() {
|
|
3340
|
+
return originEventRecordTabKey;
|
|
3341
|
+
}, set originEventRecordTabKey(v) {
|
|
3342
|
+
originEventRecordTabKey = v;
|
|
3343
|
+
}, get menuInfoBefore() {
|
|
3344
|
+
return menuInfoBefore;
|
|
3345
|
+
}, set menuInfoBefore(v) {
|
|
3346
|
+
menuInfoBefore = v;
|
|
3347
|
+
}, backTo, get cback() {
|
|
3348
|
+
return cback;
|
|
3349
|
+
}, set cback(v) {
|
|
3350
|
+
cback = v;
|
|
3351
|
+
}, releaseSuccess, setConfigData, releaseType, handleRelease, ReleaseUrgent, ReleaseUrgentRef, cancelRelease, submitRelease, close, urgentEventAuth, urgentPlanAuth, releaseUrgentAuth, releaseDrillAuth, resetTabKey, submitSelect, selectOrganizationAndUserVue, selectOrganizationAndUserRef, selectData, mapConfirm, locationSelectVue, locationSelectRef, openMapDialog, openUserDialog, get DasButton() {
|
|
3352
|
+
return DasButton;
|
|
3353
|
+
}, get DasIcon() {
|
|
3354
|
+
return DasIcon;
|
|
3355
|
+
}, get DasTooltip() {
|
|
3356
|
+
return DasTooltip;
|
|
3357
|
+
}, EventInfo };
|
|
3358
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
3359
|
+
return __returned__;
|
|
3360
|
+
}
|
|
3361
|
+
});
|
|
3362
|
+
|
|
3363
|
+
const _hoisted_1$1 = { class: "emergency-panel-content" };
|
|
3364
|
+
const _hoisted_2$1 = { class: "event-header" };
|
|
3365
|
+
const _hoisted_3$1 = { style: { "flex": "1", "min-width": "0", "display": "flex", "align-items": "center" } };
|
|
3366
|
+
const _hoisted_4$1 = { class: "title" };
|
|
3367
|
+
const _hoisted_5 = {
|
|
3368
|
+
key: 0,
|
|
3369
|
+
class: "repair-nav"
|
|
3370
|
+
};
|
|
3371
|
+
const _hoisted_6 = { class: "nav-detail-tit" };
|
|
3372
|
+
const _hoisted_7 = {
|
|
3373
|
+
key: 0,
|
|
3374
|
+
class: "bottom-menu"
|
|
3375
|
+
};
|
|
3376
|
+
const _hoisted_8 = {
|
|
3377
|
+
key: 1,
|
|
3378
|
+
class: "bottom-menu"
|
|
3379
|
+
};
|
|
3380
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3381
|
+
return openBlock(), createElementBlock(
|
|
3382
|
+
"div",
|
|
3383
|
+
{
|
|
3384
|
+
class: "emergency-monitor-panel-container",
|
|
3385
|
+
style: normalizeStyle({ top: `${$setup.heardHeight}px` })
|
|
3386
|
+
},
|
|
3387
|
+
[
|
|
3388
|
+
createElementVNode("div", _hoisted_1$1, [
|
|
3389
|
+
createElementVNode(
|
|
3390
|
+
"div",
|
|
3391
|
+
{
|
|
3392
|
+
class: normalizeClass([
|
|
3393
|
+
"content-wrap",
|
|
3394
|
+
{ "has-bottom": $setup.releaseUrgentAuth || $setup.releaseDrillAuth || $setup.currentMenuInfo.currentMenu === "releaseurgent" }
|
|
3395
|
+
])
|
|
3396
|
+
},
|
|
3397
|
+
[
|
|
3398
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
3399
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
3400
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
3401
|
+
createVNode($setup["DasTooltip"], {
|
|
3402
|
+
text: $setup.currentMenuInfo.titleName
|
|
3403
|
+
}, null, 8, ["text"])
|
|
3404
|
+
])
|
|
3405
|
+
]),
|
|
3406
|
+
createVNode($setup["DasIcon"], {
|
|
3407
|
+
icon: "close2",
|
|
3408
|
+
customSize: "10",
|
|
3409
|
+
onClick: $setup.close
|
|
3410
|
+
})
|
|
3411
|
+
]),
|
|
3412
|
+
createCommentVNode(" \u5BFC\u822A\u680F "),
|
|
3413
|
+
$setup.currentMenuInfo.showNav ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
3414
|
+
createElementVNode("span", {
|
|
3415
|
+
class: "back-block",
|
|
3416
|
+
onClick: $setup.backTo
|
|
3417
|
+
}, [
|
|
3418
|
+
createVNode($setup["DasIcon"], {
|
|
3419
|
+
icon: "left",
|
|
3420
|
+
size: "small",
|
|
3421
|
+
iconColor: "#666"
|
|
3422
|
+
}),
|
|
3423
|
+
createElementVNode(
|
|
3424
|
+
"span",
|
|
3425
|
+
_hoisted_6,
|
|
3426
|
+
toDisplayString($setup.currentMenuInfo.navName),
|
|
3427
|
+
1
|
|
3428
|
+
/* TEXT */
|
|
3429
|
+
)
|
|
3430
|
+
])
|
|
3431
|
+
])) : createCommentVNode("v-if", true),
|
|
3432
|
+
createCommentVNode(" \u5E94\u6025\u4E8B\u4EF6\u8BE6\u60C5 "),
|
|
3433
|
+
$setup.currentMenuInfo.currentMenu === "eventInfo" ? (openBlock(), createBlock($setup["EventInfo"], {
|
|
3434
|
+
key: 1,
|
|
3435
|
+
id: $setup.eventRecordId,
|
|
3436
|
+
tabKey: $setup.eventRecordTabKey,
|
|
3437
|
+
"onUpdate:tabKey": _cache[0] || (_cache[0] = ($event) => $setup.eventRecordTabKey = $event)
|
|
3438
|
+
}, null, 8, ["id", "tabKey"])) : createCommentVNode("v-if", true),
|
|
3439
|
+
createCommentVNode(" \u53D1\u5E03\u5E94\u6025 "),
|
|
3440
|
+
$setup.currentMenuInfo.currentMenu === "releaseurgent" ? (openBlock(), createBlock($setup["ReleaseUrgent"], {
|
|
3441
|
+
key: 2,
|
|
3442
|
+
onOpenMapDialog: $setup.openMapDialog,
|
|
3443
|
+
onReleaseSuccess: $setup.releaseSuccess,
|
|
3444
|
+
onOpenUserDialog: $setup.openUserDialog
|
|
3445
|
+
})) : createCommentVNode("v-if", true)
|
|
3446
|
+
],
|
|
3447
|
+
2
|
|
3448
|
+
/* CLASS */
|
|
3449
|
+
),
|
|
3450
|
+
$setup.currentMenuInfo.currentMenu === "releaseurgent" ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
3451
|
+
createVNode($setup["DasButton"], { onClick: $setup.cancelRelease }, {
|
|
3452
|
+
default: withCtx(() => [
|
|
3453
|
+
createTextVNode(
|
|
3454
|
+
toDisplayString($setup.i18n("\u53D6\u6D88")),
|
|
3455
|
+
1
|
|
3456
|
+
/* TEXT */
|
|
3457
|
+
)
|
|
3458
|
+
]),
|
|
3459
|
+
_: 1
|
|
3460
|
+
/* STABLE */
|
|
3461
|
+
}),
|
|
3462
|
+
createVNode($setup["DasButton"], {
|
|
3463
|
+
btnType: "primary",
|
|
3464
|
+
onClick: $setup.submitRelease
|
|
3465
|
+
}, {
|
|
3466
|
+
default: withCtx(() => [
|
|
3467
|
+
createTextVNode(
|
|
3468
|
+
toDisplayString($setup.i18n("\u4FDD\u5B58")),
|
|
3469
|
+
1
|
|
3470
|
+
/* TEXT */
|
|
3471
|
+
)
|
|
3472
|
+
]),
|
|
3473
|
+
_: 1
|
|
3474
|
+
/* STABLE */
|
|
3475
|
+
})
|
|
3476
|
+
])) : createCommentVNode("v-if", true),
|
|
3477
|
+
$setup.currentMenuInfo.currentMenu !== "releaseurgent" && ($setup.releaseUrgentAuth || $setup.releaseDrillAuth) ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
3478
|
+
$setup.releaseUrgentAuth ? (openBlock(), createBlock($setup["DasButton"], {
|
|
3479
|
+
key: 0,
|
|
3480
|
+
block: "",
|
|
3481
|
+
onClick: _cache[1] || (_cache[1] = ($event) => $setup.handleRelease("1"))
|
|
3482
|
+
}, {
|
|
3483
|
+
default: withCtx(() => [
|
|
3484
|
+
createTextVNode(
|
|
3485
|
+
toDisplayString($setup.i18n("\u53D1\u5E03\u5E94\u6025")),
|
|
3486
|
+
1
|
|
3487
|
+
/* TEXT */
|
|
3488
|
+
)
|
|
3489
|
+
]),
|
|
3490
|
+
_: 1
|
|
3491
|
+
/* STABLE */
|
|
3492
|
+
})) : createCommentVNode("v-if", true),
|
|
3493
|
+
$setup.releaseDrillAuth ? (openBlock(), createBlock($setup["DasButton"], {
|
|
3494
|
+
key: 1,
|
|
3495
|
+
btnType: "primary",
|
|
3496
|
+
block: "",
|
|
3497
|
+
onClick: _cache[2] || (_cache[2] = ($event) => $setup.handleRelease("2"))
|
|
3498
|
+
}, {
|
|
3499
|
+
default: withCtx(() => [
|
|
3500
|
+
createTextVNode(
|
|
3501
|
+
toDisplayString($setup.i18n("\u53D1\u5E03\u6F14\u7EC3")),
|
|
3502
|
+
1
|
|
3503
|
+
/* TEXT */
|
|
3504
|
+
)
|
|
3505
|
+
]),
|
|
3506
|
+
_: 1
|
|
3507
|
+
/* STABLE */
|
|
3508
|
+
})) : createCommentVNode("v-if", true)
|
|
3509
|
+
])) : createCommentVNode("v-if", true)
|
|
3510
|
+
]),
|
|
3511
|
+
createCommentVNode(" \u6DFB\u52A0\u7528\u6237-\u5F39\u7A97 "),
|
|
3512
|
+
createVNode($setup["selectOrganizationAndUserVue"]),
|
|
3513
|
+
createCommentVNode(" \u4E8B\u4EF6\u5B9A\u4F4D\u5F39\u7A97 "),
|
|
3514
|
+
createVNode($setup["locationSelectVue"])
|
|
3515
|
+
],
|
|
3516
|
+
4
|
|
3517
|
+
/* STYLE */
|
|
3518
|
+
);
|
|
3519
|
+
}
|
|
3520
|
+
var urgentMonitorPanelModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-d9c163dc"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/components/urgentPanelModal/urgentMonitorPanel.vue"]]);
|
|
3521
|
+
|
|
3522
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3523
|
+
__name: "index",
|
|
3524
|
+
setup(__props, { expose: __expose }) {
|
|
3525
|
+
const paneldrag = ref(null);
|
|
3526
|
+
const isFirst = ref(true);
|
|
3527
|
+
const urgentPanel = ref(null);
|
|
3528
|
+
const urgentPanelShowTag = ref(false);
|
|
3529
|
+
const urgentMonitorPanel = ref(null);
|
|
3530
|
+
const urgentMonitorPanelShowTag = ref(false);
|
|
3531
|
+
const panelActive = ref(true);
|
|
3532
|
+
const parentH = ref(0);
|
|
3533
|
+
const parentW = ref(0);
|
|
3534
|
+
const panelMinWidth = ref(0);
|
|
3535
|
+
const panelMinHeight = ref(0);
|
|
3536
|
+
const panelWidth = ref(0);
|
|
3537
|
+
const panelHeight = ref(0);
|
|
3538
|
+
const offsetXT = ref(0);
|
|
3539
|
+
const offsetY = ref(0);
|
|
3540
|
+
const tempLeft = ref(0);
|
|
3541
|
+
const route = useRoute();
|
|
3542
|
+
const pageStyleList = ref([]);
|
|
3543
|
+
const devicePanelDetail = ref({});
|
|
3544
|
+
const clickDom = ref(null);
|
|
3545
|
+
const clickIntDom = ref(null);
|
|
3546
|
+
const panelTestRef = ref(null);
|
|
3547
|
+
const resizeObserver = ref(null);
|
|
3548
|
+
const heardHeight = ref(48);
|
|
3549
|
+
const rightWidth = ref(0);
|
|
3550
|
+
const viewHeight = computed(() => document.body.clientHeight || 800);
|
|
3551
|
+
const maxDragWidth = computed(() => window.screen.width * 0.4 || 500);
|
|
3552
|
+
const minDragHeight = computed(() => window.screen.height * 0.5 || 540);
|
|
3553
|
+
const winStyle = ref({
|
|
3554
|
+
top: 0,
|
|
3555
|
+
right: 0,
|
|
3556
|
+
left: 0,
|
|
3557
|
+
width: 460,
|
|
3558
|
+
height: 800
|
|
3559
|
+
});
|
|
3560
|
+
const defaultWinStyle = ref({
|
|
3561
|
+
top: 0,
|
|
3562
|
+
right: 0,
|
|
3563
|
+
left: 0,
|
|
3564
|
+
width: 460,
|
|
3565
|
+
height: viewHeight.value || 800,
|
|
3566
|
+
minWidth: 460,
|
|
3567
|
+
minHeight: minDragHeight
|
|
3568
|
+
});
|
|
3569
|
+
const startWatch = () => {
|
|
3570
|
+
if (!resizeObserver.value) {
|
|
3571
|
+
resizeObserver.value = SizeWatcher(() => {
|
|
3572
|
+
console.log("SizeWatcher1111111111");
|
|
3573
|
+
getDom();
|
|
3574
|
+
}, panelTestRef.value);
|
|
3575
|
+
}
|
|
3576
|
+
};
|
|
3577
|
+
const destroyWatch = () => {
|
|
3578
|
+
console.log("destroyWatch1111111111");
|
|
3579
|
+
resizeObserver.value?.disconnect();
|
|
3580
|
+
resizeObserver.value = null;
|
|
3581
|
+
};
|
|
3582
|
+
const getDom = () => {
|
|
3583
|
+
const dom = document.getElementsByClassName("das-web-app-main-router-view")[0];
|
|
3584
|
+
console.log("getDom", dom?.getBoundingClientRect());
|
|
3585
|
+
if (dom) {
|
|
3586
|
+
heardHeight.value = dom.getBoundingClientRect().top;
|
|
3587
|
+
rightWidth.value = dom.getBoundingClientRect().left;
|
|
3588
|
+
deviceData.paneldrag = paneldrag.value;
|
|
3589
|
+
}
|
|
3590
|
+
};
|
|
3591
|
+
watchEffect(() => {
|
|
3592
|
+
if (urgentPanelShowTag.value) {
|
|
3593
|
+
nextTick(() => {
|
|
3594
|
+
getDom();
|
|
3595
|
+
startWatch();
|
|
3596
|
+
});
|
|
3597
|
+
} else {
|
|
3598
|
+
destroyWatch();
|
|
3599
|
+
}
|
|
3600
|
+
});
|
|
3601
|
+
const clickHandle = (e) => {
|
|
3602
|
+
console.log("clickHandle", e);
|
|
3603
|
+
if (!e.target) {
|
|
3604
|
+
return;
|
|
3605
|
+
}
|
|
3606
|
+
if (e.target.className == "ant-select-selection-item") {
|
|
3607
|
+
clickDom.value = e.target;
|
|
3608
|
+
return;
|
|
3609
|
+
}
|
|
3610
|
+
if (e.target.nodeName === "INPUT" || e.target.nodeName === "TEXTAREA") {
|
|
3611
|
+
e.target.focus();
|
|
3612
|
+
clickIntDom.value = e.target;
|
|
3613
|
+
} else {
|
|
3614
|
+
clickIntDom.value?.blur();
|
|
3615
|
+
if (clickDom.value && clickDom.value.parentNode) {
|
|
3616
|
+
if (clickDom.value.parentNode.children && clickDom.value.parentNode.children.length) {
|
|
3617
|
+
if (clickDom.value.parentNode.children[0].children && clickDom.value.parentNode.children[0].children.length) {
|
|
3618
|
+
console.log(
|
|
3619
|
+
"clickDom.value.parentNode.children.length[0].children",
|
|
3620
|
+
clickDom.value.parentNode.children[0].children
|
|
3621
|
+
);
|
|
3622
|
+
clickDom.value.parentNode.children[0].children[0].blur();
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
};
|
|
3628
|
+
const resize = (newRect) => {
|
|
3629
|
+
deviceData.paneldrag = paneldrag.value;
|
|
3630
|
+
tempLeft.value = newRect.left;
|
|
3631
|
+
if (isNaN(newRect.width)) return false;
|
|
3632
|
+
if (newRect.top < 0) {
|
|
3633
|
+
offsetY.value = 0;
|
|
3634
|
+
if (paneldrag.value) {
|
|
3635
|
+
paneldrag.value.top = 0;
|
|
3636
|
+
}
|
|
3637
|
+
}
|
|
3638
|
+
};
|
|
3639
|
+
onMounted(() => {
|
|
3640
|
+
isFirst.value = true;
|
|
3641
|
+
const query = route?.query || {};
|
|
3642
|
+
console.log("route.query", query, route);
|
|
3643
|
+
defaultWinStyle.value.top = responsivePx(defaultWinStyle.value.top);
|
|
3644
|
+
defaultWinStyle.value.right = responsivePx(defaultWinStyle.value.right);
|
|
3645
|
+
defaultWinStyle.value.width = responsivePx(defaultWinStyle.value.width);
|
|
3646
|
+
defaultWinStyle.value.height = responsivePx(defaultWinStyle.value.height);
|
|
3647
|
+
winStyle.value = JSON.parse(JSON.stringify(defaultWinStyle.value));
|
|
3648
|
+
window.onresize = () => {
|
|
3649
|
+
setTimeout(() => {
|
|
3650
|
+
handleResizePanel(true);
|
|
3651
|
+
}, 300);
|
|
3652
|
+
};
|
|
3653
|
+
});
|
|
3654
|
+
onBeforeUnmount(() => {
|
|
3655
|
+
destroyWatch();
|
|
3656
|
+
});
|
|
3657
|
+
const setStyle = (key, val) => {
|
|
3658
|
+
val = val ? val : 0;
|
|
3659
|
+
val = val + "px";
|
|
3660
|
+
if (key == "leftPosition") {
|
|
3661
|
+
document.documentElement.style.setProperty("--device-panel-left-position", val);
|
|
3662
|
+
return;
|
|
3663
|
+
}
|
|
3664
|
+
if (key == "outPosition") {
|
|
3665
|
+
document.documentElement.style.setProperty("--device-panel-out-position", val);
|
|
3666
|
+
return;
|
|
3667
|
+
}
|
|
3668
|
+
};
|
|
3669
|
+
watchEffect(() => {
|
|
3670
|
+
console.log("leftPosition");
|
|
3671
|
+
setStyle("leftPosition", tempLeft.value);
|
|
3672
|
+
});
|
|
3673
|
+
watchEffect(() => {
|
|
3674
|
+
console.log("outPosition");
|
|
3675
|
+
setStyle("outPosition", parentW.value);
|
|
3676
|
+
});
|
|
3677
|
+
const updatePanelActive = (status) => {
|
|
3678
|
+
console.log(status, "status");
|
|
3679
|
+
panelActive.value = status;
|
|
3680
|
+
};
|
|
3681
|
+
const responsivePx = (n) => {
|
|
3682
|
+
document.documentElement.clientWidth / 1920;
|
|
3683
|
+
return n;
|
|
3684
|
+
};
|
|
3685
|
+
const setPosition = (x, y, isCenter = false) => {
|
|
3686
|
+
console.log(x, y, isCenter, "setPosition");
|
|
3687
|
+
if (isNaN(Number(x)) || isNaN(Number(x))) return;
|
|
3688
|
+
x = Number(x);
|
|
3689
|
+
y = Number(y);
|
|
3690
|
+
let xx = 0;
|
|
3691
|
+
let yy = 0;
|
|
3692
|
+
xx = x;
|
|
3693
|
+
yy = y;
|
|
3694
|
+
getparent();
|
|
3695
|
+
if (isCenter) {
|
|
3696
|
+
xx = responsivePx(x) - defaultWinStyle.value.width / 2;
|
|
3697
|
+
yy = responsivePx(y) - defaultWinStyle.value.height / 2;
|
|
3698
|
+
}
|
|
3699
|
+
console.log(xx, yy, "xxyy--");
|
|
3700
|
+
winStyle.value.top = yy < 0 ? 0 : yy;
|
|
3701
|
+
winStyle.value.right = xx < 0 ? 0 : xx;
|
|
3702
|
+
handleResizePanel(false);
|
|
3703
|
+
};
|
|
3704
|
+
const closeUrgentPanel = () => {
|
|
3705
|
+
isFirst.value = true;
|
|
3706
|
+
urgentPanelShowTag.value = false;
|
|
3707
|
+
};
|
|
3708
|
+
const urgentPanelShow = (eventTypeCode, x = 0, y = 0, isCenter) => {
|
|
3709
|
+
getDom();
|
|
3710
|
+
deviceData.urgentEventTypeCode = eventTypeCode;
|
|
3711
|
+
winStyle.value = JSON.parse(JSON.stringify(defaultWinStyle.value));
|
|
3712
|
+
panelMinWidth.value = defaultWinStyle.value.minWidth;
|
|
3713
|
+
panelMinHeight.value = defaultWinStyle.value.minHeight;
|
|
3714
|
+
x = x || defaultWinStyle.value.right;
|
|
3715
|
+
y = y || defaultWinStyle.value.top;
|
|
3716
|
+
urgentPanelShowTag.value = true;
|
|
3717
|
+
if (isFirst.value) {
|
|
3718
|
+
console.log(x, y, "xy-");
|
|
3719
|
+
setPosition(x, y, isCenter);
|
|
3720
|
+
}
|
|
3721
|
+
tempLeft.value = JSON.parse(JSON.stringify(offsetXT.value));
|
|
3722
|
+
const userInfo = getUserInfo();
|
|
3723
|
+
if (userInfo) {
|
|
3724
|
+
deviceData.userId = userInfo.id;
|
|
3725
|
+
deviceData.userName = userInfo.name;
|
|
3726
|
+
}
|
|
3727
|
+
console.log("devicePanelShow-parentH", parentH.value, parentW.value);
|
|
3728
|
+
console.log("devicePanelShow-panelWidth", panelWidth.value, panelHeight.value);
|
|
3729
|
+
console.log("devicePanelShow-offsetXT", offsetXT.value, offsetY.value);
|
|
3730
|
+
nextTick(() => {
|
|
3731
|
+
urgentPanel.value?.setConfigData(eventTypeCode);
|
|
3732
|
+
});
|
|
3733
|
+
};
|
|
3734
|
+
const closeUrgentMonitorPanel = () => {
|
|
3735
|
+
isFirst.value = true;
|
|
3736
|
+
urgentMonitorPanelShowTag.value = false;
|
|
3737
|
+
};
|
|
3738
|
+
const urgentMonitorPanelShow = (eventId, eventName, cb) => {
|
|
3739
|
+
deviceData.urgentEventTypeCode = eventId;
|
|
3740
|
+
console.log(eventId, "id----");
|
|
3741
|
+
urgentMonitorPanelShowTag.value = true;
|
|
3742
|
+
nextTick(() => {
|
|
3743
|
+
urgentMonitorPanel.value?.setConfigData(eventId, eventName, cb);
|
|
3744
|
+
});
|
|
3745
|
+
};
|
|
3746
|
+
const getparent = () => {
|
|
3747
|
+
let top = 0;
|
|
3748
|
+
let left = 0;
|
|
3749
|
+
const dom = document.getElementById(`urgent-panel-link-dialog-test`);
|
|
3750
|
+
if (dom) {
|
|
3751
|
+
top = dom.getBoundingClientRect().top;
|
|
3752
|
+
left = dom.getBoundingClientRect().left;
|
|
3753
|
+
console.log("dom-top", top, document.documentElement.clientHeight - top);
|
|
3754
|
+
console.log("dom-left", left, document.documentElement.clientWidth - left);
|
|
3755
|
+
}
|
|
3756
|
+
parentH.value = document.documentElement.clientHeight - top;
|
|
3757
|
+
parentW.value = document.documentElement.clientWidth - left;
|
|
3758
|
+
};
|
|
3759
|
+
const handleResizePanel = (isResize) => {
|
|
3760
|
+
console.log("handleResizePanel-app" + isResize);
|
|
3761
|
+
getparent();
|
|
3762
|
+
if (isResize) {
|
|
3763
|
+
winStyle.value.top = defaultWinStyle.value.top;
|
|
3764
|
+
winStyle.value.right = defaultWinStyle.value.right;
|
|
3765
|
+
panelWidth.value = winStyle.value.width;
|
|
3766
|
+
panelHeight.value = winStyle.value.height;
|
|
3767
|
+
panelMinWidth.value = defaultWinStyle.value.minWidth;
|
|
3768
|
+
panelMinHeight.value = defaultWinStyle.value.minHeight;
|
|
3769
|
+
offsetXT.value = parentW.value - winStyle.value.right - winStyle.value.width;
|
|
3770
|
+
offsetY.value = winStyle.value.top;
|
|
3771
|
+
} else {
|
|
3772
|
+
panelWidth.value = winStyle.value.width;
|
|
3773
|
+
panelHeight.value = winStyle.value.height;
|
|
3774
|
+
console.log(panelWidth.value, " panelWidth");
|
|
3775
|
+
offsetXT.value = parentW.value - winStyle.value.right - winStyle.value.width;
|
|
3776
|
+
offsetY.value = winStyle.value.top;
|
|
3777
|
+
}
|
|
3778
|
+
tempLeft.value = JSON.parse(JSON.stringify(offsetXT.value));
|
|
3779
|
+
isFirst.value = false;
|
|
3780
|
+
};
|
|
3781
|
+
__expose({
|
|
3782
|
+
urgentPanelShow,
|
|
3783
|
+
closeUrgentPanel,
|
|
3784
|
+
urgentMonitorPanelShow,
|
|
3785
|
+
closeUrgentMonitorPanel
|
|
3786
|
+
});
|
|
3787
|
+
const __returned__ = { paneldrag, isFirst, urgentPanel, urgentPanelShowTag, urgentMonitorPanel, urgentMonitorPanelShowTag, panelActive, parentH, parentW, panelMinWidth, panelMinHeight, panelWidth, panelHeight, offsetXT, offsetY, tempLeft, route, pageStyleList, devicePanelDetail, clickDom, clickIntDom, panelTestRef, resizeObserver, heardHeight, rightWidth, viewHeight, maxDragWidth, minDragHeight, winStyle, defaultWinStyle, startWatch, destroyWatch, getDom, clickHandle, resize, setStyle, updatePanelActive, responsivePx, setPosition, closeUrgentPanel, urgentPanelShow, closeUrgentMonitorPanel, urgentMonitorPanelShow, getparent, handleResizePanel, urgentPanelModal, urgentMonitorPanelModal, get VueDragResize() {
|
|
3788
|
+
return VueDragResize;
|
|
3789
|
+
} };
|
|
3790
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
3791
|
+
return __returned__;
|
|
3792
|
+
}
|
|
3793
|
+
});
|
|
3794
|
+
|
|
3795
|
+
const _hoisted_1 = {
|
|
3796
|
+
id: "urgentPanelContanier",
|
|
3797
|
+
class: "urgent-panel-contanier"
|
|
3798
|
+
};
|
|
3799
|
+
const _hoisted_2 = {
|
|
3800
|
+
id: "urgent-panel-link-dialog-test",
|
|
3801
|
+
ref: "panelTestRef",
|
|
3802
|
+
class: "urgent-panel-link-dialog-test"
|
|
3803
|
+
};
|
|
3804
|
+
const _hoisted_3 = { class: "urgent-panel-wrap" };
|
|
3805
|
+
const _hoisted_4 = { class: "urgent-monitor-panel-wrap" };
|
|
3806
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
3807
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
3808
|
+
createElementVNode(
|
|
3809
|
+
"div",
|
|
3810
|
+
_hoisted_2,
|
|
3811
|
+
null,
|
|
3812
|
+
512
|
|
3813
|
+
/* NEED_PATCH */
|
|
3814
|
+
),
|
|
3815
|
+
createCommentVNode(" \u5E94\u6025\u9762\u677F "),
|
|
3816
|
+
createElementVNode("div", _hoisted_3, [
|
|
3817
|
+
createVNode(Transition, { name: "device-panel" }, {
|
|
3818
|
+
default: withCtx(() => [
|
|
3819
|
+
$setup.urgentPanelShowTag ? (openBlock(), createBlock($setup["VueDragResize"], {
|
|
3820
|
+
key: 0,
|
|
3821
|
+
class: "urgent-panel-vdr",
|
|
3822
|
+
ref: "paneldrag",
|
|
3823
|
+
"parent-limitation": true,
|
|
3824
|
+
"prevent-active-behavior": true,
|
|
3825
|
+
"is-active": $setup.panelActive,
|
|
3826
|
+
"parent-h": $setup.parentH,
|
|
3827
|
+
"parent-w": $setup.parentW,
|
|
3828
|
+
w: $setup.panelWidth,
|
|
3829
|
+
h: $setup.panelHeight,
|
|
3830
|
+
minh: $setup.panelMinHeight,
|
|
3831
|
+
minw: $setup.panelMinWidth,
|
|
3832
|
+
x: $setup.offsetXT,
|
|
3833
|
+
y: $setup.offsetY,
|
|
3834
|
+
onResizing: $setup.resize,
|
|
3835
|
+
onClicked: $setup.clickHandle,
|
|
3836
|
+
onDragging: $setup.resize,
|
|
3837
|
+
sticks: ["tl", "tr", "bl", "br"]
|
|
3838
|
+
}, {
|
|
3839
|
+
default: withCtx(() => [
|
|
3840
|
+
createVNode(
|
|
3841
|
+
$setup["urgentPanelModal"],
|
|
3842
|
+
{
|
|
3843
|
+
ref: "urgentPanel",
|
|
3844
|
+
onClosePanel: $setup.closeUrgentPanel,
|
|
3845
|
+
onUpdatePanelActive: $setup.updatePanelActive,
|
|
3846
|
+
onResizePanel: $setup.handleResizePanel
|
|
3847
|
+
},
|
|
3848
|
+
null,
|
|
3849
|
+
512
|
|
3850
|
+
/* NEED_PATCH */
|
|
3851
|
+
)
|
|
3852
|
+
]),
|
|
3853
|
+
_: 1
|
|
3854
|
+
/* STABLE */
|
|
3855
|
+
}, 8, ["is-active", "parent-h", "parent-w", "w", "h", "minh", "minw", "x", "y"])) : createCommentVNode("v-if", true)
|
|
3856
|
+
]),
|
|
3857
|
+
_: 1
|
|
3858
|
+
/* STABLE */
|
|
3859
|
+
})
|
|
3860
|
+
]),
|
|
3861
|
+
createCommentVNode(" \u5E94\u6025\u76D1\u63A7\u9762\u677F "),
|
|
3862
|
+
createElementVNode("div", _hoisted_4, [
|
|
3863
|
+
createVNode(Transition, { name: "monitor-panel" }, {
|
|
3864
|
+
default: withCtx(() => [
|
|
3865
|
+
$setup.urgentMonitorPanelShowTag ? (openBlock(), createBlock(
|
|
3866
|
+
$setup["urgentMonitorPanelModal"],
|
|
3867
|
+
{
|
|
3868
|
+
key: 0,
|
|
3869
|
+
ref: "urgentMonitorPanel",
|
|
3870
|
+
onClosePanel: $setup.closeUrgentMonitorPanel
|
|
3871
|
+
},
|
|
3872
|
+
null,
|
|
3873
|
+
512
|
|
3874
|
+
/* NEED_PATCH */
|
|
3875
|
+
)) : createCommentVNode("v-if", true)
|
|
3876
|
+
]),
|
|
3877
|
+
_: 1
|
|
3878
|
+
/* STABLE */
|
|
3879
|
+
})
|
|
3880
|
+
])
|
|
3881
|
+
]);
|
|
3882
|
+
}
|
|
3883
|
+
var UrgentPanel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e6aa4557"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/urgent-panel/src/index.vue"]]);
|
|
3884
|
+
|
|
3885
|
+
let devicePanelInstance = null;
|
|
3886
|
+
const renderDevicePanel = () => {
|
|
3887
|
+
const div = document.createElement("div");
|
|
3888
|
+
div.setAttribute("id", "urgent-panel-container");
|
|
3889
|
+
const app = createApp(UrgentPanel);
|
|
3890
|
+
devicePanelInstance = app.mount(div);
|
|
3891
|
+
const fatherDom = document.querySelector(".das-web-app-main-router-view");
|
|
3892
|
+
fatherDom?.insertBefore(div, fatherDom?.children[0]);
|
|
3893
|
+
};
|
|
3894
|
+
const urgentPanelShow = (eventTypeCode, x, y, isCenter = false) => {
|
|
3895
|
+
if (!devicePanelInstance) renderDevicePanel();
|
|
3896
|
+
devicePanelInstance?.urgentPanelShow(eventTypeCode, x, y, isCenter);
|
|
3897
|
+
};
|
|
3898
|
+
const closeUrgentPanel = () => {
|
|
3899
|
+
if (!devicePanelInstance) return;
|
|
3900
|
+
devicePanelInstance?.closeUrgentPanel();
|
|
3901
|
+
};
|
|
3902
|
+
const urgentMonitorPanelShow = (eventId, eventName, cb) => {
|
|
3903
|
+
if (!devicePanelInstance) renderDevicePanel();
|
|
3904
|
+
devicePanelInstance?.urgentMonitorPanelShow(eventId, eventName, cb);
|
|
3905
|
+
};
|
|
3906
|
+
const closeUrgentMonitorPanel = () => {
|
|
3907
|
+
if (!devicePanelInstance) return;
|
|
3908
|
+
devicePanelInstance?.closeUrgentMonitorPanel();
|
|
3909
|
+
};
|
|
3910
|
+
|
|
3911
|
+
const DasUrgentPanelModal = withInstall(urgentPanelModal);
|
|
3912
|
+
var index = { name: "\u5E94\u6025\u9762\u677F" };
|
|
3913
|
+
|
|
3914
|
+
export { DasUrgentPanelModal, closeUrgentMonitorPanel, closeUrgentPanel, index as default, urgentMonitorPanelShow, urgentPanelShow };
|