sooyie-task 0.0.2 → 0.0.4

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,64 +1,35 @@
1
- import { defineComponent as ee, getCurrentInstance as te, ref as V, onActivated as ae, resolveComponent as r, resolveDirective as oe, createElementBlock as y, openBlock as p, createElementVNode as c, createVNode as l, withCtx as a, withKeys as _, unref as o, Fragment as se, renderList as le, createBlock as T, createTextVNode as I, toDisplayString as i, withDirectives as E, createCommentVNode as ne, isRef as N } from "vue";
2
- import { RedirectPage as re, Layout as D, LoginPage as ue, ProfilePage as ie, DashboardPage as de, Error401Page as me, Error404Page as pe, routerRef as ce, useUserStore as R, clearEmpty as L, request as U, useTableHooks as ke } from "jmash-core";
3
- import { useI18n as fe } from "vue-i18n";
1
+ import { defineComponent as Z, getCurrentInstance as ee, ref as C, onActivated as te, resolveComponent as r, resolveDirective as ae, createElementBlock as y, openBlock as p, createElementVNode as c, createVNode as l, withCtx as a, withKeys as _, unref as o, Fragment as oe, renderList as se, createBlock as V, createTextVNode as I, toDisplayString as d, withDirectives as N, createCommentVNode as le, isRef as E } from "vue";
2
+ import { RedirectPage as ne, Layout as T, LoginPage as re, ProfilePage as ue, DashboardPage as de, Error401Page as ie, Error404Page as me, useUserStore as R, clearEmpty as L, request as U, useTableHooks as pe } from "jmash-core";
3
+ import { useI18n as ce } from "vue-i18n";
4
4
  import { D as m, C as z } from "./index-DvawPwK3.mjs";
