sooyie-task 0.0.9 → 0.0.11
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-7_dK5ok_.mjs → add-DuZI-0rw.mjs} +10 -8
- package/dist/add-iEZo5s5C.mjs +4 -0
- package/dist/{add-BaHTXQnK.mjs → add.vue_vue_type_script_setup_true_lang-D46pjk8M.mjs} +145 -154
- package/dist/assets/7f3e996112b4923f.png +0 -0
- package/dist/{edit-DR6TsOR1.mjs → edit-DvKXuCgK.mjs} +125 -135
- package/dist/{edit-Ci8Uch5Z.mjs → edit-ww2K--dY.mjs} +33 -31
- package/dist/el-message-CajLrSgM.mjs +1370 -0
- package/dist/{index-Cb72ljTZ.mjs → index-1LxoELHM.mjs} +94 -110
- package/dist/{index-D75JtZHf.mjs → index-CoroLg2B.mjs} +81 -81
- package/dist/{index-B_hFZVhb-C3Oi__-I.mjs → index-CsfOvnt4-CYkGp1YO.mjs} +736 -687
- package/dist/index-DVezr2bg.mjs +9358 -0
- package/dist/{index-BRMLJ2ar.mjs → index-DrhTfMmI.mjs} +20 -28
- package/dist/{index-DIHsBjkh.mjs → index-rQPWP-HJ.mjs} +1 -1
- package/dist/{index-CSqnIoJ3.mjs → index-vh8fHlqF.mjs} +106 -118
- package/dist/index.mjs +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRYjMxBU.mjs → index.vue_vue_type_script_setup_true_lang-DVInku0F.mjs} +3 -3
- package/dist/info-BqqsNfP6.mjs +2029 -0
- package/dist/{report-CEnjUOYk.mjs → report-7UPImd_G.mjs} +26 -24
- package/dist/{report-info-B0NXFFzR.mjs → report-info-CWhm1nL2.mjs} +4 -2
- package/dist/style.css +1 -1
- package/dts/src/api/index.d.ts +1 -0
- package/dts/src/api/task/task-define/index.d.ts +1 -2
- package/dts/src/api/task/task-define/types.d.ts +0 -11
- package/dts/src/constant.d.ts +4 -3
- package/package.json +10 -9
- package/dist/el-message-Bod6C9wB.mjs +0 -1252
- package/dist/index-DvawPwK3.mjs +0 -10483
- package/dist/info-CMCBPoFL.mjs +0 -1992
|
@@ -1,53 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useUserStore as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { D as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
class it {
|
|
1
|
+
import { defineComponent as G, getCurrentInstance as J, ref as $, onActivated as X, resolveComponent as m, resolveDirective as T, createElementBlock as I, openBlock as p, createElementVNode as c, createVNode as o, withCtx as a, withKeys as w, unref as s, createTextVNode as y, toDisplayString as u, withDirectives as D, createBlock as V, createCommentVNode as Z, isRef as N } from "vue";
|
|
2
|
+
import { useUserStore as E, clearEmpty as U, request as z, useTableHooks as tt } from "jmash-core";
|
|
3
|
+
import { useI18n as et } from "vue-i18n";
|
|
4
|
+
import { D as d, C as at } from "./index-DVezr2bg.mjs";
|
|
5
|
+
import { useRouter as st } from "vue-router";
|
|
6
|
+
class ot {
|
|
8
7
|
getKey() {
|
|
9
8
|
return {};
|
|
10
9
|
}
|
|
11
10
|
// 查询翻页信息任务实例
|
|
12
|
-
findPage(
|
|
13
|
-
const k =
|
|
14
|
-
return
|
|
11
|
+
findPage(r) {
|
|
12
|
+
const k = E().user.tenant;
|
|
13
|
+
return U(r), r && (r.hasStatus = r.status !== void 0, r.hasSort = r.sort !== void 0), z({
|
|
15
14
|
url: "/v1/front/task/sooyie/task/page/" + k,
|
|
16
15
|
method: "get",
|
|
17
|
-
params:
|
|
16
|
+
params: r
|
|
18
17
|
});
|
|
19
18
|
}
|
|
20
19
|
// 查询列表信息任务实例
|
|
21
|
-
findList(
|
|
22
|
-
const k =
|
|
23
|
-
return
|
|
20
|
+
findList(r) {
|
|
21
|
+
const k = E().user.tenant;
|
|
22
|
+
return U(r), z({
|
|
24
23
|
url: "/v1/front/task/sooyie/task/list/" + k,
|
|
25
24
|
method: "get",
|
|
26
|
-
params:
|
|
25
|
+
params: r
|
|
27
26
|
});
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
const
|
|
29
|
+
const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-container" }, ut = { key: 0 }, dt = { key: 1 }, it = ["onClick"], vt = /* @__PURE__ */ G({
|
|
31
30
|
__name: "index",
|
|
32
|
-
setup(
|
|
33
|
-
const { proxy:
|
|
34
|
-
|
|
35
|
-
const n =
|
|
31
|
+
setup(R) {
|
|
32
|
+
const { proxy: r } = J(), { t: k } = et();
|
|
33
|
+
d.OrgBizDict.useValues(), d.UserExtBizDict.useValues(), d.itemBizLayDict.useValues();
|
|
34
|
+
const n = $({}), B = st(), {
|
|
36
35
|
tableHooks: i,
|
|
37
36
|
multipleTableRef: j,
|
|
38
|
-
queryFormRef:
|
|
39
|
-
listLoading:
|
|
40
|
-
tableData:
|
|
41
|
-
total:
|
|
42
|
-
} =
|
|
43
|
-
|
|
44
|
-
f.value.length === 0 && ut.getEnum({ className: L.TASKSORT_TYPE, type: 1 }).then((b) => {
|
|
45
|
-
f.value = b.data.values;
|
|
46
|
-
});
|
|
47
|
-
const e = f.value.find((b) => b.key === l);
|
|
48
|
-
return e ? e.value : "";
|
|
49
|
-
}
|
|
50
|
-
let v = C([
|
|
37
|
+
queryFormRef: P,
|
|
38
|
+
listLoading: L,
|
|
39
|
+
tableData: K,
|
|
40
|
+
total: g
|
|
41
|
+
} = tt(k, lt, n);
|
|
42
|
+
let f = $([
|
|
51
43
|
// 任务主题
|
|
52
44
|
{
|
|
53
45
|
label: "taskInst.taskName",
|
|
@@ -62,7 +54,7 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
62
54
|
prop: "sort",
|
|
63
55
|
slotName: "sort",
|
|
64
56
|
columnType: "slot",
|
|
65
|
-
minWidth: "
|
|
57
|
+
minWidth: "105",
|
|
66
58
|
sortable: "custom",
|
|
67
59
|
isColumn: !0
|
|
68
60
|
},
|
|
@@ -151,8 +143,8 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
151
143
|
isColumn: !0
|
|
152
144
|
}
|
|
153
145
|
]);
|
|
154
|
-
function
|
|
155
|
-
|
|
146
|
+
function Q(l) {
|
|
147
|
+
B.push({
|
|
156
148
|
path: "/task/task-inst/info",
|
|
157
149
|
query: {
|
|
158
150
|
taskInstId: l.taskInstId,
|
|
@@ -161,39 +153,39 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
161
153
|
}
|
|
162
154
|
});
|
|
163
155
|
}
|
|
164
|
-
function
|
|
156
|
+
function x(l) {
|
|
165
157
|
i.selectionRows.value = l;
|
|
166
158
|
}
|
|
167
|
-
function
|
|
159
|
+
function H(l) {
|
|
168
160
|
i.handleSort(l.prop, l.order);
|
|
169
161
|
}
|
|
170
|
-
return
|
|
162
|
+
return X(() => {
|
|
171
163
|
i.getList();
|
|
172
164
|
}), (l, e) => {
|
|
173
|
-
const
|
|
174
|
-
return p(), I("div",
|
|
175
|
-
c("div",
|
|
176
|
-
o(
|
|
165
|
+
const Y = m("el-input"), b = m("el-form-item"), v = m("el-col"), h = m("jmash-select"), S = m("el-row"), _ = m("el-button"), A = m("el-form"), M = m("jmash-column-select"), O = m("jmash-table"), W = m("jmash-pagination"), F = m("el-card"), C = T("hasPerm"), q = T("loading");
|
|
166
|
+
return p(), I("div", nt, [
|
|
167
|
+
c("div", rt, [
|
|
168
|
+
o(A, {
|
|
177
169
|
ref_key: "queryFormRef",
|
|
178
|
-
ref:
|
|
170
|
+
ref: P,
|
|
179
171
|
model: n.value,
|
|
180
172
|
inline: !0
|
|
181
173
|
}, {
|
|
182
174
|
default: a(() => [
|
|
183
175
|
o(S, null, {
|
|
184
176
|
default: a(() => [
|
|
185
|
-
o(
|
|
177
|
+
o(v, { span: 6 }, {
|
|
186
178
|
default: a(() => [
|
|
187
|
-
o(
|
|
179
|
+
o(b, {
|
|
188
180
|
label: l.$t("taskInst.keyword"),
|
|
189
181
|
prop: "keyword"
|
|
190
182
|
}, {
|
|
191
183
|
default: a(() => [
|
|
192
|
-
o(
|
|
184
|
+
o(Y, {
|
|
193
185
|
modelValue: n.value.keyword,
|
|
194
186
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => n.value.keyword = t),
|
|
195
187
|
placeholder: l.$t("taskInst.keywordRequired"),
|
|
196
|
-
onKeyup: e[1] || (e[1] =
|
|
188
|
+
onKeyup: e[1] || (e[1] = w((t) => s(i).handleQuery(), ["enter"])),
|
|
197
189
|
class: "!w-[203px]"
|
|
198
190
|
}, null, 8, ["modelValue", "placeholder"])
|
|
199
191
|
]),
|
|
@@ -202,49 +194,40 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
202
194
|
]),
|
|
203
195
|
_: 1
|
|
204
196
|
}),
|
|
205
|
-
o(
|
|
197
|
+
o(v, { span: 6 }, {
|
|
206
198
|
default: a(() => [
|
|
207
|
-
o(
|
|
199
|
+
o(b, {
|
|
208
200
|
label: l.$t("taskDefine.taskSort"),
|
|
209
201
|
prop: "sort"
|
|
210
202
|
}, {
|
|
211
203
|
default: a(() => [
|
|
212
|
-
o(
|
|
204
|
+
o(h, {
|
|
213
205
|
modelValue: n.value.sort,
|
|
214
206
|
"onUpdate:modelValue": e[2] || (e[2] = (t) => n.value.sort = t),
|
|
215
|
-
data:
|
|
207
|
+
data: s(d).taskSortTypeEnum.values,
|
|
216
208
|
placeholder: l.$t("taskDefine.taskSort"),
|
|
217
|
-
onKeyup: e[3] || (e[3] =
|
|
209
|
+
onKeyup: e[3] || (e[3] = w((t) => s(i).handleQuery(), ["enter"])),
|
|
218
210
|
class: "!w-[203px]"
|
|
219
|
-
},
|
|
220
|
-
default: a(() => [
|
|
221
|
-
(p(!0), I(st, null, lt(f.value, (t) => (p(), V(F, {
|
|
222
|
-
key: t.key,
|
|
223
|
-
label: t.value,
|
|
224
|
-
value: t.key
|
|
225
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
226
|
-
]),
|
|
227
|
-
_: 1
|
|
228
|
-
}, 8, ["modelValue", "data", "placeholder"])
|
|
211
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
229
212
|
]),
|
|
230
213
|
_: 1
|
|
231
214
|
}, 8, ["label"])
|
|
232
215
|
]),
|
|
233
216
|
_: 1
|
|
234
217
|
}),
|
|
235
|
-
o(
|
|
218
|
+
o(v, { span: 6 }, {
|
|
236
219
|
default: a(() => [
|
|
237
|
-
o(
|
|
220
|
+
o(b, {
|
|
238
221
|
label: l.$t("taskInst.readStatus"),
|
|
239
222
|
prop: "readStatus"
|
|
240
223
|
}, {
|
|
241
224
|
default: a(() => [
|
|
242
|
-
o(
|
|
225
|
+
o(h, {
|
|
243
226
|
modelValue: n.value.readStatus,
|
|
244
227
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => n.value.readStatus = t),
|
|
245
|
-
data: s(
|
|
228
|
+
data: s(d).readStatusDict.values,
|
|
246
229
|
placeholder: l.$t("taskInst.readStatus"),
|
|
247
|
-
onKeyup: e[5] || (e[5] =
|
|
230
|
+
onKeyup: e[5] || (e[5] = w((t) => s(i).handleQuery(), ["enter"])),
|
|
248
231
|
class: "!w-[203px]"
|
|
249
232
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
250
233
|
]),
|
|
@@ -253,19 +236,19 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
253
236
|
]),
|
|
254
237
|
_: 1
|
|
255
238
|
}),
|
|
256
|
-
o(
|
|
239
|
+
o(v, { span: 6 }, {
|
|
257
240
|
default: a(() => [
|
|
258
|
-
o(
|
|
241
|
+
o(b, {
|
|
259
242
|
label: l.$t("taskInst.status"),
|
|
260
243
|
prop: "status"
|
|
261
244
|
}, {
|
|
262
245
|
default: a(() => [
|
|
263
|
-
o(
|
|
246
|
+
o(h, {
|
|
264
247
|
modelValue: n.value.status,
|
|
265
248
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => n.value.status = t),
|
|
266
|
-
data: s(
|
|
249
|
+
data: s(d).taskStatusEnum.values,
|
|
267
250
|
placeholder: l.$t("taskInst.statusRequired"),
|
|
268
|
-
onKeyup: e[7] || (e[7] =
|
|
251
|
+
onKeyup: e[7] || (e[7] = w((t) => s(i).handleQuery(), ["enter"])),
|
|
269
252
|
class: "!w-[203px]"
|
|
270
253
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
271
254
|
]),
|
|
@@ -278,22 +261,22 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
278
261
|
_: 1
|
|
279
262
|
}),
|
|
280
263
|
o(S),
|
|
281
|
-
o(
|
|
264
|
+
o(b, { class: "search-btn" }, {
|
|
282
265
|
default: a(() => [
|
|
283
|
-
o(
|
|
266
|
+
o(_, {
|
|
284
267
|
type: "primary",
|
|
285
268
|
onClick: e[8] || (e[8] = (t) => s(i).handleQuery())
|
|
286
269
|
}, {
|
|
287
270
|
default: a(() => [
|
|
288
|
-
|
|
271
|
+
y(u(l.$t("common.search")), 1)
|
|
289
272
|
]),
|
|
290
273
|
_: 1
|
|
291
274
|
}),
|
|
292
|
-
o(
|
|
275
|
+
o(_, {
|
|
293
276
|
onClick: e[9] || (e[9] = (t) => s(i).resetQuery())
|
|
294
277
|
}, {
|
|
295
278
|
default: a(() => [
|
|
296
|
-
|
|
279
|
+
y(u(l.$t("common.reset")), 1)
|
|
297
280
|
]),
|
|
298
281
|
_: 1
|
|
299
282
|
})
|
|
@@ -305,33 +288,33 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
305
288
|
}, 8, ["model"]),
|
|
306
289
|
e[16] || (e[16] = c("div", { class: "clear" }, null, -1))
|
|
307
290
|
]),
|
|
308
|
-
o(
|
|
291
|
+
o(F, {
|
|
309
292
|
shadow: "never",
|
|
310
293
|
class: "table-container"
|
|
311
294
|
}, {
|
|
312
295
|
header: a(() => [
|
|
313
296
|
o(S, null, {
|
|
314
297
|
default: a(() => [
|
|
315
|
-
o(
|
|
298
|
+
o(v, {
|
|
316
299
|
span: 24,
|
|
317
300
|
class: "container-float"
|
|
318
301
|
}, {
|
|
319
302
|
default: a(() => [
|
|
320
|
-
|
|
303
|
+
D((p(), V(_, {
|
|
321
304
|
plain: "",
|
|
322
305
|
type: "primary",
|
|
323
306
|
onClick: e[10] || (e[10] = (t) => s(i).handleExport(s(k)("task.taskInst.name")))
|
|
324
307
|
}, {
|
|
325
308
|
default: a(() => [
|
|
326
|
-
|
|
309
|
+
y(u(l.$t("common.export")), 1)
|
|
327
310
|
]),
|
|
328
311
|
_: 1
|
|
329
312
|
})), [
|
|
330
|
-
[
|
|
313
|
+
[C, ["task:task:export"]]
|
|
331
314
|
]),
|
|
332
|
-
o(
|
|
333
|
-
modelValue: s(
|
|
334
|
-
"onUpdate:modelValue": e[11] || (e[11] = (t) =>
|
|
315
|
+
o(M, {
|
|
316
|
+
modelValue: s(f),
|
|
317
|
+
"onUpdate:modelValue": e[11] || (e[11] = (t) => N(f) ? f.value = t : f = t),
|
|
335
318
|
"label-name": "task/task"
|
|
336
319
|
}, null, 8, ["modelValue"])
|
|
337
320
|
]),
|
|
@@ -342,64 +325,65 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
342
325
|
})
|
|
343
326
|
]),
|
|
344
327
|
footer: a(() => [
|
|
345
|
-
s(
|
|
328
|
+
s(g) > 0 ? (p(), V(W, {
|
|
346
329
|
key: 0,
|
|
347
|
-
total: s(
|
|
348
|
-
"onUpdate:total": e[12] || (e[12] = (t) =>
|
|
330
|
+
total: s(g),
|
|
331
|
+
"onUpdate:total": e[12] || (e[12] = (t) => N(g) ? g.value = t : null),
|
|
349
332
|
"current-page": n.value.curPage,
|
|
350
333
|
"onUpdate:currentPage": e[13] || (e[13] = (t) => n.value.curPage = t),
|
|
351
334
|
"page-size": n.value.pageSize,
|
|
352
335
|
"onUpdate:pageSize": e[14] || (e[14] = (t) => n.value.pageSize = t),
|
|
353
336
|
onPagination: e[15] || (e[15] = (t) => s(i).getList())
|
|
354
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
337
|
+
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
355
338
|
]),
|
|
356
339
|
default: a(() => [
|
|
357
|
-
|
|
340
|
+
D((p(), V(O, {
|
|
358
341
|
ref_key: "multipleTableRef",
|
|
359
342
|
ref: j,
|
|
360
343
|
"row-key": "taskInstId",
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
onSortChange: O
|
|
344
|
+
data: s(K),
|
|
345
|
+
"table-label": s(f),
|
|
346
|
+
onSelectionChange: x,
|
|
347
|
+
onSortChange: H
|
|
366
348
|
}, {
|
|
367
349
|
sort: a((t) => [
|
|
368
|
-
c("span", null, d(
|
|
350
|
+
c("span", null, u(s(d).taskSortTypeEnum.getEnumValue(t.data.row.sort)), 1)
|
|
369
351
|
]),
|
|
370
352
|
customerTagId: a((t) => [
|
|
371
|
-
t.data.row.sort === s(
|
|
353
|
+
t.data.row.sort === s(at).CUSTOMER ? (p(), I("span", ut, u(s(d).OrgBizDict.getValue(t.data.row.annivCustomerId)), 1)) : (p(), I("span", dt, u(s(d).itemBizLayDict.getValue(t.data.row.annivCustomerId)), 1))
|
|
372
354
|
]),
|
|
373
355
|
readStatus: a((t) => [
|
|
374
|
-
c("span", null,
|
|
356
|
+
c("span", null, u(s(d).readStatusDict.getValue(t.data.row.readStatus)), 1)
|
|
375
357
|
]),
|
|
376
358
|
status: a((t) => [
|
|
377
|
-
c("span", null,
|
|
359
|
+
c("span", null, u(s(d).taskStatusEnum.getEnumValue(t.data.row.status)), 1)
|
|
378
360
|
]),
|
|
379
361
|
percent: a((t) => [
|
|
380
|
-
c("span", null,
|
|
362
|
+
c("span", null, u(t.data.row.percent) + "% ", 1)
|
|
381
363
|
]),
|
|
382
364
|
finishDate: a((t) => [
|
|
383
|
-
|
|
365
|
+
y(u(s(r).$moment.formatDate(
|
|
384
366
|
t.data.row.finishDate,
|
|
385
367
|
"YYYY-MM-DD HH:mm:ss"
|
|
386
368
|
)), 1)
|
|
387
369
|
]),
|
|
388
370
|
userId: a((t) => [
|
|
389
|
-
c("span", null,
|
|
371
|
+
c("span", null, u(s(d).UserExtBizDict.getValue(t.data.row.userId)), 1)
|
|
390
372
|
]),
|
|
391
373
|
operation: a((t) => [
|
|
392
|
-
|
|
374
|
+
D((p(), I("span", {
|
|
393
375
|
class: "el-button-color",
|
|
394
|
-
onClick: (
|
|
376
|
+
onClick: (mt) => Q(t.data.row)
|
|
395
377
|
}, [
|
|
396
|
-
|
|
397
|
-
], 8,
|
|
398
|
-
[
|
|
378
|
+
y(u(l.$t("common.view")), 1)
|
|
379
|
+
], 8, it)), [
|
|
380
|
+
[C, ["task:task:delete"]]
|
|
399
381
|
])
|
|
400
382
|
]),
|
|
401
383
|
_: 1
|
|
402
|
-
}, 8, ["
|
|
384
|
+
}, 8, ["data", "table-label"])), [
|
|
385
|
+
[q, s(L)]
|
|
386
|
+
])
|
|
403
387
|
]),
|
|
404
388
|
_: 1
|
|
405
389
|
})
|
|
@@ -408,5 +392,5 @@ const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-cont
|
|
|
408
392
|
}
|
|
409
393
|
});
|
|
410
394
|
export {
|
|
411
|
-
|
|
395
|
+
vt as default
|
|
412
396
|
};
|