sooyie-material 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,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BopU_9QQ.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-BGu29E2H.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-D-qmasri.mjs";
1
+ import { _ as f } from "./edit.vue_vue_type_script_setup_true_lang-DicqttOn.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, mergeModels as C, ref as v, reactive as h, useModel as F, resolveComponent as i, createBlock as K, openBlock as O, withCtx as m, createVNode as o, unref as n, createElementVNode as S, createTextVNode as N, toDisplayString as k } from "vue";
2
2
  import { ElMessage as I } from "element-plus";
3
3
  import { useI18n as z } from "vue-i18n";
4
- import { D as w, m as c } from "./index-DAci2f17.mjs";
4
+ import { D as w, m as c } from "./index-ZJYZNfv5.mjs";
5
5
  const E = { class: "dialog-footer" }, H = /* @__PURE__ */ j({
6
6
  __name: "edit",
7
7
  props: /* @__PURE__ */ C({
@@ -2,8 +2,9 @@ import { defineComponent as Z, mergeModels as F, ref as c, reactive as j, useMod
2
2
  import { ElMessage as S } from "element-plus";
3
3
  import { useI18n as le } from "vue-i18n";
4
4
  import "jmash-core";
5
- import { D as T, a as g, g as z } from "./index-DAci2f17.mjs";
6
- const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
5
+ import { userApi as T } from "jmash-rbac";
6
+ import { D as z, a as g } from "./index-ZJYZNfv5.mjs";
7
+ const ae = { class: "dialog-footer" }, ie = /* @__PURE__ */ Z({
7
8
  __name: "edit",
8
9
  props: /* @__PURE__ */ F({
9
10
  entityKey: {
@@ -18,7 +19,7 @@ const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
18
19
  emits: /* @__PURE__ */ F(["refresh"], ["update:modelValue"]),
19
20
  setup(w, { emit: A }) {
20
21
  const { t: m } = le();
21
- T.materialCategoryBizDict.useValues();
22
+ z.materialCategoryBizDict.useValues();
22
23
  const k = c(), b = c([]);
23
24
  let r = j({
24
25
  requestId: Math.random() * 10 + "",
@@ -68,7 +69,7 @@ const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
68
69
  }
69
70
  ]
70
71
  }), C = c([]), s = x(w, "modelValue"), R = w, N = A, y = (e = "") => {
71
- console.log(e), z.findPage({ loginName: e }).then(({ data: l }) => {
72
+ console.log(e), T.findPage({ loginName: e }).then(({ data: l }) => {
72
73
  b.value = l.results;
73
74
  });
74
75
  };
@@ -83,7 +84,7 @@ const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
83
84
  Object.assign(r, e);
84
85
  const l = [];
85
86
  r.plannerId && l.push(r.plannerId), r.operatorId && l.push(r.operatorId), l.length !== 0 && l.map((u) => {
86
- z.findById({ userId: u }).then(({ data: i }) => {
87
+ T.findById({ userId: u }).then(({ data: i }) => {
87
88
  y(i.realName);
88
89
  });
89
90
  });
@@ -158,7 +159,7 @@ const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
158
159
  t(u, {
159
160
  modelValue: n(r).categoryId,
160
161
  "onUpdate:modelValue": l[0] || (l[0] = (a) => n(r).categoryId = a),
161
- data: n(T).materialCategoryBizDict.values,
162
+ data: n(z).materialCategoryBizDict.values,
162
163
  filterable: "",
163
164
  clearable: "",
164
165
  "check-strictly": "",
@@ -369,5 +370,5 @@ const ae = { class: "dialog-footer" }, de = /* @__PURE__ */ Z({
369
370
  }
370
371
  });
371
372
  export {
372
- de as _
373
+ ie as _
373
374
  };
@@ -1,21 +1,21 @@
1
- import { defineComponent as J, ref as w, reactive as R, onActivated as O, resolveComponent as r, resolveDirective as W, createElementBlock as $, openBlock as d, createElementVNode as X, createVNode as l, createBlock as b, createCommentVNode as D, withCtx as o, withKeys as Y, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as C, isRef as S } from "vue";
2
- import { useTableHooks as Z } from "jmash-core";
3
- import { useI18n as ee } from "vue-i18n";
4
- import { D as te, m as oe } from "./index-DAci2f17.mjs";
5
- import { _ as le } from "./edit.vue_vue_type_script_setup_true_lang-BopU_9QQ.mjs";
6
- const ae = { class: "app-container" }, ne = { class: "search-container" }, re = ["onClick"], ie = ["onClick"], fe = /* @__PURE__ */ J({
1
+ import { defineComponent as W, ref as w, reactive as R, onActivated as X, resolveComponent as r, resolveDirective as D, createElementBlock as $, openBlock as d, createElementVNode as Y, createVNode as l, createBlock as _, createCommentVNode as S, withCtx as o, withKeys as Z, unref as n, createTextVNode as u, toDisplayString as c, withDirectives as f, isRef as z } from "vue";
2
+ import { useTableHooks as ee } from "jmash-core";
3
+ import { useI18n as te } from "vue-i18n";
4
+ import { D as oe, m as le } from "./index-ZJYZNfv5.mjs";
5
+ import { _ as ae } from "./edit.vue_vue_type_script_setup_true_lang-BGu29E2H.mjs";
6
+ const ne = { class: "app-container" }, re = { class: "search-container" }, ie = ["onClick"], me = ["onClick"], fe = /* @__PURE__ */ W({
7
7
  __name: "index",
8
- setup(me) {
9
- const { t: f } = ee();
10
- te.materialCategoryBizDict.useValues();
8
+ setup(se) {
9
+ const { t: y } = te();
10
+ oe.materialCategoryBizDict.useValues();
11
11
  const m = w({}), {
12
12
  tableHooks: i,
13
- multipleTableRef: z,
14
- queryFormRef: T,
15
- listLoading: P,
16
- tableData: j,
17
- total: y
18
- } = Z(f, oe, m);
13
+ multipleTableRef: T,
14
+ queryFormRef: P,
15
+ listLoading: j,
16
+ tableData: U,
17
+ total: g
18
+ } = ee(y, le, m);
19
19
  let p = w([
20
20
  {
21
21
  label: "materialCategory.categoryName",
@@ -46,52 +46,52 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
46
46
  }
47
47
  ]);
48
48
  const s = w({
49
- title: f("common.edit"),
49
+ title: y("common.edit"),
50
50
  visible: !1
51
51
  });
52
52
  let k = R({});
53
- function U() {
54
- k = R({}), s.value.title = f("common.add"), s.value.visible = !0;
55
- }
56
- function L(a) {
57
- k.categoryId = a.categoryId, s.value.title = f("common.edit"), s.value.visible = !0;
53
+ function L() {
54
+ k = R({}), s.value.title = y("common.add"), s.value.visible = !0;
58
55
  }
59
56
  function q(a) {
60
- i.selectionRows.value = a;
57
+ k.categoryId = a.categoryId, s.value.title = y("common.edit"), s.value.visible = !0;
61
58
  }
62
59
  function I(a) {
63
- i.handleSort(a.prop, a.order);
60
+ i.selectionRows.value = a;
64
61
  }
65
62
  function A(a) {
63
+ i.handleSort(a.prop, a.order);
64
+ }
65
+ function E(a) {
66
66
  a && i.getList();
67
67
  }
68
- return O(() => {
68
+ return X(() => {
69
69
  i.getList();
70
70
  }), (a, t) => {
71
- const E = r("el-input"), V = r("el-form-item"), _ = r("el-col"), g = r("el-button"), N = r("el-row"), K = r("el-form"), Q = r("jmash-column-select"), F = r("Bottom"), B = r("el-icon"), H = r("Top"), M = r("jmash-table"), x = r("jmash-pagination"), G = r("el-card"), v = W("hasPerm");
72
- return d(), $("div", ae, [
73
- X("div", ne, [
74
- l(K, {
71
+ const K = r("el-input"), V = r("el-form-item"), v = r("el-col"), b = r("el-button"), N = r("el-row"), Q = r("el-form"), F = r("jmash-column-select"), H = r("Bottom"), B = r("el-icon"), M = r("Top"), x = r("jmash-table"), G = r("jmash-pagination"), J = r("el-card"), C = D("hasPerm"), O = D("loading");
72
+ return d(), $("div", ne, [
73
+ Y("div", re, [
74
+ l(Q, {
75
75
  ref_key: "queryFormRef",
76
- ref: T,
76
+ ref: P,
77
77
  model: m.value,
78
78
  inline: !0
79
79
  }, {
80
80
  default: o(() => [
81
81
  l(N, null, {
82
82
  default: o(() => [
83
- l(_, { span: 6 }, {
83
+ l(v, { span: 6 }, {
84
84
  default: o(() => [
85
85
  l(V, {
86
86
  label: a.$t("materialCategory.categoryName"),
87
87
  prop: "likeCategoryName"
88
88
  }, {
89
89
  default: o(() => [
90
- l(E, {
90
+ l(K, {
91
91
  modelValue: m.value.likeCategoryName,
92
92
  "onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.likeCategoryName = e),
93
93
  placeholder: a.$t("materialCategory.categoryNameRequired"),
94
- onKeyup: t[1] || (t[1] = Y((e) => n(i).handleQuery(), ["enter"])),
94
+ onKeyup: t[1] || (t[1] = Z((e) => n(i).handleQuery(), ["enter"])),
95
95
  class: "!w-[203px]"
96
96
  }, null, 8, ["modelValue", "placeholder"])
97
97
  ]),
@@ -100,11 +100,11 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
100
100
  ]),
101
101
  _: 1
102
102
  }),
103
- l(_, { span: 18 }, {
103
+ l(v, { span: 18 }, {
104
104
  default: o(() => [
105
105
  l(V, { class: "search-btn" }, {
106
106
  default: o(() => [
107
- l(g, {
107
+ l(b, {
108
108
  type: "primary",
109
109
  onClick: t[2] || (t[2] = (e) => n(i).handleQuery())
110
110
  }, {
@@ -113,7 +113,7 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
113
113
  ]),
114
114
  _: 1
115
115
  }),
116
- l(g, {
116
+ l(b, {
117
117
  onClick: t[3] || (t[3] = (e) => n(i).resetQuery())
118
118
  }, {
119
119
  default: o(() => [
@@ -134,27 +134,27 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
134
134
  _: 1
135
135
  }, 8, ["model"])
136
136
  ]),
137
- l(G, {
137
+ l(J, {
138
138
  shadow: "never",
139
139
  class: "table-container"
140
140
  }, {
141
141
  header: o(() => [
142
142
  l(N, null, {
143
143
  default: o(() => [
144
- l(_, { span: 17 }, {
144
+ l(v, { span: 17 }, {
145
145
  default: o(() => [
146
- C((d(), b(g, {
146
+ f((d(), _(b, {
147
147
  type: "primary",
148
- onClick: U
148
+ onClick: L
149
149
  }, {
150
150
  default: o(() => [
151
151
  u(c(a.$t("common.add")), 1)
152
152
  ]),
153
153
  _: 1
154
154
  })), [
155
- [v, ["material:material_category:add"]]
155
+ [C, ["material:material_category:add"]]
156
156
  ]),
157
- C((d(), b(g, {
157
+ f((d(), _(b, {
158
158
  type: "primary",
159
159
  onClick: t[4] || (t[4] = (e) => n(i).deleteRecords())
160
160
  }, {
@@ -163,19 +163,19 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
163
163
  ]),
164
164
  _: 1
165
165
  })), [
166
- [v, ["material:material_category:delete"]]
166
+ [C, ["material:material_category:delete"]]
167
167
  ])
168
168
  ]),
169
169
  _: 1
170
170
  }),
171
- l(_, {
171
+ l(v, {
172
172
  span: 7,
173
173
  class: "container-float"
174
174
  }, {
175
175
  default: o(() => [
176
- l(Q, {
176
+ l(F, {
177
177
  modelValue: n(p),
178
- "onUpdate:modelValue": t[5] || (t[5] = (e) => S(p) ? p.value = e : p = e),
178
+ "onUpdate:modelValue": t[5] || (t[5] = (e) => z(p) ? p.value = e : p = e),
179
179
  "label-name": "mat-material-category"
180
180
  }, null, 8, ["modelValue"])
181
181
  ]),
@@ -186,27 +186,26 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
186
186
  })
187
187
  ]),
188
188
  footer: o(() => [
189
- n(y) > 0 ? (d(), b(x, {
189
+ n(g) > 0 ? (d(), _(G, {
190
190
  key: 0,
191
- total: n(y),
192
- "onUpdate:total": t[6] || (t[6] = (e) => S(y) ? y.value = e : null),
191
+ total: n(g),
192
+ "onUpdate:total": t[6] || (t[6] = (e) => z(g) ? g.value = e : null),
193
193
  "current-page": m.value.curPage,
194
194
  "onUpdate:currentPage": t[7] || (t[7] = (e) => m.value.curPage = e),
195
195
  "page-size": m.value.pageSize,
196
196
  "onUpdate:pageSize": t[8] || (t[8] = (e) => m.value.pageSize = e),
197
197
  onPagination: t[9] || (t[9] = (e) => n(i).getList())
198
- }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
198
+ }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
199
199
  ]),
200
200
  default: o(() => [
201
- l(M, {
201
+ f((d(), _(x, {
202
202
  ref_key: "multipleTableRef",
203
- ref: z,
203
+ ref: T,
204
204
  "row-key": "categoryId",
205
- "list-loading": n(P),
206
- data: n(j),
205
+ data: n(U),
207
206
  "table-label": n(p),
208
- onSelectionChange: q,
209
- onSortChange: I
207
+ onSelectionChange: I,
208
+ onSortChange: A
210
209
  }, {
211
210
  orderBy: o((e) => [
212
211
  l(B, {
@@ -214,7 +213,7 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
214
213
  onClick: (h) => n(i).handleMove(e.data.row, !1)
215
214
  }, {
216
215
  default: o(() => [
217
- l(F)
216
+ l(H)
218
217
  ]),
219
218
  _: 2
220
219
  }, 1032, ["onClick"]),
@@ -223,43 +222,45 @@ const ae = { class: "app-container" }, ne = { class: "search-container" }, re =
223
222
  onClick: (h) => n(i).handleMove(e.data.row, !0)
224
223
  }, {
225
224
  default: o(() => [
226
- l(H)
225
+ l(M)
227
226
  ]),
228
227
  _: 2
229
228
  }, 1032, ["onClick"])
230
229
  ]),
231
230
  operation: o((e) => [
232
- C((d(), $("span", {
231
+ f((d(), $("span", {
233
232
  class: "el-button-color",
234
- onClick: (h) => L(e.data.row)
233
+ onClick: (h) => q(e.data.row)
235
234
  }, [
236
235
  u(c(a.$t("common.edit")), 1)
237
- ], 8, re)), [
238
- [v, ["material:material_category:update"]]
236
+ ], 8, ie)), [
237
+ [C, ["material:material_category:update"]]
239
238
  ]),
240
- C((d(), $("span", {
239
+ f((d(), $("span", {
241
240
  class: "el-button-color dropdown-left",
242
241
  onClick: (h) => n(i).deleteRecord(e.data.row)
243
242
  }, [
244
243
  u(c(a.$t("common.delete")), 1)
245
- ], 8, ie)), [
246
- [v, ["material:material_category:delete"]]
244
+ ], 8, me)), [
245
+ [C, ["material:material_category:delete"]]
247
246
  ])
248
247
  ]),
249
248
  _: 1
250
- }, 8, ["list-loading", "data", "table-label"])
249
+ }, 8, ["data", "table-label"])), [
250
+ [O, n(j)]
251
+ ])
251
252
  ]),
252
253
  _: 1
253
254
  }),
254
- s.value.visible ? (d(), b(le, {
255
+ s.value.visible ? (d(), _(ae, {
255
256
  key: 0,
256
257
  modelValue: s.value.visible,
257
258
  "onUpdate:modelValue": t[10] || (t[10] = (e) => s.value.visible = e),
258
259
  title: s.value.title,
259
260
  "entity-key": n(k),
260
- onRefresh: A,
261
+ onRefresh: E,
261
262
  width: "600px"
262
- }, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
263
+ }, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
263
264
  ]);
264
265
  };
265
266
  }