sooyie-task 0.0.6 → 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 ee, getCurrentInstance as te, ref as g, reactive as ae, onActivated as le, resolveComponent as r, resolveDirective as oe, createElementBlock as f, openBlock as d, createElementVNode as y, createVNode as s, createBlock as C, createCommentVNode as V, withCtx as l, withKeys as $, unref as o, createTextVNode as I, toDisplayString as u, withDirectives as Y, isRef as U } from "vue";
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 j } from "./index-DvawPwK3.mjs";
5
- import { t as re, a as ue } from "./report-Uf6UKzUn.mjs";
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__ */ ee({
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: z } = te(), { t: p } = ne(), E = de();
11
+ const { proxy: U } = ee(), { t: f } = ne(), j = de();
12
12
  m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
13
- const n = g({}), {
13
+ const n = D({}), {
14
14
  tableHooks: i,
15
- multipleTableRef: M,
16
- queryFormRef: q,
17
- listLoading: B,
18
- tableData: L,
19
- total: w
20
- } = se(p, re, n);
21
- let v = g([
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 k = g({
106
- title: p("taskInst.report"),
105
+ const p = D({
106
+ title: f("taskInst.report"),
107
107
  visible: !1
108
- }), c = g({
109
- title: p("taskInst.reportNormal"),
108
+ }), k = D({
109
+ title: f("taskInst.reportNormal"),
110
110
  visible: !1
111
111
  });
112
- let _ = ae({});
113
- function P(a) {
114
- Object.assign(_, a), k.value.title = p("taskInst.report"), k.value.visible = !0;
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 O(a) {
117
- Object.assign(_, a), c.value.title = p("taskInst.reportNormal"), c.value.visible = !0;
116
+ function L(a) {
117
+ Object.assign(_, a), k.value.title = f("taskInst.reportNormal"), k.value.visible = !0;
118
118
  }
119
- function K(a) {
120
- E.push({
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 Q(a) {
129
+ function O(a) {
130
130
  i.selectionRows.value = a;
131
131
  }
132
- function H(a) {
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 le(() => {
138
+ return ae(() => {
139
139
  i.getList();
140
140
  }), (a, t) => {
141
- const x = r("el-input"), D = r("el-form-item"), b = r("el-col"), A = r("jmash-select"), F = r("el-date-picker"), h = r("el-button"), R = r("el-row"), W = r("el-form"), G = r("jmash-column-select"), J = r("jmash-table"), X = r("jmash-pagination"), Z = r("el-card"), N = oe("hasPerm");
142
- return d(), f("div", me, [
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(W, {
144
+ s(F, {
145
145
  ref_key: "queryFormRef",
146
- ref: q,
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(D, {
155
+ s(w, {
156
156
  label: a.$t("taskInst.keyword"),
157
157
  prop: "keyword"
158
158
  }, {
159
159
  default: l(() => [
160
- s(x, {
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] = $((e) => o(i).handleQuery(), ["enter"])),
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(D, {
175
+ s(w, {
176
176
  label: a.$t("taskInst.status"),
177
177
  prop: "status"
178
178
  }, {
179
179
  default: l(() => [
180
- s(A, {
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] = $((e) => o(i).handleQuery(), ["enter"])),
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(D, {
196
+ s(w, {
197
197
  label: a.$t("taskInst.taskDate"),
198
198
  prop: "taskDate"
199
199
  }, {
200
200
  default: l(() => [
201
- s(F, {
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] = $((e) => o(i).handleQuery(), ["enter"])),
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(D, { class: "search-btn" }, {
219
+ s(w, { class: "search-btn" }, {
220
220
  default: l(() => [
221
- s(h, {
221
+ s($, {
222
222
  type: "primary",
223
223
  onClick: t[6] || (t[6] = (e) => o(i).handleQuery())
224
224
  }, {
225
225
  default: l(() => [
226
- I(u(a.$t("common.search")), 1)
226
+ g(u(a.$t("common.search")), 1)
227
227
  ]),
228
228
  _: 1
229
229
  }),
230
- s(h, {
230
+ s($, {
231
231
  onClick: t[7] || (t[7] = (e) => o(i).resetQuery())
232
232
  }, {
233
233
  default: l(() => [
234
- I(u(a.$t("common.reset")), 1)
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[16] || (t[16] = y("div", { class: "clear" }, null, -1))
250
+ t[15] || (t[15] = y("div", { class: "clear" }, null, -1))
251
251
  ]),
252
- s(Z, {
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
- Y((d(), C(h, {
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[9] || (t[9] = (e) => U(v) ? v.value = e : v = e),
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(w) > 0 ? (d(), C(X, {
277
+ o(I) > 0 ? (d(), h(G, {
290
278
  key: 0,
291
- total: o(w),
292
- "onUpdate:total": t[10] || (t[10] = (e) => U(w) ? w.value = e : null),
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[11] || (t[11] = (e) => n.value.curPage = e),
282
+ "onUpdate:currentPage": t[10] || (t[10] = (e) => n.value.curPage = e),
295
283
  "page-size": n.value.pageSize,
296
- "onUpdate:pageSize": t[12] || (t[12] = (e) => n.value.pageSize = e),
297
- onPagination: t[13] || (t[13] = (e) => o(i).getList())
298
- }, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
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(J, {
289
+ s(x, {
302
290
  ref_key: "multipleTableRef",
303
- ref: M,
291
+ ref: z,
304
292
  "row-key": "taskInstId",
305
- "list-loading": o(B),
306
- data: o(L),
293
+ "list-loading": o(q),
294
+ data: o(B),
307
295
  "table-label": o(v),
308
- onSelectionChange: Q,
309
- onSortChange: H
296
+ onSelectionChange: O,
297
+ onSortChange: K
310
298
  }, {
311
299
  annivCustomerId: l((e) => [
312
- e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", ke, u(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (d(), f("span", ce, u(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
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
- I(u(o(z).$moment.formatDate(
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
- Y((d(), f("span", {
318
+ oe((d(), c("span", {
331
319
  class: "el-button-color",
332
- onClick: (T) => K(e.data.row)
320
+ onClick: (N) => P(e.data.row)
333
321
  }, [
334
- I(u(a.$t("common.view")), 1)
322
+ g(u(a.$t("common.view")), 1)
335
323
  ], 8, fe)), [
336
- [N, ["task:task_inst:delete"]]
324
+ [X, ["task:task_inst:delete"]]
337
325
  ]),
338
- e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", {
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: (T) => P(e.data.row)
342
- }, u(a.$t("taskInst.report")), 9, ve)) : (d(), f("span", {
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: (T) => O(e.data.row)
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
- k.value.visible ? (d(), C(ie, {
341
+ p.value.visible ? (d(), h(ie, {
354
342
  key: 0,
355
- modelValue: k.value.visible,
356
- "onUpdate:modelValue": t[14] || (t[14] = (e) => k.value.visible = e),
357
- title: k.value.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"])) : V("", !0),
362
- c.value.visible ? (d(), C(ue, {
349
+ }, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0),
350
+ k.value.visible ? (d(), h(ue, {
363
351
  key: 1,
364
- modelValue: c.value.visible,
365
- "onUpdate:modelValue": t[15] || (t[15] = (e) => c.value.visible = e),
366
- title: c.value.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"])) : V("", !0)
358
+ }, null, 8, ["modelValue", "title", "entity-key"])) : C("", !0)
371
359
  ]);
372
360
  };
373
361
  }
@@ -4,7 +4,7 @@ import { useI18n as se } from "vue-i18n";
4
4
  import { b as re } from "./index-B_hFZVhb-C3Oi__-I.mjs";
5
5
  import { t as B } from "./index-BRMLJ2ar.mjs";
6
6
  import { D as ie, C as ue } from "./index-DvawPwK3.mjs";
7
- import me from "./add-BjZ9XOOq.mjs";
7
+ import me from "./add-BaHTXQnK.mjs";
8
8
  import { useRouter as de } from "vue-router";
9
9
  const pe = { class: "app-container" }, ce = { class: "search-container" }, fe = ["onClick"], ke = ["onClick"], Se = /* @__PURE__ */ X({
10
10
  __name: "index",
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-CQXHFXME.mjs"), xs = () => import("./info-CMW8tHes.mjs"), Ns = [
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-BjZ9XOOq.mjs"), "./views/task/task-define/edit.vue": () => import("./edit-CQXHFXME.mjs"), "./views/task/task-define/index.vue": () => import("./index-CQu6Hpdd.mjs"), "./views/task/task-inst/edit.vue": () => import("./edit-Ci8Uch5Z.mjs"), "./views/task/task-inst/index.vue": () => import("./index-DtM5EnwJ.mjs"), "./views/task/task-inst/info.vue": () => import("./info-CMW8tHes.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-Uf6UKzUn.mjs").then((e) => e.r), "./views/task/task-task/index.vue": () => import("./index-Cb72ljTZ.mjs") }), Ci = {
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
  }
@@ -5,7 +5,7 @@ import { useRoute as Rr } from "vue-router";
5
5
  import { D as L, J as Dr, $ as Nr, C as Re } from "./index-DvawPwK3.mjs";
6
6
  import { t as Tr } from "./index-BRMLJ2ar.mjs";
7
7
  import { t as Et, a as Fr } from "./report-info-B0NXFFzR.mjs";
8
- import { t as At, a as Cr } from "./report-Uf6UKzUn.mjs";
8
+ import { t as At, a as Cr } from "./report-CEnjUOYk.mjs";
9
9
  import { useI18n as Mr } from "vue-i18n";
10
10
  import xr from "./edit-Ci8Uch5Z.mjs";
11
11
  var $t = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};