sooyie-task 0.0.7 → 0.0.9
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/{index-DnYkwumi.mjs → index-CSqnIoJ3.mjs} +48 -59
- package/dist/{index-DtM5EnwJ.mjs → index-D75JtZHf.mjs} +82 -94
- package/dist/index.mjs +2 -2
- package/dist/{info-RcJkYBPy.mjs → info-CMCBPoFL.mjs} +724 -742
- package/dist/report-CEnjUOYk.mjs +599 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/report-Uf6UKzUn.mjs +0 -584
package/dist/report-Uf6UKzUn.mjs
DELETED
|
@@ -1,584 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as E, toRefs as ie, watchEffect as de, computed as ue, resolveComponent as c, createBlock as b, openBlock as m, withCtx as i, createElementBlock as v, createVNode as l, unref as e, mergeModels as H, useModel as me, reactive as ce, watch as pe, Fragment as G, createCommentVNode as g, createTextVNode as A, toDisplayString as O, createElementVNode as X, renderList as fe } from "vue";
|
|
2
|
-
import { p as _e, u as ye } from "./index-DaJ5KrbS.mjs";
|
|
3
|
-
import { useUserStore as K, clearEmpty as C, request as N, fileApi as W, useUserStoreHook as ge } from "jmash-core";
|
|
4
|
-
import { E as D } from "./el-message-Bod6C9wB.mjs";
|
|
5
|
-
import { useI18n as Ie } from "vue-i18n";
|
|
6
|
-
import { D as R, R as he, C as d } from "./index-DvawPwK3.mjs";
|
|
7
|
-
import { t as ve } from "./index-BYV5ylFn.mjs";
|
|
8
|
-
import { _ as ke } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
9
|
-
class Re {
|
|
10
|
-
getKey(r) {
|
|
11
|
-
return {
|
|
12
|
-
taskInstId: r.taskInstId
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
// 查询翻页信息任务实例
|
|
16
|
-
findPage(r) {
|
|
17
|
-
const I = K().user.tenant;
|
|
18
|
-
return C(r), r && (r.hasStatus = r.status !== void 0), N({
|
|
19
|
-
url: "/v1/front/task/sooyie/my_task/page/" + I,
|
|
20
|
-
method: "get",
|
|
21
|
-
params: r
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
// 查询列表信息任务实例
|
|
25
|
-
findList(r) {
|
|
26
|
-
const I = K().user.tenant;
|
|
27
|
-
return C(r), N({
|
|
28
|
-
url: "/v1/task/task_inst/list/" + I,
|
|
29
|
-
method: "get",
|
|
30
|
-
params: r
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
// 查询列表信息任务实例
|
|
34
|
-
findMyTaskList(r) {
|
|
35
|
-
const I = K().user.tenant;
|
|
36
|
-
return C(r), N({
|
|
37
|
-
url: "/v1/front/task/sooyie/my_task/list/" + I,
|
|
38
|
-
method: "get",
|
|
39
|
-
params: r
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
// 查询任务实例
|
|
43
|
-
findById(r) {
|
|
44
|
-
const I = K().user.tenant;
|
|
45
|
-
return C(r), N({
|
|
46
|
-
url: "/v1/front/task/sooyie/task_inst/id/" + I + "/" + r.taskInstId,
|
|
47
|
-
method: "get",
|
|
48
|
-
params: r
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
// 设置我的任务已读状态
|
|
52
|
-
setReadStatus(r) {
|
|
53
|
-
return r.tenant = K().user.tenant, C(r), N({
|
|
54
|
-
url: "/v1/front/task/sooyie/my_task/read_status",
|
|
55
|
-
method: "put",
|
|
56
|
-
data: r
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
// 导出任务记录Excel文件
|
|
60
|
-
// exportExcel(queryParams: TaskRecordExportReq): AxiosPromise {
|
|
61
|
-
// const tenant = useUserStore().user.tenant;
|
|
62
|
-
// clearEmpty(queryParams);
|
|
63
|
-
// const query = qs.stringify(queryParams, {
|
|
64
|
-
// arrayFormat: "brackets",
|
|
65
|
-
// allowDots: true,
|
|
66
|
-
// });
|
|
67
|
-
// return request({
|
|
68
|
-
// url: "/v1/task/task_record/" + tenant + "/task_records.xlsx?" + query,
|
|
69
|
-
// method: "get",
|
|
70
|
-
// responseType: "blob",
|
|
71
|
-
// });
|
|
72
|
-
// }
|
|
73
|
-
}
|
|
74
|
-
const be = new Re(), Se = ["src"], Ve = /* @__PURE__ */ x({
|
|
75
|
-
__name: "index",
|
|
76
|
-
props: {
|
|
77
|
-
pictureUrl: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: ""
|
|
80
|
-
},
|
|
81
|
-
// 宽
|
|
82
|
-
width: {
|
|
83
|
-
type: Number,
|
|
84
|
-
default: 80
|
|
85
|
-
},
|
|
86
|
-
// 高
|
|
87
|
-
height: {
|
|
88
|
-
type: Number,
|
|
89
|
-
default: 80
|
|
90
|
-
},
|
|
91
|
-
// 类型
|
|
92
|
-
type: {
|
|
93
|
-
type: String,
|
|
94
|
-
default: "resize"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
emits: ["imageSrc"],
|
|
98
|
-
setup(w, { emit: r }) {
|
|
99
|
-
const I = E(W.uploadUrl()), M = E(W.authHeader()), h = w, { pictureUrl: U } = ie(h), S = E("");
|
|
100
|
-
S.value = U.value;
|
|
101
|
-
const o = r;
|
|
102
|
-
function s(V) {
|
|
103
|
-
V.fileId && (D({
|
|
104
|
-
message: "上传成功",
|
|
105
|
-
type: "success"
|
|
106
|
-
}), S.value = V.fileId, o("imageSrc", V));
|
|
107
|
-
}
|
|
108
|
-
de(() => {
|
|
109
|
-
S.value = h.pictureUrl;
|
|
110
|
-
});
|
|
111
|
-
const P = ue(
|
|
112
|
-
() => W.imageUrl(S.value, h.width, h.height, h.type)
|
|
113
|
-
);
|
|
114
|
-
return (V, L) => {
|
|
115
|
-
const T = c("el-icon"), Y = c("el-upload");
|
|
116
|
-
return m(), b(Y, {
|
|
117
|
-
class: "avatar-uploader",
|
|
118
|
-
action: I.value,
|
|
119
|
-
headers: M.value,
|
|
120
|
-
"show-file-list": !1,
|
|
121
|
-
"on-success": s
|
|
122
|
-
}, {
|
|
123
|
-
default: i(() => [
|
|
124
|
-
S.value ? (m(), v("img", {
|
|
125
|
-
key: 0,
|
|
126
|
-
src: P.value,
|
|
127
|
-
class: "avatar",
|
|
128
|
-
alt: ""
|
|
129
|
-
}, null, 8, Se)) : (m(), b(T, {
|
|
130
|
-
key: 1,
|
|
131
|
-
class: "avatar-uploader-icon"
|
|
132
|
-
}, {
|
|
133
|
-
default: i(() => [
|
|
134
|
-
l(e(_e))
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}))
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
}, 8, ["action", "headers"]);
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
}), Ee = {
|
|
144
|
-
key: 0,
|
|
145
|
-
class: "title"
|
|
146
|
-
}, we = {
|
|
147
|
-
key: 1,
|
|
148
|
-
class: "title"
|
|
149
|
-
}, Ae = {
|
|
150
|
-
key: 2,
|
|
151
|
-
class: "title"
|
|
152
|
-
}, Oe = {
|
|
153
|
-
key: 3,
|
|
154
|
-
class: "title"
|
|
155
|
-
}, Ke = {
|
|
156
|
-
key: 4,
|
|
157
|
-
class: "title"
|
|
158
|
-
}, Ce = {
|
|
159
|
-
key: 5,
|
|
160
|
-
class: "margin-top"
|
|
161
|
-
}, Ne = { class: "dialog-footer" }, De = /* @__PURE__ */ x({
|
|
162
|
-
__name: "report",
|
|
163
|
-
props: /* @__PURE__ */ H({
|
|
164
|
-
entityKey: {
|
|
165
|
-
type: Object,
|
|
166
|
-
default: () => {
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, {
|
|
170
|
-
modelValue: { type: Boolean },
|
|
171
|
-
modelModifiers: {}
|
|
172
|
-
}),
|
|
173
|
-
emits: /* @__PURE__ */ H(["refresh"], ["update:modelValue"]),
|
|
174
|
-
setup(w, { emit: r }) {
|
|
175
|
-
const I = ge(), { t: M } = Ie(), h = me(w, "modelValue"), U = E(), S = ({ rowIndex: n, columnIndex: t }) => {
|
|
176
|
-
if (t === 1) {
|
|
177
|
-
if (n === 0)
|
|
178
|
-
return { rowspan: 3, colspan: 1 };
|
|
179
|
-
if (n < 3)
|
|
180
|
-
return { rowspan: 0, colspan: 0 };
|
|
181
|
-
}
|
|
182
|
-
return t === 7 ? { rowspan: 1, colspan: 1 } : { rowspan: 1, colspan: 1 };
|
|
183
|
-
}, o = w;
|
|
184
|
-
let s = ce({
|
|
185
|
-
requestId: Math.random() * 10 + "",
|
|
186
|
-
records: [],
|
|
187
|
-
govOrgId: "",
|
|
188
|
-
itsmId: "",
|
|
189
|
-
type: o.entityKey.sort,
|
|
190
|
-
taskInstId: o.entityKey.taskInstId,
|
|
191
|
-
file: [],
|
|
192
|
-
date: (/* @__PURE__ */ new Date()).toISOString()
|
|
193
|
-
});
|
|
194
|
-
console.log(o.entityKey, "=> props.entityKey.taskDefineId"), Promise.all([
|
|
195
|
-
R.itemBizLayDict.useValues(),
|
|
196
|
-
R.OrgBizDict.useValues()
|
|
197
|
-
]).then(() => {
|
|
198
|
-
be.findById({ taskInstId: o.entityKey.taskInstId }).then((n) => {
|
|
199
|
-
const t = n.data.annivCustomerId;
|
|
200
|
-
t && (s.itsmId = t), he.findList({ inspectId: n.data.actionId }).then((p) => {
|
|
201
|
-
s.records = p.data.results.map((y) => ({
|
|
202
|
-
...y,
|
|
203
|
-
mattersResult: "",
|
|
204
|
-
problem: "",
|
|
205
|
-
proposal: "",
|
|
206
|
-
file: {}
|
|
207
|
-
}));
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
}), pe(
|
|
211
|
-
() => s.itsmId,
|
|
212
|
-
(n) => {
|
|
213
|
-
if (!n) {
|
|
214
|
-
s.govOrgId = "";
|
|
215
|
-
return;
|
|
216
|
-
}
|
|
217
|
-
const t = R.itemBizLayDict.values.find(
|
|
218
|
-
// itsmId对应Dict.itemBizLayDict的key
|
|
219
|
-
(p) => p.key === n
|
|
220
|
-
);
|
|
221
|
-
if (t) {
|
|
222
|
-
const p = t.orgId, y = R.OrgBizDict.values.find(
|
|
223
|
-
// 省直单位ID对应Dict.OrgBizDict的key
|
|
224
|
-
(k) => k.key === p
|
|
225
|
-
);
|
|
226
|
-
y ? s.govOrgId = y.key : (s.govOrgId = "", D.warning("未找到对应的省直单位"));
|
|
227
|
-
} else
|
|
228
|
-
s.govOrgId = "", D.warning("未找到对应的运维项目");
|
|
229
|
-
},
|
|
230
|
-
{ immediate: !0 }
|
|
231
|
-
);
|
|
232
|
-
function P(n, t) {
|
|
233
|
-
console.log(n, t, "=>row ");
|
|
234
|
-
const p = {
|
|
235
|
-
fileId: t.fileId,
|
|
236
|
-
fileSrc: t.fileSrc,
|
|
237
|
-
fileName: t.fileName
|
|
238
|
-
};
|
|
239
|
-
console.log(p, "=>file "), n.file = p;
|
|
240
|
-
}
|
|
241
|
-
const V = (n) => {
|
|
242
|
-
n.mattersResult === "true" && (n.problem = "", n.proposal = "");
|
|
243
|
-
}, L = E(!1), T = E();
|
|
244
|
-
function Y() {
|
|
245
|
-
L.value = !0, T.value.clearFileList();
|
|
246
|
-
}
|
|
247
|
-
function J(n) {
|
|
248
|
-
const t = {
|
|
249
|
-
fileName: n.name,
|
|
250
|
-
fileId: n.response.fileId,
|
|
251
|
-
fileSort: o.entityKey.sort
|
|
252
|
-
};
|
|
253
|
-
s.file || (s.file = []), s.file.push(t);
|
|
254
|
-
}
|
|
255
|
-
function Q(n) {
|
|
256
|
-
var t;
|
|
257
|
-
(t = s.file) == null || t.splice(n, 1);
|
|
258
|
-
}
|
|
259
|
-
const Z = r, q = async () => {
|
|
260
|
-
var y, k, F;
|
|
261
|
-
if (!await ((y = U.value) == null ? void 0 : y.validate())) return;
|
|
262
|
-
let t = !0;
|
|
263
|
-
const p = [];
|
|
264
|
-
if ((k = s.records) == null || k.forEach((u, f) => {
|
|
265
|
-
u.mattersResult === "true" && o.entityKey.sort !== d.LOG_ANALYSIS && (!u.file || !u.file.fileId) && (t = !1, p.push(`第 ${f + 1} 行:请上传截图`)), u.mattersResult === "false" && o.entityKey.sort !== d.LOG_ANALYSIS && (u.problem || (t = !1, p.push(`第 ${f + 1} 行:请填写问题记录`)), u.proposal || (t = !1, p.push(`第 ${f + 1} 行:请填写处置建议`)));
|
|
266
|
-
}), !t) {
|
|
267
|
-
p.forEach((u) => {
|
|
268
|
-
D.error(u);
|
|
269
|
-
});
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
s.records = (F = s.records) == null ? void 0 : F.map((u) => ({
|
|
273
|
-
mattersId: u.mattersId,
|
|
274
|
-
mattersResult: u.mattersResult,
|
|
275
|
-
problem: u.problem,
|
|
276
|
-
proposal: u.proposal,
|
|
277
|
-
file: u.file || {}
|
|
278
|
-
})), ve.create(s).then((u) => {
|
|
279
|
-
u.status === 200 && (D.success(M("common.submitSuccess")), h.value = !1, Z("refresh", !0));
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
function $() {
|
|
283
|
-
h.value && (h.value = !1);
|
|
284
|
-
}
|
|
285
|
-
return (n, t) => {
|
|
286
|
-
const p = c("jmash-select"), y = c("el-form-item"), k = c("el-col"), F = c("el-date-picker"), u = c("el-input"), f = c("el-table-column"), z = c("jmash-enum-radio"), ee = Ve, te = c("el-table"), le = c("el-row"), ae = c("el-form"), B = c("el-button"), oe = c("CircleClose"), se = c("el-icon"), re = c("el-dialog"), ne = c("jmash-multi-upload");
|
|
287
|
-
return m(), v(G, null, [
|
|
288
|
-
l(re, {
|
|
289
|
-
modelValue: h.value,
|
|
290
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => h.value = a),
|
|
291
|
-
onClose: $,
|
|
292
|
-
width: "1300px"
|
|
293
|
-
}, {
|
|
294
|
-
footer: i(() => [
|
|
295
|
-
X("div", Ne, [
|
|
296
|
-
l(B, { onClick: $ }, {
|
|
297
|
-
default: i(() => [
|
|
298
|
-
A(O(n.$t("common.cancel")), 1)
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
}),
|
|
302
|
-
l(B, {
|
|
303
|
-
type: "primary",
|
|
304
|
-
onClick: q
|
|
305
|
-
}, {
|
|
306
|
-
default: i(() => [
|
|
307
|
-
A(O(n.$t("common.confirm")), 1)
|
|
308
|
-
]),
|
|
309
|
-
_: 1
|
|
310
|
-
})
|
|
311
|
-
])
|
|
312
|
-
]),
|
|
313
|
-
default: i(() => [
|
|
314
|
-
o.entityKey.sort === e(d).HARDWARE ? (m(), v("h2", Ee, " 日常巡检记录(硬件及基础环境) ")) : g("", !0),
|
|
315
|
-
o.entityKey.sort === e(d).SOFTWARE ? (m(), v("h2", we, " 日常巡检记录(软件) ")) : g("", !0),
|
|
316
|
-
o.entityKey.sort === e(d).EXPERT_INSPECTION ? (m(), v("h2", Ae, " 专家巡检记录 ")) : g("", !0),
|
|
317
|
-
o.entityKey.sort === e(d).LOG_ANALYSIS ? (m(), v("h2", Oe, " 日志分析记录 ")) : g("", !0),
|
|
318
|
-
o.entityKey.sort === e(d).CUSTOMER ? (m(), v("h2", Ke, " 拜访客户 ")) : g("", !0),
|
|
319
|
-
l(ae, {
|
|
320
|
-
ref_key: "taskReportFormRef",
|
|
321
|
-
ref: U,
|
|
322
|
-
model: e(s),
|
|
323
|
-
"label-width": "120",
|
|
324
|
-
"label-position": "top"
|
|
325
|
-
}, {
|
|
326
|
-
default: i(() => [
|
|
327
|
-
l(le, null, {
|
|
328
|
-
default: i(() => [
|
|
329
|
-
l(k, { span: 6 }, {
|
|
330
|
-
default: i(() => [
|
|
331
|
-
l(y, {
|
|
332
|
-
label: "省直单位名称:",
|
|
333
|
-
prop: "govOrgId"
|
|
334
|
-
}, {
|
|
335
|
-
default: i(() => [
|
|
336
|
-
l(p, {
|
|
337
|
-
modelValue: e(s).govOrgId,
|
|
338
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => e(s).govOrgId = a),
|
|
339
|
-
data: e(R).OrgBizDict.values,
|
|
340
|
-
"show-word-limit": "",
|
|
341
|
-
clearable: "",
|
|
342
|
-
required: "",
|
|
343
|
-
disabled: !0
|
|
344
|
-
}, null, 8, ["modelValue", "data"])
|
|
345
|
-
]),
|
|
346
|
-
_: 1
|
|
347
|
-
})
|
|
348
|
-
]),
|
|
349
|
-
_: 1
|
|
350
|
-
}),
|
|
351
|
-
l(k, { span: 6 }, {
|
|
352
|
-
default: i(() => [
|
|
353
|
-
l(y, {
|
|
354
|
-
label: "运维项目:",
|
|
355
|
-
prop: "itsmId"
|
|
356
|
-
}, {
|
|
357
|
-
default: i(() => [
|
|
358
|
-
l(p, {
|
|
359
|
-
modelValue: e(s).itsmId,
|
|
360
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => e(s).itsmId = a),
|
|
361
|
-
data: e(R).itemBizLayDict.values,
|
|
362
|
-
"show-word-limit": "",
|
|
363
|
-
clearable: "",
|
|
364
|
-
required: "",
|
|
365
|
-
disabled: !0
|
|
366
|
-
}, null, 8, ["modelValue", "data"])
|
|
367
|
-
]),
|
|
368
|
-
_: 1
|
|
369
|
-
})
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
}),
|
|
373
|
-
l(k, { span: 6 }, {
|
|
374
|
-
default: i(() => [
|
|
375
|
-
l(y, {
|
|
376
|
-
label: "巡检日期:",
|
|
377
|
-
prop: "date"
|
|
378
|
-
}, {
|
|
379
|
-
default: i(() => [
|
|
380
|
-
l(F, {
|
|
381
|
-
modelValue: e(s).date,
|
|
382
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => e(s).date = a),
|
|
383
|
-
type: "date",
|
|
384
|
-
format: "YYYY-MM-DD",
|
|
385
|
-
"value-format": "YYYY-MM-DD",
|
|
386
|
-
disabled: !0
|
|
387
|
-
}, null, 8, ["modelValue"])
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
})
|
|
391
|
-
]),
|
|
392
|
-
_: 1
|
|
393
|
-
}),
|
|
394
|
-
l(k, { span: 6 }, {
|
|
395
|
-
default: i(() => [
|
|
396
|
-
l(y, {
|
|
397
|
-
label: "巡检人:",
|
|
398
|
-
prop: "realName"
|
|
399
|
-
}, {
|
|
400
|
-
default: i(() => [
|
|
401
|
-
l(u, {
|
|
402
|
-
value: e(I).user.realName,
|
|
403
|
-
"show-word-limit": "",
|
|
404
|
-
clearable: "",
|
|
405
|
-
disabled: !0,
|
|
406
|
-
class: "!w-[203px]"
|
|
407
|
-
}, null, 8, ["value"])
|
|
408
|
-
]),
|
|
409
|
-
_: 1
|
|
410
|
-
})
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
}),
|
|
414
|
-
l(te, {
|
|
415
|
-
data: e(s).records,
|
|
416
|
-
"span-method": S,
|
|
417
|
-
border: "",
|
|
418
|
-
style: { width: "100%", "margin-top": "20px" }
|
|
419
|
-
}, {
|
|
420
|
-
default: i(() => [
|
|
421
|
-
l(f, {
|
|
422
|
-
type: "index",
|
|
423
|
-
label: "序号",
|
|
424
|
-
width: "60"
|
|
425
|
-
}),
|
|
426
|
-
l(f, {
|
|
427
|
-
prop: "mattersDimension",
|
|
428
|
-
label: "检查维度"
|
|
429
|
-
}),
|
|
430
|
-
l(f, {
|
|
431
|
-
prop: "mattersItem",
|
|
432
|
-
label: "检查项目"
|
|
433
|
-
}),
|
|
434
|
-
l(f, {
|
|
435
|
-
prop: "mattersWay",
|
|
436
|
-
label: "检查内容与方法"
|
|
437
|
-
}),
|
|
438
|
-
l(f, {
|
|
439
|
-
prop: "mattersStandard",
|
|
440
|
-
label: "达标标准"
|
|
441
|
-
}),
|
|
442
|
-
o.entityKey.sort === e(d).HARDWARE ? (m(), b(f, {
|
|
443
|
-
key: 0,
|
|
444
|
-
prop: "riskLevel",
|
|
445
|
-
label: "风险等级"
|
|
446
|
-
}, {
|
|
447
|
-
default: i((a) => [
|
|
448
|
-
A(O(e(R).riskLevelEnum.getEnumValue(a.row.riskLevel)), 1)
|
|
449
|
-
]),
|
|
450
|
-
_: 1
|
|
451
|
-
})) : g("", !0),
|
|
452
|
-
o.entityKey.sort === e(d).EXPERT_INSPECTION || o.entityKey.sort === e(d).SOFTWARE || o.entityKey.sort === e(d).HARDWARE ? (m(), b(f, {
|
|
453
|
-
key: 1,
|
|
454
|
-
label: "巡检结果",
|
|
455
|
-
width: "180"
|
|
456
|
-
}, {
|
|
457
|
-
default: i((a) => [
|
|
458
|
-
l(z, {
|
|
459
|
-
modelValue: a.row.mattersResult,
|
|
460
|
-
"onUpdate:modelValue": (_) => a.row.mattersResult = _,
|
|
461
|
-
data: e(R).mattersResultDict.values,
|
|
462
|
-
onChange: (_) => V(a.row)
|
|
463
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "onChange"])
|
|
464
|
-
]),
|
|
465
|
-
_: 1
|
|
466
|
-
})) : g("", !0),
|
|
467
|
-
o.entityKey.sort === e(d).LOG_ANALYSIS ? (m(), b(f, {
|
|
468
|
-
key: 2,
|
|
469
|
-
label: "结果",
|
|
470
|
-
width: "180"
|
|
471
|
-
}, {
|
|
472
|
-
default: i((a) => [
|
|
473
|
-
l(z, {
|
|
474
|
-
modelValue: a.row.mattersResult,
|
|
475
|
-
"onUpdate:modelValue": (_) => a.row.mattersResult = _,
|
|
476
|
-
data: e(R).logResultDict.values
|
|
477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data"])
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
})) : g("", !0),
|
|
481
|
-
o.entityKey.sort === e(d).EXPERT_INSPECTION || o.entityKey.sort === e(d).SOFTWARE || o.entityKey.sort === e(d).HARDWARE ? (m(), b(f, {
|
|
482
|
-
key: 3,
|
|
483
|
-
label: "截图/拍照"
|
|
484
|
-
}, {
|
|
485
|
-
default: i((a) => {
|
|
486
|
-
var _;
|
|
487
|
-
return [
|
|
488
|
-
l(ee, {
|
|
489
|
-
"picture-url": (_ = a.row.file) == null ? void 0 : _.fileSrc,
|
|
490
|
-
onImageSrc: (j) => P(a.row, j),
|
|
491
|
-
width: 80,
|
|
492
|
-
type: "trans"
|
|
493
|
-
}, null, 8, ["picture-url", "onImageSrc"])
|
|
494
|
-
];
|
|
495
|
-
}),
|
|
496
|
-
_: 1
|
|
497
|
-
})) : g("", !0),
|
|
498
|
-
o.entityKey.sort === e(d).EXPERT_INSPECTION || o.entityKey.sort === e(d).SOFTWARE || o.entityKey.sort === e(d).HARDWARE ? (m(), b(f, {
|
|
499
|
-
key: 4,
|
|
500
|
-
label: "问题记录"
|
|
501
|
-
}, {
|
|
502
|
-
default: i((a) => [
|
|
503
|
-
l(u, {
|
|
504
|
-
modelValue: a.row.problem,
|
|
505
|
-
"onUpdate:modelValue": (_) => a.row.problem = _,
|
|
506
|
-
placeholder: a.row.mattersResult === "false" ? "请输入问题记录" : ""
|
|
507
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
508
|
-
]),
|
|
509
|
-
_: 1
|
|
510
|
-
})) : g("", !0),
|
|
511
|
-
o.entityKey.sort === e(d).EXPERT_INSPECTION || o.entityKey.sort === e(d).SOFTWARE || o.entityKey.sort === e(d).HARDWARE ? (m(), b(f, {
|
|
512
|
-
key: 5,
|
|
513
|
-
label: "处置建议"
|
|
514
|
-
}, {
|
|
515
|
-
default: i((a) => [
|
|
516
|
-
l(u, {
|
|
517
|
-
modelValue: a.row.proposal,
|
|
518
|
-
"onUpdate:modelValue": (_) => a.row.proposal = _,
|
|
519
|
-
placeholder: a.row.mattersResult === "false" ? "请输入处置建议" : ""
|
|
520
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
521
|
-
]),
|
|
522
|
-
_: 1
|
|
523
|
-
})) : g("", !0)
|
|
524
|
-
]),
|
|
525
|
-
_: 1
|
|
526
|
-
}, 8, ["data"])
|
|
527
|
-
]),
|
|
528
|
-
_: 1
|
|
529
|
-
})
|
|
530
|
-
]),
|
|
531
|
-
_: 1
|
|
532
|
-
}, 8, ["model"]),
|
|
533
|
-
o.entityKey.sort === e(d).LOG_ANALYSIS ? (m(), v("div", Ce, [
|
|
534
|
-
t[5] || (t[5] = X("span", null, "日志附件:", -1)),
|
|
535
|
-
l(B, {
|
|
536
|
-
type: "primary",
|
|
537
|
-
icon: e(ye),
|
|
538
|
-
onClick: Y,
|
|
539
|
-
class: "margin-left"
|
|
540
|
-
}, {
|
|
541
|
-
default: i(() => [
|
|
542
|
-
A(O(n.$t("common.uploadFiles")), 1)
|
|
543
|
-
]),
|
|
544
|
-
_: 1
|
|
545
|
-
}, 8, ["icon"]),
|
|
546
|
-
(m(!0), v(G, null, fe(e(s).file, (a, _) => (m(), v("div", {
|
|
547
|
-
key: _,
|
|
548
|
-
class: "files-list"
|
|
549
|
-
}, [
|
|
550
|
-
A(O(a.fileName) + " ", 1),
|
|
551
|
-
l(se, {
|
|
552
|
-
size: "16",
|
|
553
|
-
class: "icon-right",
|
|
554
|
-
onClick: (j) => Q(_)
|
|
555
|
-
}, {
|
|
556
|
-
default: i(() => [
|
|
557
|
-
l(oe)
|
|
558
|
-
]),
|
|
559
|
-
_: 1
|
|
560
|
-
}, 8, ["onClick"])
|
|
561
|
-
]))), 128))
|
|
562
|
-
])) : g("", !0)
|
|
563
|
-
]),
|
|
564
|
-
_: 1
|
|
565
|
-
}, 8, ["modelValue"]),
|
|
566
|
-
l(ne, {
|
|
567
|
-
ref_key: "uploadRef",
|
|
568
|
-
ref: T,
|
|
569
|
-
modelValue: L.value,
|
|
570
|
-
"onUpdate:modelValue": t[4] || (t[4] = (a) => L.value = a),
|
|
571
|
-
onUploadFileList: J
|
|
572
|
-
}, null, 8, ["modelValue"])
|
|
573
|
-
], 64);
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
}), Ue = /* @__PURE__ */ ke(De, [["__scopeId", "data-v-8ea77d60"]]), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
577
|
-
__proto__: null,
|
|
578
|
-
default: Ue
|
|
579
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
580
|
-
export {
|
|
581
|
-
Ue as a,
|
|
582
|
-
$e as r,
|
|
583
|
-
be as t
|
|
584
|
-
};
|