sooyie-task 0.0.8 → 0.0.9

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,4 +1,4 @@
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";
1
+ import { defineComponent as X, getCurrentInstance as Z, ref as v, reactive as N, onActivated as ee, resolveComponent as s, resolveDirective as te, createElementBlock as _, openBlock as m, createElementVNode as y, createVNode as n, createBlock as g, createCommentVNode as P, withCtx as o, withKeys as oe, unref as l, Fragment as ae, renderList as le, createTextVNode as d, toDisplayString as r, withDirectives as S, isRef as R } from "vue";
2
2
  import { useTableHooks as ne } from "jmash-core";
3
3
  import { useI18n as se } from "vue-i18n";
4
4
  import { b as re } from "./index-B_hFZVhb-C3Oi__-I.mjs";
@@ -9,7 +9,7 @@ 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",
11
11
  setup(be) {
12
- const { t: w } = se(), L = de(), { proxy: E } = Z(), m = C({}), c = C([]);
12
+ const { t: C } = se(), L = de(), { proxy: E } = Z(), u = v({}), c = v([]);
13
13
  function j(a) {
14
14
  c.value.length === 0 && B.getEnum({ className: ue.TASKSORT_TYPE, type: 1 }).then((k) => {
15
15
  c.value = k.data.values;
@@ -23,9 +23,9 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
23
23
  queryFormRef: U,
24
24
  listLoading: z,
25
25
  tableData: A,
26
- total: v
27
- } = ne(w, B, m);
28
- let f = C([
26
+ total: b
27
+ } = ne(C, B, u);
28
+ let f = v([
29
29
  // 任务主题
30
30
  {
31
31
  label: "taskDefine.taskTitle",
@@ -107,8 +107,8 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
107
107
  isColumn: !0
108
108
  }
109
109
  ]);
110
- const p = C({
111
- title: w("common.edit"),
110
+ const p = v({
111
+ title: C("common.edit"),
112
112
  visible: !1
113
113
  });
114
114
  function Y(a) {
@@ -119,7 +119,7 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
119
119
  }
120
120
  let T = N({});
121
121
  function q() {
122
- T = N({}), p.value.title = w("common.add"), p.value.visible = !0;
122
+ T = N({}), p.value.title = C("common.add"), p.value.visible = !0;
123
123
  }
124
124
  function H(a) {
125
125
  i.selectionRows.value = a;
@@ -133,35 +133,35 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
133
133
  return ee(() => {
134
134
  i.getList();
135
135
  }), (a, t) => {
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, {
136
+ const k = s("el-option"), Q = s("el-select"), V = s("el-form-item"), D = s("el-col"), $ = s("el-row"), h = s("el-button"), x = s("el-form"), M = s("jmash-column-select"), O = s("jmash-table"), W = s("jmash-pagination"), G = s("el-card"), w = te("hasPerm");
137
+ return m(), _("div", pe, [
138
+ y("div", ce, [
139
+ n(x, {
140
140
  ref_key: "queryFormRef",
141
141
  ref: U,
142
- model: m.value,
142
+ model: u.value,
143
143
  inline: !0
144
144
  }, {
145
145
  default: o(() => [
146
- n(V, null, {
146
+ n($, null, {
147
147
  default: o(() => [
148
- n(S, { span: 6 }, {
148
+ n(D, { span: 6 }, {
149
149
  default: o(() => [
150
- n($, {
150
+ n(V, {
151
151
  label: a.$t("taskDefine.taskSort"),
152
152
  prop: "taskSort"
153
153
  }, {
154
154
  default: o(() => [
155
155
  n(Q, {
156
- modelValue: m.value.taskSort,
157
- "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.taskSort = e),
156
+ modelValue: u.value.taskSort,
157
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.taskSort = e),
158
158
  data: c.value,
159
159
  placeholder: a.$t("taskDefine.taskSort"),
160
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(ae, null, le(c.value, (e) => (u(), b(k, {
164
+ (m(!0), _(ae, null, le(c.value, (e) => (m(), g(k, {
165
165
  key: e.key,
166
166
  label: e.value,
167
167
  value: e.key
@@ -178,9 +178,9 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
178
178
  ]),
179
179
  _: 1
180
180
  }),
181
- n($, { class: "search-btn" }, {
181
+ n(V, { class: "search-btn" }, {
182
182
  default: o(() => [
183
- n(y, {
183
+ n(h, {
184
184
  type: "primary",
185
185
  onClick: t[2] || (t[2] = (e) => l(i).handleQuery())
186
186
  }, {
@@ -189,7 +189,7 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
189
189
  ]),
190
190
  _: 1
191
191
  }),
192
- n(y, {
192
+ n(h, {
193
193
  onClick: t[3] || (t[3] = (e) => l(i).resetQuery())
194
194
  }, {
195
195
  default: o(() => [
@@ -203,18 +203,18 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
203
203
  ]),
204
204
  _: 1
205
205
  }, 8, ["model"]),
206
- t[11] || (t[11] = D("div", { class: "clear" }, null, -1))
206
+ t[10] || (t[10] = y("div", { class: "clear" }, null, -1))
207
207
  ]),
208
208
  n(G, {
209
209
  shadow: "never",
210
210
  class: "table-container"
211
211
  }, {
212
212
  header: o(() => [
213
- n(V, null, {
213
+ n($, null, {
214
214
  default: o(() => [
215
- n(S, { span: 17 }, {
215
+ n(D, { span: 17 }, {
216
216
  default: o(() => [
217
- h((u(), b(y, {
217
+ S((m(), g(h, {
218
218
  type: "primary",
219
219
  onClick: q
220
220
  }, {
@@ -223,30 +223,19 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
223
223
  ]),
224
224
  _: 1
225
225
  })), [
226
- [_, ["task:task_define:add"]]
227
- ]),
228
- h((u(), b(y, {
229
- type: "primary",
230
- onClick: t[4] || (t[4] = (e) => l(i).deleteRecords())
231
- }, {
232
- default: o(() => [
233
- d(r(a.$t("common.batchDelete")), 1)
234
- ]),
235
- _: 1
236
- })), [
237
- [_, ["task:task_define:delete"]]
226
+ [w, ["task:task_define:add"]]
238
227
  ])
239
228
  ]),
240
229
  _: 1
241
230
  }),
242
- n(S, {
231
+ n(D, {
243
232
  span: 7,
244
233
  class: "container-float"
245
234
  }, {
246
235
  default: o(() => [
247
- n(x, {
236
+ n(M, {
248
237
  modelValue: l(f),
249
- "onUpdate:modelValue": t[5] || (t[5] = (e) => P(f) ? f.value = e : f = e),
238
+ "onUpdate:modelValue": t[4] || (t[4] = (e) => R(f) ? f.value = e : f = e),
250
239
  "label-name": "task/task-define"
251
240
  }, null, 8, ["modelValue"])
252
241
  ]),
@@ -257,16 +246,16 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
257
246
  })
258
247
  ]),
259
248
  footer: o(() => [
260
- l(v) > 0 ? (u(), b(W, {
249
+ l(b) > 0 ? (m(), g(W, {
261
250
  key: 0,
262
- total: l(v),
263
- "onUpdate:total": t[6] || (t[6] = (e) => P(v) ? v.value = e : null),
264
- "current-page": m.value.curPage,
265
- "onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
266
- "page-size": m.value.pageSize,
267
- "onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
268
- onPagination: t[9] || (t[9] = (e) => l(i).getList())
269
- }, null, 8, ["total", "current-page", "page-size"])) : R("", !0)
251
+ total: l(b),
252
+ "onUpdate:total": t[5] || (t[5] = (e) => R(b) ? b.value = e : null),
253
+ "current-page": u.value.curPage,
254
+ "onUpdate:currentPage": t[6] || (t[6] = (e) => u.value.curPage = e),
255
+ "page-size": u.value.pageSize,
256
+ "onUpdate:pageSize": t[7] || (t[7] = (e) => u.value.pageSize = e),
257
+ onPagination: t[8] || (t[8] = (e) => l(i).getList())
258
+ }, null, 8, ["total", "current-page", "page-size"])) : P("", !0)
270
259
  ]),
271
260
  default: o(() => [
272
261
  n(O, {
@@ -280,10 +269,10 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
280
269
  onSortChange: K
281
270
  }, {
282
271
  taskSort: o((e) => [
283
- D("span", null, r(j(e.data.row.taskSort)), 1)
272
+ y("span", null, r(j(e.data.row.taskSort)), 1)
284
273
  ]),
285
274
  taskCount: o((e) => [
286
- D("span", null, r(e.data.row.taskCount) + "次/" + r(l(ie).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
275
+ y("span", null, r(e.data.row.taskCount) + "次/" + r(l(ie).taskPeriodEnum.getEnumValue(e.data.row.taskPeriod)), 1)
287
276
  ]),
288
277
  createBy: o((e) => [
289
278
  d(r(l(re).userInfo(e.data.row.createBy).realName), 1)
@@ -295,21 +284,21 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
295
284
  )), 1)
296
285
  ]),
297
286
  operation: o((e) => [
298
- h((u(), g("span", {
287
+ S((m(), _("span", {
299
288
  class: "el-button-color",
300
289
  onClick: (J) => Y(e.data.row)
301
290
  }, [
302
291
  d(r(a.$t("common.edit")), 1)
303
292
  ], 8, fe)), [
304
- [_, ["task:task_define:update"]]
293
+ [w, ["task:task_define:update"]]
305
294
  ]),
306
- h((u(), g("span", {
295
+ S((m(), _("span", {
307
296
  class: "el-button-color dropdown-left",
308
297
  onClick: (J) => l(i).deleteRecord(e.data.row)
309
298
  }, [
310
299
  d(r(a.$t("common.delete")), 1)
311
300
  ], 8, ke)), [
312
- [_, ["task:task_define:delete"]]
301
+ [w, ["task:task_define:delete"]]
313
302
  ])
314
303
  ]),
315
304
  _: 1
@@ -317,15 +306,15 @@ const pe = { class: "app-container" }, ce = { class: "search-container" }, fe =
317
306
  ]),
318
307
  _: 1
319
308
  }),
320
- p.value.visible ? (u(), b(me, {
309
+ p.value.visible ? (m(), g(me, {
321
310
  key: 0,
322
311
  modelValue: p.value.visible,
323
- "onUpdate:modelValue": t[10] || (t[10] = (e) => p.value.visible = e),
312
+ "onUpdate:modelValue": t[9] || (t[9] = (e) => p.value.visible = e),
324
313
  title: p.value.title,
325
314
  "entity-key": l(T),
326
315
  onRefresh: F,
327
316
  width: "900px"
328
- }, null, 8, ["modelValue", "title", "entity-key"])) : R("", !0)
317
+ }, null, 8, ["modelValue", "title", "entity-key"])) : P("", !0)
329
318
  ]);
330
319
  };
331
320
  }
package/dist/index.mjs CHANGED
@@ -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-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 = {
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-CSqnIoJ3.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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sooyie-task",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",