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