sooyie-task 0.0.13 → 0.0.14

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,44 +1,44 @@
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-kbwxFttn.mjs";
5
- import { useRouter as st } from "vue-router";
6
- class ot {
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as $, onActivated as tt, resolveComponent as r, resolveDirective as T, createElementBlock as I, openBlock as p, createElementVNode as c, createVNode as s, withCtx as a, withKeys as w, unref as o, createTextVNode as y, toDisplayString as d, withDirectives as V, createBlock as D, createCommentVNode as et, isRef as N } from "vue";
2
+ import { useUserStore as E, clearEmpty as U, request as z, useTableHooks as at } from "jmash-core";
3
+ import { useI18n as ot } from "vue-i18n";
4
+ import { D as i, C as st } from "./index-kbwxFttn.mjs";
5
+ import { useRouter as lt } from "vue-router";
6
+ class nt {
7
7
  getKey() {
8
8
  return {};
9
9
  }
10
10
  // 查询翻页信息任务实例
11
- findPage(r) {
11
+ findPage(u) {
12
12
  const k = E().user.tenant;
13
- return U(r), r && (r.hasStatus = r.status !== void 0, r.hasSort = r.sort !== void 0), z({
13
+ return U(u), u && (u.hasStatus = u.status !== void 0, u.hasSort = u.sort !== void 0), z({
14
14
  url: "/v1/front/task/sooyie/task/page/" + k,
15
15
  method: "get",
16
- params: r
16
+ params: u
17
17
  });
18
18
  }
19
19
  // 查询列表信息任务实例
20
- findList(r) {
20
+ findList(u) {
21
21
  const k = E().user.tenant;
22
- return U(r), z({
22
+ return U(u), z({
23
23
  url: "/v1/front/task/sooyie/task/list/" + k,
24
24
  method: "get",
25
- params: r
25
+ params: u
26
26
  });
27
27
  }
28
28
  }
29
- const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-container" }, ut = { key: 0 }, dt = { key: 1 }, it = ["onClick"], vt = /* @__PURE__ */ G({
29
+ const rt = new nt(), ut = { class: "app-container" }, dt = { class: "search-container" }, it = { key: 0 }, mt = { key: 1 }, pt = ["onClick"], gt = /* @__PURE__ */ X({
30
30
  __name: "index",
31
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(), {
35
- tableHooks: i,
32
+ const { proxy: u } = Z(), { t: k } = ot();
33
+ i.OrgBizDict.useValues(), i.UserExtBizDict.useValues(), i.itemBizLayDict.useValues();
34
+ const n = $({}), B = lt(), {
35
+ tableHooks: m,
36
36
  multipleTableRef: j,
37
37
  queryFormRef: P,
38
38
  listLoading: L,
39
39
  tableData: K,
40
40
  total: g
41
- } = tt(k, lt, n);
41
+ } = at(k, rt, n);
42
42
  let f = $([
43
43
  // 任务主题
44
44
  {
@@ -136,7 +136,7 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
136
136
  },
137
137
  {
138
138
  label: "common.operate",
139
- width: "60",
139
+ width: "90",
140
140
  slotName: "operation",
141
141
  columnType: "slot",
142
142
  fixed: "right",
@@ -154,38 +154,38 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
154
154
  });
155
155
  }
156
156
  function x(l) {
157
- i.selectionRows.value = l;
157
+ m.selectionRows.value = l;
158
158
  }
159
159
  function H(l) {
160
- i.handleSort(l.prop, l.order);
160
+ m.handleSort(l.prop, l.order);
161
161
  }
162
- return X(() => {
163
- i.getList();
162
+ return tt(() => {
163
+ m.getList();
164
164
  }), (l, e) => {
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, {
165
+ const Y = r("el-input"), b = r("el-form-item"), v = r("el-col"), _ = r("jmash-select"), h = r("el-row"), S = r("el-button"), A = r("el-form"), M = r("jmash-column-select"), O = r("View"), W = r("el-icon"), F = r("jmash-table"), q = r("jmash-pagination"), G = r("el-card"), C = T("hasPerm"), J = T("loading");
166
+ return p(), I("div", ut, [
167
+ c("div", dt, [
168
+ s(A, {
169
169
  ref_key: "queryFormRef",
170
170
  ref: P,
171
171
  model: n.value,
172
172
  inline: !0
173
173
  }, {
174
174
  default: a(() => [
175
- o(S, null, {
175
+ s(h, null, {
176
176
  default: a(() => [
177
- o(v, { span: 6 }, {
177
+ s(v, { span: 6 }, {
178
178
  default: a(() => [
179
- o(b, {
179
+ s(b, {
180
180
  label: l.$t("taskInst.keyword"),
181
181
  prop: "keyword"
182
182
  }, {
183
183
  default: a(() => [
184
- o(Y, {
184
+ s(Y, {
185
185
  modelValue: n.value.keyword,
186
186
  "onUpdate:modelValue": e[0] || (e[0] = (t) => n.value.keyword = t),
187
187
  placeholder: l.$t("taskInst.keywordRequired"),
188
- onKeyup: e[1] || (e[1] = w((t) => s(i).handleQuery(), ["enter"])),
188
+ onKeyup: e[1] || (e[1] = w((t) => o(m).handleQuery(), ["enter"])),
189
189
  class: "!w-[203px]"
190
190
  }, null, 8, ["modelValue", "placeholder"])
191
191
  ]),
@@ -194,19 +194,19 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
194
194
  ]),
195
195
  _: 1
196
196
  }),
197
- o(v, { span: 6 }, {
197
+ s(v, { span: 6 }, {
198
198
  default: a(() => [
199
- o(b, {
199
+ s(b, {
200
200
  label: l.$t("taskDefine.taskSort"),
201
201
  prop: "sort"
202
202
  }, {
203
203
  default: a(() => [
204
- o(h, {
204
+ s(_, {
205
205
  modelValue: n.value.sort,
206
206
  "onUpdate:modelValue": e[2] || (e[2] = (t) => n.value.sort = t),
207
- data: s(d).taskSortTypeEnum.values,
207
+ data: o(i).taskSortTypeEnum.values,
208
208
  placeholder: l.$t("taskDefine.taskSort"),
209
- onKeyup: e[3] || (e[3] = w((t) => s(i).handleQuery(), ["enter"])),
209
+ onKeyup: e[3] || (e[3] = w((t) => o(m).handleQuery(), ["enter"])),
210
210
  class: "!w-[203px]"
211
211
  }, null, 8, ["modelValue", "data", "placeholder"])
212
212
  ]),
@@ -215,19 +215,19 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
215
215
  ]),
216
216
  _: 1
217
217
  }),
218
- o(v, { span: 6 }, {
218
+ s(v, { span: 6 }, {
219
219
  default: a(() => [
220
- o(b, {
220
+ s(b, {
221
221
  label: l.$t("taskInst.readStatus"),
222
222
  prop: "readStatus"
223
223
  }, {
224
224
  default: a(() => [
225
- o(h, {
225
+ s(_, {
226
226
  modelValue: n.value.readStatus,
227
227
  "onUpdate:modelValue": e[4] || (e[4] = (t) => n.value.readStatus = t),
228
- data: s(d).readStatusDict.values,
228
+ data: o(i).readStatusDict.values,
229
229
  placeholder: l.$t("taskInst.readStatus"),
230
- onKeyup: e[5] || (e[5] = w((t) => s(i).handleQuery(), ["enter"])),
230
+ onKeyup: e[5] || (e[5] = w((t) => o(m).handleQuery(), ["enter"])),
231
231
  class: "!w-[203px]"
232
232
  }, null, 8, ["modelValue", "data", "placeholder"])
233
233
  ]),
@@ -236,19 +236,19 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
236
236
  ]),
237
237
  _: 1
238
238
  }),
239
- o(v, { span: 6 }, {
239
+ s(v, { span: 6 }, {
240
240
  default: a(() => [
241
- o(b, {
241
+ s(b, {
242
242
  label: l.$t("taskInst.status"),
243
243
  prop: "status"
244
244
  }, {
245
245
  default: a(() => [
246
- o(h, {
246
+ s(_, {
247
247
  modelValue: n.value.status,
248
248
  "onUpdate:modelValue": e[6] || (e[6] = (t) => n.value.status = t),
249
- data: s(d).taskStatusEnum.values,
249
+ data: o(i).taskStatusEnum.values,
250
250
  placeholder: l.$t("taskInst.statusRequired"),
251
- onKeyup: e[7] || (e[7] = w((t) => s(i).handleQuery(), ["enter"])),
251
+ onKeyup: e[7] || (e[7] = w((t) => o(m).handleQuery(), ["enter"])),
252
252
  class: "!w-[203px]"
253
253
  }, null, 8, ["modelValue", "data", "placeholder"])
254
254
  ]),
@@ -260,23 +260,23 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
260
260
  ]),
261
261
  _: 1
262
262
  }),
263
- o(S),
264
- o(b, { class: "search-btn" }, {
263
+ s(h),
264
+ s(b, { class: "search-btn" }, {
265
265
  default: a(() => [
266
- o(_, {
266
+ s(S, {
267
267
  type: "primary",
268
- onClick: e[8] || (e[8] = (t) => s(i).handleQuery())
268
+ onClick: e[8] || (e[8] = (t) => o(m).handleQuery())
269
269
  }, {
270
270
  default: a(() => [
271
- y(u(l.$t("common.search")), 1)
271
+ y(d(l.$t("common.search")), 1)
272
272
  ]),
273
273
  _: 1
274
274
  }),
275
- o(_, {
276
- onClick: e[9] || (e[9] = (t) => s(i).resetQuery())
275
+ s(S, {
276
+ onClick: e[9] || (e[9] = (t) => o(m).resetQuery())
277
277
  }, {
278
278
  default: a(() => [
279
- y(u(l.$t("common.reset")), 1)
279
+ y(d(l.$t("common.reset")), 1)
280
280
  ]),
281
281
  _: 1
282
282
  })
@@ -288,32 +288,32 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
288
288
  }, 8, ["model"]),
289
289
  e[16] || (e[16] = c("div", { class: "clear" }, null, -1))
290
290
  ]),
291
- o(F, {
291
+ s(G, {
292
292
  shadow: "never",
293
293
  class: "table-container"
294
294
  }, {
295
295
  header: a(() => [
296
- o(S, null, {
296
+ s(h, null, {
297
297
  default: a(() => [
298
- o(v, {
298
+ s(v, {
299
299
  span: 24,
300
300
  class: "container-float"
301
301
  }, {
302
302
  default: a(() => [
303
- D((p(), V(_, {
303
+ V((p(), D(S, {
304
304
  plain: "",
305
305
  type: "primary",
306
- onClick: e[10] || (e[10] = (t) => s(i).handleExport(s(k)("task.taskInst.name")))
306
+ onClick: e[10] || (e[10] = (t) => o(m).handleExport(o(k)("task.taskInst.name")))
307
307
  }, {
308
308
  default: a(() => [
309
- y(u(l.$t("common.export")), 1)
309
+ y(d(l.$t("common.export")), 1)
310
310
  ]),
311
311
  _: 1
312
312
  })), [
313
313
  [C, ["task:task:export"]]
314
314
  ]),
315
- o(M, {
316
- modelValue: s(f),
315
+ s(M, {
316
+ modelValue: o(f),
317
317
  "onUpdate:modelValue": e[11] || (e[11] = (t) => N(f) ? f.value = t : f = t),
318
318
  "label-name": "task/task"
319
319
  }, null, 8, ["modelValue"])
@@ -325,64 +325,70 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
325
325
  })
326
326
  ]),
327
327
  footer: a(() => [
328
- s(g) > 0 ? (p(), V(W, {
328
+ o(g) > 0 ? (p(), D(q, {
329
329
  key: 0,
330
- total: s(g),
330
+ total: o(g),
331
331
  "onUpdate:total": e[12] || (e[12] = (t) => N(g) ? g.value = t : null),
332
332
  "current-page": n.value.curPage,
333
333
  "onUpdate:currentPage": e[13] || (e[13] = (t) => n.value.curPage = t),
334
334
  "page-size": n.value.pageSize,
335
335
  "onUpdate:pageSize": e[14] || (e[14] = (t) => n.value.pageSize = t),
336
- onPagination: e[15] || (e[15] = (t) => s(i).getList())
337
- }, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
336
+ onPagination: e[15] || (e[15] = (t) => o(m).getList())
337
+ }, null, 8, ["total", "current-page", "page-size"])) : et("", !0)
338
338
  ]),
339
339
  default: a(() => [
340
- D((p(), V(O, {
340
+ V((p(), D(F, {
341
341
  ref_key: "multipleTableRef",
342
342
  ref: j,
343
343
  "row-key": "taskInstId",
344
- data: s(K),
345
- "table-label": s(f),
344
+ data: o(K),
345
+ "table-label": o(f),
346
346
  onSelectionChange: x,
347
347
  onSortChange: H
348
348
  }, {
349
349
  sort: a((t) => [
350
- c("span", null, u(s(d).taskSortTypeEnum.getEnumValue(t.data.row.sort)), 1)
350
+ c("span", null, d(o(i).taskSortTypeEnum.getEnumValue(t.data.row.sort)), 1)
351
351
  ]),
352
352
  customerTagId: a((t) => [
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))
353
+ t.data.row.sort === o(st).CUSTOMER ? (p(), I("span", it, d(o(i).OrgBizDict.getValue(t.data.row.annivCustomerId)), 1)) : (p(), I("span", mt, d(o(i).itemBizLayDict.getValue(t.data.row.annivCustomerId)), 1))
354
354
  ]),
355
355
  readStatus: a((t) => [
356
- c("span", null, u(s(d).readStatusDict.getValue(t.data.row.readStatus)), 1)
356
+ c("span", null, d(o(i).readStatusDict.getValue(t.data.row.readStatus)), 1)
357
357
  ]),
358
358
  status: a((t) => [
359
- c("span", null, u(s(d).taskStatusEnum.getEnumValue(t.data.row.status)), 1)
359
+ c("span", null, d(o(i).taskStatusEnum.getEnumValue(t.data.row.status)), 1)
360
360
  ]),
361
361
  percent: a((t) => [
362
- c("span", null, u(t.data.row.percent) + "% ", 1)
362
+ c("span", null, d(t.data.row.percent) + "% ", 1)
363
363
  ]),
364
364
  finishDate: a((t) => [
365
- y(u(s(r).$moment.formatDate(
365
+ y(d(o(u).$moment.formatDate(
366
366
  t.data.row.finishDate,
367
367
  "YYYY-MM-DD HH:mm:ss"
368
368
  )), 1)
369
369
  ]),
370
370
  userId: a((t) => [
371
- c("span", null, u(s(d).UserExtBizDict.getValue(t.data.row.userId)), 1)
371
+ c("span", null, d(o(i).UserExtBizDict.getValue(t.data.row.userId)), 1)
372
372
  ]),
373
373
  operation: a((t) => [
374
- D((p(), I("span", {
375
- class: "el-button-color",
376
- onClick: (mt) => Q(t.data.row)
374
+ V((p(), I("span", {
375
+ class: "el-button-color grey_color",
376
+ onClick: (ct) => Q(t.data.row)
377
377
  }, [
378
- y(u(l.$t("common.view")), 1)
379
- ], 8, it)), [
378
+ s(W, null, {
379
+ default: a(() => [
380
+ s(O)
381
+ ]),
382
+ _: 1
383
+ }),
384
+ y(" " + d(l.$t("common.view")), 1)
385
+ ], 8, pt)), [
380
386
  [C, ["task:task:delete"]]
381
387
  ])
382
388
  ]),
383
389
  _: 1
384
390
  }, 8, ["data", "table-label"])), [
385
- [q, s(L)]
391
+ [J, o(L)]
386
392
  ])
387
393
  ]),
388
394
  _: 1
@@ -392,5 +398,5 @@ const lt = new ot(), nt = { class: "app-container" }, rt = { class: "search-cont
392
398
  }
393
399
  });
394
400
  export {
395
- vt as default
401
+ gt as default
396
402
  };
package/dist/index.mjs CHANGED
@@ -214,7 +214,7 @@ function bs(e) {
214
214
  let s = e.global.getLocaleMessage("en");
215
215
  s = pt(s, Os), e.global.setLocaleMessage("zh-cn", t), e.global.setLocaleMessage("en", s);
216
216
  }
217
- const Is = () => import("./edit-BW7MTmN4.mjs"), xs = () => import("./info-B4yEuD0P.mjs"), Ns = [
217
+ const Is = () => import("./edit-BW7MTmN4.mjs"), xs = () => import("./info-ORF5-jXV.mjs"), Ns = [
218
218
  {
219
219
  path: "/task",
220
220
  component: Ms,
@@ -2828,7 +2828,7 @@ const Pi = {
2828
2828
  }
2829
2829
  };
2830
2830
  }
2831
- }, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-DNvfhqVb.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DjzQMg24.mjs"), "./views/task/task-define/add.vue": () => import("./add-D9Kj8pyv.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-BW7MTmN4.mjs"), "./views/task/task-define/index.vue": () => import("./index-Ix1e1zzg.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-CCHq3Xp5.mjs"), "./views/task/task-inst/index.vue": () => import("./index-muG16Xa0.mjs"), "./views/task/task-inst/info.vue": () => import("./info-B4yEuD0P.mjs"), "./views/task/task-inst/report-info.vue": () => import("./report-info-Dsc2rhWy.mjs").then((e) => e.r), "./views/task/task-inst/report.vue": () => import("./report-Bi_FQqhd.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-4CZobjlQ.mjs") }), Ci = {
2831
+ }, Wi = /* @__PURE__ */ Object.assign({ "./views/task/task-define-rel/add.vue": () => import("./add-DNvfhqVb.mjs").then((e) => e.b), "./views/task/task-define-rel/index.vue": () => import("./index-DjzQMg24.mjs"), "./views/task/task-define/add.vue": () => import("./add-D9Kj8pyv.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-BW7MTmN4.mjs"), "./views/task/task-define/index.vue": () => import("./index-hZCWB86v.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-CCHq3Xp5.mjs"), "./views/task/task-inst/index.vue": () => import("./index-BaqRbKw1.mjs"), "./views/task/task-inst/info.vue": () => import("./info-ORF5-jXV.mjs"), "./views/task/task-inst/report-info.vue": () => import("./report-info-Dsc2rhWy.mjs").then((e) => e.r), "./views/task/task-inst/report.vue": () => import("./report-Bi_FQqhd.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-yLaDG7SV.mjs") }), Ci = {
2832
2832
  install(e) {
2833
2833
  vs(Wi, 7), bs(Ys), ps(Ns), e.use(Pi);
2834
2834
  }