sooyie-task 0.0.1 → 0.0.2

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
  };