sooyie-task 0.0.16 → 0.0.17
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/{add-OKtvylXy.mjs → add-BCXmZ5aL.mjs} +1 -1
- package/dist/{add-BcGjMuHs.mjs → add-gL0XtI27.mjs} +1 -1
- package/dist/{add.vue_vue_type_script_setup_true_lang-CiPF4LEJ.mjs → add.vue_vue_type_script_setup_true_lang-Cqv6b-C8.mjs} +1 -1
- package/dist/{edit-D-bAAMf0.mjs → edit-BAm4jf7L.mjs} +1 -1
- package/dist/{edit-DONkMPcM.mjs → edit-Cus7hYzT.mjs} +2 -2
- package/dist/{index-CDDGVwO5.mjs → index-Bim1_RHW.mjs} +1 -1
- package/dist/{index-Cufj3GUa.mjs → index-Bw13biMq.mjs} +1 -1
- package/dist/{index-CPfX5DLe.mjs → index-CttdaCF2.mjs} +3 -3
- package/dist/{index-D0yGxoUN.mjs → index-DYWzNOZQ.mjs} +2915 -2934
- package/dist/{index-CEezFGAH.mjs → index-XBjO09nS.mjs} +2 -2
- package/dist/index.mjs +2 -4
- package/dist/{index.vue_vue_type_script_setup_true_lang-CgF0wL1t.mjs → index.vue_vue_type_script_setup_true_lang-C1RCQr_c.mjs} +2 -2
- package/dist/{info-BjF3Ubh3.mjs → info-DWe85R6X.mjs} +4 -4
- package/dist/{report-Cjz9WPQK.mjs → report-CUT7qwJy.mjs} +57 -56
- package/dist/report-info-B95aThGL.mjs +341 -0
- package/dist/style.css +1 -1
- package/dts/src/api/task/task-inspect-matterst-record/types.d.ts +1 -1
- package/dts/src/lang/task/zh-cn.d.ts +0 -2
- package/dts/src/main.d.ts +2 -1
- package/dts/src/views/task/task-define/add.vue.d.ts +1 -1
- package/dts/src/views/task/task-define-rel/add.vue.d.ts +1 -1
- package/dts/src/views/task/task-inst/edit.vue.d.ts +1 -1
- package/dts/src/views/task/task-inst/report.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/report-info-DjjNB_S1.mjs +0 -315
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
import { defineComponent as W, mergeModels as B, useModel as z, ref as T, resolveComponent as s, createBlock as _, openBlock as n, withCtx as r, createVNode as t, createElementBlock as w, createCommentVNode as y, unref as e, createTextVNode as I, toDisplayString as E, Fragment as A, renderList as q, createElementVNode as X } from "vue";
|
|
2
|
-
import { useI18n as G } from "vue-i18n";
|
|
3
|
-
import { D as S, C as i } from "./index-D0yGxoUN.mjs";
|
|
4
|
-
import { useUserStore as H, clearEmpty as $, request as J, useUserStoreHook as Q, fileApi as h } from "jmash-core";
|
|
5
|
-
import { useRoute as Z } from "vue-router";
|
|
6
|
-
import { t as ee } from "./index-BYV5ylFn.mjs";
|
|
7
|
-
import { _ as te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
8
|
-
class oe {
|
|
9
|
-
getKey(a) {
|
|
10
|
-
return {};
|
|
11
|
-
}
|
|
12
|
-
// 查询列表信息附件
|
|
13
|
-
findList(a) {
|
|
14
|
-
const V = H().user.tenant;
|
|
15
|
-
return $(a), J({
|
|
16
|
-
url: "/v1/front/task/sooyie/file/list/" + V,
|
|
17
|
-
method: "get",
|
|
18
|
-
params: a
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
const C = new oe(), le = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "margin-top"
|
|
25
|
-
}, re = /* @__PURE__ */ W({
|
|
26
|
-
__name: "report-info",
|
|
27
|
-
props: /* @__PURE__ */ B({
|
|
28
|
-
govOrgId: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: ""
|
|
31
|
-
},
|
|
32
|
-
reportsInfoEntityKey: {
|
|
33
|
-
type: Object,
|
|
34
|
-
default: () => {
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}, {
|
|
38
|
-
modelValue: { type: Boolean },
|
|
39
|
-
modelModifiers: {}
|
|
40
|
-
}),
|
|
41
|
-
emits: ["update:modelValue"],
|
|
42
|
-
setup(R) {
|
|
43
|
-
const a = Z(), V = Q(), { t: se } = G(), g = z(R, "modelValue");
|
|
44
|
-
S.itemBizLayDict.useValues();
|
|
45
|
-
const D = ({ rowIndex: d, columnIndex: o }) => {
|
|
46
|
-
if (o === 1) {
|
|
47
|
-
if (d === 0)
|
|
48
|
-
return { rowspan: 3, colspan: 1 };
|
|
49
|
-
if (d < 3)
|
|
50
|
-
return { rowspan: 0, colspan: 0 };
|
|
51
|
-
}
|
|
52
|
-
return o === 7 ? { rowspan: 1, colspan: 1 } : { rowspan: 1, colspan: 1 };
|
|
53
|
-
}, f = R, L = T([]), v = T([]);
|
|
54
|
-
ee.findList({ reportRecordId: f.reportsInfoEntityKey.taskRecordId }).then(async (d) => {
|
|
55
|
-
const o = d.data.results;
|
|
56
|
-
v.value = o;
|
|
57
|
-
const b = await Promise.all(
|
|
58
|
-
o.map(async (p) => {
|
|
59
|
-
const m = p.recordId;
|
|
60
|
-
a.query.taskSort === i.LOG_ANALYSIS && C.findList({
|
|
61
|
-
businessId: v.value[0].reportRecordId
|
|
62
|
-
}).then((N) => {
|
|
63
|
-
L.value = N.data.results;
|
|
64
|
-
});
|
|
65
|
-
const c = await C.findList({ businessId: m });
|
|
66
|
-
return {
|
|
67
|
-
...p,
|
|
68
|
-
images: c.data.results || []
|
|
69
|
-
};
|
|
70
|
-
})
|
|
71
|
-
);
|
|
72
|
-
v.value = b;
|
|
73
|
-
});
|
|
74
|
-
async function P(d) {
|
|
75
|
-
try {
|
|
76
|
-
const o = h.fileUrl(d.filePath), p = await (await fetch(o)).blob(), m = window.URL.createObjectURL(p), c = document.createElement("a");
|
|
77
|
-
c.href = m, c.download = d.fileName || d.fileId || "", document.body.appendChild(c), c.click();
|
|
78
|
-
} catch {
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
function U() {
|
|
82
|
-
g.value && (g.value = !1);
|
|
83
|
-
}
|
|
84
|
-
return (d, o) => {
|
|
85
|
-
const b = s("el-input"), p = s("el-form-item"), m = s("el-col"), c = s("jmash-select"), N = s("el-date-picker"), Y = s("el-row"), M = s("el-form"), u = s("el-table-column"), x = s("el-image"), F = s("el-table"), j = s("el-button"), K = s("el-dialog");
|
|
86
|
-
return n(), _(K, {
|
|
87
|
-
modelValue: g.value,
|
|
88
|
-
"onUpdate:modelValue": o[3] || (o[3] = (l) => g.value = l),
|
|
89
|
-
"close-on-click-modal": !1,
|
|
90
|
-
"close-on-press-escape": !1,
|
|
91
|
-
onClose: U,
|
|
92
|
-
width: "1200px"
|
|
93
|
-
}, {
|
|
94
|
-
default: r(() => [
|
|
95
|
-
t(M, {
|
|
96
|
-
ref: "taskReportFormRef",
|
|
97
|
-
"label-width": "120",
|
|
98
|
-
"label-position": "top"
|
|
99
|
-
}, {
|
|
100
|
-
default: r(() => [
|
|
101
|
-
t(Y, null, {
|
|
102
|
-
default: r(() => [
|
|
103
|
-
t(m, { span: 6 }, {
|
|
104
|
-
default: r(() => [
|
|
105
|
-
t(p, { label: "省直单位名称:" }, {
|
|
106
|
-
default: r(() => [
|
|
107
|
-
t(b, {
|
|
108
|
-
modelValue: f.govOrgId,
|
|
109
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) => f.govOrgId = l),
|
|
110
|
-
"show-word-limit": "",
|
|
111
|
-
clearable: "",
|
|
112
|
-
required: "",
|
|
113
|
-
disabled: !0,
|
|
114
|
-
class: "!w-[203px]"
|
|
115
|
-
}, null, 8, ["modelValue"])
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
})
|
|
119
|
-
]),
|
|
120
|
-
_: 1
|
|
121
|
-
}),
|
|
122
|
-
t(m, { span: 6 }, {
|
|
123
|
-
default: r(() => [
|
|
124
|
-
t(p, { label: "运维项目:" }, {
|
|
125
|
-
default: r(() => [
|
|
126
|
-
t(c, {
|
|
127
|
-
modelValue: f.reportsInfoEntityKey.customerId,
|
|
128
|
-
"onUpdate:modelValue": o[1] || (o[1] = (l) => f.reportsInfoEntityKey.customerId = l),
|
|
129
|
-
data: e(S).itemBizLayDict.values,
|
|
130
|
-
"show-word-limit": "",
|
|
131
|
-
clearable: "",
|
|
132
|
-
required: "",
|
|
133
|
-
disabled: !0,
|
|
134
|
-
class: "!w-[203px]"
|
|
135
|
-
}, null, 8, ["modelValue", "data"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
})
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}),
|
|
142
|
-
t(m, { span: 6 }, {
|
|
143
|
-
default: r(() => [
|
|
144
|
-
t(p, {
|
|
145
|
-
label: "巡检日期:",
|
|
146
|
-
prop: "createTime"
|
|
147
|
-
}, {
|
|
148
|
-
default: r(() => [
|
|
149
|
-
t(N, {
|
|
150
|
-
modelValue: f.reportsInfoEntityKey.createTime,
|
|
151
|
-
"onUpdate:modelValue": o[2] || (o[2] = (l) => f.reportsInfoEntityKey.createTime = l),
|
|
152
|
-
type: "date",
|
|
153
|
-
format: "YYYY-MM-DD",
|
|
154
|
-
"value-format": "YYYY-MM-DD",
|
|
155
|
-
disabled: !0
|
|
156
|
-
}, null, 8, ["modelValue"])
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
})
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}),
|
|
163
|
-
t(m, { span: 6 }, {
|
|
164
|
-
default: r(() => [
|
|
165
|
-
t(p, {
|
|
166
|
-
label: "巡检人:",
|
|
167
|
-
prop: "realName"
|
|
168
|
-
}, {
|
|
169
|
-
default: r(() => [
|
|
170
|
-
t(b, {
|
|
171
|
-
value: e(V).user.realName,
|
|
172
|
-
"show-word-limit": "",
|
|
173
|
-
clearable: "",
|
|
174
|
-
disabled: !0,
|
|
175
|
-
class: "!w-[203px]"
|
|
176
|
-
}, null, 8, ["value"])
|
|
177
|
-
]),
|
|
178
|
-
_: 1
|
|
179
|
-
})
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
})
|
|
183
|
-
]),
|
|
184
|
-
_: 1
|
|
185
|
-
})
|
|
186
|
-
]),
|
|
187
|
-
_: 1
|
|
188
|
-
}, 512),
|
|
189
|
-
t(F, {
|
|
190
|
-
data: v.value,
|
|
191
|
-
"span-method": D,
|
|
192
|
-
border: "",
|
|
193
|
-
style: { width: "100%", "margin-top": "20px" }
|
|
194
|
-
}, {
|
|
195
|
-
default: r(() => [
|
|
196
|
-
t(u, {
|
|
197
|
-
type: "index",
|
|
198
|
-
label: "序号",
|
|
199
|
-
width: "60"
|
|
200
|
-
}),
|
|
201
|
-
t(u, {
|
|
202
|
-
prop: "mattersDimension",
|
|
203
|
-
label: "检查维度"
|
|
204
|
-
}),
|
|
205
|
-
t(u, {
|
|
206
|
-
prop: "mattersItem",
|
|
207
|
-
label: "检查项目"
|
|
208
|
-
}),
|
|
209
|
-
t(u, {
|
|
210
|
-
prop: "mattersWay",
|
|
211
|
-
label: "检查内容与方法"
|
|
212
|
-
}),
|
|
213
|
-
t(u, {
|
|
214
|
-
prop: "mattersStandard",
|
|
215
|
-
label: "达标标准"
|
|
216
|
-
}),
|
|
217
|
-
e(a).query.taskSort === e(i).HARDWARE ? (n(), _(u, {
|
|
218
|
-
key: 0,
|
|
219
|
-
prop: "riskLevel",
|
|
220
|
-
label: "风险等级"
|
|
221
|
-
}, {
|
|
222
|
-
default: r((l) => [
|
|
223
|
-
I(E(e(S).riskLevelEnum.getEnumValue(l.row.riskLevel)), 1)
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
})) : y("", !0),
|
|
227
|
-
e(a).query.taskSort === e(i).EXPERT_INSPECTION || e(a).query.taskSort === e(i).SOFTWARE ? (n(), _(u, {
|
|
228
|
-
key: 1,
|
|
229
|
-
label: "巡检结果",
|
|
230
|
-
width: "180",
|
|
231
|
-
prop: "mattersResult"
|
|
232
|
-
}, {
|
|
233
|
-
default: r((l) => [
|
|
234
|
-
I(E(e(S).mattersResultDict.getValue(l.row.mattersResult)), 1)
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
})) : y("", !0),
|
|
238
|
-
e(a).query.taskSort === e(i).LOG_ANALYSIS ? (n(), _(u, {
|
|
239
|
-
key: 2,
|
|
240
|
-
label: "结果",
|
|
241
|
-
width: "180",
|
|
242
|
-
prop: "mattersResult"
|
|
243
|
-
}, {
|
|
244
|
-
default: r((l) => [
|
|
245
|
-
I(E(e(S).logResultDict.getValue(l.row.mattersResult)), 1)
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
})) : y("", !0),
|
|
249
|
-
e(a).query.taskSort === e(i).EXPERT_INSPECTION || e(a).query.taskSort === e(i).SOFTWARE ? (n(), _(u, {
|
|
250
|
-
key: 3,
|
|
251
|
-
label: "截图/拍照"
|
|
252
|
-
}, {
|
|
253
|
-
default: r((l) => [
|
|
254
|
-
(n(!0), w(A, null, q(l.row.images, (k, O) => (n(), w("div", {
|
|
255
|
-
key: k.id || O
|
|
256
|
-
}, [
|
|
257
|
-
t(x, {
|
|
258
|
-
src: e(h).imageUrl(k.filePath, 120, 120),
|
|
259
|
-
"preview-src-list": [e(h).imageUrl(k.filePath)],
|
|
260
|
-
"preview-teleported": "",
|
|
261
|
-
"hide-on-click-modal": "",
|
|
262
|
-
fit: "cover"
|
|
263
|
-
}, null, 8, ["src", "preview-src-list"])
|
|
264
|
-
]))), 128))
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
})) : y("", !0),
|
|
268
|
-
e(a).query.taskSort === e(i).EXPERT_INSPECTION || e(a).query.taskSort === e(i).SOFTWARE ? (n(), _(u, {
|
|
269
|
-
key: 4,
|
|
270
|
-
label: "问题记录",
|
|
271
|
-
prop: "problem"
|
|
272
|
-
})) : y("", !0),
|
|
273
|
-
e(a).query.taskSort === e(i).EXPERT_INSPECTION || e(a).query.taskSort === e(i).SOFTWARE ? (n(), _(u, {
|
|
274
|
-
key: 5,
|
|
275
|
-
label: "处置建议",
|
|
276
|
-
prop: "proposal"
|
|
277
|
-
})) : y("", !0)
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["data"]),
|
|
281
|
-
e(a).query.taskSort === e(i).LOG_ANALYSIS ? (n(), w("div", le, [
|
|
282
|
-
o[5] || (o[5] = X("span", null, "日志附件:", -1)),
|
|
283
|
-
(n(!0), w(A, null, q(L.value, (l, k) => (n(), w("div", {
|
|
284
|
-
key: k,
|
|
285
|
-
class: "files-list"
|
|
286
|
-
}, [
|
|
287
|
-
I(E(l.fileName) + " ", 1),
|
|
288
|
-
t(j, {
|
|
289
|
-
type: "primary",
|
|
290
|
-
link: "",
|
|
291
|
-
size: "small",
|
|
292
|
-
class: "icon-right",
|
|
293
|
-
onClick: (O) => P(l)
|
|
294
|
-
}, {
|
|
295
|
-
default: r(() => [...o[4] || (o[4] = [
|
|
296
|
-
I(" 查看 ", -1)
|
|
297
|
-
])]),
|
|
298
|
-
_: 1
|
|
299
|
-
}, 8, ["onClick"])
|
|
300
|
-
]))), 128))
|
|
301
|
-
])) : y("", !0)
|
|
302
|
-
]),
|
|
303
|
-
_: 1
|
|
304
|
-
}, 8, ["modelValue"]);
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
}), ae = /* @__PURE__ */ te(re, [["__scopeId", "data-v-744fb557"]]), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
308
|
-
__proto__: null,
|
|
309
|
-
default: ae
|
|
310
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
311
|
-
export {
|
|
312
|
-
ae as a,
|
|
313
|
-
fe as r,
|
|
314
|
-
C as t
|
|
315
|
-
};
|