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.
Files changed (28) hide show
  1. package/dist/{add-B4q1sdG4.mjs → add-DuZI-0rw.mjs} +10 -8
  2. package/dist/add-iEZo5s5C.mjs +4 -0
  3. package/dist/{add-sH-BWgn0.mjs → add.vue_vue_type_script_setup_true_lang-D46pjk8M.mjs} +145 -154
  4. package/dist/assets/7f3e996112b4923f.png +0 -0
  5. package/dist/{edit-CspvN839.mjs → edit-DvKXuCgK.mjs} +125 -135
  6. package/dist/{edit-CaWiv3Bu.mjs → edit-ww2K--dY.mjs} +33 -31
  7. package/dist/el-message-CajLrSgM.mjs +1370 -0
  8. package/dist/{index-BlznoarT.mjs → index-1LxoELHM.mjs} +94 -110
  9. package/dist/{index-DqgxALkk.mjs → index-CoroLg2B.mjs} +81 -81
  10. package/dist/{index-B_hFZVhb-C3Oi__-I.mjs → index-CsfOvnt4-CYkGp1YO.mjs} +736 -687
  11. package/dist/index-DVezr2bg.mjs +9358 -0
  12. package/dist/{index-BRMLJ2ar.mjs → index-DrhTfMmI.mjs} +20 -28
  13. package/dist/{index-BcYrJI8I.mjs → index-rQPWP-HJ.mjs} +1 -1
  14. package/dist/{index-WEwgqoRH.mjs → index-vh8fHlqF.mjs} +106 -118
  15. package/dist/index.mjs +2 -2
  16. package/dist/{index.vue_vue_type_script_setup_true_lang-BbHYN6H_.mjs → index.vue_vue_type_script_setup_true_lang-DVInku0F.mjs} +3 -3
  17. package/dist/info-BqqsNfP6.mjs +2029 -0
  18. package/dist/{report-DgEr-aXp.mjs → report-7UPImd_G.mjs} +26 -24
  19. package/dist/{report-info-CEYtaesO.mjs → report-info-CWhm1nL2.mjs} +4 -2
  20. package/dist/style.css +1 -1
  21. package/dts/src/api/index.d.ts +1 -0
  22. package/dts/src/api/task/task-define/index.d.ts +1 -2
  23. package/dts/src/api/task/task-define/types.d.ts +0 -11
  24. package/dts/src/constant.d.ts +1 -0
  25. package/package.json +10 -9
  26. package/dist/el-message-Bod6C9wB.mjs +0 -1252
  27. package/dist/index-DyMQey8N.mjs +0 -10483
  28. package/dist/info-DQHUz-Xv.mjs +0 -1992
@@ -1,53 +1,45 @@
1
- import { defineComponent as Z, getCurrentInstance as tt, ref as C, onActivated as et, resolveComponent as r, resolveDirective as at, createElementBlock as I, openBlock as p, createElementVNode as c, createVNode as o, withCtx as a, withKeys as h, unref as s, Fragment as st, renderList as lt, createBlock as V, createTextVNode as _, toDisplayString as d, withDirectives as N, createCommentVNode as ot, isRef as E } from "vue";
2
- import { useUserStore as U, clearEmpty as z, request as R, useTableHooks as nt } from "jmash-core";
3
- import { useI18n as rt } from "vue-i18n";
4
- import { D as m, C as L } from "./index-DyMQey8N.mjs";
5
- import { t as ut } from "./index-BRMLJ2ar.mjs";
6
- import { useRouter as dt } from "vue-router";
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(u) {
13
- const k = U().user.tenant;
14
- return z(u), u && (u.hasStatus = u.status !== void 0, u.hasSort = u.sort !== void 0), R({
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: u
16
+ params: r
18
17
  });
19
18
  }
20
19
  // 查询列表信息任务实例
21
- findList(u) {
22
- const k = U().user.tenant;
23
- return z(u), R({
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: u
25
+ params: r
27
26
  });
28
27
  }
29
28
  }
