sooyie-task 0.0.1 → 0.0.3

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,23 +1,23 @@
1
- import { defineComponent as Z, getCurrentInstance as ee, ref as g, reactive as te, onActivated as ae, resolveComponent as r, resolveDirective as le, 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";
2
- import { useTableHooks as oe } from "jmash-core";
3
- import { useI18n as se } from "vue-i18n";
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";
2
+ import { useTableHooks as se } from "jmash-core";
3
+ import { useI18n as ne } from "vue-i18n";
4
4
  import { D as m, C as j } from "./index-DvawPwK3.mjs";
5
- import { r as ne } from "./index-CewoF68r.mjs";
6
5
  import { t as re, a as ue } from "./report-CJWipPH_.mjs";
7
6
  import ie from "./edit-CE42VR9Z.mjs";
8
- const de = { class: "app-container" }, me = { class: "search-container" }, pe = { key: 0 }, ke = { key: 1 }, ce = ["onClick"], fe = ["onClick"], ve = ["onClick"], he = /* @__PURE__ */ Z({
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({
9
9
  __name: "index",
10
- setup(be) {
11
- const { proxy: z } = ee(), { t: p } = se();
10
+ setup(ye) {
11
+ const { proxy: z } = te(), { t: p } = ne(), E = de();
12
12
  m.OrgBizDict.useValues(), m.itemBizLayDict.useValues();
13
13
  const n = g({}), {
14
14
  tableHooks: i,
15
- multipleTableRef: E,
16
- queryFormRef: M,
17
- listLoading: q,
18
- tableData: B,
15
+ multipleTableRef: M,
16
+ queryFormRef: q,
17
+ listLoading: B,
18
+ tableData: L,
19
19
  total: w
20
- } = oe(p, re, n);
20
+ } = se(p, re, n);
21
21
  let v = g([
22
22
  // 任务主题
23
23
  {
@@ -109,15 +109,15 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
109
109
  title: p("taskInst.reportNormal"),
110
110
  visible: !1
111
111
  });
112
- let _ = te({});
113
- function L(a) {
112
+ let _ = ae({});
113
+ function P(a) {
114
114
  Object.assign(_, a), k.value.title = p("taskInst.report"), k.value.visible = !0;
115
115
  }
116
- function P(a) {
116
+ function O(a) {
117
117
  Object.assign(_, a), c.value.title = p("taskInst.reportNormal"), c.value.visible = !0;
118
118
  }
119
- function O(a) {
120
- ne.push({
119
+ function K(a) {
120
+ E.push({
121
121
  path: "/task/task-inst/info",
122
122
  query: {
123
123
  taskInstId: a.taskInstId,
@@ -126,24 +126,24 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
126
126
  }
127
127
  });
128
128
  }
129
- function K(a) {
129
+ function Q(a) {
130
130
  i.selectionRows.value = a;
131
131
  }
132
- function Q(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 le(() => {
139
139
  i.getList();
140
140
  }), (a, t) => {
141
- const H = r("el-input"), D = r("el-form-item"), b = r("el-col"), x = r("jmash-select"), A = r("el-date-picker"), h = r("el-button"), R = r("el-row"), F = r("el-form"), W = r("jmash-column-select"), G = r("jmash-table"), J = r("jmash-pagination"), X = r("el-card"), N = le("hasPerm");
142
- return d(), f("div", de, [
143
- y("div", me, [
144
- s(F, {
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, [
143
+ y("div", pe, [
144
+ s(W, {
145
145
  ref_key: "queryFormRef",
146
- ref: M,
146
+ ref: q,
147
147
  model: n.value,
148
148
  inline: !0
149
149
  }, {
@@ -157,7 +157,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
157
157
  prop: "keyword"
158
158
  }, {
159
159
  default: l(() => [
160
- s(H, {
160
+ s(x, {
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"),
@@ -177,7 +177,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
177
177
  prop: "status"
178
178
  }, {
179
179
  default: l(() => [
180
- s(x, {
180
+ s(A, {
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,
@@ -198,7 +198,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
198
198
  prop: "taskDate"
199
199
  }, {
200
200
  default: l(() => [
201
- s(A, {
201
+ s(F, {
202
202
  modelValue: n.value.taskDate,
203
203
  "onUpdate:modelValue": t[4] || (t[4] = (e) => n.value.taskDate = e),
204
204
  type: "date",
@@ -249,7 +249,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
249
249
  }, 8, ["model"]),
250
250
  t[16] || (t[16] = y("div", { class: "clear" }, null, -1))
251
251
  ]),
252
- s(X, {
252
+ s(Z, {
253
253
  shadow: "never",
254
254
  class: "table-container"
255
255
  }, {
@@ -273,7 +273,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
273
273
  })), [
274
274
  [N, ["task:task_inst:export"]]
275
275
  ]),
276
- s(W, {
276
+ s(G, {
277
277
  modelValue: o(v),
278
278
  "onUpdate:modelValue": t[9] || (t[9] = (e) => U(v) ? v.value = e : v = e),
279
279
  "label-name": "task/task-inst"
@@ -286,7 +286,7 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
286
286
  })
287
287
  ]),
288
288
  footer: l(() => [
289
- o(w) > 0 ? (d(), C(J, {
289
+ o(w) > 0 ? (d(), C(X, {
290
290
  key: 0,
291
291
  total: o(w),
292
292
  "onUpdate:total": t[10] || (t[10] = (e) => U(w) ? w.value = e : null),
@@ -298,18 +298,18 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
298
298
  }, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
299
299
  ]),
300
300
  default: l(() => [
301
- s(G, {
301
+ s(J, {
302
302
  ref_key: "multipleTableRef",
303
- ref: E,
303
+ ref: M,
304
304
  "row-key": "taskInstId",
305
- "list-loading": o(q),
306
- data: o(B),
305
+ "list-loading": o(B),
306
+ data: o(L),
307
307
  "table-label": o(v),
308
- onSelectionChange: K,
309
- onSortChange: Q
308
+ onSelectionChange: Q,
309
+ onSortChange: H
310
310
  }, {
311
311
  annivCustomerId: l((e) => [
312
- e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", pe, u(o(m).OrgBizDict.getValue(e.data.row.annivCustomerId)), 1)) : (d(), f("span", ke, u(o(m).itemBizLayDict.getValue(e.data.row.annivCustomerId)), 1))
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))
313
313
  ]),
314
314
  readStatus: l((e) => [
315
315
  y("span", null, u(o(m).readStatusDict.getValue(e.data.row.readStatus)), 1)
@@ -329,21 +329,21 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
329
329
  operation: l((e) => [
330
330
  Y((d(), f("span", {
331
331
  class: "el-button-color",
332
- onClick: (T) => O(e.data.row)
332
+ onClick: (T) => K(e.data.row)
333
333
  }, [
334
334
  I(u(a.$t("common.view")), 1)
335
- ], 8, ce)), [
335
+ ], 8, fe)), [
336
336
  [N, ["task:task_inst:delete"]]
337
337
  ]),
338
338
  e.data.row.sort === o(j).CUSTOMER ? (d(), f("span", {
339
339
  key: 0,
340
340
  class: "el-button-color dropdown-left",
341
- onClick: (T) => L(e.data.row)
342
- }, u(a.$t("taskInst.report")), 9, fe)) : (d(), f("span", {
341
+ onClick: (T) => P(e.data.row)
342
+ }, u(a.$t("taskInst.report")), 9, ve)) : (d(), f("span", {
343
343
  key: 1,
344
344
  class: "el-button-color dropdown-left",
345
- onClick: (T) => P(e.data.row)
346
- }, u(a.$t("taskInst.report")), 9, ve))
345
+ onClick: (T) => O(e.data.row)
346
+ }, u(a.$t("taskInst.report")), 9, be))
347
347
  ]),
348
348
  _: 1
349
349
  }, 8, ["list-loading", "data", "table-label"])
@@ -373,5 +373,5 @@ const de = { class: "app-container" }, me = { class: "search-container" }, pe =
373
373
  }
374
374
  });
375
375
  export {
376
- he as default
376
+ Ve as default
377
377
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as J, getCurrentInstance as X, ref as C, reactive as N, onActivated as Z, resolveComponent as s, resolveDirective as ee, createElementBlock as g, openBlock as u, createElementVNode as D, createVNode as n, createBlock as b, createCommentVNode as P, withCtx as o, withKeys as te, unref as l, Fragment as oe, renderList as ae, createTextVNode as d, toDisplayString as r, withDirectives as h, isRef as R } from "vue";
2
- import { useTableHooks as le } from "jmash-core";
3
- import { useI18n as ne } from "vue-i18n";
4
- import { b as se } from "./index-B_hFZVhb-C3Oi__-I.mjs";
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as C, reactive as N, onActivated as ee, resolveComponent as s, resolveDirective as te, createElementBlock as g, openBlock as u, createElementVNode as D, createVNode as n, createBlock as b, createCommentVNode as R, withCtx as o, withKeys as oe, unref as l, Fragment as ae, renderList as le, createTextVNode as d, toDisplayString as r, withDirectives as h, isRef as P } from "vue";
2
+ import { useTableHooks as ne } from "jmash-core";
3
+ import { useI18n as se } from "vue-i18n";
4
+ import { b as re } from "./index-B_hFZVhb-C3Oi__-I.mjs";
5
5
  import { t as B } from "./index-CEvxhWYT.mjs";
6
- import { D as re, C as ie } from "./index-DvawPwK3.mjs";
7
- import ue from "./add-C2devcsq.mjs";
8
- import { r as me } from "./index-CewoF68r.mjs";
9
- const de = { class: "app-container" }, pe = { class: "search-container" }, ce = ["onClick"], fe = ["onClick"], we = /* @__PURE__ */ J({
6
+ import { D as ie, C as ue } from "./index-DvawPwK3.mjs";
7
+ import me from "./add-C2devcsq.mjs";
8
+ import { useRouter as de } from "vue-router";
9
+ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe = ["onClick"], ke = ["onClick"], Se = /* @__PURE__ */ X({
10
10
  __name: "index",
11
- setup(ke) {
12
- const { t: w } = ne(), { proxy: L } = X(), m = C({}), c = C([]);
13
- function E(a) {
14
- c.value.length === 0 && B.getEnum({ className: ie.TASKSORT_TYPE, type: 1 }).then((k) => {
11
+ setup(be) {
12
+ const { t: w } = se(), L = de(), { proxy: E } = Z(), m = C({}), c = C([]);
13
+ function j(a) {
14
+ c.value.length === 0 && B.getEnum({ className: ue.TASKSORT_TYPE, type: 1 }).then((k) => {
15
15
  c.value = k.data.values;
16
16
  });
17
17
  const t = c.value.find((k) => k.key === a);
@@ -19,12 +19,12 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
19
19
  }
20
20
  const {
21
21
  tableHooks: i,
22
- multipleTableRef: j,
23
- queryFormRef: I,
24
- listLoading: U,
25
- tableData: z,
22
+ multipleTableRef: I,
23
+ queryFormRef: U,
24
+ listLoading: z,
25
+ tableData: A,
26
26
  total: v
27
- } = le(w, B, m);
27
+ } = ne(w, B, m);
28
28
  let f = C([
29
29
  // 任务主题
30
30
  {
@@ -111,34 +111,34 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
111
111
  title: w("common.edit"),
112
112
  visible: !1
113
113
  });
114
- function A(a) {
115
- me.push({
114
+ function Y(a) {
115
+ L.push({
116
116
  path: "/task/task-define/edit",
117
117
  query: { taskDefineId: a.taskDefineId, taskSort: a.taskSort }
118
118
  });
119
119
  }
120
120
  let T = N({});
121
- function Y() {
121
+ function q() {
122
122
  T = N({}), p.value.title = w("common.add"), p.value.visible = !0;
123
123
  }
124
- function q(a) {
124
+ function H(a) {
125
125
  i.selectionRows.value = a;
126
126
  }
127
- function H(a) {
127
+ function K(a) {
128
128
  i.handleSort(a.prop, a.order);
129
129
  }
130
- function K(a) {
130
+ function F(a) {
131
131
  a && i.getList();
132
132
  }
133
- return Z(() => {
133
+ return ee(() => {
134
134
  i.getList();
135
135
  }), (a, t) => {
136
- const k = s("el-option"), F = s("el-select"), $ = s("el-form-item"), S = s("el-col"), V = s("el-row"), y = s("el-button"), Q = s("el-form"), M = s("jmash-column-select"), x = s("jmash-table"), O = s("jmash-pagination"), W = s("el-card"), _ = ee("hasPerm");
137
- return u(), g("div", de, [
138
- D("div", pe, [
139
- n(Q, {
136
+ const k = s("el-option"), Q = s("el-select"), $ = s("el-form-item"), S = s("el-col"), V = s("el-row"), y = s("el-button"), M = s("el-form"), x = s("jmash-column-select"), O = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), _ = te("hasPerm");
137
+ return u(), g("div", pe, [
138
+ D("div", ce, [
139
+ n(M, {
140
140
  ref_key: "queryFormRef",
141
- ref: I,
141
+ ref: U,
142
142
  model: m.value,
143
143
  inline: !0
144
144
  }, {
@@ -152,16 +152,16 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
152
152
  prop: "taskSort"
153
153
  }, {
154
154
  default: o(() => [
155
- n(F, {
155
+ n(Q, {
156
156
  modelValue: m.value.taskSort,
157
157
  "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.taskSort = e),
158
158
  data: c.value,
159
159
  placeholder: a.$t("taskDefine.taskSort"),
160
- onKeyup: t[1] || (t[1] = te((e) => l(i).handleQuery(), ["enter"])),
160
+ onKeyup: t[1] || (t[1] = oe((e) => l(i).handleQuery(), ["enter"])),
161
161
  class: "!w-[203px]"
162
162
  }, {
163
163
  default: o(() => [
164
- (u(!0), g(oe, null, ae(c.value, (e) => (u(), b(k, {
164
+ (u(!0), g(ae, null, le(c.value, (e) => (u(), b(k, {
165
165
  key: e.key,
166
166
  label: e.value,
167
167
  value: e.key
@@ -205,7 +205,7 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
205
205
  }, 8, ["model"]),
206
206
  t[11] || (t[11] = D("div", { class: "clear" }, null, -1))
207
207
  ]),
208
- n(W, {
208
+ n(G, {
209
209
  shadow: "never",
210
210
  class: "table-container"
211
211
  }, {
@@ -216,7 +216,7 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
216
216
  default: o(() => [
217
217
  h((u(), b(y, {
218
218
  type: "primary",
219
- onClick: Y
219
+ onClick: q
220
220
  }, {
221
221
  default: o(() => [
222
222
  d(r(a.$t("common.add")), 1)
@@ -244,9 +244,9 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
244
244
  class: "container-float"
245
245
  }, {
246
246
  default: o(() => [
247
- n(M, {
247
+ n(x, {
248
248
  modelValue: l(f),
249
- "onUpdate:modelValue": t[5] || (t[5] = (e) => R(f) ? f.value = e : f = e),
249
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => P(f) ? f.value = e : f = e),
250
250
  "label-name": "task/task-define"
251
251
  }, null, 8, ["modelValue"])
252
252
  ]),
@@ -257,39 +257,39 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
257
257
  })
258
258
  ]),
259
259
  footer: o(() => [
260
- l(v) > 0 ? (u(), b(O, {
260
+ l(v) > 0 ? (u(), b(W, {
261
261
  key: 0,
262
262
  total: l(v),
263
- "onUpdate:total": t[6] || (t[6] = (e) => R(v) ? v.value = e : null),
263
+ "onUpdate:total": t[6] || (t[6] = (e) => P(v) ? v.value = e : null),
264
264
  "current-page": m.value.curPage,
265
265
  "onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
266
266
  "page-size": m.value.pageSize,
267
267
  "onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
268
268
  onPagination: t[9] || (t[9] = (e) => l(i).getList())
269
- }, null, 8, ["total", "current-page", "page-size"])) : P("", !0)
269
+ }, null, 8, ["total", "current-page", "page-size"])) : R("", !0)
270
270
  ]),
271
271
  default: o(() => [
272
- n(x, {
272
+ n(O, {
273
273
  ref_key: "multipleTableRef",
274
- ref: j,
274
+ ref: I,
275
275
  "row-key": "taskDefineId",
276
- "list-loading": l(U),
277
- data: l(z),
276
+ "list-loading": l(z),
277
+ data: l(A),
278
278
  "table-label": l(f),
279
- onSelectionChange: q,
280
- onSortChange: H
279
+ onSelectionChange: H,
280
+ onSortChange: K
281
281
  }, {
282
282
  taskSort: o((e) => [
283
- D("span", null, r(E(e.data.row.taskSort)), 1)
283
+ D("span", null, r(j(e.data.row.taskSort)), 1)
284
284
  ]),
285
285
  taskCount: o((e) => [
286
- D("span", null, r(e.data.row.taskCount) + "次/" + r(l(re).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
286
+ D("span", null, r(e.data.row.taskCount) + "次/" + r(l(ie).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
287
287
  ]),
288
288
  createBy: o((e) => [
289
- d(r(l(se).userInfo(e.data.row.createBy).realName), 1)
289
+ d(r(l(re).userInfo(e.data.row.createBy).realName), 1)
290
290
  ]),
291
291
  createTime: o((e) => [
292
- d(r(l(L).$moment.formatDate(
292
+ d(r(l(E).$moment.formatDate(
293
293
  e.data.row.createTime,
294
294
  "YYYY-MM-DD HH:mm:ss"
295
295
  )), 1)
@@ -297,18 +297,18 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
297
297
  operation: o((e) => [
298
298
  h((u(), g("span", {
299
299
  class: "el-button-color",
300
- onClick: (G) => A(e.data.row)
300
+ onClick: (J) => Y(e.data.row)
301
301
  }, [
302
302
  d(r(a.$t("common.edit")), 1)
303
- ], 8, ce)), [
303
+ ], 8, fe)), [
304
304
  [_, ["task:task_define:update"]]
305
305
  ]),
306
306
  h((u(), g("span", {
307
307
  class: "el-button-color dropdown-left",
308
- onClick: (G) => l(i).deleteRecord(e.data.row)
308
+ onClick: (J) => l(i).deleteRecord(e.data.row)
309
309
  }, [
310
310
  d(r(a.$t("common.delete")), 1)
311
- ], 8, fe)), [
311
+ ], 8, ke)), [
312
312
  [_, ["task:task_define:delete"]]
313
313
  ])
314
314
  ]),
@@ -317,19 +317,19 @@ const de = { class: "app-container" }, pe = { class: "search-container" }, ce =
317
317
  ]),
318
318
  _: 1
319
319
  }),
320
- p.value.visible ? (u(), b(ue, {
320
+ p.value.visible ? (u(), b(me, {
321
321
  key: 0,
322
322
  modelValue: p.value.visible,
323
323
  "onUpdate:modelValue": t[10] || (t[10] = (e) => p.value.visible = e),
324
324
  title: p.value.title,
325
325
  "entity-key": l(T),
326
- onRefresh: K,
326
+ onRefresh: F,
327
327
  width: "900px"
328
- }, null, 8, ["modelValue", "title", "entity-key"])) : P("", !0)
328
+ }, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0)
329
329
  ]);
330
330
  };
331
331
  }
332
332
  });
333
333
  export {
334
- we as default
334
+ Se as default
335
335
  };