5
- import { createRouter as he, createWebHistory as be } from "vue-router";
6
- import { t as ve } from "./index-CEvxhWYT.mjs";
7
- const ge = () => import("./edit-CRQkMd15.mjs"), ye = () => import("./info-Dls9Zhvf.mjs"), Ie = [
8
- {
9
- path: "/task",
10
- component: D,
11
- name: "task",
12
- meta: {
13
- hidden: !0
14
- },
15
- children: [
16
- {
17
- path: "/task/task-define/edit",
18
- component: ge,
19
- name: "taskEdit",
20
- meta: {
21
- hidden: !1,
22
- title: "编辑"
23
- }
24
- },
25
- {
26
- path: "/task/task-inst/info",
27
- component: ye,
28
- name: "taskDetail",
29
- meta: {
30
- hidden: !1,
31
- title: "任务详情"
32
- }
33
- }
34
- ]
35
- }
36
- ], we = [
5
+ import { createRouter as fe, createWebHistory as ke } from "vue-router";
6
+ import { t as he } from "./index-CEvxhWYT.mjs";
7
+ const be = [
37
8
  {
38
9
  path: "/redirect",
39
- component: D,
10
+ component: T,
40
11
  meta: { hidden: !0 },
41
12
  children: [
42
13
  {
43
14
  path: "/redirect/:path(.*)",
44
- component: re
15
+ component: ne
45
16
  }
46
17
  ]
47
18
  },
48
19
  {
49
20
  path: "/login",
50
- component: ue,
21
+ component: re,
51
22
  meta: { hidden: !0 }
52
23
  },
53
24
  {
54
25
  path: "/my",
55
- component: D,
26
+ component: T,
56
27
  meta: { hidden: !0 },
57
28
  redirect: "noredirect",
58
29
  children: [
59
30
  {
60
31
  path: "profile",
61
- component: ie,
32
+ component: ue,
62
33
  name: "Profile",
63
34
  meta: { title: "个人中心", icon: "user" }
64
35
  }
@@ -67,7 +38,7 @@ const ge = () => import("./edit-CRQkMd15.mjs"), ye = () => import("./info-Dls9Zh
67
38
  {
68
39
  path: "/",
69
40
  name: "/",
70
- component: D,
41
+ component: T,
71
42
  redirect: "/dashboard",
72
43
  children: [
73
44
  {
@@ -86,68 +57,66 @@ const ge = () => import("./edit-CRQkMd15.mjs"), ye = () => import("./info-Dls9Zh
86
57
  },
87
58
  {
88
59
  path: "401",
89
- component: me,
60
+ component: ie,
90
61
  meta: { hidden: !0 }
91
62
  },
92
63
  {
93
64
  path: "404",
94
- component: pe,
65
+ component: me,
95
66
  meta: { hidden: !0 }
96
67
  }
97
68
  ]
98
- },
99
- ...Ie
100
- ], B = he({
101
- history: be(void 0),
102
- routes: we,
69
+ }
70
+ ], ve = fe({
71
+ history: ke(void 0),
72
+ routes: be,
103
73
  // 刷新时,滚动条位置还原
104
74
  scrollBehavior: () => ({ left: 0, top: 0 })
105
75
  });
106
- ce.value = B;
107
- class _e {
76
+ class ge {
108
77
  getKey() {
109
78
  return {};
110
79
  }
111
80
  // 查询翻页信息任务实例
112
81
  findPage(u) {
113
- const k = R().user.tenant;
82
+ const f = R().user.tenant;
114
83
  return L(u), u && (u.hasStatus = u.status !== void 0, u.hasSort = u.sort !== void 0), U({
115
- url: "/v1/front/task/sooyie/task/page/" + k,
84
+ url: "/v1/front/task/sooyie/task/page/" + f,
116
85
  method: "get",
117
86
  params: u
118
87
  });
119
88
  }
120
89
  // 查询列表信息任务实例
121
90
  findList(u) {
122
- const k = R().user.tenant;
91
+ const f = R().user.tenant;
123
92
  return L(u), U({
124
- url: "/v1/front/task/sooyie/task/list/" + k,
93
+ url: "/v1/front/task/sooyie/task/list/" + f,
125
94
  method: "get",
126
95
  params: u
127
96
  });
128
97
  }
129
98
  }
130
- const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-container" }, Ve = { key: 0 }, Te = { key: 1 }, $e = ["onClick"], Be = /* @__PURE__ */ ee({
99
+ const ye = new ge(), Ie = { class: "app-container" }, we = { class: "search-container" }, _e = { key: 0 }, Se = { key: 1 }, De = ["onClick"], Re = /* @__PURE__ */ Z({
131
100
  __name: "index",
132
- setup(j) {
133
- const { proxy: u } = te(), { t: k } = fe();
101
+ setup(B) {
102
+ const { proxy: u } = ee(), { t: f } = ce();
134
103
  m.OrgBizDict.useValues(), m.UserExtBizDict.useValues(), m.itemBizLayDict.useValues();
135
- const n = V({}), {
136
- tableHooks: d,
137
- multipleTableRef: K,
138
- queryFormRef: A,
139
- listLoading: Q,
140
- tableData: x,
104
+ const n = C({}), {
105
+ tableHooks: i,
106
+ multipleTableRef: j,
107
+ queryFormRef: K,
108
+ listLoading: A,
109
+ tableData: Q,
141
110
  total: w
142
- } = ke(k, De, n), f = V([]);
143
- function H(s) {
144
- f.value.length === 0 && ve.getEnum({ className: z.TASKSORT_TYPE, type: 1 }).then((b) => {
145
- f.value = b.data.values;
111
+ } = pe(f, ye, n), k = C([]);
112
+ function x(s) {
113
+ k.value.length === 0 && he.getEnum({ className: z.TASKSORT_TYPE, type: 1 }).then((b) => {
114
+ k.value = b.data.values;
146
115
  });
147
- const t = f.value.find((b) => b.key === s);
116
+ const t = k.value.find((b) => b.key === s);
148
117
  return t ? t.value : "";
149
118
  }
150
- let h = V([
119
+ let h = C([
151
120
  // 任务主题
152
121
  {
153
122
  label: "taskInst.taskName",
@@ -251,8 +220,8 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
251
220
  isColumn: !0
252
221
  }
253
222
  ]);
254
- function Y(s) {
255
- B.push({
223
+ function H(s) {
224
+ ve.push({
256
225
  path: "/task/task-inst/info",
257
226
  query: {
258
227
  taskInstId: s.taskInstId,
@@ -261,21 +230,21 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
261
230
  }
262
231
  });
263
232
  }
264
- function O(s) {
265
- d.selectionRows.value = s;
233
+ function Y(s) {
234
+ i.selectionRows.value = s;
266
235
  }
267
- function W(s) {
268
- d.handleSort(s.prop, s.order);
236
+ function O(s) {
237
+ i.handleSort(s.prop, s.order);
269
238
  }
270
- return ae(() => {
271
- d.getList();
239
+ return te(() => {
240
+ i.getList();
272
241
  }), (s, t) => {
273
- const b = r("el-input"), v = r("el-form-item"), g = r("el-col"), F = r("el-option"), M = r("el-select"), $ = r("jmash-select"), S = r("el-row"), C = r("el-button"), q = r("el-form"), G = r("jmash-column-select"), J = r("jmash-table"), X = r("jmash-pagination"), Z = r("el-card"), P = oe("hasPerm");
274
- return p(), y("div", Se, [
275
- c("div", Ce, [
276
- l(q, {
242
+ const b = r("el-input"), v = r("el-form-item"), g = r("el-col"), W = r("el-option"), F = r("el-select"), $ = r("jmash-select"), S = r("el-row"), D = r("el-button"), M = r("el-form"), q = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), X = r("el-card"), P = ae("hasPerm");
243
+ return p(), y("div", Ie, [
244
+ c("div", we, [
245
+ l(M, {
277
246
  ref_key: "queryFormRef",
278
- ref: A,
247
+ ref: K,
279
248
  model: n.value,
280
249
  inline: !0
281
250
  }, {
@@ -293,7 +262,7 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
293
262
  modelValue: n.value.keyword,
294
263
  "onUpdate:modelValue": t[0] || (t[0] = (e) => n.value.keyword = e),
295
264
  placeholder: s.$t("taskInst.keywordRequired"),
296
- onKeyup: t[1] || (t[1] = _((e) => o(d).handleQuery(), ["enter"])),
265
+ onKeyup: t[1] || (t[1] = _((e) => o(i).handleQuery(), ["enter"])),
297
266
  class: "!w-[203px]"
298
267
  }, null, 8, ["modelValue", "placeholder"])
299
268
  ]),
@@ -309,16 +278,16 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
309
278
  prop: "sort"
310
279
  }, {
311
280
  default: a(() => [
312
- l(M, {
281
+ l(F, {
313
282
  modelValue: n.value.sort,
314
283
  "onUpdate:modelValue": t[2] || (t[2] = (e) => n.value.sort = e),
315
- data: f.value,
284
+ data: k.value,
316
285
  placeholder: s.$t("taskDefine.taskSort"),
317
- onKeyup: t[3] || (t[3] = _((e) => o(d).handleQuery(), ["enter"])),
286
+ onKeyup: t[3] || (t[3] = _((e) => o(i).handleQuery(), ["enter"])),
318
287
  class: "!w-[203px]"
319
288
  }, {
320
289
  default: a(() => [
321
- (p(!0), y(se, null, le(f.value, (e) => (p(), T(F, {
290
+ (p(!0), y(oe, null, se(k.value, (e) => (p(), V(W, {
322
291
  key: e.key,
323
292
  label: e.value,
324
293
  value: e.key
@@ -344,7 +313,7 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
344
313
  "onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.readStatus = e),
345
314
  data: o(m).readStatusDict.values,
346
315
  placeholder: s.$t("taskInst.readStatus"),
347
- onKeyup: t[5] || (t[5] = _((e) => o(d).handleQuery(), ["enter"])),
316
+ onKeyup: t[5] || (t[5] = _((e) => o(i).handleQuery(), ["enter"])),
348
317
  class: "!w-[203px]"
349
318
  }, null, 8, ["modelValue", "data", "placeholder"])
350
319
  ]),
@@ -365,7 +334,7 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
365
334
  "onUpdate:modelValue": t[6] || (t[6] = (e) => n.value.status = e),
366
335
  data: o(m).taskStatusEnum.values,
367
336
  placeholder: s.$t("taskInst.statusRequired"),
368
- onKeyup: t[7] || (t[7] = _((e) => o(d).handleQuery(), ["enter"])),
337
+ onKeyup: t[7] || (t[7] = _((e) => o(i).handleQuery(), ["enter"])),
369
338
  class: "!w-[203px]"
370
339
  }, null, 8, ["modelValue", "data", "placeholder"])
371
340
  ]),
@@ -380,20 +349,20 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
380
349
  l(S),
381
350
  l(v, { class: "search-btn" }, {
382
351
  default: a(() => [
383
- l(C, {
352
+ l(D, {
384
353
  type: "primary",
385
- onClick: t[8] || (t[8] = (e) => o(d).handleQuery())
354
+ onClick: t[8] || (t[8] = (e) => o(i).handleQuery())
386
355
  }, {
387
356
  default: a(() => [
388
- I(i(s.$t("common.search")), 1)
357
+ I(d(s.$t("common.search")), 1)
389
358
  ]),
390
359
  _: 1
391
360
  }),
392
- l(C, {
393
- onClick: t[9] || (t[9] = (e) => o(d).resetQuery())
361
+ l(D, {
362
+ onClick: t[9] || (t[9] = (e) => o(i).resetQuery())
394
363
  }, {
395
364
  default: a(() => [
396
- I(i(s.$t("common.reset")), 1)
365
+ I(d(s.$t("common.reset")), 1)
397
366
  ]),
398
367
  _: 1
399
368
  })
@@ -405,7 +374,7 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
405
374
  }, 8, ["model"]),
406
375
  t[16] || (t[16] = c("div", { class: "clear" }, null, -1))
407
376
  ]),
408
- l(Z, {
377
+ l(X, {
409
378
  shadow: "never",
410
379
  class: "table-container"
411
380
  }, {
@@ -417,21 +386,21 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
417
386
  class: "container-float"
418
387
  }, {
419
388
  default: a(() => [
420
- E((p(), T(C, {
389
+ N((p(), V(D, {
421
390
  plain: "",
422
391
  type: "primary",
423
- onClick: t[10] || (t[10] = (e) => o(d).handleExport(o(k)("task.taskInst.name")))
392
+ onClick: t[10] || (t[10] = (e) => o(i).handleExport(o(f)("task.taskInst.name")))
424
393
  }, {
425
394
  default: a(() => [
426
- I(i(s.$t("common.export")), 1)
395
+ I(d(s.$t("common.export")), 1)
427
396
  ]),
428
397
  _: 1
429
398
  })), [
430
399
  [P, ["task:task:export"]]
431
400
  ]),
432
- l(G, {
401
+ l(q, {
433
402
  modelValue: o(h),
434
- "onUpdate:modelValue": t[11] || (t[11] = (e) => N(h) ? h.value = e : h = e),
403
+ "onUpdate:modelValue": t[11] || (t[11] = (e) => E(h) ? h.value = e : h = e),
435
404
  "label-name": "task/task"
436
405
  }, null, 8, ["modelValue"])
437
406
  ]),
@@ -442,59 +411,59 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
442
411
  })
443
412
  ]),
444
413
  footer: a(() => [
445
- o(w) > 0 ? (p(), T(X, {
414
+ o(w) > 0 ? (p(), V(J, {
446
415
  key: 0,
447
416
  total: o(w),
448
- "onUpdate:total": t[12] || (t[12] = (e) => N(w) ? w.value = e : null),
417
+ "onUpdate:total": t[12] || (t[12] = (e) => E(w) ? w.value = e : null),
449
418
  "current-page": n.value.curPage,
450
419
  "onUpdate:currentPage": t[13] || (t[13] = (e) => n.value.curPage = e),
451
420
  "page-size": n.value.pageSize,
452
421
  "onUpdate:pageSize": t[14] || (t[14] = (e) => n.value.pageSize = e),
453
- onPagination: t[15] || (t[15] = (e) => o(d).getList())
454
- }, null, 8, ["total", "current-page", "page-size"])) : ne("", !0)
422
+ onPagination: t[15] || (t[15] = (e) => o(i).getList())
423
+ }, null, 8, ["total", "current-page", "page-size"])) : le("", !0)
455
424
  ]),
456
425
  default: a(() => [
457
- l(J, {
426
+ l(G, {
458
427
  ref_key: "multipleTableRef",
459
- ref: K,
428
+ ref: j,
460
429
  "row-key": "taskInstId",
461
- "list-loading": o(Q),
462
- data: o(x),
430
+ "list-loading": o(A),
431
+ data: o(Q),
463
432
  "table-label": o(h),
464
- onSelectionChange: O,
465
- onSortChange: W
433
+ onSelectionChange: Y,
434
+ onSortChange: O
466
435
  }, {
467
436
  sort: a((e) => [
468
- c("span", null, i(H(e.data.row.sort)), 1)
437
+ c("span", null, d(x(e.data.row.sort)), 1)
469
438
  ]),
470
439
  customerTagId: a((e) => [
471
- e.data.row.sort === o(z).CUSTOMER ? (p(), y("span", Ve, i(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (p(), y("span", Te, i(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
440
+ e.data.row.sort === o(z).CUSTOMER ? (p(), y("span", _e, d(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (p(), y("span", Se, d(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
472
441
  ]),
473
442
  readStatus: a((e) => [
474
- c("span", null, i(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
443
+ c("span", null, d(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
475
444
  ]),
476
445
  status: a((e) => [
477
- c("span", null, i(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
446
+ c("span", null, d(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
478
447
  ]),
479
448
  percent: a((e) => [
480
- c("span", null, i(e.data.row.percent) + "% ", 1)
449
+ c("span", null, d(e.data.row.percent) + "% ", 1)
481
450
  ]),
482
451
  finishDate: a((e) => [
483
- I(i(o(u).$moment.formatDate(
452
+ I(d(o(u).$moment.formatDate(
484
453
  e.data.row.finishDate,
485
454
  "YYYY-MM-DD HH:mm:ss"
486
455
  )), 1)
487
456
  ]),
488
457
  userId: a((e) => [
489
- c("span", null, i(o(m).UserExtBizDict.getValue(e.data.row.userId)), 1)
458
+ c("span", null, d(o(m).UserExtBizDict.getValue(e.data.row.userId)), 1)
490
459
  ]),
491
460
  operation: a((e) => [
492
- E((p(), y("span", {
461
+ N((p(), y("span", {
493
462
  class: "el-button-color",
494
- onClick: (Pe) => Y(e.data.row)
463
+ onClick: (Ce) => H(e.data.row)
495
464
  }, [
496
- I(i(s.$t("common.view")), 1)
497
- ], 8, $e)), [
465
+ I(d(s.$t("common.view")), 1)
466
+ ], 8, De)), [
498
467
  [P, ["task:task:delete"]]
499
468
  ])
500
469
  ]),
@@ -508,5 +477,5 @@ const De = new _e(), Se = { class: "app-container" }, Ce = { class: "search-cont
508
477
  }
509
478
  });
510
479
  export {
511
- Be as default
480
+ Re as default
512
481
  };