sooyie-task 0.0.9 → 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-7_dK5ok_.mjs → add-DuZI-0rw.mjs} +10 -8
  2. package/dist/add-iEZo5s5C.mjs +4 -0
  3. package/dist/{add-BaHTXQnK.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-DR6TsOR1.mjs → edit-DvKXuCgK.mjs} +125 -135
  6. package/dist/{edit-Ci8Uch5Z.mjs → edit-ww2K--dY.mjs} +33 -31
  7. package/dist/el-message-CajLrSgM.mjs +1370 -0
  8. package/dist/{index-Cb72ljTZ.mjs → index-1LxoELHM.mjs} +94 -110
  9. package/dist/{index-D75JtZHf.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-DIHsBjkh.mjs → index-rQPWP-HJ.mjs} +1 -1
  14. package/dist/{index-CSqnIoJ3.mjs → index-vh8fHlqF.mjs} +106 -118
  15. package/dist/index.mjs +2 -2
  16. package/dist/{index.vue_vue_type_script_setup_true_lang-DRYjMxBU.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-CEnjUOYk.mjs → report-7UPImd_G.mjs} +26 -24
  19. package/dist/{report-info-B0NXFFzR.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 +4 -3
  25. package/package.json +10 -9
  26. package/dist/el-message-Bod6C9wB.mjs +0 -1252
  27. package/dist/index-DvawPwK3.mjs +0 -10483
  28. package/dist/info-CMCBPoFL.mjs +0 -1992
@@ -1,24 +1,24 @@
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
- import { useTableHooks as se } from "jmash-core";
3
- import { useI18n as ne } from "vue-i18n";
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
- import ie from "./edit-Ci8Uch5Z.mjs";
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__ */ Z({
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(ye) {
11
- const { proxy: U } = ee(), { t: f } = ne(), j = de();
10
+ setup(_e) {
11
+ const { proxy: z } = le(), { t: f } = re(), M = me();
12
12
  m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
13
- const n = D({}), {
13
+ const n = w({}), {
14
14
  tableHooks: i,
15
- multipleTableRef: z,
16
- queryFormRef: M,
17
- listLoading: q,
18
- tableData: B,
19
- total: I
20
- } = se(f, re, n);
21
- let v = D([
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 = D({
105
+ const p = w({
106
106
  title: f("taskInst.report"),
107
107
  visible: !1
108
- }), k = D({
108
+ }), c = w({
109
109
  title: f("taskInst.reportNormal"),
110
110
  visible: !1
111
111
  });
112
- let _ = te({});
113
- function E(a) {
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 L(a) {
117
- Object.assign(_, a), k.value.title = f("taskInst.reportNormal"), k.value.visible = !0;
116
+ function O(a) {
117
+ Object.assign(_, a), c.value.title = f("taskInst.reportNormal"), c.value.visible = !0;
118
118
  }
119
- function P(a) {
120
- j.push({
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 O(a) {
129
+ function Q(a) {
130
130
  i.selectionRows.value = a;
131
131
  }
132
- function K(a) {
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 ae(() => {
138
+ return se(() => {
139
139
  i.getList();
140
140
  }), (a, t) => {
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
- y("div", pe, [
144
- s(F, {
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: M,
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(w, {
155
+ s(I, {
156
156
  label: a.$t("taskInst.keyword"),
157
157
  prop: "keyword"
158
158
  }, {
159
159
  default: l(() => [
160
- s(Q, {
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(w, {
175
+ s(I, {
176
176
  label: a.$t("taskInst.status"),
177
177
  prop: "status"
178
178
  }, {
179
179
  default: l(() => [
180
- s(H, {
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(w, {
196
+ s(I, {
197
197
  label: a.$t("taskInst.taskDate"),
198
198
  prop: "taskDate"
199
199
  }, {
200
200
  default: l(() => [
201
- s(A, {
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(w, { class: "search-btn" }, {
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
- g(u(a.$t("common.search")), 1)
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
- g(u(a.$t("common.reset")), 1)
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(J, {
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(W, {
263
+ s(G, {
265
264
  modelValue: o(v),
266
- "onUpdate:modelValue": t[8] || (t[8] = (e) => T(v) ? v.value = e : v = 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(I) > 0 ? (d(), h(G, {
276
+ o(y) > 0 ? (d(), g(X, {
278
277
  key: 0,
279
- total: o(I),
280
- "onUpdate:total": t[9] || (t[9] = (e) => T(I) ? I.value = e : null),
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
- s(x, {
288
+ Y((d(), g(J, {
290
289
  ref_key: "multipleTableRef",
291
- ref: z,
290
+ ref: q,
292
291
  "row-key": "taskInstId",
293
- "list-loading": o(q),
294
- data: o(B),
292
+ data: o(L),
295
293
  "table-label": o(v),
296
- onSelectionChange: O,
297
- onSortChange: K
294
+ onSelectionChange: Q,
295
+ onSortChange: H
298
296
  }, {
299
297
  annivCustomerId: l((e) => [
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))
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
- y("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
301
+ D("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
304
302
  ]),
305
303
  status: l((e) => [
306
- y("span", null, u(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
304
+ D("span", null, u(o(m).taskStatusEnum.getEnumValue(e.data.row.status)), 1)
307
305
  ]),
308
306
  percent: l((e) => [
309
- y("span", null, u(e.data.row.percent) + "% ", 1)
307
+ D("span", null, u(e.data.row.percent) + "% ", 1)
310
308
  ]),
311
309
  finishDate: l((e) => [
312
- g(u(o(U).$moment.formatDate(
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
- oe((d(), c("span", {
316
+ Y((d(), k("span", {
319
317
  class: "el-button-color",
320
- onClick: (N) => P(e.data.row)
318
+ onClick: (N) => K(e.data.row)
321
319
  }, [
322
- g(u(a.$t("common.view")), 1)
323
- ], 8, fe)), [
324
- [X, ["task:task_inst:delete"]]
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(Y).CUSTOMER ? (d(), c("span", {
324
+ e.data.row.sort === o(j).CUSTOMER ? (d(), k("span", {
327
325
  key: 0,
328
- class: "el-button-color dropdown-left",
329
- onClick: (N) => E(e.data.row)
330
- }, u(a.$t("taskInst.report")), 9, ve)) : (d(), c("span", {
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 dropdown-left",
333
- onClick: (N) => L(e.data.row)
334
- }, u(a.$t("taskInst.report")), 9, be))
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, ["list-loading", "data", "table-label"])
335
+ }, 8, ["data", "table-label"])), [
336
+ [te, o(E)]
337
+ ])
338
338
  ]),
339
339
  _: 1
340
340
  }),
341
- p.value.visible ? (d(), h(ie, {
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
- k.value.visible ? (d(), h(ue, {
350
+ c.value.visible ? (d(), g(ie, {
351
351
  key: 1,
352
- modelValue: k.value.visible,
353
- "onUpdate:modelValue": t[14] || (t[14] = (e) => k.value.visible = e),
354
- title: k.value.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
- Ve as default
364
+ Se as default
365
365
  };