30
- const mt = new it(), pt = { class: "app-container" }, ct = { class: "search-container" }, kt = { key: 0 }, ft = { key: 1 }, vt = ["onClick"], St = /* @__PURE__ */ Z({
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(B) {
33
- const { proxy: u } = tt(), { t: k } = rt();
34
- m.OrgBizDict.useValues(), m.UserExtBizDict.useValues(), m.itemBizLayDict.useValues();
35
- const n = C({}), P = dt(), {
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: K,
39
- listLoading: Q,
40
- tableData: A,
41
- total: w
42
- } = nt(k, mt, n), f = C([]);
43
- function Y(l) {
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: "150",
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 x(l) {
155
- P.push({
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 H(l) {
156
+ function x(l) {
165
157
  i.selectionRows.value = l;
166
158
  }
167
- function O(l) {
159
+ function H(l) {
168
160
  i.handleSort(l.prop, l.order);
169
161
  }
170
- return et(() => {
162
+ return X(() => {
171
163
  i.getList();
172
164
  }), (l, e) => {
173
- const b = r("el-input"), y = r("el-form-item"), g = r("el-col"), F = r("el-option"), M = r("el-select"), T = r("jmash-select"), S = r("el-row"), D = r("el-button"), W = r("el-form"), q = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), X = r("el-card"), $ = at("hasPerm");
174
- return p(), I("div", pt, [
175
- c("div", ct, [
176
- o(W, {
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: K,
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(g, { span: 6 }, {
177
+ o(v, { span: 6 }, {
186
178
  default: a(() => [
187
- o(y, {
179
+ o(b, {
188
180
  label: l.$t("taskInst.keyword"),
189
181
  prop: "keyword"
190
182
  }, {
191
183
  default: a(() => [
192
- o(b, {
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] = h((t) => s(i).handleQuery(), ["enter"])),
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(g, { span: 6 }, {
197
+ o(v, { span: 6 }, {
206
198
  default: a(() => [
207
- o(y, {
199
+ o(b, {
208
200
  label: l.$t("taskDefine.taskSort"),
209
201
  prop: "sort"
210
202
  }, {
211
203
  default: a(() => [
212
- o(M, {
204
+ o(h, {
213
205
  modelValue: n.value.sort,
214
206
  "onUpdate:modelValue": e[2] || (e[2] = (t) => n.value.sort = t),
215
- data: f.value,
207
+ data: s(d).taskSortTypeEnum.values,
216
208
  placeholder: l.$t("taskDefine.taskSort"),
217
- onKeyup: e[3] || (e[3] = h((t) => s(i).handleQuery(), ["enter"])),
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(g, { span: 6 }, {
218
+ o(v, { span: 6 }, {
236
219
  default: a(() => [
237
- o(y, {
220
+ o(b, {
238
221
  label: l.$t("taskInst.readStatus"),
239
222
  prop: "readStatus"
240
223
  }, {
241
224
  default: a(() => [
242
- o(T, {
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(m).readStatusDict.values,
228
+ data: s(d).readStatusDict.values,
246
229
  placeholder: l.$t("taskInst.readStatus"),
247
- onKeyup: e[5] || (e[5] = h((t) => s(i).handleQuery(), ["enter"])),
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(g, { span: 6 }, {
239
+ o(v, { span: 6 }, {
257
240
  default: a(() => [
258
- o(y, {
241
+ o(b, {
259
242
  label: l.$t("taskInst.status"),
260
243
  prop: "status"
261
244
  }, {
262
245
  default: a(() => [
263
- o(T, {
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(m).taskStatusEnum.values,
249
+ data: s(d).taskStatusEnum.values,
267
250
  placeholder: l.$t("taskInst.statusRequired"),
268
- onKeyup: e[7] || (e[7] = h((t) => s(i).handleQuery(), ["enter"])),
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(y, { class: "search-btn" }, {
264
+ o(b, { class: "search-btn" }, {
282
265
  default: a(() => [
283
- o(D, {
266
+ o(_, {
284
267
  type: "primary",
285
268
  onClick: e[8] || (e[8] = (t) => s(i).handleQuery())
286
269
  }, {
287
270
  default: a(() => [
288
- _(d(l.$t("common.search")), 1)
271
+ y(u(l.$t("common.search")), 1)
289
272
  ]),
290
273
  _: 1
291
274
  }),
292
- o(D, {
275
+ o(_, {
293
276
  onClick: e[9] || (e[9] = (t) => s(i).resetQuery())
294
277
  }, {
295
278
  default: a(() => [
296
- _(d(l.$t("common.reset")), 1)
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(X, {
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(g, {
298
+ o(v, {
316
299
  span: 24,
317
300
  class: "container-float"
318
301
  }, {
319
302
  default: a(() => [
320
- N((p(), V(D, {
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
- _(d(l.$t("common.export")), 1)
309
+ y(u(l.$t("common.export")), 1)
327
310
  ]),
328
311
  _: 1
329
312
  })), [
330
- [$, ["task:task:export"]]
313
+ [C, ["task:task:export"]]
331
314
  ]),
332
- o(q, {
333
- modelValue: s(v),
334
- "onUpdate:modelValue": e[11] || (e[11] = (t) => E(v) ? v.value = t : v = 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(w) > 0 ? (p(), V(J, {
328
+ s(g) > 0 ? (p(), V(W, {
346
329
  key: 0,
347
- total: s(w),
348
- "onUpdate:total": e[12] || (e[12] = (t) => E(w) ? w.value = t : null),
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"])) : ot("", !0)
337
+ }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
355
338
  ]),
356
339
  default: a(() => [
357
- o(G, {
340
+ D((p(), V(O, {
358
341
  ref_key: "multipleTableRef",
359
342
  ref: j,
360
343
  "row-key": "taskInstId",
361
- "list-loading": s(Q),
362
- data: s(A),
363
- "table-label": s(v),
364
- onSelectionChange: H,
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(Y(t.data.row.sort)), 1)
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(L).CUSTOMER ? (p(), I("span", kt, d(s(m).OrgBizDict.getValue(t.data.row.annivCustomerId)), 1)) : (p(), I("span", ft, d(s(m).itemBizLayDict.getValue(t.data.row.annivCustomerId)), 1))
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, d(s(m).readStatusDict.getValue(t.data.row.readStatus)), 1)
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, d(s(m).taskStatusEnum.getEnumValue(t.data.row.status)), 1)
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, d(t.data.row.percent) + "% ", 1)
362
+ c("span", null, u(t.data.row.percent) + "% ", 1)
381
363
  ]),
382
364
  finishDate: a((t) => [
383
- _(d(s(u).$moment.formatDate(
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, d(s(m).UserExtBizDict.getValue(t.data.row.userId)), 1)
371
+ c("span", null, u(s(d).UserExtBizDict.getValue(t.data.row.userId)), 1)
390
372
  ]),
391
373
  operation: a((t) => [
392
- N((p(), I("span", {
374
+ D((p(), I("span", {
393
375
  class: "el-button-color",
394
- onClick: (bt) => x(t.data.row)
376
+ onClick: (mt) => Q(t.data.row)
395
377
  }, [
396
- _(d(l.$t("common.view")), 1)
397
- ], 8, vt)), [
398
- [$, ["task:task:delete"]]
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, ["list-loading", "data", "table-label"])
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
- St as default
395
+ vt as default
412
396
  };