xyvcard-asset 0.0.16 → 0.0.17

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,33 +1,35 @@
1
- import { defineComponent as ae, ref as k, reactive as j, resolveComponent as s, resolveDirective as ne, openBlock as u, createElementBlock as p, createElementVNode as y, createVNode as o, withCtx as a, unref as n, withKeys as R, toDisplayString as d, createTextVNode as f, withDirectives as b, createBlock as D, isRef as z, createCommentVNode as S, vShow as L } from "vue";
2
- import { D as C, s as se } from "./index-Dw9AQlSo.mjs";
3
- import { useI18n as ie } from "vue-i18n";
4
- import { useRouter as re } from "vue-router";
5
- import { _ as ue } from "./edit.vue_vue_type_script_setup_true_lang-DnsSFyiS.mjs";
6
- import { useTableHooks as de } from "jmash-core";
7
- const me = { class: "app-container" }, pe = { class: "search-container" }, ce = { key: 0 }, fe = { key: 1 }, be = {
1
+ import { defineComponent as se, ref as k, reactive as E, resolveComponent as s, resolveDirective as ie, openBlock as d, createElementBlock as p, createElementVNode as g, createVNode as o, withCtx as a, unref as n, withKeys as q, toDisplayString as u, createTextVNode as f, withDirectives as b, createBlock as R, isRef as j, createCommentVNode as D, vShow as z } from "vue";
2
+ import { useTableHooks as re, fileApi as T } from "jmash-core";
3
+ import { D as C, s as de } from "./index-Dw9AQlSo.mjs";
4
+ import { useI18n as ue } from "vue-i18n";
5
+ import { useRouter as me } from "vue-router";
6
+ import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-DnsSFyiS.mjs";
7
+ const ce = { class: "app-container" }, fe = { class: "search-container" }, be = { key: 0 }, _e = { key: 1 }, ve = {
8
8
  key: 2,
9
9
  class: "distance-left"
10
- }, _e = ["onClick"], ve = ["onClick"], ye = ["onClick"], Ie = /* @__PURE__ */ ae({
10
+ }, ge = ["onClick"], ye = ["onClick"], we = ["onClick"], qe = /* @__PURE__ */ se({
11
11
  __name: "index",
12
- setup(ge) {
12
+ setup(he) {
13
13
  C.unionOrgBizLayDict.useValues();
14
- const T = re(), { t: V } = ie(), i = k({
14
+ const L = me(), { t: V } = ue(), i = k({
15
15
  curPage: 1,
16
16
  pageSize: 10
17
17
  }), {
18
18
  tableHooks: r,
19
- multipleTableRef: q,
20
- queryFormRef: Q,
21
- listLoading: B,
22
- tableData: K,
23
- total: g
24
- } = de(V, se, i);
19
+ multipleTableRef: B,
20
+ queryFormRef: K,
21
+ listLoading: Q,
22
+ tableData: A,
23
+ total: y
24
+ } = re(V, de, i);
25
25
  let _ = k([
26
26
  // 场地码
27
27
  {
28
- label: "site.siteQrcode",
29
- prop: "siteQrcode",
28
+ label: "site.qrcode",
29
+ prop: "qrcode",
30
30
  width: "180",
31
+ slotName: "qrcode",
32
+ columnType: "slot",
31
33
  isColumn: !0
32
34
  },
33
35
  // 所属工会
@@ -104,52 +106,52 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
104
106
  }
105
107
  ]);
106
108
  const $ = k(""), v = k(!1);
107
- let I = j({});
109
+ let I = E({});
108
110
  function O() {
109
- I = j({}), $.value = V("common.add"), v.value = !0;
111
+ I = E({}), $.value = V("common.add"), v.value = !0;
110
112
  }
111
- function A(l) {
113
+ function F(l) {
112
114
  I.siteId = l.siteId, $.value = V("common.edit"), v.value = !0;
113
115
  }
114
- function F(l) {
115
- T.push({
116
+ function H(l) {
117
+ L.push({
116
118
  path: "/asset/asset-site/assetSiteInfo",
117
119
  query: { entityKey: l.siteId }
118
120
  });
119
121
  }
120
- function H(l) {
122
+ function G(l) {
121
123
  l && r.getList();
122
124
  }
123
- function G(l) {
125
+ function J(l) {
124
126
  r.handleSort(l.prop, l.order);
125
127
  }
126
- function J(l) {
128
+ function M(l) {
127
129
  r.selectionRows.value = l;
128
130
  }
129
131
  function N(l) {
130
132
  l.mobileEncrypt = !l.mobileEncrypt;
131
133
  }
132
134
  return r.getList(), (l, t) => {
133
- const M = s("el-tooltip"), W = s("el-tree-select"), h = s("el-form-item"), c = s("el-col"), X = s("el-input"), Y = s("jmash-select"), P = s("el-button"), E = s("el-row"), Z = s("el-form"), x = s("jmash-column-select"), U = s("svg-icon"), ee = s("el-switch"), te = s("jmash-table"), le = s("jmash-pagination"), oe = s("el-card"), w = ne("hasPerm");
134
- return u(), p("div", me, [
135
- y("div", pe, [
136
- o(Z, {
135
+ const W = s("el-tooltip"), X = s("el-tree-select"), w = s("el-form-item"), c = s("el-col"), Y = s("el-input"), Z = s("jmash-select"), P = s("el-button"), S = s("el-row"), x = s("el-form"), ee = s("jmash-column-select"), te = s("el-image"), U = s("svg-icon"), le = s("el-switch"), oe = s("jmash-table"), ae = s("jmash-pagination"), ne = s("el-card"), h = ie("hasPerm");
136
+ return d(), p("div", ce, [
137
+ g("div", fe, [
138
+ o(x, {
137
139
  ref_key: "queryFormRef",
138
- ref: Q,
140
+ ref: K,
139
141
  model: i.value,
140
142
  inline: !0
141
143
  }, {
142
144
  default: a(() => [
143
- o(E, null, {
145
+ o(S, null, {
144
146
  default: a(() => [
145
147
  o(c, { span: 6 }, {
146
148
  default: a(() => [
147
- o(h, {
149
+ o(w, {
148
150
  label: l.$t("site.orgId"),
149
151
  prop: "orgId"
150
152
  }, {
151
153
  default: a(() => [
152
- o(W, {
154
+ o(X, {
153
155
  modelValue: i.value.orgId,
154
156
  "onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.orgId = e),
155
157
  data: n(C).unionOrgBizLayDict.values,
@@ -159,18 +161,18 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
159
161
  "render-after-expand": !1,
160
162
  placeholder: l.$t("site.orgIdRequired"),
161
163
  class: "!w-[203px]",
162
- onKeyup: t[1] || (t[1] = R((e) => n(r).handleQuery(), ["enter"]))
164
+ onKeyup: t[1] || (t[1] = q((e) => n(r).handleQuery(), ["enter"]))
163
165
  }, {
164
166
  default: a(({ data: e }) => [
165
- y("span", null, [
166
- o(M, {
167
+ g("span", null, [
168
+ o(W, {
167
169
  class: "box-item",
168
170
  effect: "light",
169
171
  content: e.label,
170
172
  placement: "top"
171
173
  }, {
172
174
  default: a(() => [
173
- y("span", null, d(e.label), 1)
175
+ g("span", null, u(e.label), 1)
174
176
  ]),
175
177
  _: 2
176
178
  }, 1032, ["content"])
@@ -186,17 +188,17 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
186
188
  }),
187
189
  o(c, { span: 6 }, {
188
190
  default: a(() => [
189
- o(h, {
191
+ o(w, {
190
192
  label: l.$t("site.name"),
191
193
  prop: "likeName"
192
194
  }, {
193
195
  default: a(() => [
194
- o(X, {
196
+ o(Y, {
195
197
  modelValue: i.value.likeName,
196
198
  "onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.likeName = e),
197
199
  placeholder: l.$t("site.nameRequired"),
198
200
  class: "!w-[203px]",
199
- onKeyup: t[3] || (t[3] = R((e) => n(r).handleQuery(), ["enter"]))
201
+ onKeyup: t[3] || (t[3] = q((e) => n(r).handleQuery(), ["enter"]))
200
202
  }, null, 8, ["modelValue", "placeholder"])
201
203
  ]),
202
204
  _: 1
@@ -206,17 +208,17 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
206
208
  }),
207
209
  o(c, { span: 6 }, {
208
210
  default: a(() => [
209
- o(h, {
211
+ o(w, {
210
212
  label: l.$t("site.status"),
211
213
  prop: "status"
212
214
  }, {
213
215
  default: a(() => [
214
- o(Y, {
216
+ o(Z, {
215
217
  modelValue: i.value.status,
216
218
  "onUpdate:modelValue": t[4] || (t[4] = (e) => i.value.status = e),
217
219
  placeholder: l.$t("site.statusRequired"),
218
220
  data: n(C).enableDict.values,
219
- onKeyup: t[5] || (t[5] = R((e) => n(r).handleQuery(), ["enter"]))
221
+ onKeyup: t[5] || (t[5] = q((e) => n(r).handleQuery(), ["enter"]))
220
222
  }, null, 8, ["modelValue", "placeholder", "data"])
221
223
  ]),
222
224
  _: 1
@@ -226,14 +228,14 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
226
228
  }),
227
229
  o(c, { span: 6 }, {
228
230
  default: a(() => [
229
- o(h, { class: "search-btn" }, {
231
+ o(w, { class: "search-btn" }, {
230
232
  default: a(() => [
231
233
  o(P, {
232
234
  type: "primary",
233
235
  onClick: t[6] || (t[6] = (e) => n(r).handleQuery())
234
236
  }, {
235
237
  default: a(() => [
236
- f(d(l.$t("common.search")), 1)
238
+ f(u(l.$t("common.search")), 1)
237
239
  ]),
238
240
  _: 1
239
241
  }),
@@ -241,7 +243,7 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
241
243
  onClick: t[7] || (t[7] = (e) => n(r).resetQuery())
242
244
  }, {
243
245
  default: a(() => [
244
- f(d(l.$t("common.reset")), 1)
246
+ f(u(l.$t("common.reset")), 1)
245
247
  ]),
246
248
  _: 1
247
249
  })
@@ -258,25 +260,25 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
258
260
  _: 1
259
261
  }, 8, ["model"])
260
262
  ]),
261
- o(oe, {
263
+ o(ne, {
262
264
  shadow: "never",
263
265
  class: "table-container"
264
266
  }, {
265
267
  header: a(() => [
266
- o(E, { justify: "space-between" }, {
268
+ o(S, { justify: "space-between" }, {
267
269
  default: a(() => [
268
270
  o(c, { span: 17 }, {
269
271
  default: a(() => [
270
- b((u(), D(P, {
272
+ b((d(), R(P, {
271
273
  type: "primary",
272
274
  onClick: O
273
275
  }, {
274
276
  default: a(() => [
275
- f(d(l.$t("common.add")), 1)
277
+ f(u(l.$t("common.add")), 1)
276
278
  ]),
277
279
  _: 1
278
280
  })), [
279
- [w, ["asset:site:add"]]
281
+ [h, ["asset:site:add"]]
280
282
  ])
281
283
  ]),
282
284
  _: 1
@@ -286,9 +288,9 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
286
288
  class: "container-float"
287
289
  }, {
288
290
  default: a(() => [
289
- o(x, {
291
+ o(ee, {
290
292
  modelValue: n(_),
291
- "onUpdate:modelValue": t[8] || (t[8] = (e) => z(_) ? _.value = e : _ = e),
293
+ "onUpdate:modelValue": t[8] || (t[8] = (e) => j(_) ? _.value = e : _ = e),
292
294
  "label-name": "asset/asset-site"
293
295
  }, null, 8, ["modelValue"])
294
296
  ]),
@@ -299,52 +301,61 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
299
301
  })
300
302
  ]),
301
303
  footer: a(() => [
302
- n(g) > 0 ? (u(), D(le, {
304
+ n(y) > 0 ? (d(), R(ae, {
303
305
  key: 0,
304
- total: n(g),
305
- "onUpdate:total": t[9] || (t[9] = (e) => z(g) ? g.value = e : null),
306
+ total: n(y),
307
+ "onUpdate:total": t[9] || (t[9] = (e) => j(y) ? y.value = e : null),
306
308
  "current-page": i.value.curPage,
307
309
  "onUpdate:currentPage": t[10] || (t[10] = (e) => i.value.curPage = e),
308
310
  "page-size": i.value.pageSize,
309
311
  "onUpdate:pageSize": t[11] || (t[11] = (e) => i.value.pageSize = e),
310
312
  onPagination: t[12] || (t[12] = (e) => n(r).getList())
311
- }, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
313
+ }, null, 8, ["total", "current-page", "page-size"])) : D("", !0)
312
314
  ]),
313
315
  default: a(() => [
314
- o(te, {
316
+ o(oe, {
315
317
  ref_key: "multipleTableRef",
316
- ref: q,
318
+ ref: B,
317
319
  class: "table-top",
318
320
  "row-key": "siteId",
319
- "list-loading": n(B),
320
- data: n(K),
321
+ "list-loading": n(Q),
322
+ data: n(A),
321
323
  "table-label": n(_),
322
- onSelectionChange: J,
323
- onSortChange: G
324
+ onSelectionChange: M,
325
+ onSortChange: J
324
326
  }, {
327
+ qrcode: a((e) => [
328
+ o(te, {
329
+ src: n(T).imageUrl(e.data.row.qrcode, 30, 30),
330
+ "preview-src-list": [n(T).imageUrl(e.data.row.qrcode)],
331
+ "preview-teleported": "",
332
+ "hide-on-click-modal": "",
333
+ fit: "contain"
334
+ }, null, 8, ["src", "preview-src-list"])
335
+ ]),
325
336
  orgId: a((e) => [
326
- y("span", null, d(n(C).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
337
+ g("span", null, u(n(C).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
327
338
  ]),
328
339
  mobilePhone: a((e) => [
329
- e.data.row.mobileEncrypt ? (u(), p("span", fe, d(e.data.row.mobilePhone), 1)) : (u(), p("span", ce, d(e.data.row.mobilePhoneIns), 1)),
330
- e.data.row.mobilePhoneIns ? (u(), p("span", be, [
340
+ e.data.row.mobileEncrypt ? (d(), p("span", _e, u(e.data.row.mobilePhone), 1)) : (d(), p("span", be, u(e.data.row.mobilePhoneIns), 1)),
341
+ e.data.row.mobilePhoneIns ? (d(), p("span", ve, [
331
342
  b(o(U, {
332
343
  "icon-class": "close-eye",
333
344
  onClick: (m) => N(e.data.row)
334
345
  }, null, 8, ["onClick"]), [
335
- [L, !e.data.row.mobileEncrypt]
346
+ [z, !e.data.row.mobileEncrypt]
336
347
  ]),
337
348
  b(o(U, {
338
349
  "icon-class": "eye-open",
339
350
  onClick: (m) => N(e.data.row)
340
351
  }, null, 8, ["onClick"]), [
341
- [L, e.data.row.mobileEncrypt]
352
+ [z, e.data.row.mobileEncrypt]
342
353
  ])
343
- ])) : S("", !0)
354
+ ])) : D("", !0)
344
355
  ]),
345
356
  status: a((e) => [
346
- y("span", null, [
347
- o(ee, {
357
+ g("span", null, [
358
+ o(le, {
348
359
  modelValue: e.data.row.status,
349
360
  "onUpdate:modelValue": (m) => e.data.row.status = m,
350
361
  onChange: (m) => n(r).enableRecord(e.data.row, e.data.row.status)
@@ -352,29 +363,29 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
352
363
  ])
353
364
  ]),
354
365
  operation: a((e) => [
355
- b((u(), p("span", {
366
+ b((d(), p("span", {
356
367
  class: "el-button-color",
357
- onClick: (m) => A(e.data.row)
368
+ onClick: (m) => F(e.data.row)
358
369
  }, [
359
- f(d(l.$t("common.edit")), 1)
360
- ], 8, _e)), [
361
- [w, ["asset:site:update"]]
370
+ f(u(l.$t("common.edit")), 1)
371
+ ], 8, ge)), [
372
+ [h, ["asset:site:update"]]
362
373
  ]),
363
- b((u(), p("span", {
374
+ b((d(), p("span", {
364
375
  class: "el-button-color dropdown-left",
365
376
  onClick: (m) => n(r).deleteRecord(e.data.row)
366
377
  }, [
367
- f(d(l.$t("common.delete")), 1)
368
- ], 8, ve)), [
369
- [w, ["asset:site:delete"]]
378
+ f(u(l.$t("common.delete")), 1)
379
+ ], 8, ye)), [
380
+ [h, ["asset:site:delete"]]
370
381
  ]),
371
- b((u(), p("span", {
382
+ b((d(), p("span", {
372
383
  class: "el-button-color dropdown-left",
373
- onClick: (m) => F(e.data.row)
384
+ onClick: (m) => H(e.data.row)
374
385
  }, [
375
- f(d(l.$t("common.view")), 1)
376
- ], 8, ye)), [
377
- [w, ["asset:site:view"]]
386
+ f(u(l.$t("common.view")), 1)
387
+ ], 8, we)), [
388
+ [h, ["asset:site:view"]]
378
389
  ])
379
390
  ]),
380
391
  _: 1
@@ -382,19 +393,19 @@ const me = { class: "app-container" }, pe = { class: "search-container" }, ce =
382
393
  ]),
383
394
  _: 1
384
395
  }),
385
- v.value ? (u(), D(ue, {
396
+ v.value ? (d(), R(pe, {
386
397
  key: 0,
387
398
  modelValue: v.value,
388
399
  "onUpdate:modelValue": t[13] || (t[13] = (e) => v.value = e),
389
400
  title: $.value,
390
401
  "entity-key": n(I),
391
402
  width: "900px",
392
- onRefresh: H
393
- }, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0)
403
+ onRefresh: G
404
+ }, null, 8, ["modelValue", "title", "entity-key"])) : D("", !0)
394
405
  ]);
395
406
  };
396
407
  }
397
408
  });
398
409
  export {
399
- Ie as default
410
+ qe as default
400
411
  };
package/dist/index.mjs CHANGED
@@ -108,7 +108,7 @@ const Ys = () => import("./index-CMtqB1MP.mjs"), Os = () => import("./index-XlZK
108
108
  nameRequired: "请输入场地名称",
109
109
  status: "状态",
110
110
  statusRequired: "请选择状态",
111
- siteQrcode: "场地码",
111
+ qrcode: "场地码",
112
112
  address: "场地地址",
113
113
  addressRequired: "请输入场地地址",
114
114
  buildDate: "建成时间",
@@ -2855,7 +2855,7 @@ const Fn = {
2855
2855
  }
2856
2856
  };
2857
2857
  }
2858
- }, Cn = /* @__PURE__ */ Object.assign({ "./views/asset/asset-asset-detail/edit.vue": () => import("./edit-CX2z9EYu.mjs"), "./views/asset/asset-asset-detail/index.vue": () => import("./index-BqLh2sg0.mjs"), "./views/asset/asset-asset/assign.vue": () => import("./assign-CbKUuMPJ.mjs"), "./views/asset/asset-asset/edit.vue": () => import("./edit-DfLSODib.mjs"), "./views/asset/asset-asset/index.vue": () => import("./index-B1wxTvDR.mjs"), "./views/asset/asset-asset/info/index.vue": () => import("./index-BQ16pRTg.mjs"), "./views/asset/asset-depreciation-record/index.vue": () => import("./index-BWZKXQRi.mjs"), "./views/asset/asset-depreciation-record/info/index.vue": () => import("./index-Btpx1Vf2.mjs"), "./views/asset/asset-inventory-record/index.vue": () => import("./index-CFUAQG0g.mjs"), "./views/asset/asset-inventory-record/info/index.vue": () => import("./index-C4xJg5F_.mjs"), "./views/asset/asset-service-appt-record/index.vue": () => import("./index-D4T2vouF.mjs"), "./views/asset/asset-service-appt-record/info/index.vue": () => import("./index-XlZKwbCX.mjs"), "./views/asset/asset-site-service/edit.vue": () => import("./edit-D6NV2pb2.mjs"), "./views/asset/asset-site-service/index.vue": () => import("./index-DrajJZ20.mjs"), "./views/asset/asset-site/edit.vue": () => import("./edit-BMiwAU2V.mjs"), "./views/asset/asset-site/index.vue": () => import("./index-C5OQhStx.mjs"), "./views/asset/asset-site/info/index.vue": () => import("./index-CMtqB1MP.mjs") }), Un = {
2858
+ }, Cn = /* @__PURE__ */ Object.assign({ "./views/asset/asset-asset-detail/edit.vue": () => import("./edit-CX2z9EYu.mjs"), "./views/asset/asset-asset-detail/index.vue": () => import("./index-BqLh2sg0.mjs"), "./views/asset/asset-asset/assign.vue": () => import("./assign-CbKUuMPJ.mjs"), "./views/asset/asset-asset/edit.vue": () => import("./edit-DfLSODib.mjs"), "./views/asset/asset-asset/index.vue": () => import("./index-B1wxTvDR.mjs"), "./views/asset/asset-asset/info/index.vue": () => import("./index-BQ16pRTg.mjs"), "./views/asset/asset-depreciation-record/index.vue": () => import("./index-BWZKXQRi.mjs"), "./views/asset/asset-depreciation-record/info/index.vue": () => import("./index-Btpx1Vf2.mjs"), "./views/asset/asset-inventory-record/index.vue": () => import("./index-CFUAQG0g.mjs"), "./views/asset/asset-inventory-record/info/index.vue": () => import("./index-C4xJg5F_.mjs"), "./views/asset/asset-service-appt-record/index.vue": () => import("./index-D4T2vouF.mjs"), "./views/asset/asset-service-appt-record/info/index.vue": () => import("./index-XlZKwbCX.mjs"), "./views/asset/asset-site-service/edit.vue": () => import("./edit-D6NV2pb2.mjs"), "./views/asset/asset-site-service/index.vue": () => import("./index-DrajJZ20.mjs"), "./views/asset/asset-site/edit.vue": () => import("./edit-BMiwAU2V.mjs"), "./views/asset/asset-site/index.vue": () => import("./index-D6Kzp68i.mjs"), "./views/asset/asset-site/info/index.vue": () => import("./index-CMtqB1MP.mjs") }), Un = {
2859
2859
  install(e) {
2860
2860
  e.use(Fn), Ss(Cn, 7), Ms(Rs), Ws(Ds);
2861
2861
  }
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  nameRequired: string;
7
7
  status: string;
8
8
  statusRequired: string;
9
- siteQrcode: string;
9
+ qrcode: string;
10
10
  address: string;
11
11
  addressRequired: string;
12
12
  buildDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xyvcard-asset",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/index.d.ts",