sooyie-task 0.0.10 → 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-B4q1sdG4.mjs → add-DuZI-0rw.mjs} +10 -8
- package/dist/add-iEZo5s5C.mjs +4 -0
- package/dist/{add-sH-BWgn0.mjs → add.vue_vue_type_script_setup_true_lang-D46pjk8M.mjs} +145 -154
- package/dist/assets/7f3e996112b4923f.png +0 -0
- package/dist/{edit-CspvN839.mjs → edit-DvKXuCgK.mjs} +125 -135
- package/dist/{edit-CaWiv3Bu.mjs → edit-ww2K--dY.mjs} +33 -31
- package/dist/el-message-CajLrSgM.mjs +1370 -0
- package/dist/{index-BlznoarT.mjs → index-1LxoELHM.mjs} +94 -110
- package/dist/{index-DqgxALkk.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-BcYrJI8I.mjs → index-rQPWP-HJ.mjs} +1 -1
- package/dist/{index-WEwgqoRH.mjs → index-vh8fHlqF.mjs} +106 -118
- package/dist/index.mjs +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-BbHYN6H_.mjs → index.vue_vue_type_script_setup_true_lang-DVInku0F.mjs} +3 -3
- package/dist/info-BqqsNfP6.mjs +2029 -0
- package/dist/{report-DgEr-aXp.mjs → report-7UPImd_G.mjs} +26 -24
- package/dist/{report-info-CEYtaesO.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 +1 -0
- package/package.json +10 -9
- package/dist/el-message-Bod6C9wB.mjs +0 -1252
- package/dist/index-DyMQey8N.mjs +0 -10483
- package/dist/info-DQHUz-Xv.mjs +0 -1992
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { D as m, C as
|
|
5
|
-
import { t as
|
|
6
|
-
import
|
|
7
|
-
import { useRouter as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as ae, getCurrentInstance as le, ref as w, reactive as oe, onActivated as se, resolveComponent as r, resolveDirective as T, createElementBlock as k, openBlock as d, createElementVNode as D, createVNode as s, createBlock as g, 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
|
+
import { useTableHooks as ne } from "jmash-core";
|
|
3
|
+
import { useI18n as re } from "vue-i18n";
|
|
4
|
+
import { D as m, C as j } from "./index-DVezr2bg.mjs";
|
|
5
|
+
import { t as ue, a as ie } from "./report-7UPImd_G.mjs";
|
|
6
|
+
import de from "./edit-ww2K--dY.mjs";
|
|
7
|
+
import { useRouter as me } from "vue-router";
|
|
8
|
+
const pe = { class: "app-container" }, ce = { class: "search-container" }, ke = { key: 0 }, fe = { key: 1 }, ve = ["onClick"], be = ["onClick"], ye = ["onClick"], Se = /* @__PURE__ */ ae({
|
|
9
9
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const { proxy:
|
|
10
|
+
setup(_e) {
|
|
11
|
+
const { proxy: z } = le(), { t: f } = re(), M = me();
|
|
12
12
|
m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
|
|
13
|
-
const n =
|
|
13
|
+
const n = w({}), {
|
|
14
14
|
tableHooks: i,
|
|
15
|
-
multipleTableRef:
|
|
16
|
-
queryFormRef:
|
|
17
|
-
listLoading:
|
|
18
|
-
tableData:
|
|
19
|
-
total:
|
|
20
|
-
} =
|
|
21
|
-
let v =
|
|
15
|
+
multipleTableRef: q,
|
|
16
|
+
queryFormRef: B,
|
|
17
|
+
listLoading: E,
|
|
18
|
+
tableData: L,
|
|
19
|
+
total: y
|
|
20
|
+
} = ne(f, ue, n);
|
|
21
|
+
let v = w([
|
|
22
22
|
// 任务主题
|
|
23
23
|
{
|
|
24
24
|
label: "taskInst.taskName",
|
|
@@ -102,22 +102,22 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
102
102
|
isColumn: !0
|
|
103
103
|
}
|
|
104
104
|
]);
|
|
105
|
-
const p =
|
|
105
|
+
const p = w({
|
|
106
106
|
title: f("taskInst.report"),
|
|
107
107
|
visible: !1
|
|
108
|
-
}),
|
|
108
|
+
}), c = w({
|
|
109
109
|
title: f("taskInst.reportNormal"),
|
|
110
110
|
visible: !1
|
|
111
111
|
});
|
|
112
|
-
let _ =
|
|
113
|
-
function
|
|
112
|
+
let _ = oe({});
|
|
113
|
+
function P(a) {
|
|
114
114
|
Object.assign(_, a), p.value.title = f("taskInst.report"), p.value.visible = !0;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
Object.assign(_, a),
|
|
116
|
+
function O(a) {
|
|
117
|
+
Object.assign(_, a), c.value.title = f("taskInst.reportNormal"), c.value.visible = !0;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function K(a) {
|
|
120
|
+
M.push({
|
|
121
121
|
path: "/task/task-inst/info",
|
|
122
122
|
query: {
|
|
123
123
|
taskInstId: a.taskInstId,
|
|
@@ -126,24 +126,24 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Q(a) {
|
|
130
130
|
i.selectionRows.value = a;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function H(a) {
|
|
133
133
|
i.handleSort(a.prop, a.order);
|
|
134
134
|
}
|
|
135
135
|
function S(a) {
|
|
136
136
|
a && i.getList();
|
|
137
137
|
}
|
|
138
|
-
return
|
|
138
|
+
return se(() => {
|
|
139
139
|
i.getList();
|
|
140
140
|
}), (a, t) => {
|
|
141
|
-
const
|
|
142
|
-
return d(),
|
|
143
|
-
|
|
144
|
-
s(
|
|
141
|
+
const A = r("el-input"), I = r("el-form-item"), b = r("el-col"), F = r("jmash-select"), W = r("el-date-picker"), $ = r("el-button"), R = r("el-row"), x = r("el-form"), G = r("jmash-column-select"), J = r("jmash-table"), X = r("jmash-pagination"), Z = r("el-card"), ee = T("hasPerm"), te = T("loading");
|
|
142
|
+
return d(), k("div", pe, [
|
|
143
|
+
D("div", ce, [
|
|
144
|
+
s(x, {
|
|
145
145
|
ref_key: "queryFormRef",
|
|
146
|
-
ref:
|
|
146
|
+
ref: B,
|
|
147
147
|
model: n.value,
|
|
148
148
|
inline: !0
|
|
149
149
|
}, {
|
|
@@ -152,12 +152,12 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
152
152
|
default: l(() => [
|
|
153
153
|
s(b, { span: 6 }, {
|
|
154
154
|
default: l(() => [
|
|
155
|
-
s(
|
|
155
|
+
s(I, {
|
|
156
156
|
label: a.$t("taskInst.keyword"),
|
|
157
157
|
prop: "keyword"
|
|
158
158
|
}, {
|
|
159
159
|
default: l(() => [
|
|
160
|
-
s(
|
|
160
|
+
s(A, {
|
|
161
161
|
modelValue: n.value.keyword,
|
|
162
162
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.keyword = e),
|
|
163
163
|
placeholder: a.$t("taskInst.keywordRequired"),
|
|
@@ -172,12 +172,12 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
172
172
|
}),
|
|
173
173
|
s(b, { span: 6 }, {
|
|
174
174
|
default: l(() => [
|
|
175
|
-
s(
|
|
175
|
+
s(I, {
|
|
176
176
|
label: a.$t("taskInst.status"),
|
|
177
177
|
prop: "status"
|
|
178
178
|
}, {
|
|
179
179
|
default: l(() => [
|
|
180
|
-
s(
|
|
180
|
+
s(F, {
|
|
181
181
|
modelValue: n.value.status,
|
|
182
182
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.status = e),
|
|
183
183
|
data: o(m).taskStatusEnum.values,
|
|
@@ -193,12 +193,12 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
193
193
|
}),
|
|
194
194
|
s(b, { span: 6 }, {
|
|
195
195
|
default: l(() => [
|
|
196
|
-
s(
|
|
196
|
+
s(I, {
|
|
197
197
|
label: a.$t("taskInst.taskDate"),
|
|
198
198
|
prop: "taskDate"
|
|
199
199
|
}, {
|
|
200
200
|
default: l(() => [
|
|
201
|
-
s(
|
|
201
|
+
s(W, {
|
|
202
202
|
modelValue: n.value.taskDate,
|
|
203
203
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.taskDate = e),
|
|
204
204
|
type: "date",
|
|
@@ -216,14 +216,14 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
216
216
|
}),
|
|
217
217
|
s(b, { span: 6 }, {
|
|
218
218
|
default: l(() => [
|
|
219
|
-
s(
|
|
219
|
+
s(I, { class: "search-btn" }, {
|
|
220
220
|
default: l(() => [
|
|
221
221
|
s($, {
|
|
222
222
|
type: "primary",
|
|
223
223
|
onClick: t[6] || (t[6] = (e) => o(i).handleQuery())
|
|
224
224
|
}, {
|
|
225
225
|
default: l(() => [
|
|
226
|
-
|
|
226
|
+
h(u(a.$t("common.search")), 1)
|
|
227
227
|
]),
|
|
228
228
|
_: 1
|
|
229
229
|
}),
|
|
@@ -231,7 +231,7 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
231
231
|
onClick: t[7] || (t[7] = (e) => o(i).resetQuery())
|
|
232
232
|
}, {
|
|
233
233
|
default: l(() => [
|
|
234
|
-
|
|
234
|
+
h(u(a.$t("common.reset")), 1)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
237
|
})
|
|
@@ -246,10 +246,9 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
246
246
|
})
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
|
-
}, 8, ["model"])
|
|
250
|
-
t[15] || (t[15] = y("div", { class: "clear" }, null, -1))
|
|
249
|
+
}, 8, ["model"])
|
|
251
250
|
]),
|
|
252
|
-
s(
|
|
251
|
+
s(Z, {
|
|
253
252
|
shadow: "never",
|
|
254
253
|
class: "table-container"
|
|
255
254
|
}, {
|
|
@@ -261,9 +260,9 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
261
260
|
class: "container-float"
|
|
262
261
|
}, {
|
|
263
262
|
default: l(() => [
|
|
264
|
-
s(
|
|
263
|
+
s(G, {
|
|
265
264
|
modelValue: o(v),
|
|
266
|
-
"onUpdate:modelValue": t[8] || (t[8] = (e) =>
|
|
265
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => U(v) ? v.value = e : v = e),
|
|
267
266
|
"label-name": "task/task-inst"
|
|
268
267
|
}, null, 8, ["modelValue"])
|
|
269
268
|
]),
|
|
@@ -274,10 +273,10 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
274
273
|
})
|
|
275
274
|
]),
|
|
276
275
|
footer: l(() => [
|
|
277
|
-
o(
|
|
276
|
+
o(y) > 0 ? (d(), g(X, {
|
|
278
277
|
key: 0,
|
|
279
|
-
total: o(
|
|
280
|
-
"onUpdate:total": t[9] || (t[9] = (e) =>
|
|
278
|
+
total: o(y),
|
|
279
|
+
"onUpdate:total": t[9] || (t[9] = (e) => U(y) ? y.value = e : null),
|
|
281
280
|
"current-page": n.value.curPage,
|
|
282
281
|
"onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
|
|
283
282
|
"page-size": n.value.pageSize,
|
|
@@ -286,59 +285,60 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
286
285
|
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
|
287
286
|
]),
|
|
288
287
|
default: l(() => [
|
|
289
|
-
|
|
288
|
+
Y((d(), g(J, {
|
|
290
289
|
ref_key: "multipleTableRef",
|
|
291
|
-
ref:
|
|
290
|
+
ref: q,
|
|
292
291
|
"row-key": "taskInstId",
|
|
293
|
-
|
|
294
|
-
data: o(B),
|
|
292
|
+
data: o(L),
|
|
295
293
|
"table-label": o(v),
|
|
296
|
-
onSelectionChange:
|
|
297
|
-
onSortChange:
|
|
294
|
+
onSelectionChange: Q,
|
|
295
|
+
onSortChange: H
|
|
298
296
|
}, {
|
|
299
297
|
annivCustomerId: l((e) => [
|
|
300
|
-
e.data.row.sort === o(
|
|
298
|
+
e.data.row.sort === o(j).CUSTOMER ? (d(), k("span", ke, u(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (d(), k("span", fe, u(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
|
|
301
299
|
]),
|
|
302
300
|
readStatus: l((e) => [
|
|
303
|
-
|
|
301
|
+
D("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
|
|
304
302
|
]),
|
|
305
303
|
status: l((e) => [
|
|
306
|
-
|
|
304
|
+
D("span", null, u(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
|
|
307
305
|
]),
|
|
308
306
|
percent: l((e) => [
|
|
309
|
-
|
|
307
|
+
D("span", null, u(e.data.row.percent) + "% ", 1)
|
|
310
308
|
]),
|
|
311
309
|
finishDate: l((e) => [
|
|
312
|
-
|
|
310
|
+
h(u(o(z).$moment.formatDate(
|
|
313
311
|
e.data.row.finishDate,
|
|
314
312
|
"YYYY-MM-DD HH:mm:ss"
|
|
315
313
|
)), 1)
|
|
316
314
|
]),
|
|
317
315
|
operation: l((e) => [
|
|
318
|
-
|
|
316
|
+
Y((d(), k("span", {
|
|
319
317
|
class: "el-button-color",
|
|
320
|
-
onClick: (N) =>
|
|
318
|
+
onClick: (N) => K(e.data.row)
|
|
321
319
|
}, [
|
|
322
|
-
|
|
323
|
-
], 8,
|
|
324
|
-
[
|
|
320
|
+
h(u(a.$t("common.view")), 1)
|
|
321
|
+
], 8, ve)), [
|
|
322
|
+
[ee, ["task:task_inst:delete"]]
|
|
325
323
|
]),
|
|
326
|
-
e.data.row.sort === o(
|
|
324
|
+
e.data.row.sort === o(j).CUSTOMER ? (d(), k("span", {
|
|
327
325
|
key: 0,
|
|
328
|
-
class: "el-button-color
|
|
329
|
-
onClick: (N) =>
|
|
330
|
-
}, u(a.$t("taskInst.report")), 9,
|
|
326
|
+
class: "el-button-color",
|
|
327
|
+
onClick: (N) => P(e.data.row)
|
|
328
|
+
}, u(a.$t("taskInst.report")), 9, be)) : (d(), k("span", {
|
|
331
329
|
key: 1,
|
|
332
|
-
class: "el-button-color
|
|
333
|
-
onClick: (N) =>
|
|
334
|
-
}, u(a.$t("taskInst.report")), 9,
|
|
330
|
+
class: "el-button-color",
|
|
331
|
+
onClick: (N) => O(e.data.row)
|
|
332
|
+
}, u(a.$t("taskInst.report")), 9, ye))
|
|
335
333
|
]),
|
|
336
334
|
_: 1
|
|
337
|
-
}, 8, ["
|
|
335
|
+
}, 8, ["data", "table-label"])), [
|
|
336
|
+
[te, o(E)]
|
|
337
|
+
])
|
|
338
338
|
]),
|
|
339
339
|
_: 1
|
|
340
340
|
}),
|
|
341
|
-
p.value.visible ? (d(),
|
|
341
|
+
p.value.visible ? (d(), g(de, {
|
|
342
342
|
key: 0,
|
|
343
343
|
modelValue: p.value.visible,
|
|
344
344
|
"onUpdate:modelValue": t[13] || (t[13] = (e) => p.value.visible = e),
|
|
@@ -347,11 +347,11 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
347
347
|
onRefresh: S,
|
|
348
348
|
width: "600px"
|
|
349
349
|
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
|
|
350
|
-
|
|
350
|
+
c.value.visible ? (d(), g(ie, {
|
|
351
351
|
key: 1,
|
|
352
|
-
modelValue:
|
|
353
|
-
"onUpdate:modelValue": t[14] || (t[14] = (e) =>
|
|
354
|
-
title:
|
|
352
|
+
modelValue: c.value.visible,
|
|
353
|
+
"onUpdate:modelValue": t[14] || (t[14] = (e) => c.value.visible = e),
|
|
354
|
+
title: c.value.title,
|
|
355
355
|
"entity-key": o(_),
|
|
356
356
|
onRefresh: S,
|
|
357
357
|
width: "1000px"
|
|
@@ -361,5 +361,5 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
export {
|
|
364
|
-
|
|
364
|
+
Se as default
|
|
365
365
|
};
|