sooyie-task 0.0.14 → 0.0.15
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-C5oSuf1e.mjs +335 -0
- package/dist/{add-D9Kj8pyv.mjs → add-DWG73DwX.mjs} +1 -1
- package/dist/{add.vue_vue_type_script_setup_true_lang-DTf6YjPZ.mjs → add.vue_vue_type_script_setup_true_lang-C7iqLsd8.mjs} +103 -90
- package/dist/{edit-CCHq3Xp5.mjs → edit-C6PKgMYP.mjs} +1 -1
- package/dist/{edit-BW7MTmN4.mjs → edit-DbRtvsz8.mjs} +2 -2
- package/dist/{index-yLaDG7SV.mjs → index-BAvA0Ouj.mjs} +1 -1
- package/dist/{index-hZCWB86v.mjs → index-BUWBZCoN.mjs} +14 -14
- package/dist/{index-kbwxFttn.mjs → index-BUfsHvCP.mjs} +2 -1
- package/dist/{index-BaqRbKw1.mjs → index-X-o3kDV2.mjs} +3 -3
- package/dist/index-ZZZJ5zVw-DMxMT-pR.mjs +1332 -0
- package/dist/{index-DjzQMg24.mjs → index-jFALjInU.mjs} +1 -1
- package/dist/index.mjs +4 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-BRBaBhUl.mjs → index.vue_vue_type_script_setup_true_lang-9dzewzjH.mjs} +2 -2
- package/dist/{info-ORF5-jXV.mjs → info-296UB09j.mjs} +5 -5
- package/dist/{report-Bi_FQqhd.mjs → report-DhfHhf7j.mjs} +1 -1
- package/dist/{report-info-Dsc2rhWy.mjs → report-info-qI3MGran.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/src/lang/task/zh-cn.d.ts +2 -0
- package/package.json +4 -4
- package/dist/add-DNvfhqVb.mjs +0 -263
- package/dist/index-CsfOvnt4-CYkGp1YO.mjs +0 -1900
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { u as
|
|
5
|
-
import { t as
|
|
6
|
-
import { D as
|
|
7
|
-
import "jmash-core";
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as x, mergeModels as ee, ref as D, reactive as R, watch as te, useModel as le, resolveComponent as r, createElementBlock as g, openBlock as p, Fragment as v, createVNode as t, withCtx as o, unref as s, renderList as T, createBlock as ae, createTextVNode as c, toDisplayString as _, createElementVNode as oe } from "vue";
|
|
2
|
+
import { ElMessage as C } from "element-plus";
|
|
3
|
+
import { useI18n as ne } from "vue-i18n";
|
|
4
|
+
import { u as se } from "./index-DaJ5KrbS.mjs";
|
|
5
|
+
import { t as re } from "./index-DrhTfMmI.mjs";
|
|
6
|
+
import { D as V, a as de } from "./index-BUfsHvCP.mjs";
|
|
7
|
+
import { handlePreview as ie } from "jmash-core";
|
|
8
|
+
const ue = { class: "dialog-footer" }, _e = /* @__PURE__ */ x({
|
|
9
9
|
__name: "add",
|
|
10
10
|
props: {
|
|
11
11
|
modelValue: { type: Boolean },
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
},
|
|
14
|
-
emits: /* @__PURE__ */
|
|
14
|
+
emits: /* @__PURE__ */ ee(["refresh"], ["update:modelValue"]),
|
|
15
15
|
setup(Y, { emit: M }) {
|
|
16
|
-
const { t: i } =
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
let
|
|
16
|
+
const { t: i } = ne();
|
|
17
|
+
V.taskInspectTypeDict.useValues();
|
|
18
|
+
const w = D(), b = D([]);
|
|
19
|
+
let l = R({
|
|
20
20
|
requestId: Math.random() * 10 + "",
|
|
21
21
|
updateMask: "",
|
|
22
22
|
fileInfo: [],
|
|
23
23
|
overdueStatus: !1
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
() =>
|
|
25
|
+
te(
|
|
26
|
+
() => l.taskSort,
|
|
27
27
|
(e) => {
|
|
28
|
-
e ? de.findList({ inspectType: e }).then((
|
|
29
|
-
|
|
30
|
-
}) : (
|
|
28
|
+
e ? de.findList({ inspectType: e }).then((a) => {
|
|
29
|
+
b.value = a.data.results, l.actionId = "";
|
|
30
|
+
}) : (b.value = [], l.actionId = "");
|
|
31
31
|
},
|
|
32
32
|
{ immediate: !0 }
|
|
33
33
|
);
|
|
34
34
|
const U = (e) => {
|
|
35
|
-
e &&
|
|
35
|
+
e && l.endDate && new Date(e) > new Date(l.endDate) && (l.endDate = "", C.warning(i("taskDefine.startDateLaterThanEndDate")));
|
|
36
36
|
}, F = (e) => {
|
|
37
|
-
e &&
|
|
38
|
-
}, E = (e) =>
|
|
37
|
+
e && l.startDate && new Date(e) < new Date(l.startDate) && C.warning(i("taskDefine.endDateEarlierThanStartDate"));
|
|
38
|
+
}, E = (e) => l.startDate ? e.getTime() < new Date(l.startDate).getTime() : !1, P = R({
|
|
39
39
|
taskTitle: [
|
|
40
40
|
{
|
|
41
41
|
required: !0,
|
|
@@ -85,59 +85,61 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
85
85
|
trigger: "change"
|
|
86
86
|
}
|
|
87
87
|
]
|
|
88
|
-
}),
|
|
88
|
+
}), m = le(Y, "modelValue"), j = M, h = D(!1), I = D();
|
|
89
89
|
function L() {
|
|
90
|
-
|
|
90
|
+
h.value = !0, I.value.clearFileList();
|
|
91
91
|
}
|
|
92
92
|
function N(e) {
|
|
93
|
-
|
|
93
|
+
console.log("file", e);
|
|
94
|
+
const a = {
|
|
94
95
|
fileName: e.name,
|
|
95
|
-
fileId: e.response.fileId
|
|
96
|
+
fileId: e.response.fileId,
|
|
97
|
+
fileSrc: e.response.fileSrc
|
|
96
98
|
};
|
|
97
|
-
|
|
99
|
+
l.fileInfo || (l.fileInfo = []), l.fileInfo.push(a);
|
|
98
100
|
}
|
|
99
101
|
function B(e) {
|
|
100
|
-
var
|
|
101
|
-
(
|
|
102
|
+
var a;
|
|
103
|
+
(a = l.fileInfo) == null || a.splice(e, 1);
|
|
102
104
|
}
|
|
103
105
|
const z = async () => {
|
|
104
106
|
var e;
|
|
105
|
-
await ((e =
|
|
106
|
-
|
|
107
|
-
console.log(
|
|
107
|
+
await ((e = w.value) == null ? void 0 : e.validate((a) => {
|
|
108
|
+
a && re.create(l).then((f) => {
|
|
109
|
+
console.log(f), f.status === 200 && (C({
|
|
108
110
|
message: i("common.submitSuccess"),
|
|
109
111
|
type: "success"
|
|
110
|
-
}),
|
|
112
|
+
}), m.value && (m.value = !1), j("refresh", f.status === 200));
|
|
111
113
|
});
|
|
112
114
|
}));
|
|
113
115
|
};
|
|
114
116
|
function q() {
|
|
115
|
-
|
|
117
|
+
m.value && (m.value = !1);
|
|
116
118
|
}
|
|
117
|
-
return (e,
|
|
118
|
-
const
|
|
119
|
-
return p(),
|
|
119
|
+
return (e, a) => {
|
|
120
|
+
const f = r("el-input"), d = r("el-form-item"), u = r("el-col"), $ = r("jmash-select"), y = r("el-date-picker"), A = r("jmash-enum-radio"), G = r("el-option"), H = r("el-select"), k = r("el-button"), J = r("CircleClose"), K = r("el-icon"), O = r("el-row"), Q = r("el-form"), W = r("el-dialog"), X = r("jmash-multi-upload");
|
|
121
|
+
return p(), g(v, null, [
|
|
120
122
|
t(W, {
|
|
121
|
-
modelValue:
|
|
122
|
-
"onUpdate:modelValue":
|
|
123
|
+
modelValue: m.value,
|
|
124
|
+
"onUpdate:modelValue": a[9] || (a[9] = (n) => m.value = n),
|
|
123
125
|
"close-on-click-modal": !1,
|
|
124
126
|
"close-on-press-escape": !1,
|
|
125
127
|
onClose: q
|
|
126
128
|
}, {
|
|
127
129
|
footer: o(() => [
|
|
128
|
-
|
|
129
|
-
t(
|
|
130
|
+
oe("div", ue, [
|
|
131
|
+
t(k, { onClick: q }, {
|
|
130
132
|
default: o(() => [
|
|
131
|
-
|
|
133
|
+
c(_(e.$t("common.cancel")), 1)
|
|
132
134
|
]),
|
|
133
135
|
_: 1
|
|
134
136
|
}),
|
|
135
|
-
t(
|
|
137
|
+
t(k, {
|
|
136
138
|
type: "primary",
|
|
137
139
|
onClick: z
|
|
138
140
|
}, {
|
|
139
141
|
default: o(() => [
|
|
140
|
-
|
|
142
|
+
c(_(e.$t("common.confirm")), 1)
|
|
141
143
|
]),
|
|
142
144
|
_: 1
|
|
143
145
|
})
|
|
@@ -146,8 +148,8 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
146
148
|
default: o(() => [
|
|
147
149
|
t(Q, {
|
|
148
150
|
ref_key: "taskDefineFormRef",
|
|
149
|
-
ref:
|
|
150
|
-
model: s(
|
|
151
|
+
ref: w,
|
|
152
|
+
model: s(l),
|
|
151
153
|
"label-width": "120px",
|
|
152
154
|
rules: P
|
|
153
155
|
}, {
|
|
@@ -156,14 +158,14 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
156
158
|
default: o(() => [
|
|
157
159
|
t(u, { span: 12 }, {
|
|
158
160
|
default: o(() => [
|
|
159
|
-
t(
|
|
161
|
+
t(d, {
|
|
160
162
|
label: e.$t("taskDefine.taskTitle"),
|
|
161
163
|
prop: "taskTitle"
|
|
162
164
|
}, {
|
|
163
165
|
default: o(() => [
|
|
164
|
-
t(
|
|
165
|
-
modelValue: s(
|
|
166
|
-
"onUpdate:modelValue":
|
|
166
|
+
t(f, {
|
|
167
|
+
modelValue: s(l).taskTitle,
|
|
168
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => s(l).taskTitle = n),
|
|
167
169
|
placeholder: e.$t("taskDefine.taskTitleRequired"),
|
|
168
170
|
maxlength: "127",
|
|
169
171
|
"show-word-limit": "",
|
|
@@ -177,15 +179,15 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
177
179
|
}),
|
|
178
180
|
t(u, { span: 12 }, {
|
|
179
181
|
default: o(() => [
|
|
180
|
-
t(
|
|
182
|
+
t(d, {
|
|
181
183
|
label: e.$t("taskDefine.taskSort"),
|
|
182
184
|
prop: "taskSort"
|
|
183
185
|
}, {
|
|
184
186
|
default: o(() => [
|
|
185
187
|
t($, {
|
|
186
|
-
modelValue: s(
|
|
187
|
-
"onUpdate:modelValue":
|
|
188
|
-
data: s(
|
|
188
|
+
modelValue: s(l).taskSort,
|
|
189
|
+
"onUpdate:modelValue": a[1] || (a[1] = (n) => s(l).taskSort = n),
|
|
190
|
+
data: s(V).taskSortTypeEnum.values,
|
|
189
191
|
placeholder: e.$t("taskDefine.taskSort"),
|
|
190
192
|
class: "w-full",
|
|
191
193
|
clearable: ""
|
|
@@ -198,14 +200,14 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
198
200
|
}),
|
|
199
201
|
t(u, { span: 12 }, {
|
|
200
202
|
default: o(() => [
|
|
201
|
-
t(
|
|
203
|
+
t(d, {
|
|
202
204
|
label: e.$t("taskDefine.startDate"),
|
|
203
205
|
prop: "startDate"
|
|
204
206
|
}, {
|
|
205
207
|
default: o(() => [
|
|
206
208
|
t(y, {
|
|
207
|
-
modelValue: s(
|
|
208
|
-
"onUpdate:modelValue":
|
|
209
|
+
modelValue: s(l).startDate,
|
|
210
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => s(l).startDate = n),
|
|
209
211
|
type: "date",
|
|
210
212
|
placeholder: e.$t("taskDefine.startDateRequired"),
|
|
211
213
|
format: "YYYY-MM-DD",
|
|
@@ -221,14 +223,14 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
221
223
|
}),
|
|
222
224
|
t(u, { span: 12 }, {
|
|
223
225
|
default: o(() => [
|
|
224
|
-
t(
|
|
226
|
+
t(d, {
|
|
225
227
|
label: e.$t("taskDefine.endDate"),
|
|
226
228
|
prop: "endDate"
|
|
227
229
|
}, {
|
|
228
230
|
default: o(() => [
|
|
229
231
|
t(y, {
|
|
230
|
-
modelValue: s(
|
|
231
|
-
"onUpdate:modelValue":
|
|
232
|
+
modelValue: s(l).endDate,
|
|
233
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => s(l).endDate = n),
|
|
232
234
|
type: "date",
|
|
233
235
|
placeholder: e.$t("taskDefine.endDateRequired"),
|
|
234
236
|
format: "YYYY-MM-DD",
|
|
@@ -245,15 +247,15 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
245
247
|
}),
|
|
246
248
|
t(u, { span: 12 }, {
|
|
247
249
|
default: o(() => [
|
|
248
|
-
t(
|
|
250
|
+
t(d, {
|
|
249
251
|
label: e.$t("taskDefine.taskPeriod"),
|
|
250
252
|
prop: "taskPeriod"
|
|
251
253
|
}, {
|
|
252
254
|
default: o(() => [
|
|
253
255
|
t($, {
|
|
254
|
-
modelValue: s(
|
|
255
|
-
"onUpdate:modelValue":
|
|
256
|
-
data: s(
|
|
256
|
+
modelValue: s(l).taskPeriod,
|
|
257
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => s(l).taskPeriod = n),
|
|
258
|
+
data: s(V).taskPeriodEnum.values,
|
|
257
259
|
placeholder: e.$t("taskDefine.taskPeriodRequired"),
|
|
258
260
|
"show-word-limit": "",
|
|
259
261
|
clearable: "",
|
|
@@ -267,14 +269,14 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
267
269
|
}),
|
|
268
270
|
t(u, { span: 12 }, {
|
|
269
271
|
default: o(() => [
|
|
270
|
-
t(
|
|
272
|
+
t(d, {
|
|
271
273
|
label: e.$t("taskDefine.taskCount"),
|
|
272
274
|
prop: "taskCount"
|
|
273
275
|
}, {
|
|
274
276
|
default: o(() => [
|
|
275
|
-
t(
|
|
276
|
-
modelValue: s(
|
|
277
|
-
"onUpdate:modelValue":
|
|
277
|
+
t(f, {
|
|
278
|
+
modelValue: s(l).taskCount,
|
|
279
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => s(l).taskCount = n),
|
|
278
280
|
placeholder: e.$t("taskDefine.taskCountRequired"),
|
|
279
281
|
maxlength: "5",
|
|
280
282
|
"show-word-limit": "",
|
|
@@ -288,15 +290,15 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
288
290
|
}),
|
|
289
291
|
t(u, { span: 12 }, {
|
|
290
292
|
default: o(() => [
|
|
291
|
-
t(
|
|
293
|
+
t(d, {
|
|
292
294
|
label: e.$t("taskDefine.overdueStatus"),
|
|
293
295
|
prop: "overdueStatus"
|
|
294
296
|
}, {
|
|
295
297
|
default: o(() => [
|
|
296
298
|
t(A, {
|
|
297
|
-
modelValue: s(
|
|
298
|
-
"onUpdate:modelValue":
|
|
299
|
-
data: s(
|
|
299
|
+
modelValue: s(l).overdueStatus,
|
|
300
|
+
"onUpdate:modelValue": a[6] || (a[6] = (n) => s(l).overdueStatus = n),
|
|
301
|
+
data: s(V).overdueStatusDict.values
|
|
300
302
|
}, null, 8, ["modelValue", "data"])
|
|
301
303
|
]),
|
|
302
304
|
_: 1
|
|
@@ -306,20 +308,20 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
306
308
|
}),
|
|
307
309
|
t(u, { span: 12 }, {
|
|
308
310
|
default: o(() => [
|
|
309
|
-
t(
|
|
311
|
+
t(d, {
|
|
310
312
|
label: e.$t("taskDefine.actionId"),
|
|
311
313
|
prop: "actionId"
|
|
312
314
|
}, {
|
|
313
315
|
default: o(() => [
|
|
314
316
|
t(H, {
|
|
315
|
-
modelValue: s(
|
|
316
|
-
"onUpdate:modelValue":
|
|
317
|
+
modelValue: s(l).actionId,
|
|
318
|
+
"onUpdate:modelValue": a[7] || (a[7] = (n) => s(l).actionId = n),
|
|
317
319
|
placeholder: e.$t("taskDefine.actionIdRequired"),
|
|
318
320
|
clearable: "",
|
|
319
321
|
class: "w-full"
|
|
320
322
|
}, {
|
|
321
323
|
default: o(() => [
|
|
322
|
-
(p(!0),
|
|
324
|
+
(p(!0), g(v, null, T(b.value, (n) => (p(), ae(G, {
|
|
323
325
|
key: n.inspectId,
|
|
324
326
|
label: n.inspectName,
|
|
325
327
|
value: n.inspectId
|
|
@@ -335,14 +337,14 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
335
337
|
}),
|
|
336
338
|
t(u, { span: 24 }, {
|
|
337
339
|
default: o(() => [
|
|
338
|
-
t(
|
|
340
|
+
t(d, {
|
|
339
341
|
label: e.$t("taskDefine.note"),
|
|
340
342
|
prop: "note"
|
|
341
343
|
}, {
|
|
342
344
|
default: o(() => [
|
|
343
|
-
t(
|
|
344
|
-
modelValue: s(
|
|
345
|
-
"onUpdate:modelValue":
|
|
345
|
+
t(f, {
|
|
346
|
+
modelValue: s(l).note,
|
|
347
|
+
"onUpdate:modelValue": a[8] || (a[8] = (n) => s(l).note = n),
|
|
346
348
|
placeholder: e.$t("taskDefine.noteRequired"),
|
|
347
349
|
"show-word-limit": "",
|
|
348
350
|
clearable: "",
|
|
@@ -356,40 +358,51 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
356
358
|
}),
|
|
357
359
|
t(u, { span: 24 }, {
|
|
358
360
|
default: o(() => [
|
|
359
|
-
t(
|
|
361
|
+
t(d, {
|
|
360
362
|
label: e.$t("taskDefine.files"),
|
|
361
363
|
prop: "fileInfo"
|
|
362
364
|
}, {
|
|
363
365
|
default: o(() => [
|
|
364
|
-
t(
|
|
366
|
+
t(k, {
|
|
365
367
|
type: "primary",
|
|
366
|
-
icon: s(
|
|
368
|
+
icon: s(se),
|
|
367
369
|
onClick: L
|
|
368
370
|
}, {
|
|
369
371
|
default: o(() => [
|
|
370
|
-
|
|
372
|
+
c(_(e.$t("common.uploadFiles")), 1)
|
|
371
373
|
]),
|
|
372
374
|
_: 1
|
|
373
375
|
}, 8, ["icon"])
|
|
374
376
|
]),
|
|
375
377
|
_: 1
|
|
376
378
|
}, 8, ["label"]),
|
|
377
|
-
t(
|
|
379
|
+
t(d, null, {
|
|
378
380
|
default: o(() => [
|
|
379
|
-
(p(!0),
|
|
381
|
+
(p(!0), g(v, null, T(s(l).fileInfo, (n, S) => (p(), g("div", {
|
|
380
382
|
key: S,
|
|
381
383
|
class: "files-list"
|
|
382
384
|
}, [
|
|
383
|
-
|
|
385
|
+
c(_(n.fileName) + " ", 1),
|
|
384
386
|
t(K, {
|
|
385
387
|
size: "16",
|
|
386
388
|
class: "icon-right",
|
|
387
|
-
onClick: (
|
|
389
|
+
onClick: (Z) => B(S)
|
|
388
390
|
}, {
|
|
389
391
|
default: o(() => [
|
|
390
392
|
t(J)
|
|
391
393
|
]),
|
|
392
394
|
_: 1
|
|
395
|
+
}, 8, ["onClick"]),
|
|
396
|
+
t(k, {
|
|
397
|
+
type: "primary",
|
|
398
|
+
link: "",
|
|
399
|
+
size: "small",
|
|
400
|
+
onClick: (Z) => s(ie)(n.fileSrc)
|
|
401
|
+
}, {
|
|
402
|
+
default: o(() => [...a[11] || (a[11] = [
|
|
403
|
+
c(" 查看 ", -1)
|
|
404
|
+
])]),
|
|
405
|
+
_: 1
|
|
393
406
|
}, 8, ["onClick"])
|
|
394
407
|
]))), 128))
|
|
395
408
|
]),
|
|
@@ -410,8 +423,8 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
410
423
|
t(X, {
|
|
411
424
|
ref_key: "uploadRef",
|
|
412
425
|
ref: I,
|
|
413
|
-
modelValue:
|
|
414
|
-
"onUpdate:modelValue":
|
|
426
|
+
modelValue: h.value,
|
|
427
|
+
"onUpdate:modelValue": a[10] || (a[10] = (n) => h.value = n),
|
|
415
428
|
onUploadFileList: N
|
|
416
429
|
}, null, 8, ["modelValue"])
|
|
417
430
|
], 64);
|
|
@@ -419,5 +432,5 @@ const re = { class: "dialog-footer" }, ge = /* @__PURE__ */ Z({
|
|
|
419
432
|
}
|
|
420
433
|
});
|
|
421
434
|
export {
|
|
422
|
-
|
|
435
|
+
_e as _
|
|
423
436
|
};
|
|
@@ -2,7 +2,7 @@ import { defineComponent as H, mergeModels as F, ref as f, reactive as M, useMod
|
|
|
2
2
|
import { ElMessage as W } from "element-plus";
|
|
3
3
|
import { useI18n as X } from "vue-i18n";
|
|
4
4
|
import { u as Z } from "./index-DaJ5KrbS.mjs";
|
|
5
|
-
import { D as x } from "./index-
|
|
5
|
+
import { D as x } from "./index-BUfsHvCP.mjs";
|
|
6
6
|
import { t as ee } from "./index-BYV5ylFn.mjs";
|
|
7
7
|
import "jmash-core";
|
|
8
8
|
import { _ as le } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
@@ -4,9 +4,9 @@ import { useRoute as te, useRouter as ae } from "vue-router";
|
|
|
4
4
|
import { useI18n as le } from "vue-i18n";
|
|
5
5
|
import { routerUtil as oe } from "jmash-core";
|
|
6
6
|
import { t as I } from "./index-DrhTfMmI.mjs";
|
|
7
|
-
import { D as m } from "./index-
|
|
7
|
+
import { D as m } from "./index-BUfsHvCP.mjs";
|
|
8
8
|
import { u as ne } from "./index-DaJ5KrbS.mjs";
|
|
9
|
-
import { _ as se } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as se } from "./index.vue_vue_type_script_setup_true_lang-9dzewzjH.mjs";
|
|
10
10
|
import { E as q } from "./el-message-CajLrSgM.mjs";
|
|
11
11
|
const re = { class: "app-container" }, Ve = /* @__PURE__ */ W({
|
|
12
12
|
__name: "edit",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as X, getCurrentInstance as Z, ref as $, onActivated as tt, resolveComponent as r, resolveDirective as T, createElementBlock as I, openBlock as p, createElementVNode as c, createVNode as s, withCtx as a, withKeys as w, unref as o, createTextVNode as y, toDisplayString as d, withDirectives as V, createBlock as D, createCommentVNode as et, isRef as N } from "vue";
|
|
2
2
|
import { useUserStore as E, clearEmpty as U, request as z, useTableHooks as at } from "jmash-core";
|
|
3
3
|
import { useI18n as ot } from "vue-i18n";
|
|
4
|
-
import { D as i, C as st } from "./index-
|
|
4
|
+
import { D as i, C as st } from "./index-BUfsHvCP.mjs";
|
|
5
5
|
import { useRouter as lt } from "vue-router";
|
|
6
6
|
class nt {
|
|
7
7
|
getKey() {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as ee, getCurrentInstance as te, ref as h, reactive as P, onActivated as oe, resolveComponent as s, resolveDirective as E, createElementBlock as C, openBlock as m, createElementVNode as g, createVNode as a, createBlock as _, createCommentVNode as N, withCtx as t, withKeys as ae, unref as n, createTextVNode as d, toDisplayString as r, withDirectives as b, isRef as R } from "vue";
|
|
2
2
|
import { useTableHooks as le } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import {
|
|
4
|
+
import { J as se } from "./index-ZZZJ5zVw-DMxMT-pR.mjs";
|
|
5
5
|
import { t as re } from "./index-DrhTfMmI.mjs";
|
|
6
|
-
import { D as
|
|
7
|
-
import { _ as ie } from "./add.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { D as w } from "./index-BUfsHvCP.mjs";
|
|
7
|
+
import { _ as ie } from "./add.vue_vue_type_script_setup_true_lang-C7iqLsd8.mjs";
|
|
8
8
|
import { useRouter as ue } from "vue-router";
|
|
9
9
|
const me = { class: "app-container" }, de = { class: "search-container" }, pe = ["onClick"], ce = ["onClick"], ge = /* @__PURE__ */ ee({
|
|
10
10
|
__name: "index",
|
|
@@ -109,9 +109,9 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
109
109
|
query: { taskDefineId: l.taskDefineId, taskSort: l.taskSort }
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
|
-
let
|
|
112
|
+
let S = P({});
|
|
113
113
|
function F() {
|
|
114
|
-
|
|
114
|
+
S = P({}), p.value.title = v("common.add"), p.value.visible = !0;
|
|
115
115
|
}
|
|
116
116
|
function H(l) {
|
|
117
117
|
i.selectionRows.value = l;
|
|
@@ -125,7 +125,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
125
125
|
return oe(() => {
|
|
126
126
|
i.getList();
|
|
127
127
|
}), (l, o) => {
|
|
128
|
-
const K = s("jmash-select"), T = s("el-form-item"), k = s("el-col"), y = s("el-button"), V = s("el-row"), Q = s("el-form"), x = s("jmash-column-select"),
|
|
128
|
+
const K = s("jmash-select"), T = s("el-form-item"), k = s("el-col"), y = s("el-button"), V = s("el-row"), Q = s("el-form"), x = s("jmash-column-select"), J = s("EditPen"), $ = s("el-icon"), M = s("DeleteFilled"), W = s("jmash-table"), G = s("jmash-pagination"), O = s("el-card"), D = E("hasPerm"), X = E("loading");
|
|
129
129
|
return m(), C("div", me, [
|
|
130
130
|
g("div", de, [
|
|
131
131
|
a(Q, {
|
|
@@ -147,7 +147,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
147
147
|
a(K, {
|
|
148
148
|
modelValue: u.value.taskSort,
|
|
149
149
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => u.value.taskSort = e),
|
|
150
|
-
data: n(
|
|
150
|
+
data: n(w).taskSortTypeEnum.values,
|
|
151
151
|
placeholder: l.$t("taskDefine.taskSort"),
|
|
152
152
|
onKeyup: o[1] || (o[1] = ae((e) => n(i).handleQuery(), ["enter"])),
|
|
153
153
|
class: "!w-[203px]"
|
|
@@ -233,7 +233,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
233
233
|
})
|
|
234
234
|
]),
|
|
235
235
|
footer: t(() => [
|
|
236
|
-
n(f) > 0 ? (m(), _(
|
|
236
|
+
n(f) > 0 ? (m(), _(G, {
|
|
237
237
|
key: 0,
|
|
238
238
|
total: n(f),
|
|
239
239
|
"onUpdate:total": o[5] || (o[5] = (e) => R(f) ? f.value = e : null),
|
|
@@ -245,7 +245,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
245
245
|
}, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
|
|
246
246
|
]),
|
|
247
247
|
default: t(() => [
|
|
248
|
-
b((m(), _(
|
|
248
|
+
b((m(), _(W, {
|
|
249
249
|
ref_key: "multipleTableRef",
|
|
250
250
|
ref: I,
|
|
251
251
|
"row-key": "taskDefineId",
|
|
@@ -255,10 +255,10 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
255
255
|
onSortChange: Y
|
|
256
256
|
}, {
|
|
257
257
|
taskSort: t((e) => [
|
|
258
|
-
g("span", null, r(n(
|
|
258
|
+
g("span", null, r(n(w).taskSortTypeEnum.getEnumValue(e.data.row.taskSort)), 1)
|
|
259
259
|
]),
|
|
260
260
|
taskCount: t((e) => [
|
|
261
|
-
g("span", null, r(e.data.row.taskCount) + "次/" + r(n(
|
|
261
|
+
g("span", null, r(e.data.row.taskCount) + "次/" + r(n(w).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
|
|
262
262
|
]),
|
|
263
263
|
createBy: t((e) => [
|
|
264
264
|
d(r(n(se).userInfo(e.data.row.createBy).realName), 1)
|
|
@@ -276,7 +276,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
276
276
|
}, [
|
|
277
277
|
a($, null, {
|
|
278
278
|
default: t(() => [
|
|
279
|
-
a(
|
|
279
|
+
a(J)
|
|
280
280
|
]),
|
|
281
281
|
_: 1
|
|
282
282
|
}),
|
|
@@ -290,7 +290,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
290
290
|
}, [
|
|
291
291
|
a($, null, {
|
|
292
292
|
default: t(() => [
|
|
293
|
-
a(
|
|
293
|
+
a(M)
|
|
294
294
|
]),
|
|
295
295
|
_: 1
|
|
296
296
|
}),
|
|
@@ -311,7 +311,7 @@ const me = { class: "app-container" }, de = { class: "search-container" }, pe =
|
|
|
311
311
|
modelValue: p.value.visible,
|
|
312
312
|
"onUpdate:modelValue": o[9] || (o[9] = (e) => p.value.visible = e),
|
|
313
313
|
title: p.value.title,
|
|
314
|
-
"entity-key": n(
|
|
314
|
+
"entity-key": n(S),
|
|
315
315
|
onRefresh: A,
|
|
316
316
|
width: "900px"
|
|
317
317
|
}, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as oe, getCurrentInstance as se, ref as w, reactive as ne, onActivated as re, resolveComponent as n, resolveDirective as T, createElementBlock as k, openBlock as d, createElementVNode as g, createVNode as s, createBlock as D, createCommentVNode as C, withCtx as l, withKeys as V, unref as o, createTextVNode as h, toDisplayString as u, withDirectives as Y, isRef as U } from "vue";
|
|
2
2
|
import { useTableHooks as ue } from "jmash-core";
|
|
3
3
|
import { useI18n as ie } from "vue-i18n";
|
|
4
|
-
import { D as m, C as j } from "./index-
|
|
5
|
-
import { t as de, a as me } from "./report-
|
|
6
|
-
import pe from "./edit-
|
|
4
|
+
import { D as m, C as j } from "./index-BUfsHvCP.mjs";
|
|
5
|
+
import { t as de, a as me } from "./report-DhfHhf7j.mjs";
|
|
6
|
+
import pe from "./edit-C6PKgMYP.mjs";
|
|
7
7
|
import { useRouter as ce } from "vue-router";
|
|
8
8
|
const ke = { class: "app-container" }, fe = { class: "search-container" }, ve = { key: 0 }, be = { key: 1 }, ye = ["onClick"], _e = ["onClick"], Ie = ["onClick"], Re = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|