sooyie-task 0.0.7 → 0.0.8
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.
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as ee, ref as D, reactive as te, onActivated as ae, resolveComponent as r, resolveDirective as le, createElementBlock as c, openBlock as d, createElementVNode as y, createVNode as s, createBlock as h, createCommentVNode as C, withCtx as l, withKeys as V, unref as o, createTextVNode as g, toDisplayString as u, withDirectives as oe, isRef as T } from "vue";
|
|
2
2
|
import { useTableHooks as se } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
|
-
import { D as m, C as
|
|
5
|
-
import { t as re, a as ue } from "./report-
|
|
4
|
+
import { D as m, C as Y } from "./index-DvawPwK3.mjs";
|
|
5
|
+
import { t as re, a as ue } from "./report-CEnjUOYk.mjs";
|
|
6
6
|
import ie from "./edit-Ci8Uch5Z.mjs";
|
|
7
7
|
import { useRouter as de } from "vue-router";
|
|
8
|
-
const me = { class: "app-container" }, pe = { class: "search-container" }, ke = { key: 0 }, ce = { key: 1 }, fe = ["onClick"], ve = ["onClick"], be = ["onClick"], Ve = /* @__PURE__ */
|
|
8
|
+
const me = { class: "app-container" }, pe = { class: "search-container" }, ke = { key: 0 }, ce = { key: 1 }, fe = ["onClick"], ve = ["onClick"], be = ["onClick"], Ve = /* @__PURE__ */ Z({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(ye) {
|
|
11
|
-
const { proxy:
|
|
11
|
+
const { proxy: U } = ee(), { t: f } = ne(), j = de();
|
|
12
12
|
m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
|
|
13
|
-
const n =
|
|
13
|
+
const n = D({}), {
|
|
14
14
|
tableHooks: i,
|
|
15
|
-
multipleTableRef:
|
|
16
|
-
queryFormRef:
|
|
17
|
-
listLoading:
|
|
18
|
-
tableData:
|
|
19
|
-
total:
|
|
20
|
-
} = se(
|
|
21
|
-
let v =
|
|
15
|
+
multipleTableRef: z,
|
|
16
|
+
queryFormRef: M,
|
|
17
|
+
listLoading: q,
|
|
18
|
+
tableData: B,
|
|
19
|
+
total: I
|
|
20
|
+
} = se(f, re, n);
|
|
21
|
+
let v = D([
|
|
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
|
|
106
|
-
title:
|
|
105
|
+
const p = D({
|
|
106
|
+
title: f("taskInst.report"),
|
|
107
107
|
visible: !1
|
|
108
|
-
}),
|
|
109
|
-
title:
|
|
108
|
+
}), k = D({
|
|
109
|
+
title: f("taskInst.reportNormal"),
|
|
110
110
|
visible: !1
|
|
111
111
|
});
|
|
112
|
-
let _ =
|
|
113
|
-
function
|
|
114
|
-
Object.assign(_, a),
|
|
112
|
+
let _ = te({});
|
|
113
|
+
function E(a) {
|
|
114
|
+
Object.assign(_, a), p.value.title = f("taskInst.report"), p.value.visible = !0;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
Object.assign(_, a),
|
|
116
|
+
function L(a) {
|
|
117
|
+
Object.assign(_, a), k.value.title = f("taskInst.reportNormal"), k.value.visible = !0;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function P(a) {
|
|
120
|
+
j.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 O(a) {
|
|
130
130
|
i.selectionRows.value = a;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function K(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 ae(() => {
|
|
139
139
|
i.getList();
|
|
140
140
|
}), (a, t) => {
|
|
141
|
-
const
|
|
142
|
-
return d(),
|
|
141
|
+
const Q = r("el-input"), w = r("el-form-item"), b = r("el-col"), H = r("jmash-select"), A = r("el-date-picker"), $ = r("el-button"), R = r("el-row"), F = r("el-form"), W = r("jmash-column-select"), x = r("jmash-table"), G = r("jmash-pagination"), J = r("el-card"), X = le("hasPerm");
|
|
142
|
+
return d(), c("div", me, [
|
|
143
143
|
y("div", pe, [
|
|
144
|
-
s(
|
|
144
|
+
s(F, {
|
|
145
145
|
ref_key: "queryFormRef",
|
|
146
|
-
ref:
|
|
146
|
+
ref: M,
|
|
147
147
|
model: n.value,
|
|
148
148
|
inline: !0
|
|
149
149
|
}, {
|
|
@@ -152,16 +152,16 @@ 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(w, {
|
|
156
156
|
label: a.$t("taskInst.keyword"),
|
|
157
157
|
prop: "keyword"
|
|
158
158
|
}, {
|
|
159
159
|
default: l(() => [
|
|
160
|
-
s(
|
|
160
|
+
s(Q, {
|
|
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"),
|
|
164
|
-
onKeyup: t[1] || (t[1] =
|
|
164
|
+
onKeyup: t[1] || (t[1] = V((e) => o(i).handleQuery(), ["enter"])),
|
|
165
165
|
class: "!w-[203px]"
|
|
166
166
|
}, null, 8, ["modelValue", "placeholder"])
|
|
167
167
|
]),
|
|
@@ -172,17 +172,17 @@ 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(w, {
|
|
176
176
|
label: a.$t("taskInst.status"),
|
|
177
177
|
prop: "status"
|
|
178
178
|
}, {
|
|
179
179
|
default: l(() => [
|
|
180
|
-
s(
|
|
180
|
+
s(H, {
|
|
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,
|
|
184
184
|
placeholder: a.$t("taskInst.statusRequired"),
|
|
185
|
-
onKeyup: t[3] || (t[3] =
|
|
185
|
+
onKeyup: t[3] || (t[3] = V((e) => o(i).handleQuery(), ["enter"])),
|
|
186
186
|
class: "!w-[203px]"
|
|
187
187
|
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
188
188
|
]),
|
|
@@ -193,19 +193,19 @@ 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(w, {
|
|
197
197
|
label: a.$t("taskInst.taskDate"),
|
|
198
198
|
prop: "taskDate"
|
|
199
199
|
}, {
|
|
200
200
|
default: l(() => [
|
|
201
|
-
s(
|
|
201
|
+
s(A, {
|
|
202
202
|
modelValue: n.value.taskDate,
|
|
203
203
|
"onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.taskDate = e),
|
|
204
204
|
type: "date",
|
|
205
205
|
placeholder: a.$t("taskInst.taskDateRequired"),
|
|
206
206
|
format: "YYYY-MM-DD",
|
|
207
207
|
"value-format": "YYYY-MM-DD",
|
|
208
|
-
onKeyup: t[5] || (t[5] =
|
|
208
|
+
onKeyup: t[5] || (t[5] = V((e) => o(i).handleQuery(), ["enter"])),
|
|
209
209
|
class: "w-full"
|
|
210
210
|
}, null, 8, ["modelValue", "placeholder"])
|
|
211
211
|
]),
|
|
@@ -216,22 +216,22 @@ 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(w, { class: "search-btn" }, {
|
|
220
220
|
default: l(() => [
|
|
221
|
-
s(
|
|
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
|
+
g(u(a.$t("common.search")), 1)
|
|
227
227
|
]),
|
|
228
228
|
_: 1
|
|
229
229
|
}),
|
|
230
|
-
s(
|
|
230
|
+
s($, {
|
|
231
231
|
onClick: t[7] || (t[7] = (e) => o(i).resetQuery())
|
|
232
232
|
}, {
|
|
233
233
|
default: l(() => [
|
|
234
|
-
|
|
234
|
+
g(u(a.$t("common.reset")), 1)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
237
|
})
|
|
@@ -247,9 +247,9 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
247
247
|
]),
|
|
248
248
|
_: 1
|
|
249
249
|
}, 8, ["model"]),
|
|
250
|
-
t[
|
|
250
|
+
t[15] || (t[15] = y("div", { class: "clear" }, null, -1))
|
|
251
251
|
]),
|
|
252
|
-
s(
|
|
252
|
+
s(J, {
|
|
253
253
|
shadow: "never",
|
|
254
254
|
class: "table-container"
|
|
255
255
|
}, {
|
|
@@ -261,21 +261,9 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
261
261
|
class: "container-float"
|
|
262
262
|
}, {
|
|
263
263
|
default: l(() => [
|
|
264
|
-
|
|
265
|
-
plain: "",
|
|
266
|
-
type: "primary",
|
|
267
|
-
onClick: t[8] || (t[8] = (e) => o(i).handleExport(o(p)("task.taskInst.name")))
|
|
268
|
-
}, {
|
|
269
|
-
default: l(() => [
|
|
270
|
-
I(u(a.$t("common.export")), 1)
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
})), [
|
|
274
|
-
[N, ["task:task_inst:export"]]
|
|
275
|
-
]),
|
|
276
|
-
s(G, {
|
|
264
|
+
s(W, {
|
|
277
265
|
modelValue: o(v),
|
|
278
|
-
"onUpdate:modelValue": t[
|
|
266
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => T(v) ? v.value = e : v = e),
|
|
279
267
|
"label-name": "task/task-inst"
|
|
280
268
|
}, null, 8, ["modelValue"])
|
|
281
269
|
]),
|
|
@@ -286,30 +274,30 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
286
274
|
})
|
|
287
275
|
]),
|
|
288
276
|
footer: l(() => [
|
|
289
|
-
o(
|
|
277
|
+
o(I) > 0 ? (d(), h(G, {
|
|
290
278
|
key: 0,
|
|
291
|
-
total: o(
|
|
292
|
-
"onUpdate:total": t[
|
|
279
|
+
total: o(I),
|
|
280
|
+
"onUpdate:total": t[9] || (t[9] = (e) => T(I) ? I.value = e : null),
|
|
293
281
|
"current-page": n.value.curPage,
|
|
294
|
-
"onUpdate:currentPage": t[
|
|
282
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
|
|
295
283
|
"page-size": n.value.pageSize,
|
|
296
|
-
"onUpdate:pageSize": t[
|
|
297
|
-
onPagination: t[
|
|
298
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
284
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => n.value.pageSize = e),
|
|
285
|
+
onPagination: t[12] || (t[12] = (e) => o(i).getList())
|
|
286
|
+
}, null, 8, ["total", "current-page", "page-size"])) : C("", !0)
|
|
299
287
|
]),
|
|
300
288
|
default: l(() => [
|
|
301
|
-
s(
|
|
289
|
+
s(x, {
|
|
302
290
|
ref_key: "multipleTableRef",
|
|
303
|
-
ref:
|
|
291
|
+
ref: z,
|
|
304
292
|
"row-key": "taskInstId",
|
|
305
|
-
"list-loading": o(
|
|
306
|
-
data: o(
|
|
293
|
+
"list-loading": o(q),
|
|
294
|
+
data: o(B),
|
|
307
295
|
"table-label": o(v),
|
|
308
|
-
onSelectionChange:
|
|
309
|
-
onSortChange:
|
|
296
|
+
onSelectionChange: O,
|
|
297
|
+
onSortChange: K
|
|
310
298
|
}, {
|
|
311
299
|
annivCustomerId: l((e) => [
|
|
312
|
-
e.data.row.sort === o(
|
|
300
|
+
e.data.row.sort === o(Y).CUSTOMER ? (d(), c("span", ke, u(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (d(), c("span", ce, u(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
|
|
313
301
|
]),
|
|
314
302
|
readStatus: l((e) => [
|
|
315
303
|
y("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
|
|
@@ -321,28 +309,28 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
321
309
|
y("span", null, u(e.data.row.percent) + "% ", 1)
|
|
322
310
|
]),
|
|
323
311
|
finishDate: l((e) => [
|
|
324
|
-
|
|
312
|
+
g(u(o(U).$moment.formatDate(
|
|
325
313
|
e.data.row.finishDate,
|
|
326
314
|
"YYYY-MM-DD HH:mm:ss"
|
|
327
315
|
)), 1)
|
|
328
316
|
]),
|
|
329
317
|
operation: l((e) => [
|
|
330
|
-
|
|
318
|
+
oe((d(), c("span", {
|
|
331
319
|
class: "el-button-color",
|
|
332
|
-
onClick: (
|
|
320
|
+
onClick: (N) => P(e.data.row)
|
|
333
321
|
}, [
|
|
334
|
-
|
|
322
|
+
g(u(a.$t("common.view")), 1)
|
|
335
323
|
], 8, fe)), [
|
|
336
|
-
[
|
|
324
|
+
[X, ["task:task_inst:delete"]]
|
|
337
325
|
]),
|
|
338
|
-
e.data.row.sort === o(
|
|
326
|
+
e.data.row.sort === o(Y).CUSTOMER ? (d(), c("span", {
|
|
339
327
|
key: 0,
|
|
340
328
|
class: "el-button-color dropdown-left",
|
|
341
|
-
onClick: (
|
|
342
|
-
}, u(a.$t("taskInst.report")), 9, ve)) : (d(),
|
|
329
|
+
onClick: (N) => E(e.data.row)
|
|
330
|
+
}, u(a.$t("taskInst.report")), 9, ve)) : (d(), c("span", {
|
|
343
331
|
key: 1,
|
|
344
332
|
class: "el-button-color dropdown-left",
|
|
345
|
-
onClick: (
|
|
333
|
+
onClick: (N) => L(e.data.row)
|
|
346
334
|
}, u(a.$t("taskInst.report")), 9, be))
|
|
347
335
|
]),
|
|
348
336
|
_: 1
|
|
@@ -350,24 +338,24 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ke =
|
|
|
350
338
|
]),
|
|
351
339
|
_: 1
|
|
352
340
|
}),
|
|
353
|
-
|
|
341
|
+
p.value.visible ? (d(), h(ie, {
|
|
354
342
|
key: 0,
|
|
355
|
-
modelValue:
|
|
356
|
-
"onUpdate:modelValue": t[
|
|
357
|
-
title:
|
|
343
|
+
modelValue: p.value.visible,
|
|
344
|
+
"onUpdate:modelValue": t[13] || (t[13] = (e) => p.value.visible = e),
|
|
345
|
+
title: p.value.title,
|
|
358
346
|
"entity-key": o(_),
|
|
359
347
|
onRefresh: S,
|
|
360
348
|
width: "600px"
|
|
361
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
362
|
-
|
|
349
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
|
|
350
|
+
k.value.visible ? (d(), h(ue, {
|
|
363
351
|
key: 1,
|
|
364
|
-
modelValue:
|
|
365
|
-
"onUpdate:modelValue": t[
|
|
366
|
-
title:
|
|
352
|
+
modelValue: k.value.visible,
|
|
353
|
+
"onUpdate:modelValue": t[14] || (t[14] = (e) => k.value.visible = e),
|
|
354
|
+
title: k.value.title,
|
|
367
355
|
"entity-key": o(_),
|
|
368
356
|
onRefresh: S,
|
|
369
357
|
width: "1000px"
|
|
370
|
-
}, null, 8, ["modelValue", "title", "entity-key"])) :
|
|
358
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0)
|
|
371
359
|
]);
|
|
372
360
|
};
|
|
373
361
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -213,7 +213,7 @@ function bs(e) {
|
|
|
213
213
|
let s = e.global.getLocaleMessage("en");
|
|
214
214
|
s = pt(s, Os), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
|
|
215
215
|
}
|
|
216
|
-
const Is = () => import("./edit-DR6TsOR1.mjs"), xs = () => import("./info-
|
|
216
|
+
const Is = () => import("./edit-DR6TsOR1.mjs"), xs = () => import("./info-CMCBPoFL.mjs"), Ns = [
|
|
217
217
|
{
|
|
218
218
|
path: "/task",
|
|
219
219
|
component: Ms,
|
|
@@ -2827,7 +2827,7 @@ const Pi = {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
};
|
|
2829
2829
|
}
|
|
2830
|
-
}, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-7_dK5ok_.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DIHsBjkh.mjs"), "./views/task/task-define/add.vue": () => import("./add-BaHTXQnK.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-DR6TsOR1.mjs"), "./views/task/task-define/index.vue": () => import("./index-DnYkwumi.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-Ci8Uch5Z.mjs"), "./views/task/task-inst/index.vue": () => import("./index-
|
|
2830
|
+
}, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-7_dK5ok_.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DIHsBjkh.mjs"), "./views/task/task-define/add.vue": () => import("./add-BaHTXQnK.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-DR6TsOR1.mjs"), "./views/task/task-define/index.vue": () => import("./index-DnYkwumi.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-Ci8Uch5Z.mjs"), "./views/task/task-inst/index.vue": () => import("./index-D75JtZHf.mjs"), "./views/task/task-inst/info.vue": () => import("./info-CMCBPoFL.mjs"), "./views/task/task-inst/report-info.vue": () => import("./report-info-B0NXFFzR.mjs").then((e) => e.r), "./views/task/task-inst/report.vue": () => import("./report-CEnjUOYk.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-Cb72ljTZ.mjs") }), Ci = {
|
|
2831
2831
|
install(e) {
|
|
2832
2832
|
vs(Wi, 7), bs(Ys), ps(Ns), e.use(Pi);
|
|
2833
2833
|
}
|