@xtctwins/tctwins-bimx-engine 0.2.55 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{alert-C0MgdbKf.mjs → Alert-CSiEPFGt.mjs} +5 -5
- package/dist/{AnnotationTool-CPBZcbp_.mjs → AnnotationTool-CKzHkqWM.mjs} +80 -80
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +224 -169
- package/dist/{CommentTool-ChVib2Wg.mjs → CommentTool-5HhGDqpg.mjs} +575 -555
- package/dist/{HiddenTool-CilrXe5l.mjs → HiddenTool-BGFoHMWC.mjs} +9 -9
- package/dist/{InspectorTool-BXArGZHO.mjs → InspectorTool-DD3w7k07.mjs} +27 -27
- package/dist/{MeasureTool-DtUiP4t1.mjs → MeasureTool-COR8QLDf.mjs} +118 -94
- package/dist/{MouseTool-2Nxz447f.mjs → MouseTool-OxODcO4X.mjs} +27 -24
- package/dist/{NavigateTool-COsSnxyD.mjs → NavigateTool-Bw6GFzsg.mjs} +5 -5
- package/dist/{panel.vue_vue_type_style_index_0_lang-CN9vybau.mjs → Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs} +4 -4
- package/dist/{RoamTool-CjRywSYn.mjs → RoamTool-X-b0hsmJ.mjs} +7 -7
- package/dist/ScreenShotTool-0xSJZBBw.mjs +430 -0
- package/dist/SectionTool-BqI2Qnk5.mjs +343 -0
- package/dist/SettingTool-CGkRGfZH.mjs +747 -0
- package/dist/StructureTree-CWAXoI0r.mjs +1662 -0
- package/dist/{tallPanel-Ddd7gAie.mjs → TallPanel-CR5vNQ4c.mjs} +8 -8
- package/dist/bimTools-D3TraX9d.mjs +75 -0
- package/dist/el-slider-CBVU9_og.mjs +1040 -0
- package/dist/{index-DTeJ8S3e.mjs → index-CwRGVhoT.mjs} +44953 -46755
- package/dist/style.css +1 -1
- package/package.json +4 -3
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +16 -0
- package/types/components/bcf/BCFAddPanel.vue.d.ts +55 -0
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +59 -0
- package/types/components/bcf/BCFDisplayList.vue.d.ts +18 -0
- package/types/components/bcf/BCFFilter.vue.d.ts +14 -0
- package/types/components/bcf/BCFTool.vue.d.ts +15 -0
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +11 -0
- package/types/components/bcf/CommentInput.vue.d.ts +51 -0
- package/types/components/bcf/CommentsView.vue.d.ts +48 -0
- package/types/components/bcf/DialogPanel.vue.d.ts +15 -0
- package/types/components/bcf/ImageView.vue.d.ts +17 -0
- package/types/components/bcf/ImageZoomIn.vue.d.ts +9 -0
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +56 -0
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +55 -0
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +498 -0
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +475 -0
- package/types/components/bcf/MobileBCFTool.vue.d.ts +17 -0
- package/types/components/bcf/MobileCommentInput.vue.d.ts +54 -0
- package/types/components/bcf/MobileCommentsView.vue.d.ts +17 -0
- package/types/components/bcf/SelectPanel.vue.d.ts +12 -0
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +14 -0
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +11 -0
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +17 -0
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +475 -0
- package/types/components/comment/mobile/MobileList.vue.d.ts +497 -0
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +9 -0
- package/types/components/comment/pc/PcDraw.vue.d.ts +14 -0
- package/types/components/shared/Alert.vue.d.ts +32 -0
- package/types/components/shared/CloseButton.vue.d.ts +50 -0
- package/types/components/shared/CloseButtonDark.vue.d.ts +32 -0
- package/types/components/shared/EmptyPage.vue.d.ts +6 -0
- package/types/components/shared/Loading.vue.d.ts +2 -0
- package/types/components/shared/Panel.vue.d.ts +47 -0
- package/types/components/shared/Prompt.vue.d.ts +8 -0
- package/types/components/shared/RectangleButton.vue.d.ts +106 -0
- package/types/components/shared/TallPanel.vue.d.ts +69 -0
- package/types/components/shared/TallPanelNoPos.vue.d.ts +82 -0
- package/types/components/tools/AnnotationTool.vue.d.ts +14 -0
- package/types/components/tools/AppToolbar.vue.d.ts +27 -0
- package/types/components/tools/ClickEvent.vue.d.ts +6 -0
- package/types/components/tools/CommentTool.vue.d.ts +45 -0
- package/types/components/tools/HiddenTool.vue.d.ts +12 -0
- package/types/components/tools/InspectorTool.vue.d.ts +14 -0
- package/types/components/tools/MeasureTool.vue.d.ts +14 -0
- package/types/components/tools/MouseTool.vue.d.ts +6 -0
- package/types/components/tools/NavigateTool.vue.d.ts +10 -0
- package/types/components/tools/RoamTool.vue.d.ts +12 -0
- package/types/components/tools/ScreenShotTool.vue.d.ts +10 -0
- package/types/components/tools/SectionTool.vue.d.ts +14 -0
- package/types/components/tools/SettingTool.vue.d.ts +13 -0
- package/types/components/tools/StructureTree.vue.d.ts +11645 -0
- package/types/components/tools/Toolbar.vue.d.ts +10 -0
- package/types/composables/useBimViewerEvent.d.ts +44 -0
- package/types/composables/useEmitHandler.d.ts +2 -0
- package/types/composables/useToolActive.d.ts +1 -0
- package/types/composables/useToolReady.d.ts +1 -0
- package/types/i18n/index.d.ts +5 -1
- package/types/i18n/locales/en-US.d.ts +1 -0
- package/types/i18n/locales/zh-CN.d.ts +1 -0
- package/types/store/bcfReflect.d.ts +13 -81
- package/types/store/const/app.d.ts +66 -0
- package/types/store/const/bimTools.d.ts +81 -0
- package/types/store/const/project.d.ts +48 -0
- package/types/store/const/theme.d.ts +16 -0
- package/types/store/const/toolbar.d.ts +26 -0
- package/types/store/const.d.ts +11 -228
- package/types/store/toolbars.d.ts +22 -0
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/stores/viewerStore.d.ts +112 -0
- package/types/types/bcf.d.ts +83 -0
- package/types/types/events.d.ts +88 -0
- package/types/utils/OSSHelper.d.ts +27 -0
- package/types/utils/cacheInfo.d.ts +26 -3
- package/types/utils/dbscan.d.ts +1 -0
- package/types/utils/eventBus.d.ts +1 -83
- package/types/viewerManager/viewerManager.d.ts +53 -3
- package/dist/ScreenShotTool-g1dzvqn2.mjs +0 -500
- package/dist/SectionTool-DlnlE6Pv.mjs +0 -331
- package/dist/SettingTool-y_hp2XrJ.mjs +0 -815
- package/dist/StructureTree-CtJ4Yf5_.mjs +0 -1846
- package/dist/const-DOnRsYpZ.mjs +0 -389
- package/dist/el-input-number-BjEspzGk.mjs +0 -1169
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { O as B, I as ie,
|
|
3
|
-
import { C as Te, F as Ne, L as Fe, T as Ae } from "./
|
|
1
|
+
import { defineComponent as le, ref as o, openBlock as l, createElementBlock as r, createElementVNode as e, unref as s, toDisplayString as c, withModifiers as J, Fragment as G, renderList as j, createCommentVNode as U, createVNode as K, withCtx as ce, toRefs as Se, onMounted as pe, watch as re, normalizeStyle as ee, createTextVNode as me, createBlock as te, onBeforeUnmount as fe, normalizeClass as de, withDirectives as Le, vShow as Be } from "vue";
|
|
2
|
+
import { O as B, I as ie, W as be, A as ae, G as he, X as ye, Y as we, Z as xe, $ as Ie, a0 as ge, a1 as ve, a2 as _e, C as Q, F as ke, a3 as $e, U as Me, a4 as Pe, a5 as Ee, a6 as Oe, R as Re, S as ze, D as X, B as Ce, Q as ue } from "./index-CwRGVhoT.mjs";
|
|
3
|
+
import { C as Te, F as Ne, L as Fe, T as Ae } from "./bimTools-D3TraX9d.mjs";
|
|
4
4
|
import { T as Ue } from "./timer-DoTiGoWP.mjs";
|
|
5
|
-
const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src"], Ze = { class: "text" }, Je = /* @__PURE__ */
|
|
6
|
-
__name: "
|
|
5
|
+
const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src"], Ze = { class: "text" }, Je = /* @__PURE__ */ le({
|
|
6
|
+
__name: "Prompt",
|
|
7
7
|
props: ["text", "type"],
|
|
8
|
-
setup(
|
|
9
|
-
const
|
|
10
|
-
return (
|
|
8
|
+
setup(W) {
|
|
9
|
+
const Y = W, x = o(Y.type), h = o(Y.text);
|
|
10
|
+
return (_, w) => (l(), r("div", He, [
|
|
11
11
|
e("div", We, [
|
|
12
12
|
e("img", {
|
|
13
|
-
src: `${s(B)}/bim-viewer/prompt-${
|
|
13
|
+
src: `${s(B)}/bim-viewer/prompt-${x.value}.svg`
|
|
14
14
|
}, null, 8, Ye),
|
|
15
|
-
e("div", Ze,
|
|
15
|
+
e("div", Ze, c(h.value), 1)
|
|
16
16
|
])
|
|
17
17
|
]));
|
|
18
18
|
}
|
|
19
|
-
}), Ge = /* @__PURE__ */ ie(Je, [["__scopeId", "data-v-
|
|
19
|
+
}), Ge = /* @__PURE__ */ ie(Je, [["__scopeId", "data-v-8b874451"]]), Xe = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "mobile-cmt-filter-container"
|
|
22
22
|
}, Ke = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "search-container"
|
|
25
|
-
}, Ve = { class: "search-header" }, Qe = { class: "title" }, je = ["src"], qe = { class: "search-body" }, et = { class: "search-list" }, tt = { class: "item-left" }, st = { class: "title" }, ot = { class: "item-right" }, lt = { class: "item-value" },
|
|
25
|
+
}, Ve = { class: "search-header" }, Qe = { class: "title" }, je = ["src"], qe = { class: "search-body" }, et = { class: "search-list" }, tt = { class: "item-left" }, st = { class: "title" }, ot = { class: "item-right" }, lt = { class: "item-value" }, it = { class: "item-img" }, nt = ["src"], at = { class: "item-left" }, ct = { class: "title" }, rt = { class: "item-right" }, ut = { class: "item-value" }, dt = { class: "item-img" }, mt = ["src"], vt = { class: "item-left" }, _t = { class: "title" }, pt = { class: "item-right" }, ht = { class: "item-value" }, gt = { class: "item-img" }, ft = ["src"], bt = { class: "item-left" }, kt = { class: "title" }, Ct = { class: "item-right" }, $t = { class: "item-value" }, yt = { class: "item-img" }, wt = ["src"], xt = { class: "item-left" }, It = { class: "title" }, Tt = { class: "item-right" }, Dt = { class: "item-tags" }, St = { class: "item-img" }, Lt = ["src"], Bt = { class: "search-footer" }, Mt = { class: "search-btn-group" }, Pt = {
|
|
26
26
|
key: 1,
|
|
27
27
|
class: "filter-container"
|
|
28
|
-
},
|
|
28
|
+
}, Et = { class: "filter-header" }, Ot = { class: "title" }, Rt = ["src"], zt = { class: "filter-body" }, Nt = {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "filter-list"
|
|
31
31
|
}, Ft = ["onClick"], At = { class: "item-left" }, Ut = { class: "title" }, Ht = { class: "item-right" }, Wt = {
|
|
@@ -46,16 +46,16 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
46
46
|
}, es = {
|
|
47
47
|
key: 2,
|
|
48
48
|
class: "filter-list"
|
|
49
|
-
}, ts = ["onClick"], ss = { class: "item-left" }, os = { class: "title" }, ls = { class: "item-right" },
|
|
49
|
+
}, ts = ["onClick"], ss = { class: "item-left" }, os = { class: "title" }, ls = { class: "item-right" }, is = {
|
|
50
50
|
key: 0,
|
|
51
51
|
class: "check-selected"
|
|
52
|
-
},
|
|
52
|
+
}, ns = ["src"], as = {
|
|
53
53
|
key: 1,
|
|
54
54
|
class: "check-select"
|
|
55
|
-
}, cs = { class: "filter-footer" }, rs = /* @__PURE__ */
|
|
56
|
-
__name: "
|
|
57
|
-
setup(
|
|
58
|
-
const
|
|
55
|
+
}, cs = { class: "filter-footer" }, rs = /* @__PURE__ */ le({
|
|
56
|
+
__name: "MobileFilter",
|
|
57
|
+
setup(W, { expose: Y }) {
|
|
58
|
+
const x = be(), h = ae(), _ = o(!1), w = o(!0), $ = o(!1), f = o(x.staffList), i = o({
|
|
59
59
|
cmt_priority: "",
|
|
60
60
|
cmt_status: "",
|
|
61
61
|
cmt_createDate: "",
|
|
@@ -64,58 +64,58 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
64
64
|
value: ""
|
|
65
65
|
},
|
|
66
66
|
cmt_tag: []
|
|
67
|
-
}),
|
|
67
|
+
}), N = o({
|
|
68
68
|
confirm: (t) => {
|
|
69
69
|
}
|
|
70
|
-
}), E = o(),
|
|
71
|
-
switch (
|
|
70
|
+
}), E = o(), D = o(""), I = o(""), p = o(""), b = o([]), T = (t) => {
|
|
71
|
+
switch (D.value = t, t) {
|
|
72
72
|
case "priority":
|
|
73
|
-
|
|
73
|
+
I.value = h("mobileComments.filter.priority"), b.value = Ie(), p.value = i.value.cmt_priority, w.value = !1, $.value = !0;
|
|
74
74
|
break;
|
|
75
75
|
case "status":
|
|
76
|
-
|
|
76
|
+
I.value = h("mobileComments.filter.status"), b.value = xe(), p.value = i.value.cmt_status, w.value = !1, $.value = !0;
|
|
77
77
|
break;
|
|
78
78
|
case "createDate":
|
|
79
79
|
E.value.handleOpen();
|
|
80
80
|
break;
|
|
81
81
|
case "authorId":
|
|
82
|
-
|
|
82
|
+
I.value = h("mobileComments.filter.author"), b.value = f.value, p.value = i.value.cmt_authorId, w.value = !1, $.value = !0;
|
|
83
83
|
break;
|
|
84
84
|
case "tag":
|
|
85
|
-
|
|
85
|
+
I.value = h("mobileComments.filter.tag"), b.value = we(), p.value = i.value.cmt_tag, w.value = !1, $.value = !0;
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
}, k = (t) => {
|
|
89
|
-
|
|
90
|
-
},
|
|
91
|
-
switch (
|
|
89
|
+
D.value === "tag" ? p.value.includes(t) ? p.value = p.value.filter((a) => a !== t) : p.value.push(t) : D.value === "authorId" ? p.value.key === t.userId ? p.value = { key: "", value: "" } : p.value = { key: t.userId, value: t.userName } : p.value !== t ? p.value = t : p.value = "";
|
|
90
|
+
}, y = () => {
|
|
91
|
+
switch (D.value) {
|
|
92
92
|
case "priority":
|
|
93
|
-
|
|
93
|
+
i.value.cmt_priority = p.value;
|
|
94
94
|
break;
|
|
95
95
|
case "status":
|
|
96
|
-
|
|
96
|
+
i.value.cmt_status = p.value;
|
|
97
97
|
break;
|
|
98
98
|
case "createDate":
|
|
99
|
-
|
|
99
|
+
i.value.cmt_createDate = p.value;
|
|
100
100
|
break;
|
|
101
101
|
case "authorId":
|
|
102
|
-
|
|
102
|
+
i.value.cmt_authorId = p.value;
|
|
103
103
|
break;
|
|
104
104
|
case "tag":
|
|
105
|
-
|
|
105
|
+
i.value.cmt_tag = p.value;
|
|
106
106
|
break;
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
$.value = !1,
|
|
111
|
-
},
|
|
112
|
-
E.value.handleClose(),
|
|
108
|
+
P();
|
|
109
|
+
}, P = () => {
|
|
110
|
+
$.value = !1, w.value = !0;
|
|
111
|
+
}, O = (t) => {
|
|
112
|
+
E.value.handleClose(), i.value.cmt_createDate = t, w.value = !0;
|
|
113
113
|
}, u = () => {
|
|
114
|
-
E.value.handleClose(),
|
|
114
|
+
E.value.handleClose(), w.value = !0;
|
|
115
115
|
}, R = () => {
|
|
116
|
-
Z(),
|
|
117
|
-
},
|
|
118
|
-
|
|
116
|
+
Z(), N.value.confirm(i.value);
|
|
117
|
+
}, z = () => {
|
|
118
|
+
i.value = {
|
|
119
119
|
cmt_priority: "",
|
|
120
120
|
cmt_status: "",
|
|
121
121
|
cmt_createDate: "",
|
|
@@ -126,15 +126,15 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
126
126
|
cmt_tag: []
|
|
127
127
|
}, R();
|
|
128
128
|
}, F = (t) => {
|
|
129
|
-
|
|
129
|
+
N.value = t, _.value = !0;
|
|
130
130
|
}, Z = () => {
|
|
131
|
-
|
|
131
|
+
_.value = !1;
|
|
132
132
|
};
|
|
133
|
-
return
|
|
133
|
+
return Y({
|
|
134
134
|
open: F,
|
|
135
135
|
close: Z,
|
|
136
136
|
refresh: () => {
|
|
137
|
-
|
|
137
|
+
i.value = {
|
|
138
138
|
cmt_priority: "",
|
|
139
139
|
cmt_status: "",
|
|
140
140
|
cmt_createDate: "",
|
|
@@ -145,12 +145,12 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
145
145
|
cmt_tag: []
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
}), (t,
|
|
149
|
-
const S =
|
|
150
|
-
return
|
|
151
|
-
|
|
148
|
+
}), (t, a) => {
|
|
149
|
+
const S = he, M = ye;
|
|
150
|
+
return _.value ? (l(), r("div", Xe, [
|
|
151
|
+
w.value ? (l(), r("div", Ke, [
|
|
152
152
|
e("div", Ve, [
|
|
153
|
-
e("div", Qe,
|
|
153
|
+
e("div", Qe, c(s(h)("mobileComments.filter.title")), 1),
|
|
154
154
|
e("div", {
|
|
155
155
|
class: "close-box",
|
|
156
156
|
onClick: J(Z, ["stop"])
|
|
@@ -166,31 +166,31 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
166
166
|
e("div", et, [
|
|
167
167
|
e("div", {
|
|
168
168
|
class: "search-item",
|
|
169
|
-
onClick:
|
|
169
|
+
onClick: a[0] || (a[0] = J((v) => T("priority"), ["stop"]))
|
|
170
170
|
}, [
|
|
171
171
|
e("div", tt, [
|
|
172
|
-
e("div", st,
|
|
172
|
+
e("div", st, c(s(h)("bcf.priority")), 1)
|
|
173
173
|
]),
|
|
174
174
|
e("div", ot, [
|
|
175
|
-
e("div", lt,
|
|
176
|
-
e("div",
|
|
175
|
+
e("div", lt, c(i.value.cmt_priority), 1),
|
|
176
|
+
e("div", it, [
|
|
177
177
|
e("img", {
|
|
178
178
|
class: "img",
|
|
179
179
|
src: `${s(B)}/bim-viewer/bcf-images/back-right-gray.png`,
|
|
180
180
|
alt: ""
|
|
181
|
-
}, null, 8,
|
|
181
|
+
}, null, 8, nt)
|
|
182
182
|
])
|
|
183
183
|
])
|
|
184
184
|
]),
|
|
185
185
|
e("div", {
|
|
186
186
|
class: "search-item",
|
|
187
|
-
onClick:
|
|
187
|
+
onClick: a[1] || (a[1] = J((v) => T("status"), ["stop"]))
|
|
188
188
|
}, [
|
|
189
189
|
e("div", at, [
|
|
190
|
-
e("div", ct,
|
|
190
|
+
e("div", ct, c(s(h)("bcf.status")), 1)
|
|
191
191
|
]),
|
|
192
192
|
e("div", rt, [
|
|
193
|
-
e("div", ut,
|
|
193
|
+
e("div", ut, c(i.value.cmt_status), 1),
|
|
194
194
|
e("div", dt, [
|
|
195
195
|
e("img", {
|
|
196
196
|
class: "img",
|
|
@@ -202,13 +202,13 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
202
202
|
]),
|
|
203
203
|
e("div", {
|
|
204
204
|
class: "search-item",
|
|
205
|
-
onClick:
|
|
205
|
+
onClick: a[2] || (a[2] = J((v) => T("createDate"), ["stop"]))
|
|
206
206
|
}, [
|
|
207
207
|
e("div", vt, [
|
|
208
|
-
e("div", _t,
|
|
208
|
+
e("div", _t, c(s(h)("bcf.createDate")), 1)
|
|
209
209
|
]),
|
|
210
210
|
e("div", pt, [
|
|
211
|
-
e("div", ht,
|
|
211
|
+
e("div", ht, c(i.value.cmt_createDate), 1),
|
|
212
212
|
e("div", gt, [
|
|
213
213
|
e("img", {
|
|
214
214
|
class: "img",
|
|
@@ -220,13 +220,13 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
220
220
|
]),
|
|
221
221
|
e("div", {
|
|
222
222
|
class: "search-item",
|
|
223
|
-
onClick:
|
|
223
|
+
onClick: a[3] || (a[3] = J((v) => T("authorId"), ["stop"]))
|
|
224
224
|
}, [
|
|
225
225
|
e("div", bt, [
|
|
226
|
-
e("div", kt,
|
|
226
|
+
e("div", kt, c(s(h)("bcf.creator")), 1)
|
|
227
227
|
]),
|
|
228
228
|
e("div", Ct, [
|
|
229
|
-
e("div", $t,
|
|
229
|
+
e("div", $t, c(i.value.cmt_authorId.value), 1),
|
|
230
230
|
e("div", yt, [
|
|
231
231
|
e("img", {
|
|
232
232
|
class: "img",
|
|
@@ -238,17 +238,17 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
238
238
|
]),
|
|
239
239
|
e("div", {
|
|
240
240
|
class: "search-item",
|
|
241
|
-
onClick:
|
|
241
|
+
onClick: a[4] || (a[4] = J((v) => T("tag"), ["stop"]))
|
|
242
242
|
}, [
|
|
243
|
-
e("div",
|
|
244
|
-
e("div",
|
|
243
|
+
e("div", xt, [
|
|
244
|
+
e("div", It, c(s(h)("bcf.labels")), 1)
|
|
245
245
|
]),
|
|
246
246
|
e("div", Tt, [
|
|
247
247
|
e("div", Dt, [
|
|
248
|
-
(l(!0),
|
|
249
|
-
key:
|
|
248
|
+
(l(!0), r(G, null, j(i.value.cmt_tag, (v, d) => (l(), r("div", {
|
|
249
|
+
key: d,
|
|
250
250
|
class: "tag"
|
|
251
|
-
},
|
|
251
|
+
}, c(v), 1))), 128))
|
|
252
252
|
]),
|
|
253
253
|
e("div", St, [
|
|
254
254
|
e("img", {
|
|
@@ -262,90 +262,90 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
262
262
|
])
|
|
263
263
|
]),
|
|
264
264
|
e("div", Bt, [
|
|
265
|
-
e("div",
|
|
265
|
+
e("div", Mt, [
|
|
266
266
|
e("div", {
|
|
267
267
|
class: "search-btn btn-cancel",
|
|
268
|
-
onClick: J(
|
|
269
|
-
},
|
|
268
|
+
onClick: J(z, ["stop"])
|
|
269
|
+
}, c(s(h)("common.reset")), 1),
|
|
270
270
|
e("div", {
|
|
271
271
|
class: "search-btn btn-submit",
|
|
272
272
|
onClick: J(R, ["stop"])
|
|
273
|
-
},
|
|
273
|
+
}, c(s(h)("common.search")), 1)
|
|
274
274
|
])
|
|
275
275
|
])
|
|
276
276
|
])) : U("", !0),
|
|
277
|
-
$.value ? (l(),
|
|
278
|
-
e("div",
|
|
279
|
-
e("div",
|
|
277
|
+
$.value ? (l(), r("div", Pt, [
|
|
278
|
+
e("div", Et, [
|
|
279
|
+
e("div", Ot, c(I.value), 1),
|
|
280
280
|
e("div", {
|
|
281
281
|
class: "close-box",
|
|
282
|
-
onClick:
|
|
282
|
+
onClick: P
|
|
283
283
|
}, [
|
|
284
284
|
e("img", {
|
|
285
285
|
class: "close-img",
|
|
286
286
|
src: `${s(B)}/bim-viewer/close_black.png`,
|
|
287
287
|
alt: ""
|
|
288
|
-
}, null, 8,
|
|
288
|
+
}, null, 8, Rt)
|
|
289
289
|
])
|
|
290
290
|
]),
|
|
291
|
-
e("div",
|
|
291
|
+
e("div", zt, [
|
|
292
292
|
K(S, null, {
|
|
293
293
|
default: ce(() => [
|
|
294
|
-
|
|
295
|
-
(l(!0),
|
|
296
|
-
key:
|
|
294
|
+
D.value === "authorId" ? (l(), r("div", Nt, [
|
|
295
|
+
(l(!0), r(G, null, j(b.value, (v, d) => (l(), r("div", {
|
|
296
|
+
key: d,
|
|
297
297
|
class: "filter-item",
|
|
298
|
-
onClick: J((C) => k(
|
|
298
|
+
onClick: J((C) => k(v), ["stop"])
|
|
299
299
|
}, [
|
|
300
300
|
e("div", At, [
|
|
301
|
-
e("div", Ut,
|
|
301
|
+
e("div", Ut, c(v.userName) + "(" + c(v.mobile) + ")", 1)
|
|
302
302
|
]),
|
|
303
303
|
e("div", Ht, [
|
|
304
|
-
|
|
304
|
+
v.userId === p.value.key ? (l(), r("div", Wt, [
|
|
305
305
|
e("img", {
|
|
306
306
|
class: "select-img",
|
|
307
307
|
src: `${s(B)}/bim-viewer/check-selected.png`,
|
|
308
308
|
alt: ""
|
|
309
309
|
}, null, 8, Yt)
|
|
310
|
-
])) : (l(),
|
|
310
|
+
])) : (l(), r("div", Zt))
|
|
311
311
|
])
|
|
312
312
|
], 8, Ft))), 128))
|
|
313
|
-
])) :
|
|
314
|
-
(l(!0),
|
|
315
|
-
key:
|
|
313
|
+
])) : D.value === "tag" ? (l(), r("div", Jt, [
|
|
314
|
+
(l(!0), r(G, null, j(b.value, (v, d) => (l(), r("div", {
|
|
315
|
+
key: d,
|
|
316
316
|
class: "filter-item",
|
|
317
|
-
onClick: J((C) => k(
|
|
317
|
+
onClick: J((C) => k(v), ["stop"])
|
|
318
318
|
}, [
|
|
319
319
|
e("div", Xt, [
|
|
320
|
-
e("div", Kt,
|
|
320
|
+
e("div", Kt, c(v), 1)
|
|
321
321
|
]),
|
|
322
322
|
e("div", Vt, [
|
|
323
|
-
|
|
323
|
+
p.value.includes(v) ? (l(), r("div", Qt, [
|
|
324
324
|
e("img", {
|
|
325
325
|
class: "select-img",
|
|
326
326
|
src: `${s(B)}/bim-viewer/check-selected.png`,
|
|
327
327
|
alt: ""
|
|
328
328
|
}, null, 8, jt)
|
|
329
|
-
])) : (l(),
|
|
329
|
+
])) : (l(), r("div", qt))
|
|
330
330
|
])
|
|
331
331
|
], 8, Gt))), 128))
|
|
332
|
-
])) : (l(),
|
|
333
|
-
(l(!0),
|
|
334
|
-
key:
|
|
332
|
+
])) : (l(), r("div", es, [
|
|
333
|
+
(l(!0), r(G, null, j(b.value, (v, d) => (l(), r("div", {
|
|
334
|
+
key: d,
|
|
335
335
|
class: "filter-item",
|
|
336
|
-
onClick: J((C) => k(
|
|
336
|
+
onClick: J((C) => k(v), ["stop"])
|
|
337
337
|
}, [
|
|
338
338
|
e("div", ss, [
|
|
339
|
-
e("div", os,
|
|
339
|
+
e("div", os, c(v), 1)
|
|
340
340
|
]),
|
|
341
341
|
e("div", ls, [
|
|
342
|
-
|
|
342
|
+
v === p.value ? (l(), r("div", is, [
|
|
343
343
|
e("img", {
|
|
344
344
|
class: "select-img",
|
|
345
345
|
src: `${s(B)}/bim-viewer/check-selected.png`,
|
|
346
346
|
alt: ""
|
|
347
|
-
}, null, 8,
|
|
348
|
-
])) : (l(),
|
|
347
|
+
}, null, 8, ns)
|
|
348
|
+
])) : (l(), r("div", as))
|
|
349
349
|
])
|
|
350
350
|
], 8, ts))), 128))
|
|
351
351
|
]))
|
|
@@ -356,15 +356,15 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
356
356
|
e("div", cs, [
|
|
357
357
|
e("div", {
|
|
358
358
|
class: "filter-btn",
|
|
359
|
-
onClick: J(
|
|
360
|
-
},
|
|
359
|
+
onClick: J(y, ["stop"])
|
|
360
|
+
}, c(s(h)("common.confirm")), 1)
|
|
361
361
|
])
|
|
362
362
|
])) : U("", !0),
|
|
363
|
-
K(
|
|
363
|
+
K(M, {
|
|
364
364
|
ref_key: "cmtCreateDateRef",
|
|
365
365
|
ref: E,
|
|
366
|
-
modelValue:
|
|
367
|
-
"onUpdate:modelValue":
|
|
366
|
+
modelValue: i.value.cmt_createDate,
|
|
367
|
+
"onUpdate:modelValue": a[5] || (a[5] = (v) => i.value.cmt_createDate = v),
|
|
368
368
|
"popper-class": "mobile_cmt_create_date",
|
|
369
369
|
type: "date",
|
|
370
370
|
placeholder: "Pick a day",
|
|
@@ -375,118 +375,118 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
375
375
|
format: "YYYY/MM/DD",
|
|
376
376
|
"value-format": "YYYY-MM-DD",
|
|
377
377
|
onBlur: u,
|
|
378
|
-
onChange:
|
|
378
|
+
onChange: O
|
|
379
379
|
}, null, 8, ["modelValue"])
|
|
380
380
|
])) : U("", !0);
|
|
381
381
|
};
|
|
382
382
|
}
|
|
383
|
-
}), us = /* @__PURE__ */ ie(rs, [["__scopeId", "data-v-
|
|
383
|
+
}), us = /* @__PURE__ */ ie(rs, [["__scopeId", "data-v-8e879446"]]), ds = { class: "mobile_CMT_search" }, ms = { class: "search_icon" }, vs = ["src"], _s = { class: "mobile_CMT_table_list" }, ps = { class: "table_list_title" }, hs = { class: "sort_buttons" }, gs = ["src"], fs = ["src"], bs = ["src"], ks = { class: "sort_total" }, Cs = ["src"], $s = ["src"], ys = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "table_list_content"
|
|
386
|
-
}, ws = { class: "table_list" },
|
|
386
|
+
}, ws = { class: "table_list" }, xs = ["onClick"], Is = { class: "CMT_img" }, Ts = { class: "CMT_info" }, Ds = { class: "CMT_info1" }, Ss = { class: "title" }, Ls = { class: "CMT_info2" }, Bs = { class: "username" }, Ms = {
|
|
387
387
|
key: 1,
|
|
388
388
|
class: "empty_wrapper"
|
|
389
|
-
},
|
|
390
|
-
__name: "
|
|
389
|
+
}, Ps = /* @__PURE__ */ le({
|
|
390
|
+
__name: "MobileList",
|
|
391
391
|
props: {
|
|
392
392
|
instruction: {},
|
|
393
393
|
CMTList: {}
|
|
394
394
|
},
|
|
395
395
|
emits: ["checkCmtDetail"],
|
|
396
|
-
setup(
|
|
397
|
-
const
|
|
396
|
+
setup(W, { emit: Y }) {
|
|
397
|
+
const x = Y, h = be(), _ = W, { CMTList: w } = Se(_), $ = ae(), f = o([]), i = o(), N = {
|
|
398
398
|
indexSort: ["default", "down", "up"],
|
|
399
399
|
titleSort: ["default", "down", "up"],
|
|
400
400
|
timeSort: ["default", "down", "up"]
|
|
401
|
-
}, E = o(),
|
|
402
|
-
|
|
403
|
-
|
|
401
|
+
}, E = o(), D = o();
|
|
402
|
+
pe(() => {
|
|
403
|
+
w.value && (f.value = w.value.slice().sort((t, a) => a.index - t.index), i.value = w.value.slice().sort((t, a) => a.index - t.index));
|
|
404
404
|
}), re(
|
|
405
|
-
() =>
|
|
405
|
+
() => _,
|
|
406
406
|
(t) => {
|
|
407
|
-
t && t.CMTList && (f.value = t.CMTList.slice().sort((
|
|
407
|
+
t && t.CMTList && (f.value = t.CMTList.slice().sort((a, S) => S.index - a.index), Z());
|
|
408
408
|
},
|
|
409
409
|
{ deep: !0 }
|
|
410
410
|
);
|
|
411
|
-
const
|
|
411
|
+
const I = o(!0), p = o(""), b = o(0), T = o(0), k = o(0), y = o(!0);
|
|
412
412
|
re(
|
|
413
|
-
() =>
|
|
413
|
+
() => D.value,
|
|
414
414
|
(t) => {
|
|
415
|
-
var
|
|
416
|
-
t && (t != null && t.cmt_priority || t != null && t.cmt_status || t != null && t.cmt_createDate || (
|
|
415
|
+
var a;
|
|
416
|
+
t && (t != null && t.cmt_priority || t != null && t.cmt_status || t != null && t.cmt_createDate || (a = t == null ? void 0 : t.cmt_authorId) != null && a.key || t != null && t.cmt_tag && (t == null ? void 0 : t.cmt_tag.length) > 0) ? I.value = !0 : I.value = !1;
|
|
417
417
|
},
|
|
418
418
|
{ deep: !0, immediate: !0 }
|
|
419
419
|
);
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
},
|
|
423
|
-
|
|
420
|
+
const P = () => {
|
|
421
|
+
i.value = w.value.slice().sort((t, a) => a.index - t.index), f.value = w.value.slice().sort((t, a) => a.index - t.index), y.value = !0;
|
|
422
|
+
}, O = () => {
|
|
423
|
+
p.value == "" ? P() : f.value = i.value.filter((t) => t.title.includes(p.value));
|
|
424
424
|
}, u = (t) => {
|
|
425
425
|
if (t > 2 && (b.value = 0), t == 1) {
|
|
426
|
-
let
|
|
427
|
-
f.value =
|
|
426
|
+
let a = i.value.slice().sort((S, M) => M.index - S.index);
|
|
427
|
+
f.value = a, y.value = !1;
|
|
428
428
|
} else if (t == 2) {
|
|
429
|
-
let
|
|
430
|
-
f.value =
|
|
429
|
+
let a = i.value.slice().sort((S, M) => S.index - M.index);
|
|
430
|
+
f.value = a;
|
|
431
431
|
} else
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
P();
|
|
433
|
+
T.value = 0, k.value = 0;
|
|
434
434
|
}, R = (t) => {
|
|
435
|
-
if (t > 2 && (
|
|
436
|
-
let
|
|
437
|
-
f.value =
|
|
435
|
+
if (t > 2 && (T.value = 0), t == 1) {
|
|
436
|
+
let a = i.value.slice().sort((S, M) => M.title.localeCompare(S.title));
|
|
437
|
+
f.value = a;
|
|
438
438
|
} else if (t == 2) {
|
|
439
|
-
let
|
|
440
|
-
f.value =
|
|
439
|
+
let a = i.value.slice().sort((S, M) => S.title.localeCompare(M.title));
|
|
440
|
+
f.value = a;
|
|
441
441
|
} else
|
|
442
|
-
|
|
442
|
+
P();
|
|
443
443
|
b.value = 0, k.value = 0;
|
|
444
|
-
},
|
|
444
|
+
}, z = (t) => {
|
|
445
445
|
if (t > 2 && (k.value = 0), t == 1) {
|
|
446
|
-
let
|
|
447
|
-
const
|
|
448
|
-
return
|
|
446
|
+
let a = i.value.slice().sort((S, M) => {
|
|
447
|
+
const v = new Date(S.createDate), d = new Date(M.createDate);
|
|
448
|
+
return v < d ? 1 : -1;
|
|
449
449
|
});
|
|
450
|
-
f.value =
|
|
450
|
+
f.value = a;
|
|
451
451
|
} else if (t == 2) {
|
|
452
|
-
let
|
|
453
|
-
const
|
|
454
|
-
return
|
|
452
|
+
let a = i.value.slice().sort((S, M) => {
|
|
453
|
+
const v = new Date(S.createDate), d = new Date(M.createDate);
|
|
454
|
+
return v > d ? 1 : -1;
|
|
455
455
|
});
|
|
456
|
-
f.value =
|
|
456
|
+
f.value = a;
|
|
457
457
|
} else
|
|
458
|
-
|
|
459
|
-
b.value = 0,
|
|
458
|
+
P();
|
|
459
|
+
b.value = 0, T.value = 0;
|
|
460
460
|
}, F = () => {
|
|
461
461
|
E.value.open({
|
|
462
462
|
confirm: (t) => {
|
|
463
|
-
|
|
463
|
+
D.value = t, Z();
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
}, Z = () => {
|
|
467
|
-
var
|
|
468
|
-
let t =
|
|
469
|
-
if (!t && !(t != null && t.cmt_priority) && !(t != null && t.cmt_status) && !(t != null && t.cmt_createDate) && !((
|
|
470
|
-
|
|
467
|
+
var a, S, M;
|
|
468
|
+
let t = D.value;
|
|
469
|
+
if (!t && !(t != null && t.cmt_priority) && !(t != null && t.cmt_status) && !(t != null && t.cmt_createDate) && !((a = t == null ? void 0 : t.cmt_authorId) != null && a.key) && (!(t != null && t.cmt_tag) || (t == null ? void 0 : t.cmt_tag.length) == 0))
|
|
470
|
+
P(), i.value = JSON.parse(JSON.stringify(w.value)).slice(), b.value + T.value + k.value != 0 && (b.value != 0 && u(b.value), T.value != 0 && R(T.value), k.value != 0 && z(k.value));
|
|
471
471
|
else {
|
|
472
|
-
let
|
|
473
|
-
t.cmt_priority && (
|
|
474
|
-
var C, g,
|
|
475
|
-
return typeof
|
|
476
|
-
})), t.cmt_status && (
|
|
477
|
-
var C, g,
|
|
478
|
-
return typeof
|
|
479
|
-
})), t.cmt_tag && t.cmt_tag.length > 0 && (
|
|
472
|
+
let v = JSON.parse(JSON.stringify(w.value)).slice();
|
|
473
|
+
t.cmt_priority && (v = v.filter((d) => d.priority && ge(d.priority) == t.cmt_priority), console.log("[Bimx Engine] 按优先级筛选结果:", v.filter((d) => d.priority && ge(d.priority) == t.cmt_priority))), (S = t.cmt_authorId) != null && S.key && (v = v.filter((d) => {
|
|
474
|
+
var C, g, m;
|
|
475
|
+
return typeof d.author == "string" ? ve.getStaffId(d.author) == ((C = t.cmt_authorId) == null ? void 0 : C.key) || ve.getStaffName((g = t.cmt_authorId) == null ? void 0 : g.key) == d.author : d.author == ((m = t.cmt_authorId) == null ? void 0 : m.key);
|
|
476
|
+
})), t.cmt_status && (v = v.filter((d) => d.status == t.cmt_status)), t.cmt_createDate && (v = v.filter((d) => _e(d.createDate) == t.cmt_createDate)), (M = t.CMT_asignToId) != null && M.key && (v = v.filter((d) => {
|
|
477
|
+
var C, g, m;
|
|
478
|
+
return typeof d.assignedTo == "string" ? ve.getStaffId(d.assignedTo) == ((C = t.CMT_asignToId) == null ? void 0 : C.key) || ve.getStaffName((g = t.CMT_asignToId) == null ? void 0 : g.key) == d.assignedTo : d.assignedTo == ((m = t.CMT_asignToId) == null ? void 0 : m.key);
|
|
479
|
+
})), t.cmt_tag && t.cmt_tag.length > 0 && (v = v.filter((d) => !!(d.tags && d.tags.find((C) => {
|
|
480
480
|
var g;
|
|
481
481
|
return (g = t.cmt_tag) == null ? void 0 : g.includes(C);
|
|
482
|
-
})))),
|
|
482
|
+
})))), i.value = v, b.value + T.value + k.value != 0 ? (b.value != 0 && u(b.value), T.value != 0 && R(T.value), k.value != 0 && z(k.value)) : f.value = i.value.slice().sort((d, C) => C.index - d.index);
|
|
483
483
|
}
|
|
484
484
|
}, q = (t) => {
|
|
485
|
-
|
|
485
|
+
x("checkCmtDetail", t);
|
|
486
486
|
};
|
|
487
|
-
return (t,
|
|
488
|
-
const S = ke,
|
|
489
|
-
return l(),
|
|
487
|
+
return (t, a) => {
|
|
488
|
+
const S = ke, M = he, v = Me, d = us;
|
|
489
|
+
return l(), r("div", {
|
|
490
490
|
class: "cmt_wrapper",
|
|
491
491
|
style: ee({ top: `${(s(Q)("topHeight") + 52) / 50}rem` })
|
|
492
492
|
}, [
|
|
@@ -498,11 +498,11 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
498
498
|
}, null, 8, vs)
|
|
499
499
|
]),
|
|
500
500
|
K(S, {
|
|
501
|
-
modelValue:
|
|
502
|
-
"onUpdate:modelValue":
|
|
501
|
+
modelValue: p.value,
|
|
502
|
+
"onUpdate:modelValue": a[0] || (a[0] = (C) => p.value = C),
|
|
503
503
|
placeholder: s($)("common.placeholder_search"),
|
|
504
|
-
onInput:
|
|
505
|
-
onChange:
|
|
504
|
+
onInput: O,
|
|
505
|
+
onChange: O
|
|
506
506
|
}, null, 8, ["modelValue", "placeholder"])
|
|
507
507
|
]),
|
|
508
508
|
e("div", _s, [
|
|
@@ -510,34 +510,34 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
510
510
|
e("div", hs, [
|
|
511
511
|
e("div", {
|
|
512
512
|
class: "sort_button",
|
|
513
|
-
onClick:
|
|
513
|
+
onClick: a[1] || (a[1] = (C) => u(b.value += 1))
|
|
514
514
|
}, [
|
|
515
|
-
e("span", null,
|
|
515
|
+
e("span", null, c(s($)("bcf.index")), 1),
|
|
516
516
|
e("img", {
|
|
517
517
|
class: "order_icon",
|
|
518
|
-
src: `${s(B)}/bim-viewer/bcf-images/order-${
|
|
518
|
+
src: `${s(B)}/bim-viewer/bcf-images/order-${N.indexSort[b.value]}.png`,
|
|
519
519
|
alt: ""
|
|
520
520
|
}, null, 8, gs)
|
|
521
521
|
]),
|
|
522
522
|
e("div", {
|
|
523
523
|
class: "sort_button",
|
|
524
|
-
onClick:
|
|
524
|
+
onClick: a[2] || (a[2] = (C) => R(T.value += 1))
|
|
525
525
|
}, [
|
|
526
|
-
e("span", null,
|
|
526
|
+
e("span", null, c(s($)("bcf.title")), 1),
|
|
527
527
|
e("img", {
|
|
528
528
|
class: "order_icon",
|
|
529
|
-
src: `${s(B)}/bim-viewer/bcf-images/order-${
|
|
529
|
+
src: `${s(B)}/bim-viewer/bcf-images/order-${N.titleSort[T.value]}.png`,
|
|
530
530
|
alt: ""
|
|
531
531
|
}, null, 8, fs)
|
|
532
532
|
]),
|
|
533
533
|
e("div", {
|
|
534
534
|
class: "sort_button",
|
|
535
|
-
onClick:
|
|
535
|
+
onClick: a[3] || (a[3] = (C) => z(k.value += 1))
|
|
536
536
|
}, [
|
|
537
|
-
e("span", null,
|
|
537
|
+
e("span", null, c(s($)("bcf.time")), 1),
|
|
538
538
|
e("img", {
|
|
539
539
|
class: "order_icon",
|
|
540
|
-
src: `${s(B)}/bim-viewer/bcf-images/order-${
|
|
540
|
+
src: `${s(B)}/bim-viewer/bcf-images/order-${N.timeSort[k.value]}.png`,
|
|
541
541
|
alt: ""
|
|
542
542
|
}, null, 8, bs)
|
|
543
543
|
])
|
|
@@ -547,31 +547,31 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
547
547
|
class: "sort_button",
|
|
548
548
|
onClick: J(F, ["stop"])
|
|
549
549
|
}, [
|
|
550
|
-
|
|
550
|
+
I.value ? (l(), r("img", {
|
|
551
551
|
key: 1,
|
|
552
552
|
class: "order_filter_icon",
|
|
553
553
|
src: `${s(B)}/bim-viewer/bcf-images/order-active-mobile.png`,
|
|
554
554
|
alt: ""
|
|
555
|
-
}, null, 8, $s)) : (l(),
|
|
555
|
+
}, null, 8, $s)) : (l(), r("img", {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "order_filter_icon",
|
|
558
558
|
src: `${s(B)}/bim-viewer/bcf-images/order-default-mobile.png`,
|
|
559
559
|
alt: ""
|
|
560
560
|
}, null, 8, Cs)),
|
|
561
|
-
e("span", null,
|
|
561
|
+
e("span", null, c(s($)("mobileComments.filter.title")), 1)
|
|
562
562
|
])
|
|
563
563
|
])
|
|
564
564
|
]),
|
|
565
|
-
f.value && f.value.length > 0 ? (l(),
|
|
566
|
-
K(
|
|
565
|
+
f.value && f.value.length > 0 ? (l(), r("div", ys, [
|
|
566
|
+
K(M, null, {
|
|
567
567
|
default: ce(() => [
|
|
568
568
|
e("div", ws, [
|
|
569
|
-
(l(!0),
|
|
569
|
+
(l(!0), r(G, null, j(f.value, (C, g) => (l(), r("div", {
|
|
570
570
|
key: g,
|
|
571
571
|
class: "CMT_card",
|
|
572
|
-
onClick: J((
|
|
572
|
+
onClick: J((m) => q(C._id), ["stop"])
|
|
573
573
|
}, [
|
|
574
|
-
e("div",
|
|
574
|
+
e("div", Is, [
|
|
575
575
|
e("div", {
|
|
576
576
|
style: ee({
|
|
577
577
|
width: "100%",
|
|
@@ -590,125 +590,125 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
590
590
|
e("span", {
|
|
591
591
|
style: ee({ color: C.priority ? s($e)(C.priority) : s($e)("low") }),
|
|
592
592
|
class: "index"
|
|
593
|
-
}, " #" +
|
|
594
|
-
e("span", Ss,
|
|
593
|
+
}, " #" + c(C.index), 5),
|
|
594
|
+
e("span", Ss, c(C.title), 1)
|
|
595
595
|
]),
|
|
596
596
|
e("div", Ls, [
|
|
597
|
-
e("span", Bs,
|
|
598
|
-
e("span", null,
|
|
597
|
+
e("span", Bs, c(typeof C.author == "string" && C.author != "" ? C.author : s(h).getStaffName(C.userId)), 1),
|
|
598
|
+
e("span", null, c(C.createDate ? s(_e)(C.createDate) : ""), 1)
|
|
599
599
|
])
|
|
600
600
|
])
|
|
601
|
-
], 8,
|
|
601
|
+
], 8, xs))), 128))
|
|
602
602
|
])
|
|
603
603
|
]),
|
|
604
604
|
_: 1
|
|
605
605
|
})
|
|
606
|
-
])) : (l(),
|
|
607
|
-
K(
|
|
606
|
+
])) : (l(), r("div", Ms, [
|
|
607
|
+
K(v, {
|
|
608
608
|
title: s($)("mobileComments.empty"),
|
|
609
609
|
type: "model"
|
|
610
610
|
}, null, 8, ["title"])
|
|
611
611
|
]))
|
|
612
612
|
]),
|
|
613
|
-
K(
|
|
613
|
+
K(d, {
|
|
614
614
|
ref_key: "CMTFilterRef",
|
|
615
615
|
ref: E
|
|
616
616
|
}, null, 512)
|
|
617
617
|
], 4);
|
|
618
618
|
};
|
|
619
619
|
}
|
|
620
|
-
}),
|
|
621
|
-
__name: "
|
|
620
|
+
}), Es = /* @__PURE__ */ ie(Ps, [["__scopeId", "data-v-ca35dbf4"]]), Os = ["src"], Rs = /* @__PURE__ */ le({
|
|
621
|
+
__name: "MobileZoomIn",
|
|
622
622
|
props: {
|
|
623
623
|
imgContent: {}
|
|
624
624
|
},
|
|
625
625
|
emits: ["closeImg"],
|
|
626
|
-
setup(
|
|
627
|
-
const
|
|
628
|
-
|
|
626
|
+
setup(W, { emit: Y }) {
|
|
627
|
+
const x = Y, _ = o(W.imgContent), w = ae(), $ = () => {
|
|
628
|
+
x("closeImg");
|
|
629
629
|
};
|
|
630
|
-
return (f,
|
|
630
|
+
return (f, i) => (l(), r("div", {
|
|
631
631
|
class: "image_zoomin_wrapper",
|
|
632
632
|
onClick: $
|
|
633
633
|
}, [
|
|
634
634
|
e("div", {
|
|
635
635
|
class: "back_btn",
|
|
636
636
|
onClick: $
|
|
637
|
-
},
|
|
637
|
+
}, c(s(w)("common.back")), 1),
|
|
638
638
|
e("div", {
|
|
639
639
|
class: "img_wrapper",
|
|
640
640
|
onClick: $
|
|
641
641
|
}, [
|
|
642
|
-
e("img", { src:
|
|
642
|
+
e("img", { src: _.value }, null, 8, Os)
|
|
643
643
|
])
|
|
644
644
|
]));
|
|
645
645
|
}
|
|
646
|
-
}), De = /* @__PURE__ */ ie(
|
|
646
|
+
}), De = /* @__PURE__ */ ie(Rs, [["__scopeId", "data-v-1396958a"]]), zs = { class: "content_scrollbar" }, Ns = { class: "cmt_detail_content" }, Fs = { class: "cmt_id_time" }, As = { class: "snpshot_wrapper" }, Us = { class: "snapshot_container" }, Hs = ["src"], Ws = ["src"], Ys = ["src"], Zs = { class: "cmt_content" }, Js = { class: "content" }, Gs = { class: "select_item" }, Xs = { class: "item_title" }, Ks = { class: "select_wrapper" }, Vs = { class: "select_item" }, Qs = { class: "item_title" }, js = { class: "select_item" }, qs = { class: "item_title" }, eo = { class: "select_wrapper" }, to = { class: "select_item" }, so = { class: "item_title" }, oo = {
|
|
647
647
|
key: 0,
|
|
648
648
|
class: "tag_list"
|
|
649
|
-
}, lo = { class: "tag_span" },
|
|
649
|
+
}, lo = { class: "tag_span" }, io = {
|
|
650
650
|
key: 1,
|
|
651
651
|
class: "select_wrapper"
|
|
652
|
-
},
|
|
653
|
-
__name: "
|
|
652
|
+
}, no = { class: "select_item_descript" }, ao = { class: "item_title" }, co = { class: "descript" }, ro = { class: "bottom_buttons" }, uo = { class: "btns" }, mo = /* @__PURE__ */ le({
|
|
653
|
+
__name: "MobileDetail",
|
|
654
654
|
props: {
|
|
655
655
|
cmtContent: {}
|
|
656
656
|
},
|
|
657
657
|
emits: ["delete", "back"],
|
|
658
|
-
setup(
|
|
659
|
-
const
|
|
658
|
+
setup(W, { emit: Y }) {
|
|
659
|
+
const x = Y, h = W, _ = o(h.cmtContent), w = o(""), $ = o(!1), f = () => {
|
|
660
660
|
$.value = !0;
|
|
661
|
-
},
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
let u =
|
|
665
|
-
|
|
661
|
+
}, i = o(), N = o(), E = o(), D = o(), I = o(), p = o(), b = o(), T = o(), k = ae();
|
|
662
|
+
pe(() => {
|
|
663
|
+
const O = /* @__PURE__ */ new Date();
|
|
664
|
+
let u = O.getDate(), R = O.getFullYear(), z = O.getMonth();
|
|
665
|
+
w.value = `${R}-${z + 1}-${u}`, _.value || console.log("[Bimx Engine] 评论内容为空,无法渲染详情"), y();
|
|
666
666
|
}), re(
|
|
667
667
|
() => h.cmtContent,
|
|
668
|
-
(
|
|
669
|
-
|
|
668
|
+
(O) => {
|
|
669
|
+
O && (_.value = JSON.parse(JSON.stringify(O)), y());
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
|
-
const
|
|
673
|
-
|
|
674
|
-
},
|
|
675
|
-
|
|
672
|
+
const y = () => {
|
|
673
|
+
i.value = _.value.index, N.value = _.value.title, E.value = _.value.priority ? ge(_.value.priority) : "", D.value = _.value.status ? _.value.status : "", I.value = _.value.deadline ? _e(_.value.deadline) : "", p.value = _.value.description ? _.value.description : "", b.value = _.value.tags ? _.value.tags : [], T.value = _.value.imgData;
|
|
674
|
+
}, P = () => {
|
|
675
|
+
x("delete", _.value.guid);
|
|
676
676
|
};
|
|
677
|
-
return (
|
|
678
|
-
const R =
|
|
679
|
-
return l(),
|
|
677
|
+
return (O, u) => {
|
|
678
|
+
const R = he, z = De;
|
|
679
|
+
return l(), r(G, null, [
|
|
680
680
|
e("div", {
|
|
681
681
|
class: "cmt_detail_wrapper",
|
|
682
682
|
style: ee({ top: `${(s(Q)("topHeight") + 52) / 50}rem` })
|
|
683
683
|
}, [
|
|
684
|
-
e("div",
|
|
684
|
+
e("div", zs, [
|
|
685
685
|
K(R, null, {
|
|
686
686
|
default: ce(() => [
|
|
687
687
|
e("div", Ns, [
|
|
688
688
|
e("div", Fs, [
|
|
689
689
|
e("div", {
|
|
690
|
-
style: ee({ backgroundColor: s(
|
|
691
|
-
},
|
|
690
|
+
style: ee({ backgroundColor: s(Pe)(_.value && _.value.priority ? _.value.priority : "low"), color: "#fff" })
|
|
691
|
+
}, c(i.value), 5),
|
|
692
692
|
e("div", null, [
|
|
693
|
-
|
|
694
|
-
e("span", null,
|
|
693
|
+
me(c(_.value && _.value.createDate && s(_e)(_.value.createDate)) + " ", 1),
|
|
694
|
+
e("span", null, c(s(k)("common.created")), 1)
|
|
695
695
|
])
|
|
696
696
|
]),
|
|
697
697
|
e("div", As, [
|
|
698
698
|
e("div", Us, [
|
|
699
699
|
e("img", {
|
|
700
700
|
class: "cmt_img",
|
|
701
|
-
src: `data:image/png;base64,${
|
|
701
|
+
src: `data:image/png;base64,${T.value}`
|
|
702
702
|
}, null, 8, Hs),
|
|
703
|
-
|
|
703
|
+
D.value ? (l(), r("div", {
|
|
704
704
|
key: 0,
|
|
705
705
|
class: "stage",
|
|
706
|
-
style: ee({ backgroundColor: s(
|
|
706
|
+
style: ee({ backgroundColor: s(Ee)(D.value) })
|
|
707
707
|
}, [
|
|
708
708
|
e("img", {
|
|
709
709
|
src: s(B) + "/bim-viewer/bcf-images/bulb.png"
|
|
710
710
|
}, null, 8, Ws),
|
|
711
|
-
e("span", null,
|
|
711
|
+
e("span", null, c(D.value), 1)
|
|
712
712
|
], 4)) : U("", !0),
|
|
713
713
|
e("div", {
|
|
714
714
|
class: "zoomIn",
|
|
@@ -717,46 +717,46 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
717
717
|
e("img", {
|
|
718
718
|
src: s(B) + "/bim-viewer/annotations/zoomin.svg"
|
|
719
719
|
}, null, 8, Ys),
|
|
720
|
-
|
|
720
|
+
me(" " + c(s(k)("common.view")), 1)
|
|
721
721
|
])
|
|
722
722
|
])
|
|
723
723
|
]),
|
|
724
724
|
e("div", Zs, [
|
|
725
725
|
e("div", Js, [
|
|
726
726
|
e("div", Gs, [
|
|
727
|
-
e("span", Xs,
|
|
727
|
+
e("span", Xs, c(s(k)("bcf.status")), 1),
|
|
728
728
|
u[2] || (u[2] = e("span", null, ":", -1)),
|
|
729
|
-
e("div", Ks,
|
|
729
|
+
e("div", Ks, c(D.value), 1)
|
|
730
730
|
]),
|
|
731
731
|
e("div", Vs, [
|
|
732
|
-
e("span", Qs,
|
|
732
|
+
e("span", Qs, c(s(k)("bcf.priority")), 1),
|
|
733
733
|
u[3] || (u[3] = e("span", null, ":", -1)),
|
|
734
734
|
e("div", {
|
|
735
735
|
class: "select_wrapper",
|
|
736
|
-
style: ee({ color: s(
|
|
737
|
-
},
|
|
736
|
+
style: ee({ color: s(Oe)(E.value) })
|
|
737
|
+
}, c(E.value), 5)
|
|
738
738
|
]),
|
|
739
739
|
e("div", js, [
|
|
740
|
-
e("span", qs,
|
|
740
|
+
e("span", qs, c(s(k)("bcf.dueDate")), 1),
|
|
741
741
|
u[4] || (u[4] = e("span", null, ":", -1)),
|
|
742
|
-
e("div", eo,
|
|
742
|
+
e("div", eo, c(I.value), 1)
|
|
743
743
|
]),
|
|
744
744
|
e("div", to, [
|
|
745
|
-
e("span", so,
|
|
745
|
+
e("span", so, c(s(k)("bcf.labels")), 1),
|
|
746
746
|
u[5] || (u[5] = e("span", null, ":", -1)),
|
|
747
|
-
b.value && b.value.length > 0 ? (l(),
|
|
748
|
-
(l(!0),
|
|
747
|
+
b.value && b.value.length > 0 ? (l(), r("div", oo, [
|
|
748
|
+
(l(!0), r(G, null, j(b.value, (F, Z) => (l(), r("div", {
|
|
749
749
|
key: Z,
|
|
750
750
|
class: "tag"
|
|
751
751
|
}, [
|
|
752
|
-
e("span", lo,
|
|
752
|
+
e("span", lo, c(F), 1)
|
|
753
753
|
]))), 128))
|
|
754
|
-
])) : (l(),
|
|
754
|
+
])) : (l(), r("div", io))
|
|
755
755
|
]),
|
|
756
|
-
e("div",
|
|
757
|
-
e("span", ao,
|
|
756
|
+
e("div", no, [
|
|
757
|
+
e("span", ao, c(s(k)("bcf.description")), 1),
|
|
758
758
|
u[6] || (u[6] = e("span", null, ":", -1)),
|
|
759
|
-
e("div", co,
|
|
759
|
+
e("div", co, c(p.value), 1)
|
|
760
760
|
])
|
|
761
761
|
])
|
|
762
762
|
])
|
|
@@ -770,19 +770,19 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
770
770
|
e("div", uo, [
|
|
771
771
|
e("div", {
|
|
772
772
|
class: "backModel",
|
|
773
|
-
onClick: u[0] || (u[0] = (F) =>
|
|
774
|
-
},
|
|
775
|
-
s(Q)("editPrivilege") == 0 ? (l(),
|
|
773
|
+
onClick: u[0] || (u[0] = (F) => x("back"))
|
|
774
|
+
}, c(s(k)("mobileComments.backToModel")), 1),
|
|
775
|
+
s(Q)("editPrivilege") == 0 ? (l(), r("div", {
|
|
776
776
|
key: 0,
|
|
777
777
|
class: "delete",
|
|
778
|
-
onClick:
|
|
779
|
-
},
|
|
778
|
+
onClick: P
|
|
779
|
+
}, c(s(k)("mobileComments.deleteComment")), 1)) : U("", !0)
|
|
780
780
|
])
|
|
781
781
|
])
|
|
782
782
|
], 4),
|
|
783
|
-
$.value ? (l(),
|
|
783
|
+
$.value ? (l(), te(z, {
|
|
784
784
|
key: 0,
|
|
785
|
-
"img-content": `data:image/png;base64,${
|
|
785
|
+
"img-content": `data:image/png;base64,${T.value}`,
|
|
786
786
|
onCloseImg: u[1] || (u[1] = () => {
|
|
787
787
|
$.value = !1;
|
|
788
788
|
})
|
|
@@ -790,34 +790,34 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
790
790
|
], 64);
|
|
791
791
|
};
|
|
792
792
|
}
|
|
793
|
-
}), vo = /* @__PURE__ */ ie(mo, [["__scopeId", "data-v-
|
|
793
|
+
}), vo = /* @__PURE__ */ ie(mo, [["__scopeId", "data-v-1251e210"]]), _o = { class: "image" }, po = { class: "fill" }, ho = { class: "screenshot" }, go = ["src"], fo = ["src"], bo = ["src"], ko = { class: "content" }, Co = { class: "select_item" }, $o = { class: "select_wrapper" }, yo = { class: "select_item" }, wo = { class: "select_wrapper" }, xo = { class: "select_item" }, Io = { class: "select_wrapper" }, To = { class: "select_item" }, Do = { class: "select_wrapper" }, So = { class: "select_item" }, Lo = { class: "select_wrapper" }, Bo = { class: "select_item" }, Mo = { class: "select_wrapper" }, Po = { class: "bottom" }, Eo = /* @__PURE__ */ le({
|
|
794
794
|
__name: "MobileCommentAdd",
|
|
795
795
|
props: {
|
|
796
796
|
imageData: {},
|
|
797
797
|
userId: {}
|
|
798
798
|
},
|
|
799
799
|
emits: ["cancel", "emitHandler", "createNew"],
|
|
800
|
-
setup(
|
|
801
|
-
const
|
|
800
|
+
setup(W, { emit: Y }) {
|
|
801
|
+
const x = ae(), h = Y, _ = W, w = o(!1), $ = o(_.imageData), f = o(""), i = o(""), N = o(""), E = o(), D = o(""), I = o([]), p = o(Ie()), b = o(xe()), T = o(we()), k = () => {
|
|
802
802
|
h("cancel");
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
},
|
|
806
|
-
f.value === "" ? X.emit("prompt", { type: "warn", text:
|
|
807
|
-
author:
|
|
803
|
+
}, y = () => {
|
|
804
|
+
w.value = !0;
|
|
805
|
+
}, P = () => {
|
|
806
|
+
f.value === "" ? X.emit("prompt", { type: "warn", text: x("bcf.messages.pleaseInputTitle") }) : h("createNew", {
|
|
807
|
+
author: _.userId,
|
|
808
808
|
title: f.value,
|
|
809
|
-
priority:
|
|
810
|
-
status:
|
|
809
|
+
priority: i.value,
|
|
810
|
+
status: N.value,
|
|
811
811
|
deadline: E.value,
|
|
812
812
|
createDate: (/* @__PURE__ */ new Date()).toISOString(),
|
|
813
|
-
description:
|
|
813
|
+
description: D.value,
|
|
814
814
|
imgData: $.value,
|
|
815
|
-
tags:
|
|
815
|
+
tags: I.value
|
|
816
816
|
});
|
|
817
817
|
};
|
|
818
|
-
return (
|
|
819
|
-
const R = ke,
|
|
820
|
-
return l(),
|
|
818
|
+
return (O, u) => {
|
|
819
|
+
const R = ke, z = ze, F = Re, Z = ye, q = De;
|
|
820
|
+
return l(), r(G, null, [
|
|
821
821
|
e("div", {
|
|
822
822
|
class: "comment_add",
|
|
823
823
|
style: ee({ top: `${(s(Q)("topHeight") + 52) / 50}rem` })
|
|
@@ -836,45 +836,45 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
836
836
|
e("img", {
|
|
837
837
|
src: `${s(B)}/bim-viewer/delete-white.svg`
|
|
838
838
|
}, null, 8, fo),
|
|
839
|
-
|
|
839
|
+
me(" " + c(s(x)("common.edit")), 1)
|
|
840
840
|
]),
|
|
841
841
|
e("div", {
|
|
842
842
|
class: "zoomIn",
|
|
843
|
-
onClick:
|
|
843
|
+
onClick: y
|
|
844
844
|
}, [
|
|
845
845
|
e("img", {
|
|
846
846
|
src: `${s(B)}/bim-viewer/annotations/zoomin.svg`
|
|
847
847
|
}, null, 8, bo),
|
|
848
|
-
|
|
848
|
+
me(" " + c(s(x)("common.view")), 1)
|
|
849
849
|
])
|
|
850
850
|
])
|
|
851
851
|
]),
|
|
852
852
|
e("div", ko, [
|
|
853
853
|
e("div", Co, [
|
|
854
854
|
e("div", null, [
|
|
855
|
-
|
|
855
|
+
me(c(s(x)("common.title")) + " ", 1),
|
|
856
856
|
u[7] || (u[7] = e("span", { style: { color: "#f54d4d" } }, "*", -1))
|
|
857
857
|
]),
|
|
858
858
|
e("div", $o, [
|
|
859
859
|
K(R, {
|
|
860
860
|
modelValue: f.value,
|
|
861
861
|
"onUpdate:modelValue": u[0] || (u[0] = (t) => f.value = t),
|
|
862
|
-
placeholder: s(
|
|
862
|
+
placeholder: s(x)("common.placeholder_input")
|
|
863
863
|
}, null, 8, ["modelValue", "placeholder"])
|
|
864
864
|
])
|
|
865
865
|
]),
|
|
866
866
|
e("div", yo, [
|
|
867
|
-
e("span", null,
|
|
867
|
+
e("span", null, c(s(x)("bcf.priority")), 1),
|
|
868
868
|
e("div", wo, [
|
|
869
869
|
K(F, {
|
|
870
|
-
modelValue:
|
|
871
|
-
"onUpdate:modelValue": u[1] || (u[1] = (t) =>
|
|
870
|
+
modelValue: i.value,
|
|
871
|
+
"onUpdate:modelValue": u[1] || (u[1] = (t) => i.value = t),
|
|
872
872
|
clearable: "",
|
|
873
|
-
placeholder: s(
|
|
873
|
+
placeholder: s(x)("common.placeholder_select")
|
|
874
874
|
}, {
|
|
875
875
|
default: ce(() => [
|
|
876
|
-
(l(!0),
|
|
877
|
-
key:
|
|
876
|
+
(l(!0), r(G, null, j(p.value, (t, a) => (l(), te(z, {
|
|
877
|
+
key: a,
|
|
878
878
|
value: t
|
|
879
879
|
}, null, 8, ["value"]))), 128))
|
|
880
880
|
]),
|
|
@@ -882,18 +882,18 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
882
882
|
}, 8, ["modelValue", "placeholder"])
|
|
883
883
|
])
|
|
884
884
|
]),
|
|
885
|
-
e("div",
|
|
886
|
-
e("span", null,
|
|
887
|
-
e("div",
|
|
885
|
+
e("div", xo, [
|
|
886
|
+
e("span", null, c(s(x)("bcf.status")), 1),
|
|
887
|
+
e("div", Io, [
|
|
888
888
|
K(F, {
|
|
889
|
-
modelValue:
|
|
890
|
-
"onUpdate:modelValue": u[2] || (u[2] = (t) =>
|
|
889
|
+
modelValue: N.value,
|
|
890
|
+
"onUpdate:modelValue": u[2] || (u[2] = (t) => N.value = t),
|
|
891
891
|
clearable: "",
|
|
892
|
-
placeholder: s(
|
|
892
|
+
placeholder: s(x)("common.placeholder_select")
|
|
893
893
|
}, {
|
|
894
894
|
default: ce(() => [
|
|
895
|
-
(l(!0),
|
|
896
|
-
key:
|
|
895
|
+
(l(!0), r(G, null, j(b.value, (t, a) => (l(), te(z, {
|
|
896
|
+
key: a,
|
|
897
897
|
value: t
|
|
898
898
|
}, null, 8, ["value"]))), 128))
|
|
899
899
|
]),
|
|
@@ -902,40 +902,40 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
902
902
|
])
|
|
903
903
|
]),
|
|
904
904
|
e("div", To, [
|
|
905
|
-
e("span", null,
|
|
905
|
+
e("span", null, c(s(x)("bcf.dueDate")), 1),
|
|
906
906
|
e("div", Do, [
|
|
907
907
|
K(Z, {
|
|
908
908
|
modelValue: E.value,
|
|
909
909
|
"onUpdate:modelValue": u[3] || (u[3] = (t) => E.value = t),
|
|
910
910
|
type: "datetime",
|
|
911
|
-
placeholder: s(
|
|
911
|
+
placeholder: s(x)("common.placeholder_date"),
|
|
912
912
|
editable: !1
|
|
913
913
|
}, null, 8, ["modelValue", "placeholder"])
|
|
914
914
|
])
|
|
915
915
|
]),
|
|
916
916
|
e("div", So, [
|
|
917
|
-
e("span", null,
|
|
917
|
+
e("span", null, c(s(x)("bcf.description")), 1),
|
|
918
918
|
e("div", Lo, [
|
|
919
919
|
K(R, {
|
|
920
|
-
modelValue:
|
|
921
|
-
"onUpdate:modelValue": u[4] || (u[4] = (t) =>
|
|
920
|
+
modelValue: D.value,
|
|
921
|
+
"onUpdate:modelValue": u[4] || (u[4] = (t) => D.value = t),
|
|
922
922
|
type: "textarea",
|
|
923
|
-
placeholder: s(
|
|
923
|
+
placeholder: s(x)("common.placeholder_input")
|
|
924
924
|
}, null, 8, ["modelValue", "placeholder"])
|
|
925
925
|
])
|
|
926
926
|
]),
|
|
927
927
|
e("div", Bo, [
|
|
928
|
-
e("span", null,
|
|
929
|
-
e("div",
|
|
928
|
+
e("span", null, c(s(x)("bcf.labels")), 1),
|
|
929
|
+
e("div", Mo, [
|
|
930
930
|
K(F, {
|
|
931
|
-
modelValue:
|
|
932
|
-
"onUpdate:modelValue": u[5] || (u[5] = (t) =>
|
|
931
|
+
modelValue: I.value,
|
|
932
|
+
"onUpdate:modelValue": u[5] || (u[5] = (t) => I.value = t),
|
|
933
933
|
multiple: "",
|
|
934
|
-
placeholder: s(
|
|
934
|
+
placeholder: s(x)("common.placeholder_select")
|
|
935
935
|
}, {
|
|
936
936
|
default: ce(() => [
|
|
937
|
-
(l(!0),
|
|
938
|
-
key:
|
|
937
|
+
(l(!0), r(G, null, j(T.value, (t, a) => (l(), te(z, {
|
|
938
|
+
key: a,
|
|
939
939
|
value: t
|
|
940
940
|
}, null, 8, ["value"]))), 128))
|
|
941
941
|
]),
|
|
@@ -944,41 +944,41 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
944
944
|
])
|
|
945
945
|
])
|
|
946
946
|
]),
|
|
947
|
-
e("div",
|
|
947
|
+
e("div", Po, [
|
|
948
948
|
u[8] || (u[8] = e("div", { class: "line" }, null, -1)),
|
|
949
949
|
e("div", {
|
|
950
950
|
class: "create",
|
|
951
|
-
onClick:
|
|
952
|
-
},
|
|
951
|
+
onClick: P
|
|
952
|
+
}, c(s(x)("bcf.createNow")), 1)
|
|
953
953
|
])
|
|
954
954
|
], 4),
|
|
955
|
-
|
|
955
|
+
w.value ? (l(), te(q, {
|
|
956
956
|
key: 0,
|
|
957
957
|
"img-content": `data:image/png;base64,${$.value}`,
|
|
958
958
|
onCloseImg: u[6] || (u[6] = () => {
|
|
959
|
-
|
|
959
|
+
w.value = !1;
|
|
960
960
|
})
|
|
961
961
|
}, null, 8, ["img-content"])) : U("", !0)
|
|
962
962
|
], 64);
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
}),
|
|
965
|
+
}), Oo = /* @__PURE__ */ ie(Eo, [["__scopeId", "data-v-69fc8e78"]]), Ro = { class: "mobile_comments_toolbar" }, zo = { class: "enter" }, No = { class: "comment_toolbar" }, Fo = { class: "comment-list" }, Ao = ["onClick"], Uo = { class: "comment-icon" }, Ho = ["src"], Wo = { class: "comment-name" }, Yo = { class: "comment-icon" }, Zo = ["src"], Jo = {
|
|
966
966
|
class: "comment-name",
|
|
967
967
|
style: { color: "#df1c1c" }
|
|
968
968
|
}, Go = { class: "buttons" }, Xo = {
|
|
969
969
|
key: 0,
|
|
970
970
|
class: "comment_create_text_box"
|
|
971
|
-
}, Ko = { class: "label-text-edit" }, Vo = { class: "text-edit-head" }, Qo = ["src"], jo = { class: "text-edit-title" }, qo = { class: "text-edit-body" }, el = { class: "text-edit-input" }, tl = /* @__PURE__ */
|
|
972
|
-
__name: "
|
|
971
|
+
}, Ko = { class: "label-text-edit" }, Vo = { class: "text-edit-head" }, Qo = ["src"], jo = { class: "text-edit-title" }, qo = { class: "text-edit-body" }, el = { class: "text-edit-input" }, tl = /* @__PURE__ */ le({
|
|
972
|
+
__name: "MobileDraw",
|
|
973
973
|
props: ["componentId"],
|
|
974
974
|
emits: ["emitHandler", "cancel", "confirm"],
|
|
975
|
-
setup(
|
|
976
|
-
const h = ae(),
|
|
977
|
-
|
|
978
|
-
|
|
975
|
+
setup(W, { expose: Y, emit: x }) {
|
|
976
|
+
const h = ae(), _ = Ce(), w = W;
|
|
977
|
+
pe(() => {
|
|
978
|
+
_.setReadyById(w.componentId);
|
|
979
979
|
});
|
|
980
980
|
let $, f;
|
|
981
|
-
const
|
|
981
|
+
const i = o(0), N = o(1), E = o(1), D = o(), I = o(!1), p = o(!1), b = o(!1), T = o(!1), k = o(""), y = o(), P = o({
|
|
982
982
|
show: !1,
|
|
983
983
|
// 是否显示
|
|
984
984
|
title: h("mobileComments.notice.title"),
|
|
@@ -988,41 +988,41 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
988
988
|
submitName: h("common.confirm"),
|
|
989
989
|
// 弹窗按钮
|
|
990
990
|
confirm: () => {
|
|
991
|
-
console.log("
|
|
991
|
+
console.log("[Bimx Engine] 弹窗确认按钮点击"), P.value.show = !1;
|
|
992
992
|
},
|
|
993
993
|
close: () => {
|
|
994
|
-
console.log("
|
|
994
|
+
console.log("[Bimx Engine] 弹窗关闭按钮点击"), P.value.show = !1;
|
|
995
995
|
}
|
|
996
|
-
}),
|
|
997
|
-
$ = window.bimViewer.commentTool, f = window.bimViewer.eventTrigger,
|
|
998
|
-
|
|
996
|
+
}), O = () => {
|
|
997
|
+
$ = window.bimViewer.commentTool, f = window.bimViewer.eventTrigger, d(""), f.on("createNew", () => {
|
|
998
|
+
i.value = 0, d("");
|
|
999
999
|
}), f.on("newState", () => {
|
|
1000
|
-
|
|
1000
|
+
I.value = !0, p.value = !1;
|
|
1001
1001
|
}), f.on("noPreviousState", () => {
|
|
1002
|
-
|
|
1002
|
+
I.value = !1;
|
|
1003
1003
|
}), f.on("noNewState", () => {
|
|
1004
|
-
|
|
1004
|
+
p.value = !1;
|
|
1005
1005
|
}), f.on("choseTarget", (g) => {
|
|
1006
|
-
b.value = !0,
|
|
1006
|
+
b.value = !0, i.value = 0, d("");
|
|
1007
1007
|
});
|
|
1008
1008
|
};
|
|
1009
|
-
X.on("BimViewer",
|
|
1010
|
-
X.off("BimViewer",
|
|
1009
|
+
X.on("BimViewer", O), fe(() => {
|
|
1010
|
+
X.off("BimViewer", O);
|
|
1011
1011
|
});
|
|
1012
|
-
const u =
|
|
1013
|
-
|
|
1012
|
+
const u = x, R = () => {
|
|
1013
|
+
i.value = 1, d("path"), setTimeout(() => {
|
|
1014
1014
|
var g;
|
|
1015
1015
|
(g = document.getElementById("svgImage")) == null || g.addEventListener("touchstart", F);
|
|
1016
1016
|
}, 200);
|
|
1017
|
-
},
|
|
1017
|
+
}, z = () => {
|
|
1018
1018
|
var g;
|
|
1019
1019
|
(g = document.getElementById("svgImage")) == null || g.removeEventListener("touchstart", F);
|
|
1020
1020
|
}, F = (g) => {
|
|
1021
|
-
g.target.tagName == "image" && (
|
|
1021
|
+
g.target.tagName == "image" && (i.value === 5 ? (k.value = "", y.value = g, T.value = !0) : b.value = !1);
|
|
1022
1022
|
}, Z = () => {
|
|
1023
|
-
k.value ? ($.clickCreateText(
|
|
1024
|
-
}, q = (g,
|
|
1025
|
-
|
|
1023
|
+
k.value ? ($.clickCreateText(y.value, k.value), T.value = !1) : q(h("mobileComments.pleaseInputContent"));
|
|
1024
|
+
}, q = (g, m) => {
|
|
1025
|
+
P.value = {
|
|
1026
1026
|
show: !0,
|
|
1027
1027
|
// 是否显示
|
|
1028
1028
|
title: h("common.info"),
|
|
@@ -1032,68 +1032,68 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1032
1032
|
submitName: h("common.confirm"),
|
|
1033
1033
|
// 弹窗按钮
|
|
1034
1034
|
confirm: () => {
|
|
1035
|
-
console.log("
|
|
1035
|
+
console.log("[Bimx Engine] 弹窗确认按钮点击"), P.value.show = !1;
|
|
1036
1036
|
},
|
|
1037
1037
|
close: () => {
|
|
1038
|
-
console.log("
|
|
1038
|
+
console.log("[Bimx Engine] 弹窗关闭按钮点击"), P.value.show = !1;
|
|
1039
1039
|
}
|
|
1040
1040
|
};
|
|
1041
1041
|
}, t = (g) => {
|
|
1042
|
-
|
|
1043
|
-
},
|
|
1042
|
+
i.value === g.id && (i.value = 0), N.value = 1, E.value = 1, D.value = g.buttontype, i.value = g.id, d(g.buttontype);
|
|
1043
|
+
}, a = o(), S = new Ue(0.1), M = () => {
|
|
1044
1044
|
$.saveComments();
|
|
1045
1045
|
const g = document.getElementById("svgImage");
|
|
1046
1046
|
if (g) {
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
A.width = g.clientWidth *
|
|
1050
|
-
function
|
|
1051
|
-
|
|
1052
|
-
|
|
1047
|
+
const m = new XMLSerializer().serializeToString(g), A = document.createElement("canvas"), se = A.getContext("2d"), n = window.devicePixelRatio || 1, V = new Image();
|
|
1048
|
+
V.onload = function() {
|
|
1049
|
+
A.width = g.clientWidth * n, A.height = g.clientHeight * n, se && (se.scale(n, n), se.drawImage(V, 0, 0)), a.value = A.toDataURL("image/png").split(",")[1], H();
|
|
1050
|
+
function H() {
|
|
1051
|
+
a.value ? u("confirm", a.value) : S.start(() => {
|
|
1052
|
+
H();
|
|
1053
1053
|
});
|
|
1054
1054
|
}
|
|
1055
|
-
},
|
|
1055
|
+
}, V.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(m)}`;
|
|
1056
1056
|
}
|
|
1057
|
-
},
|
|
1057
|
+
}, v = () => {
|
|
1058
1058
|
window.bimViewer.commentTool.deleteCurrentComments(), b.value = !1;
|
|
1059
|
-
},
|
|
1059
|
+
}, d = (g) => {
|
|
1060
1060
|
$.setCurrentMode(g);
|
|
1061
1061
|
}, C = () => {
|
|
1062
1062
|
u("cancel");
|
|
1063
1063
|
};
|
|
1064
|
-
return
|
|
1065
|
-
const A =
|
|
1066
|
-
return l(),
|
|
1067
|
-
e("div",
|
|
1068
|
-
e("div",
|
|
1064
|
+
return Y({ handleOpen: R, handleClose: z }), (g, m) => {
|
|
1065
|
+
const A = he, se = ke;
|
|
1066
|
+
return l(), r(G, null, [
|
|
1067
|
+
e("div", Ro, [
|
|
1068
|
+
e("div", zo, [
|
|
1069
1069
|
e("div", No, [
|
|
1070
1070
|
K(A, null, {
|
|
1071
1071
|
default: ce(() => [
|
|
1072
1072
|
e("div", Fo, [
|
|
1073
|
-
(l(!0),
|
|
1074
|
-
key:
|
|
1075
|
-
class:
|
|
1076
|
-
"comment-item-active":
|
|
1073
|
+
(l(!0), r(G, null, j(s(Te), (n, V) => (l(), r("div", {
|
|
1074
|
+
key: V,
|
|
1075
|
+
class: de(["comment-item", {
|
|
1076
|
+
"comment-item-active": i.value === n.id
|
|
1077
1077
|
}]),
|
|
1078
|
-
onClick: (
|
|
1078
|
+
onClick: (H) => t(n)
|
|
1079
1079
|
}, [
|
|
1080
1080
|
e("div", Uo, [
|
|
1081
1081
|
e("img", {
|
|
1082
|
-
src: s(B) + `/bim-viewer/comment/new-icons/bimkk-mobile-comment-${
|
|
1082
|
+
src: s(B) + `/bim-viewer/comment/new-icons/bimkk-mobile-comment-${i.value === n.id ? n.svgActive : n.svg}.svg`
|
|
1083
1083
|
}, null, 8, Ho),
|
|
1084
|
-
e("div", Wo,
|
|
1084
|
+
e("div", Wo, c(s(h)(n.label)), 1)
|
|
1085
1085
|
])
|
|
1086
1086
|
], 10, Ao))), 128)),
|
|
1087
|
-
b.value ? (l(),
|
|
1087
|
+
b.value ? (l(), r("div", {
|
|
1088
1088
|
key: 0,
|
|
1089
1089
|
class: "comment-item",
|
|
1090
|
-
onClick:
|
|
1090
|
+
onClick: v
|
|
1091
1091
|
}, [
|
|
1092
1092
|
e("div", Yo, [
|
|
1093
1093
|
e("img", {
|
|
1094
1094
|
src: s(B) + "/bim-viewer/delete.svg"
|
|
1095
1095
|
}, null, 8, Zo),
|
|
1096
|
-
e("div", Jo,
|
|
1096
|
+
e("div", Jo, c(s(h)("common.delete")), 1)
|
|
1097
1097
|
])
|
|
1098
1098
|
])) : U("", !0)
|
|
1099
1099
|
])
|
|
@@ -1105,33 +1105,33 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1105
1105
|
e("div", {
|
|
1106
1106
|
class: "cancel",
|
|
1107
1107
|
onClick: C
|
|
1108
|
-
},
|
|
1108
|
+
}, c(s(h)("common.cancel")), 1),
|
|
1109
1109
|
e("div", {
|
|
1110
1110
|
class: "add",
|
|
1111
|
-
onClick:
|
|
1112
|
-
},
|
|
1111
|
+
onClick: M
|
|
1112
|
+
}, c(s(h)("bcf.addComment")), 1)
|
|
1113
1113
|
])
|
|
1114
1114
|
])
|
|
1115
1115
|
]),
|
|
1116
|
-
|
|
1116
|
+
T.value ? (l(), r("div", Xo, [
|
|
1117
1117
|
e("div", Ko, [
|
|
1118
1118
|
e("div", Vo, [
|
|
1119
1119
|
e("img", {
|
|
1120
1120
|
class: "text-edit-back",
|
|
1121
1121
|
src: s(B) + "/bim-viewer/back_gray.svg",
|
|
1122
|
-
onClick:
|
|
1122
|
+
onClick: m[0] || (m[0] = (n) => T.value = !1)
|
|
1123
1123
|
}, null, 8, Qo),
|
|
1124
|
-
e("div", jo,
|
|
1124
|
+
e("div", jo, c(s(h)("mobileComments.createText")), 1),
|
|
1125
1125
|
e("div", {
|
|
1126
1126
|
class: "text-edit-finish",
|
|
1127
1127
|
onClick: Z
|
|
1128
|
-
},
|
|
1128
|
+
}, c(s(h)("common.done")), 1)
|
|
1129
1129
|
]),
|
|
1130
1130
|
e("div", qo, [
|
|
1131
1131
|
e("div", el, [
|
|
1132
|
-
K(
|
|
1132
|
+
K(se, {
|
|
1133
1133
|
modelValue: k.value,
|
|
1134
|
-
"onUpdate:modelValue":
|
|
1134
|
+
"onUpdate:modelValue": m[1] || (m[1] = (n) => k.value = n),
|
|
1135
1135
|
type: "textarea",
|
|
1136
1136
|
placeholder: s(h)("common.placeholder_input"),
|
|
1137
1137
|
autosize: { minRows: 2 }
|
|
@@ -1143,10 +1143,10 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1143
1143
|
], 64);
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
|
-
}), sl = /* @__PURE__ */ ie(tl, [["__scopeId", "data-v-
|
|
1146
|
+
}), sl = /* @__PURE__ */ ie(tl, [["__scopeId", "data-v-0c30db1a"]]), ol = {
|
|
1147
1147
|
id: "comments_toolbar",
|
|
1148
1148
|
class: "comments_toolbar"
|
|
1149
|
-
}, ll = { class: "comments_toolbar_wrapper" },
|
|
1149
|
+
}, ll = { class: "comments_toolbar_wrapper" }, il = { class: "comments_toolbar_content" }, nl = { class: "comments_toolbar_group" }, al = ["onClick"], cl = ["src"], rl = {
|
|
1150
1150
|
key: 0,
|
|
1151
1151
|
class: "edit-tips"
|
|
1152
1152
|
}, ul = { class: "edit_tips_content" }, dl = {
|
|
@@ -1155,259 +1155,279 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1155
1155
|
}, ml = ["onClick"], vl = {
|
|
1156
1156
|
key: 1,
|
|
1157
1157
|
class: "tips-weight"
|
|
1158
|
-
}, _l = ["onClick"], pl = { class: "tips-color" }, hl = ["onClick"], gl = { class: "comments_toolbar_group" }, fl = ["src"], bl = ["src"], kl = /* @__PURE__ */
|
|
1159
|
-
__name: "
|
|
1158
|
+
}, _l = ["onClick"], pl = { class: "tips-color" }, hl = ["onClick"], gl = { class: "comments_toolbar_group" }, fl = ["src"], bl = ["src"], kl = /* @__PURE__ */ le({
|
|
1159
|
+
__name: "PcDraw",
|
|
1160
1160
|
props: ["componentId", "instruction"],
|
|
1161
1161
|
emits: ["closePanel", "emitHandler"],
|
|
1162
|
-
setup(
|
|
1163
|
-
const
|
|
1164
|
-
|
|
1162
|
+
setup(W, { emit: Y }) {
|
|
1163
|
+
const x = ae(), h = Ce(), _ = W, w = Y, $ = (n) => {
|
|
1164
|
+
w("emitHandler", n);
|
|
1165
1165
|
};
|
|
1166
|
-
let f,
|
|
1167
|
-
const
|
|
1168
|
-
f = window.bimViewer,
|
|
1169
|
-
d.value = 0, D("");
|
|
1170
|
-
}), z.on("newState", () => {
|
|
1171
|
-
E.value = !0, T.value = !1;
|
|
1172
|
-
}), z.on("noPreviousState", () => {
|
|
1173
|
-
E.value = !1;
|
|
1174
|
-
}), z.on("noNewState", () => {
|
|
1175
|
-
T.value = !1;
|
|
1176
|
-
}), z.on("choseTarget", (r) => {
|
|
1177
|
-
d.value = 0, D("");
|
|
1178
|
-
});
|
|
1166
|
+
let f, i;
|
|
1167
|
+
const N = o(!1), E = o(!1), D = () => {
|
|
1168
|
+
f = window.bimViewer, i = window.bimViewer.commentTool, P("");
|
|
1179
1169
|
};
|
|
1180
|
-
X.on("BimViewer",
|
|
1181
|
-
|
|
1170
|
+
X.on("BimViewer", D), ue({
|
|
1171
|
+
event: "createNew",
|
|
1172
|
+
handler: () => {
|
|
1173
|
+
I.value = 0, P("");
|
|
1174
|
+
},
|
|
1175
|
+
defer: !0
|
|
1176
|
+
}), ue({
|
|
1177
|
+
event: "newState",
|
|
1178
|
+
handler: () => {
|
|
1179
|
+
N.value = !0, E.value = !1;
|
|
1180
|
+
},
|
|
1181
|
+
defer: !0
|
|
1182
|
+
}), ue({
|
|
1183
|
+
event: "noPreviousState",
|
|
1184
|
+
handler: () => {
|
|
1185
|
+
N.value = !1;
|
|
1186
|
+
},
|
|
1187
|
+
defer: !0
|
|
1188
|
+
}), ue({
|
|
1189
|
+
event: "noNewState",
|
|
1190
|
+
handler: () => {
|
|
1191
|
+
E.value = !1;
|
|
1192
|
+
},
|
|
1193
|
+
defer: !0
|
|
1194
|
+
}), ue({
|
|
1195
|
+
event: "choseTarget",
|
|
1196
|
+
handler: () => {
|
|
1197
|
+
I.value = 0, P("");
|
|
1198
|
+
},
|
|
1199
|
+
defer: !0
|
|
1200
|
+
}), fe(() => {
|
|
1201
|
+
X.off("BimViewer", D);
|
|
1182
1202
|
}), re(
|
|
1183
|
-
() => h.isToolActive(
|
|
1184
|
-
(
|
|
1185
|
-
|
|
1203
|
+
() => h.isToolActive(_.componentId),
|
|
1204
|
+
(n) => {
|
|
1205
|
+
n && (I.value = 1, P("path"));
|
|
1186
1206
|
}
|
|
1187
1207
|
);
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1190
|
-
},
|
|
1191
|
-
|
|
1192
|
-
},
|
|
1193
|
-
|
|
1194
|
-
const
|
|
1195
|
-
if (
|
|
1196
|
-
const
|
|
1197
|
-
|
|
1198
|
-
|
|
1208
|
+
const I = o(0), p = o(1), b = o(1), T = o(1), k = o(Te), y = o(), P = (n) => {
|
|
1209
|
+
i.setCurrentMode(n);
|
|
1210
|
+
}, O = (n) => {
|
|
1211
|
+
I.value === n.id && (I.value = 0), p.value = 1, b.value = 1, y.value = n.buttontype, I.value = n.id, P(n.buttontype);
|
|
1212
|
+
}, u = () => {
|
|
1213
|
+
i.saveComments();
|
|
1214
|
+
const n = document.getElementById("svgImage");
|
|
1215
|
+
if (n) {
|
|
1216
|
+
const V = new XMLSerializer().serializeToString(n), H = document.createElement("canvas"), L = H.getContext("2d"), oe = window.devicePixelRatio || 1, ne = new Image();
|
|
1217
|
+
ne.onload = function() {
|
|
1218
|
+
H.width = n.clientWidth * oe, H.height = n.clientHeight * oe, L && (L.scale(oe, oe), L.drawImage(ne, 0, 0)), $({
|
|
1199
1219
|
isTool: !0,
|
|
1200
1220
|
event_target: "CommentTool",
|
|
1201
1221
|
event_name: "saveComment",
|
|
1202
1222
|
content: {
|
|
1203
|
-
img_data:
|
|
1223
|
+
img_data: H.toDataURL("image/png").split(",")[1]
|
|
1204
1224
|
}
|
|
1205
1225
|
});
|
|
1206
|
-
},
|
|
1226
|
+
}, ne.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(V)}`;
|
|
1207
1227
|
}
|
|
1208
|
-
},
|
|
1228
|
+
}, R = () => {
|
|
1209
1229
|
$({
|
|
1210
1230
|
isTool: !1,
|
|
1211
1231
|
event_target: "ToolBar",
|
|
1212
1232
|
event_name: "clickTool",
|
|
1213
1233
|
content: {
|
|
1214
|
-
toolId:
|
|
1215
|
-
toolKey: h.getKeyById(
|
|
1234
|
+
toolId: _.componentId,
|
|
1235
|
+
toolKey: h.getKeyById(_.componentId),
|
|
1216
1236
|
status: !1
|
|
1217
1237
|
}
|
|
1218
|
-
}), f.SetCommentsToolActive(!1),
|
|
1219
|
-
},
|
|
1220
|
-
|
|
1221
|
-
},
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1225
|
-
},
|
|
1226
|
-
|
|
1227
|
-
},
|
|
1228
|
-
|
|
1229
|
-
},
|
|
1230
|
-
|
|
1231
|
-
},
|
|
1232
|
-
|
|
1233
|
-
},
|
|
1234
|
-
|
|
1235
|
-
},
|
|
1236
|
-
|
|
1237
|
-
},
|
|
1238
|
-
|
|
1239
|
-
},
|
|
1240
|
-
|
|
1241
|
-
},
|
|
1242
|
-
|
|
1243
|
-
},
|
|
1244
|
-
|
|
1245
|
-
},
|
|
1246
|
-
|
|
1238
|
+
}), f.SetCommentsToolActive(!1), w("closePanel");
|
|
1239
|
+
}, z = (n) => {
|
|
1240
|
+
p.value = n.id, y.value === "path" ? v(n.size) : y.value === "arrow" ? g(n.size) : y.value === "rect" ? C(n.size) : y.value === "ellipse" && d(n.size);
|
|
1241
|
+
}, F = (n) => {
|
|
1242
|
+
b.value = n.id, y.value === "path" ? q(n.color) : y.value === "arrow" ? S(n.color) : y.value === "rect" ? a(n.color) : y.value === "ellipse" ? t(n.color) : y.value === "text" && M(n.color);
|
|
1243
|
+
}, Z = (n) => {
|
|
1244
|
+
T.value = n.id, m(n.fontSize);
|
|
1245
|
+
}, q = (n) => {
|
|
1246
|
+
i.pathColor = n;
|
|
1247
|
+
}, t = (n) => {
|
|
1248
|
+
i.ellipseColor = n;
|
|
1249
|
+
}, a = (n) => {
|
|
1250
|
+
i.rectColor = n;
|
|
1251
|
+
}, S = (n) => {
|
|
1252
|
+
i.arrowColor = n;
|
|
1253
|
+
}, M = (n) => {
|
|
1254
|
+
i.textColor = n;
|
|
1255
|
+
}, v = (n) => {
|
|
1256
|
+
i.pathStrokeWidth = n;
|
|
1257
|
+
}, d = (n) => {
|
|
1258
|
+
i.ellipseStrokeWidth = n;
|
|
1259
|
+
}, C = (n) => {
|
|
1260
|
+
i.rectStrokeWidth = n;
|
|
1261
|
+
}, g = (n) => {
|
|
1262
|
+
i.arrowSize = n;
|
|
1263
|
+
}, m = (n) => {
|
|
1264
|
+
i.textFontSize = n;
|
|
1265
|
+
}, A = () => {
|
|
1266
|
+
i.ReDo(() => {
|
|
1267
|
+
}), N.value = !0;
|
|
1268
|
+
}, se = () => {
|
|
1269
|
+
i.UnDo(() => {
|
|
1247
1270
|
}), E.value = !0;
|
|
1248
|
-
}, Y = () => {
|
|
1249
|
-
n.UnDo(() => {
|
|
1250
|
-
}), T.value = !0;
|
|
1251
1271
|
};
|
|
1252
|
-
return (
|
|
1272
|
+
return (n, V) => (l(), r("div", ol, [
|
|
1253
1273
|
e("div", ll, [
|
|
1254
|
-
e("div",
|
|
1255
|
-
e("div",
|
|
1256
|
-
(l(!0),
|
|
1257
|
-
key:
|
|
1258
|
-
class:
|
|
1259
|
-
onClick: (L) =>
|
|
1274
|
+
e("div", il, [
|
|
1275
|
+
e("div", nl, [
|
|
1276
|
+
(l(!0), r(G, null, j(k.value, (H) => (l(), r("div", {
|
|
1277
|
+
key: H.id,
|
|
1278
|
+
class: de(["comments_tool_btn", { comments_tool_btn_active: I.value === H.id }]),
|
|
1279
|
+
onClick: (L) => O(H)
|
|
1260
1280
|
}, [
|
|
1261
1281
|
e("img", {
|
|
1262
|
-
src: s(B) + `/bim-viewer/comments/${
|
|
1282
|
+
src: s(B) + `/bim-viewer/comments/${I.value === H.id ? H.imgActive : H.img}.svg`
|
|
1263
1283
|
}, null, 8, cl),
|
|
1264
|
-
|
|
1284
|
+
I.value === H.id ? (l(), r("div", rl, [
|
|
1265
1285
|
e("div", ul, [
|
|
1266
|
-
|
|
1267
|
-
(l(!0),
|
|
1286
|
+
H.buttontype === "text" ? (l(), r("div", dl, [
|
|
1287
|
+
(l(!0), r(G, null, j(s(Ne), (L) => (l(), r("div", {
|
|
1268
1288
|
key: L.id,
|
|
1269
|
-
class:
|
|
1289
|
+
class: de(["text1", { text2: T.value === L.id }]),
|
|
1270
1290
|
style: ee({ "font-size": L.id === 0 ? "18px" : L.id === 1 ? "16px" : "12px" }),
|
|
1271
|
-
onClick: (
|
|
1272
|
-
},
|
|
1273
|
-
])) : (l(),
|
|
1274
|
-
(l(!0),
|
|
1291
|
+
onClick: (oe) => Z(L)
|
|
1292
|
+
}, c(s(x)(L.label)), 15, ml))), 128))
|
|
1293
|
+
])) : (l(), r("div", vl, [
|
|
1294
|
+
(l(!0), r(G, null, j(s(Fe), (L) => (l(), r("div", {
|
|
1275
1295
|
key: L.id,
|
|
1276
|
-
class:
|
|
1296
|
+
class: de(["weight", { choose_weight: p.value === L.id }]),
|
|
1277
1297
|
style: ee({
|
|
1278
1298
|
width: L.id === 0 ? "6px" : L.id === 1 ? "14px" : "20px",
|
|
1279
1299
|
height: L.id === 0 ? "6px" : L.id === 1 ? "14px" : "20px"
|
|
1280
1300
|
}),
|
|
1281
|
-
onClick: J((
|
|
1301
|
+
onClick: J((oe) => z(L), ["stop"])
|
|
1282
1302
|
}, null, 14, _l))), 128))
|
|
1283
1303
|
])),
|
|
1284
1304
|
e("div", pl, [
|
|
1285
|
-
(l(!0),
|
|
1305
|
+
(l(!0), r(G, null, j(s(Ae), (L) => (l(), r("div", {
|
|
1286
1306
|
key: L.id,
|
|
1287
|
-
class:
|
|
1307
|
+
class: de(["color-item", { choose_color: b.value === L.id }]),
|
|
1288
1308
|
style: ee({
|
|
1289
1309
|
background: L.color,
|
|
1290
1310
|
border: L.id === 5 ? "1px solid #CBCFD9" : "",
|
|
1291
1311
|
width: (L.id === 5, "18px"),
|
|
1292
1312
|
height: (L.id === 5, "18px")
|
|
1293
1313
|
}),
|
|
1294
|
-
onClick: J((
|
|
1314
|
+
onClick: J((oe) => F(L), ["stop"])
|
|
1295
1315
|
}, null, 14, hl))), 128))
|
|
1296
1316
|
])
|
|
1297
1317
|
])
|
|
1298
1318
|
])) : U("", !0)
|
|
1299
1319
|
], 10, al))), 128))
|
|
1300
1320
|
]),
|
|
1301
|
-
|
|
1321
|
+
V[0] || (V[0] = e("div", { class: "splitLine" }, null, -1)),
|
|
1302
1322
|
e("div", gl, [
|
|
1303
1323
|
e("div", {
|
|
1304
1324
|
class: "comments_tool_btn",
|
|
1305
|
-
onClick:
|
|
1325
|
+
onClick: se
|
|
1306
1326
|
}, [
|
|
1307
1327
|
e("img", {
|
|
1308
|
-
src: s(B) + `/bim-viewer/annotations/${
|
|
1328
|
+
src: s(B) + `/bim-viewer/annotations/${N.value ? "left-revoke-active" : "left-revoke"}.png`
|
|
1309
1329
|
}, null, 8, fl)
|
|
1310
1330
|
]),
|
|
1311
1331
|
e("div", {
|
|
1312
1332
|
class: "comments_tool_btn",
|
|
1313
|
-
onClick:
|
|
1333
|
+
onClick: A
|
|
1314
1334
|
}, [
|
|
1315
1335
|
e("img", {
|
|
1316
|
-
src: s(B) + `/bim-viewer/annotations/${
|
|
1336
|
+
src: s(B) + `/bim-viewer/annotations/${E.value ? "right-revoke-active" : "right-revoke"}.png`
|
|
1317
1337
|
}, null, 8, bl)
|
|
1318
1338
|
])
|
|
1319
1339
|
]),
|
|
1320
|
-
|
|
1340
|
+
V[1] || (V[1] = e("div", { class: "splitLine" }, null, -1)),
|
|
1321
1341
|
e("div", { class: "comments_toolbar_group" }, [
|
|
1322
1342
|
e("div", {
|
|
1323
1343
|
class: "comments_cancel",
|
|
1324
|
-
onClick:
|
|
1344
|
+
onClick: R
|
|
1325
1345
|
}, " 取消 "),
|
|
1326
1346
|
e("div", {
|
|
1327
1347
|
class: "comments_save",
|
|
1328
|
-
onClick:
|
|
1348
|
+
onClick: u
|
|
1329
1349
|
}, " 保存 ")
|
|
1330
1350
|
])
|
|
1331
1351
|
])
|
|
1332
1352
|
])
|
|
1333
1353
|
]));
|
|
1334
1354
|
}
|
|
1335
|
-
}), Cl = /* @__PURE__ */ ie(kl, [["__scopeId", "data-v-
|
|
1355
|
+
}), Cl = /* @__PURE__ */ ie(kl, [["__scopeId", "data-v-44d9e148"]]), $l = { key: 2 }, yl = { class: "top" }, wl = { class: "top_bar" }, xl = ["src"], Il = {
|
|
1336
1356
|
key: 0,
|
|
1337
1357
|
class: "title_2"
|
|
1338
1358
|
}, Tl = { class: "more" }, Dl = ["src"], Sl = {
|
|
1339
1359
|
key: 3,
|
|
1340
1360
|
class: "loading_shelter"
|
|
1341
|
-
}, Ll = /* @__PURE__ */
|
|
1361
|
+
}, Ll = /* @__PURE__ */ le({
|
|
1342
1362
|
__name: "CommentTool",
|
|
1343
1363
|
props: ["componentId", "instruction"],
|
|
1344
1364
|
emits: ["closePanel", "emitHandler"],
|
|
1345
|
-
setup(
|
|
1346
|
-
const
|
|
1347
|
-
k.value =
|
|
1348
|
-
}, f = o(!1),
|
|
1349
|
-
|
|
1365
|
+
setup(W, { emit: Y }) {
|
|
1366
|
+
const x = Ce(), h = be(), _ = ae(), w = W, $ = (m) => {
|
|
1367
|
+
k.value = m;
|
|
1368
|
+
}, f = o(!1), i = o(""), N = o(""), E = o(!1), D = (m) => {
|
|
1369
|
+
i.value = m.type, N.value = m.text, E.value = !0, setTimeout(() => {
|
|
1350
1370
|
E.value = !1;
|
|
1351
1371
|
}, 1500);
|
|
1352
1372
|
};
|
|
1353
|
-
X.on("cmtLoading", $), X.on("prompt",
|
|
1354
|
-
|
|
1373
|
+
X.on("cmtLoading", $), X.on("prompt", D), pe(() => {
|
|
1374
|
+
x.setReadyById(w.componentId);
|
|
1355
1375
|
}), fe(() => {
|
|
1356
|
-
X.off("cmtLoading", $), X.off("prompt",
|
|
1376
|
+
X.off("cmtLoading", $), X.off("prompt", D);
|
|
1357
1377
|
});
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1378
|
+
const I = Y, p = (m) => {
|
|
1379
|
+
I("emitHandler", m);
|
|
1360
1380
|
}, b = o();
|
|
1361
1381
|
re(
|
|
1362
|
-
() =>
|
|
1363
|
-
(
|
|
1364
|
-
Q("isMobile") && (Q("editPrivilege") == 0 ?
|
|
1382
|
+
() => x.isToolActive(w.componentId),
|
|
1383
|
+
(m) => {
|
|
1384
|
+
Q("isMobile") && (Q("editPrivilege") == 0 ? m ? b.value.handleOpen() : (b.value.handleClose(), X.emit("hideToolbar", !1), q()) : Q("editPrivilege") == 1 && (m ? M() : (X.emit("hideToolbar", !1), q())));
|
|
1365
1385
|
}
|
|
1366
1386
|
);
|
|
1367
|
-
const
|
|
1387
|
+
const T = o(!1);
|
|
1368
1388
|
re(
|
|
1369
|
-
() =>
|
|
1370
|
-
(
|
|
1371
|
-
|
|
1372
|
-
S(
|
|
1389
|
+
() => w.instruction,
|
|
1390
|
+
(m) => {
|
|
1391
|
+
m && (m.instruct_name == "updateCmtList" && (P.value = m.content.cmtList, (m.content.msg && m.content.msg.show || y.value == 2) && M(!1)), m.instruct_name == "checkCmtDetail" && m.content.cmtDetail && (F.value = m.content.cmtDetail, O.value = F.value.title, S(F.value.guid, !1)), m.instruct_name == "newComment" && m.content.code == 200 && (T.value = !0, D({ type: "success", text: _("mobileComments.createSuccess") }), setTimeout(() => {
|
|
1392
|
+
S(m.content.guid);
|
|
1373
1393
|
}, 200)), X.emit("cmtLoading", !1));
|
|
1374
1394
|
},
|
|
1375
1395
|
{ deep: !0 }
|
|
1376
1396
|
);
|
|
1377
|
-
const k = o(!1),
|
|
1378
|
-
|
|
1379
|
-
}, t = (
|
|
1380
|
-
Z.value =
|
|
1381
|
-
},
|
|
1382
|
-
X.emit("cmtLoading", !0),
|
|
1397
|
+
const k = o(!1), y = o(0), P = o([]), O = o(_("mobileComments.newComment")), u = o(!1), R = o(!1), z = o(!1), F = o(), Z = o(""), q = () => {
|
|
1398
|
+
y.value = 0, u.value = !1, z.value = !1, R.value = !1, O.value = _("mobileComments.newComment");
|
|
1399
|
+
}, t = (m) => {
|
|
1400
|
+
Z.value = m, y.value = 1, R.value = !0;
|
|
1401
|
+
}, a = (m) => {
|
|
1402
|
+
X.emit("cmtLoading", !0), p({
|
|
1383
1403
|
isTool: !0,
|
|
1384
1404
|
event_name: "newComment",
|
|
1385
1405
|
event_target: "CommentTool",
|
|
1386
|
-
content: { ...
|
|
1406
|
+
content: { ...m }
|
|
1387
1407
|
});
|
|
1388
|
-
}, S = (
|
|
1389
|
-
A ? (X.emit("cmtLoading", !0),
|
|
1408
|
+
}, S = (m, A = !0) => {
|
|
1409
|
+
A ? (X.emit("cmtLoading", !0), p({
|
|
1390
1410
|
isTool: !0,
|
|
1391
1411
|
event_target: "CommentTool",
|
|
1392
1412
|
event_name: "checkCmtDetail",
|
|
1393
|
-
content: { id:
|
|
1394
|
-
})) :
|
|
1395
|
-
},
|
|
1396
|
-
|
|
1413
|
+
content: { id: m }
|
|
1414
|
+
})) : z.value = !0, R.value = !1, y.value = 2;
|
|
1415
|
+
}, M = (m = !0) => {
|
|
1416
|
+
m && (X.emit("cmtLoading", !0), p({
|
|
1397
1417
|
isTool: !0,
|
|
1398
1418
|
event_name: "refreshCmtList",
|
|
1399
1419
|
event_target: "CommentTool",
|
|
1400
1420
|
content: {}
|
|
1401
|
-
})),
|
|
1402
|
-
},
|
|
1403
|
-
|
|
1421
|
+
})), y.value = 3, O.value = "批注列表", u.value = !0, z.value = !1;
|
|
1422
|
+
}, v = (m) => {
|
|
1423
|
+
p({
|
|
1404
1424
|
isTool: !0,
|
|
1405
1425
|
event_target: "CommentTool",
|
|
1406
1426
|
event_name: "deleteComment",
|
|
1407
|
-
content: { id:
|
|
1427
|
+
content: { id: m }
|
|
1408
1428
|
});
|
|
1409
|
-
},
|
|
1410
|
-
switch (
|
|
1429
|
+
}, d = () => {
|
|
1430
|
+
switch (y.value) {
|
|
1411
1431
|
case 0:
|
|
1412
1432
|
g();
|
|
1413
1433
|
break;
|
|
@@ -1415,62 +1435,62 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1415
1435
|
q();
|
|
1416
1436
|
break;
|
|
1417
1437
|
case 2:
|
|
1418
|
-
|
|
1438
|
+
z.value = !1, O.value = "批注列表", y.value = 3, T.value ? M() : u.value = !0;
|
|
1419
1439
|
break;
|
|
1420
1440
|
case 3:
|
|
1421
1441
|
Q("editPrivilege") == 0 && (u.value = !1, q()), Q("editPrivilege") == 1 && g();
|
|
1422
1442
|
break;
|
|
1423
1443
|
}
|
|
1424
1444
|
}, C = () => {
|
|
1425
|
-
|
|
1445
|
+
y.value == 2 && S(F.value.guid), y.value == 3 && M();
|
|
1426
1446
|
}, g = () => {
|
|
1427
|
-
X.emit("hideToolbar", !1),
|
|
1447
|
+
X.emit("hideToolbar", !1), I("closePanel");
|
|
1428
1448
|
};
|
|
1429
|
-
return (
|
|
1430
|
-
const
|
|
1431
|
-
return l(),
|
|
1449
|
+
return (m, A) => {
|
|
1450
|
+
const se = Cl, n = sl, V = Oo, H = vo, L = Es, oe = Ge;
|
|
1451
|
+
return l(), r("div", {
|
|
1432
1452
|
class: "comment_component",
|
|
1433
|
-
onPointerdown: A[4] || (A[4] = (
|
|
1453
|
+
onPointerdown: A[4] || (A[4] = (ne) => f.value = !1)
|
|
1434
1454
|
}, [
|
|
1435
1455
|
e("div", {
|
|
1436
1456
|
id: "comments_panel",
|
|
1437
1457
|
class: "comments_panel",
|
|
1438
1458
|
style: ee({ background: s(Q)("backgroundColor") })
|
|
1439
1459
|
}, null, 4),
|
|
1440
|
-
s(Q)("isMobile") ? U("", !0) : (l(),
|
|
1460
|
+
s(Q)("isMobile") ? U("", !0) : (l(), te(se, {
|
|
1441
1461
|
key: 0,
|
|
1442
|
-
"component-id":
|
|
1443
|
-
onEmitHandler:
|
|
1444
|
-
onClosePanel: A[0] || (A[0] = (
|
|
1462
|
+
"component-id": W.componentId,
|
|
1463
|
+
onEmitHandler: p,
|
|
1464
|
+
onClosePanel: A[0] || (A[0] = (ne) => I("closePanel"))
|
|
1445
1465
|
}, null, 8, ["component-id"])),
|
|
1446
|
-
s(Q)("isMobile") ? (l(),
|
|
1466
|
+
s(Q)("isMobile") ? (l(), te(n, {
|
|
1447
1467
|
key: 1,
|
|
1448
1468
|
ref_key: "drawRef",
|
|
1449
1469
|
ref: b,
|
|
1450
|
-
"component-id":
|
|
1451
|
-
onCancel:
|
|
1470
|
+
"component-id": W.componentId,
|
|
1471
|
+
onCancel: d,
|
|
1452
1472
|
onConfirm: t
|
|
1453
1473
|
}, null, 8, ["component-id"])) : U("", !0),
|
|
1454
|
-
s(Q)("isMobile") ? (l(),
|
|
1455
|
-
R.value ? (l(),
|
|
1474
|
+
s(Q)("isMobile") ? (l(), r("div", $l, [
|
|
1475
|
+
R.value ? (l(), te(V, {
|
|
1456
1476
|
key: 0,
|
|
1457
1477
|
"image-data": Z.value,
|
|
1458
1478
|
"user-id": s(h).getUserId,
|
|
1459
|
-
onCreateNew:
|
|
1460
|
-
onCancel: A[1] || (A[1] = (
|
|
1461
|
-
onEmitHandler:
|
|
1479
|
+
onCreateNew: a,
|
|
1480
|
+
onCancel: A[1] || (A[1] = (ne) => R.value = !1),
|
|
1481
|
+
onEmitHandler: p
|
|
1462
1482
|
}, null, 8, ["image-data", "user-id"])) : U("", !0),
|
|
1463
|
-
|
|
1483
|
+
z.value ? (l(), te(H, {
|
|
1464
1484
|
key: 1,
|
|
1465
1485
|
"cmt-content": F.value,
|
|
1466
|
-
onDelete:
|
|
1486
|
+
onDelete: v,
|
|
1467
1487
|
onBack: g
|
|
1468
1488
|
}, null, 8, ["cmt-content"])) : U("", !0),
|
|
1469
|
-
Le(K(
|
|
1470
|
-
"-c-m-t-list":
|
|
1471
|
-
instruction:
|
|
1489
|
+
Le(K(L, {
|
|
1490
|
+
"-c-m-t-list": P.value,
|
|
1491
|
+
instruction: w.instruction,
|
|
1472
1492
|
onCheckCmtDetail: S,
|
|
1473
|
-
onBack:
|
|
1493
|
+
onBack: d
|
|
1474
1494
|
}, null, 8, ["-c-m-t-list", "instruction"]), [
|
|
1475
1495
|
[Be, u.value]
|
|
1476
1496
|
]),
|
|
@@ -1482,21 +1502,21 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1482
1502
|
e("div", wl, [
|
|
1483
1503
|
e("img", {
|
|
1484
1504
|
class: "back",
|
|
1485
|
-
onClick:
|
|
1505
|
+
onClick: d,
|
|
1486
1506
|
src: s(B) + "/bim-viewer/bcf-images/back.png"
|
|
1487
|
-
}, null, 8,
|
|
1507
|
+
}, null, 8, xl),
|
|
1488
1508
|
e("div", {
|
|
1489
1509
|
class: "title",
|
|
1490
|
-
onClick: A[2] || (A[2] = J((
|
|
1491
|
-
},
|
|
1492
|
-
f.value ? (l(),
|
|
1510
|
+
onClick: A[2] || (A[2] = J((ne) => f.value = !f.value, ["stop"]))
|
|
1511
|
+
}, c(O.value), 1),
|
|
1512
|
+
f.value ? (l(), r("span", Il, c(O.value), 1)) : U("", !0),
|
|
1493
1513
|
e("div", Tl, [
|
|
1494
|
-
|
|
1514
|
+
y.value == 0 ? (l(), r("div", {
|
|
1495
1515
|
key: 0,
|
|
1496
1516
|
class: "history",
|
|
1497
|
-
onClick: A[3] || (A[3] = (
|
|
1498
|
-
},
|
|
1499
|
-
|
|
1517
|
+
onClick: A[3] || (A[3] = (ne) => M())
|
|
1518
|
+
}, c(s(_)("mobileComments.list")), 1)) : U("", !0),
|
|
1519
|
+
y.value == 2 || y.value == 3 ? (l(), r("img", {
|
|
1500
1520
|
key: 1,
|
|
1501
1521
|
class: "refresh",
|
|
1502
1522
|
onClick: C,
|
|
@@ -1506,16 +1526,16 @@ const He = { class: "prompt_wrapper" }, We = { class: "prompt_box" }, Ye = ["src
|
|
|
1506
1526
|
])
|
|
1507
1527
|
])
|
|
1508
1528
|
])) : U("", !0),
|
|
1509
|
-
k.value ? (l(),
|
|
1510
|
-
E.value ? (l(), oe
|
|
1529
|
+
k.value ? (l(), r("div", Sl)) : U("", !0),
|
|
1530
|
+
E.value ? (l(), te(oe, {
|
|
1511
1531
|
key: 4,
|
|
1512
|
-
type:
|
|
1513
|
-
text:
|
|
1532
|
+
type: i.value,
|
|
1533
|
+
text: N.value
|
|
1514
1534
|
}, null, 8, ["type", "text"])) : U("", !0)
|
|
1515
1535
|
], 32);
|
|
1516
1536
|
};
|
|
1517
1537
|
}
|
|
1518
|
-
}),
|
|
1538
|
+
}), Ol = /* @__PURE__ */ ie(Ll, [["__scopeId", "data-v-6e5e536d"]]);
|
|
1519
1539
|
export {
|
|
1520
|
-
|
|
1540
|
+
Ol as default
|
|
1521
1541
|
};
|