xyvcard-asset 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/README.md +52 -0
  2. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  3. package/dist/common-kbgEWG-E.mjs +24 -0
  4. package/dist/edit-Bo9bnbUP.mjs +492 -0
  5. package/dist/edit-CE3u81Q0.mjs +4 -0
  6. package/dist/edit-DJFxVmvv.mjs +624 -0
  7. package/dist/edit-qp_2xtTZ.mjs +242 -0
  8. package/dist/edit-zFZfd8e1.mjs +4 -0
  9. package/dist/edit.vue_vue_type_script_setup_true_lang-BdkCgqqE.mjs +401 -0
  10. package/dist/edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs +322 -0
  11. package/dist/edit.vue_vue_type_style_index_0_scoped_198fdb2f_lang-l0sNRNKZ.mjs +1 -0
  12. package/dist/favicon.ico +0 -0
  13. package/dist/index-Bf5U4Ucl.mjs +369 -0
  14. package/dist/index-Bh2imlN_.mjs +149 -0
  15. package/dist/index-CHNiaFZk.mjs +291 -0
  16. package/dist/index-CmlP_Rro.mjs +332 -0
  17. package/dist/index-Cqw_E8lr.mjs +1269 -0
  18. package/dist/index-DA_FS24d.mjs +146 -0
  19. package/dist/index-DKmGNvQl.mjs +370 -0
  20. package/dist/index-DLxpE9s5.mjs +305 -0
  21. package/dist/index-DWaL87j5.mjs +89 -0
  22. package/dist/index-jOnQLJaB.mjs +416 -0
  23. package/dist/index-pyyjj1xa.mjs +187 -0
  24. package/dist/index.mjs +144 -0
  25. package/dist/index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs +37 -0
  26. package/dist/style.css +1 -0
  27. package/dts/App.vue.d.ts +2 -0
  28. package/dts/api/asset/asset-asset/index.d.ts +20 -0
  29. package/dts/api/asset/asset-asset/types.d.ts +93 -0
  30. package/dts/api/asset/asset-service-appt-member/index.d.ts +20 -0
  31. package/dts/api/asset/asset-service-appt-member/types.d.ts +71 -0
  32. package/dts/api/asset/asset-service-appt-record/index.d.ts +20 -0
  33. package/dts/api/asset/asset-service-appt-record/types.d.ts +98 -0
  34. package/dts/api/asset/asset-site/index.d.ts +15 -0
  35. package/dts/api/asset/asset-site/types.d.ts +81 -0
  36. package/dts/api/asset/asset-site-service/index.d.ts +14 -0
  37. package/dts/api/asset/asset-site-service/types.d.ts +80 -0
  38. package/dts/api/dict.d.ts +22 -0
  39. package/dts/api/index.d.ts +14 -0
  40. package/dts/api/org/union-org/index.d.ts +14 -0
  41. package/dts/api/org/union-org/types.d.ts +49 -0
  42. package/dts/components/EnumRadio/index.vue.d.ts +18 -0
  43. package/dts/components/EnumSelect/index.vue.d.ts +18 -0
  44. package/dts/components/TMaps/index.vue.d.ts +20 -0
  45. package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
  46. package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
  47. package/dts/constant.d.ts +16 -0
  48. package/dts/index.d.ts +4 -0
  49. package/dts/lang/asset/en.d.ts +2 -0
  50. package/dts/lang/asset/zh-cn.d.ts +91 -0
  51. package/dts/lang/index.d.ts +1 -0
  52. package/dts/main.d.ts +4 -0
  53. package/dts/permission.d.ts +1 -0
  54. package/dts/router/page.d.ts +2 -0
  55. package/dts/src/App.vue.d.ts +2 -0
  56. package/dts/src/api/asset/asset-asset/index.d.ts +20 -0
  57. package/dts/src/api/asset/asset-asset/types.d.ts +93 -0
  58. package/dts/src/api/asset/asset-service-appt-member/index.d.ts +20 -0
  59. package/dts/src/api/asset/asset-service-appt-member/types.d.ts +71 -0
  60. package/dts/src/api/asset/asset-service-appt-record/index.d.ts +20 -0
  61. package/dts/src/api/asset/asset-service-appt-record/types.d.ts +98 -0
  62. package/dts/src/api/asset/asset-site/index.d.ts +15 -0
  63. package/dts/src/api/asset/asset-site/types.d.ts +81 -0
  64. package/dts/src/api/asset/asset-site-service/index.d.ts +14 -0
  65. package/dts/src/api/asset/asset-site-service/types.d.ts +80 -0
  66. package/dts/src/api/dict.d.ts +22 -0
  67. package/dts/src/api/index.d.ts +14 -0
  68. package/dts/src/api/org/union-org/index.d.ts +14 -0
  69. package/dts/src/api/org/union-org/types.d.ts +49 -0
  70. package/dts/src/components/EnumRadio/index.vue.d.ts +18 -0
  71. package/dts/src/components/EnumSelect/index.vue.d.ts +18 -0
  72. package/dts/src/components/Upload/ImageUpload.vue.d.ts +38 -0
  73. package/dts/src/components/Upload/MultiUpload.vue.d.ts +24 -0
  74. package/dts/src/constant.d.ts +16 -0
  75. package/dts/src/index.d.ts +4 -0
  76. package/dts/src/lang/asset/en.d.ts +2 -0
  77. package/dts/src/lang/asset/zh-cn.d.ts +91 -0
  78. package/dts/src/lang/index.d.ts +1 -0
  79. package/dts/src/main.d.ts +4 -0
  80. package/dts/src/permission.d.ts +1 -0
  81. package/dts/src/router/page.d.ts +4 -0
  82. package/dts/src/utils/common.d.ts +51 -0
  83. package/dts/src/utils/index.d.ts +24 -0
  84. package/dts/src/views/asset/asset-asset/edit.vue.d.ts +22 -0
  85. package/dts/src/views/asset/asset-asset/index.vue.d.ts +2 -0
  86. package/dts/src/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  87. package/dts/src/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  88. package/dts/src/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  89. package/dts/src/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  90. package/dts/src/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  91. package/dts/src/views/asset/asset-site/edit.vue.d.ts +22 -0
  92. package/dts/src/views/asset/asset-site/index.vue.d.ts +2 -0
  93. package/dts/src/views/asset/asset-site/info/index.vue.d.ts +2 -0
  94. package/dts/src/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  95. package/dts/src/views/asset/asset-site-service/index.vue.d.ts +2 -0
  96. package/dts/tsconfig.tsbuildinfo +1 -0
  97. package/dts/utils/common.d.ts +51 -0
  98. package/dts/utils/index.d.ts +24 -0
  99. package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
  100. package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
  101. package/dts/views/asset/asset-service-appt-member/edit.vue.d.ts +22 -0
  102. package/dts/views/asset/asset-service-appt-member/index.vue.d.ts +2 -0
  103. package/dts/views/asset/asset-service-appt-record/edit.vue.d.ts +22 -0
  104. package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  105. package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  106. package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
  107. package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
  108. package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
  109. package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  110. package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
  111. package/package.json +60 -0
@@ -0,0 +1,322 @@
1
+ import { defineComponent as F, mergeModels as D, ref as k, reactive as I, useModel as K, resolveComponent as r, openBlock as N, createBlock as S, withCtx as l, createElementVNode as c, createVNode as e, createTextVNode as q, toDisplayString as M, unref as s } from "vue";
2
+ import { s as g, D as E } from "./index-DLxpE9s5.mjs";
3
+ import { ElMessage as P } from "element-plus";
4
+ import { useI18n as A } from "vue-i18n";
5
+ const L = /* @__PURE__ */ c("div", { class: "title-content" }, "场地信息", -1), T = /* @__PURE__ */ c("span", null, "注:新增的场地默认启用,且自动生成场地码", -1), G = /* @__PURE__ */ c("div", { class: "title-content" }, "管理员信息", -1), H = /* @__PURE__ */ c("span", null, "注:此手机号作为盘点人员账号登录", -1), J = { class: "dialog-footer" }, x = /* @__PURE__ */ F({
6
+ __name: "edit",
7
+ props: /* @__PURE__ */ D({
8
+ entityKey: {
9
+ type: Object,
10
+ default: () => {
11
+ }
12
+ }
13
+ }, {
14
+ modelValue: { type: Boolean },
15
+ modelModifiers: {}
16
+ }),
17
+ emits: /* @__PURE__ */ D(["refresh"], ["update:modelValue"]),
18
+ setup(b, { emit: U }) {
19
+ const { t: p } = A(), _ = k();
20
+ let a = I({
21
+ requestId: Math.random() * 10 + "",
22
+ updateMask: "orgId,name,buildDate,area,address,manager,mobilePhone"
23
+ });
24
+ const Y = I({
25
+ area: [
26
+ {
27
+ required: !0,
28
+ message: p("site.area"),
29
+ trigger: "change"
30
+ }
31
+ ],
32
+ status: [
33
+ {
34
+ required: !0,
35
+ message: p("site.status"),
36
+ trigger: "change"
37
+ }
38
+ ],
39
+ manager: [
40
+ {
41
+ required: !0,
42
+ message: p("site.manager"),
43
+ trigger: "change"
44
+ }
45
+ ],
46
+ mobilePhone: [
47
+ {
48
+ required: !0,
49
+ message: p("site.mobilePhone"),
50
+ trigger: "change"
51
+ }
52
+ ],
53
+ mobilePhoneIns: [
54
+ {
55
+ required: !0,
56
+ message: p("site.mobilePhoneIns"),
57
+ trigger: "change"
58
+ }
59
+ ]
60
+ }), u = K(b, "modelValue"), h = b, V = U, C = Object.keys(h.entityKey), y = k(C.length >= 1);
61
+ y.value && g.findById(h.entityKey).then(({ data: t }) => {
62
+ Object.assign(a, t);
63
+ });
64
+ const R = async () => {
65
+ var t;
66
+ await ((t = _.value) == null ? void 0 : t.validate((o) => {
67
+ o && (y.value ? g.update(a).then((i) => {
68
+ console.log(i), i.status === 200 && (P({
69
+ message: p("common.submitSuccess"),
70
+ type: "success"
71
+ }), u.value && (u.value = !1), V("refresh", i.status === 200));
72
+ }) : g.create(a).then((i) => {
73
+ console.log(i), i.status === 200 && (P({
74
+ message: p("common.submitSuccess"),
75
+ type: "success"
76
+ }), u.value && (u.value = !1), V("refresh", i.status === 200));
77
+ }));
78
+ }));
79
+ };
80
+ function v() {
81
+ u.value && (u.value = !1);
82
+ }
83
+ return (t, o) => {
84
+ const i = r("el-tree-select"), m = r("el-form-item"), n = r("el-col"), f = r("el-input"), B = r("el-date-picker"), z = r("el-switch"), w = r("el-row"), O = r("el-form"), $ = r("el-button"), j = r("el-dialog");
85
+ return N(), S(j, {
86
+ modelValue: u.value,
87
+ "onUpdate:modelValue": o[8] || (o[8] = (d) => u.value = d),
88
+ onClose: v
89
+ }, {
90
+ footer: l(() => [
91
+ c("div", J, [
92
+ e($, { onClick: v }, {
93
+ default: l(() => [
94
+ q(M(t.$t("common.cancel")), 1)
95
+ ]),
96
+ _: 1
97
+ }),
98
+ e($, {
99
+ type: "primary",
100
+ onClick: R
101
+ }, {
102
+ default: l(() => [
103
+ q(M(t.$t("common.confirm")), 1)
104
+ ]),
105
+ _: 1
106
+ })
107
+ ])
108
+ ]),
109
+ default: l(() => [
110
+ L,
111
+ e(O, {
112
+ ref_key: "siteFormRef",
113
+ ref: _,
114
+ model: s(a),
115
+ "label-width": "120px",
116
+ rules: Y
117
+ }, {
118
+ default: l(() => [
119
+ e(w, null, {
120
+ default: l(() => [
121
+ e(n, { span: 12 }, {
122
+ default: l(() => [
123
+ e(m, {
124
+ label: t.$t("site.orgId"),
125
+ prop: "orgId"
126
+ }, {
127
+ default: l(() => [
128
+ e(i, {
129
+ modelValue: s(a).orgId,
130
+ "onUpdate:modelValue": o[0] || (o[0] = (d) => s(a).orgId = d),
131
+ data: s(E).unionOrgBizLayDict.values,
132
+ filterable: "",
133
+ "check-strictly": "",
134
+ "render-after-expand": !1,
135
+ placeholder: t.$t("site.orgIdRequired"),
136
+ style: { width: "330px" }
137
+ }, null, 8, ["modelValue", "data", "placeholder"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["label"])
141
+ ]),
142
+ _: 1
143
+ }),
144
+ e(n, { span: 12 }, {
145
+ default: l(() => [
146
+ e(m, {
147
+ label: t.$t("site.name"),
148
+ prop: "name"
149
+ }, {
150
+ default: l(() => [
151
+ e(f, {
152
+ modelValue: s(a).name,
153
+ "onUpdate:modelValue": o[1] || (o[1] = (d) => s(a).name = d),
154
+ placeholder: t.$t("site.nameRequired"),
155
+ "show-word-limit": "",
156
+ clearable: ""
157
+ }, null, 8, ["modelValue", "placeholder"])
158
+ ]),
159
+ _: 1
160
+ }, 8, ["label"])
161
+ ]),
162
+ _: 1
163
+ }),
164
+ e(n, { span: 12 }, {
165
+ default: l(() => [
166
+ e(m, {
167
+ label: t.$t("site.buildDate"),
168
+ prop: "buildDate"
169
+ }, {
170
+ default: l(() => [
171
+ e(B, {
172
+ modelValue: s(a).buildDate,
173
+ "onUpdate:modelValue": o[2] || (o[2] = (d) => s(a).buildDate = d),
174
+ type: "date",
175
+ placeholder: t.$t("site.buildDate"),
176
+ "value-format": "YYYY-MM-DD",
177
+ format: "YYYY-MM-DD",
178
+ style: { width: "100%" }
179
+ }, null, 8, ["modelValue", "placeholder"])
180
+ ]),
181
+ _: 1
182
+ }, 8, ["label"])
183
+ ]),
184
+ _: 1
185
+ }),
186
+ e(n, { span: 12 }, {
187
+ default: l(() => [
188
+ e(m, {
189
+ label: t.$t("site.area"),
190
+ prop: "area"
191
+ }, {
192
+ default: l(() => [
193
+ e(f, {
194
+ modelValue: s(a).area,
195
+ "onUpdate:modelValue": o[3] || (o[3] = (d) => s(a).area = d),
196
+ placeholder: t.$t("site.area"),
197
+ "show-word-limit": "",
198
+ clearable: ""
199
+ }, null, 8, ["modelValue", "placeholder"])
200
+ ]),
201
+ _: 1
202
+ }, 8, ["label"])
203
+ ]),
204
+ _: 1
205
+ }),
206
+ e(n, { span: 12 }, {
207
+ default: l(() => [
208
+ e(m, {
209
+ label: t.$t("site.address"),
210
+ prop: "address"
211
+ }, {
212
+ default: l(() => [
213
+ e(f, {
214
+ modelValue: s(a).address,
215
+ "onUpdate:modelValue": o[4] || (o[4] = (d) => s(a).address = d),
216
+ placeholder: t.$t("site.addressRequired"),
217
+ "show-word-limit": "",
218
+ clearable: ""
219
+ }, null, 8, ["modelValue", "placeholder"])
220
+ ]),
221
+ _: 1
222
+ }, 8, ["label"])
223
+ ]),
224
+ _: 1
225
+ }),
226
+ e(n, { span: 12 }, {
227
+ default: l(() => [
228
+ e(m, {
229
+ label: t.$t("site.status"),
230
+ prop: "status"
231
+ }, {
232
+ default: l(() => [
233
+ e(z, {
234
+ modelValue: s(a).status,
235
+ "onUpdate:modelValue": o[5] || (o[5] = (d) => s(a).status = d),
236
+ size: "large"
237
+ }, null, 8, ["modelValue"])
238
+ ]),
239
+ _: 1
240
+ }, 8, ["label"])
241
+ ]),
242
+ _: 1
243
+ }),
244
+ e(n, {
245
+ span: 12,
246
+ style: { color: "red", "font-size": "13px", "margin-left": "45px" }
247
+ }, {
248
+ default: l(() => [
249
+ T
250
+ ]),
251
+ _: 1
252
+ })
253
+ ]),
254
+ _: 1
255
+ }),
256
+ G,
257
+ e(w, null, {
258
+ default: l(() => [
259
+ e(n, { span: 12 }, {
260
+ default: l(() => [
261
+ e(m, {
262
+ label: t.$t("site.manager"),
263
+ prop: "manager"
264
+ }, {
265
+ default: l(() => [
266
+ e(f, {
267
+ modelValue: s(a).manager,
268
+ "onUpdate:modelValue": o[6] || (o[6] = (d) => s(a).manager = d),
269
+ placeholder: t.$t("site.managerRequired"),
270
+ "show-word-limit": "",
271
+ clearable: ""
272
+ }, null, 8, ["modelValue", "placeholder"])
273
+ ]),
274
+ _: 1
275
+ }, 8, ["label"])
276
+ ]),
277
+ _: 1
278
+ }),
279
+ e(n, { span: 12 }, {
280
+ default: l(() => [
281
+ e(m, {
282
+ label: t.$t("site.mobilePhone"),
283
+ prop: "mobilePhone"
284
+ }, {
285
+ default: l(() => [
286
+ e(f, {
287
+ modelValue: s(a).mobilePhone,
288
+ "onUpdate:modelValue": o[7] || (o[7] = (d) => s(a).mobilePhone = d),
289
+ placeholder: t.$t("site.mobilePhone"),
290
+ "show-word-limit": "",
291
+ clearable: ""
292
+ }, null, 8, ["modelValue", "placeholder"])
293
+ ]),
294
+ _: 1
295
+ }, 8, ["label"])
296
+ ]),
297
+ _: 1
298
+ }),
299
+ e(n, {
300
+ span: 12,
301
+ style: { color: "red", "font-size": "13px", "margin-left": "45px" }
302
+ }, {
303
+ default: l(() => [
304
+ H
305
+ ]),
306
+ _: 1
307
+ })
308
+ ]),
309
+ _: 1
310
+ })
311
+ ]),
312
+ _: 1
313
+ }, 8, ["model", "rules"])
314
+ ]),
315
+ _: 1
316
+ }, 8, ["modelValue"]);
317
+ };
318
+ }
319
+ });
320
+ export {
321
+ x as _
322
+ };
Binary file
@@ -0,0 +1,369 @@
1
+ import { _ as ae } from "./index.vue_vue_type_script_setup_true_lang-C_itMCoU.mjs";
2
+ import { defineComponent as ne, ref as f, reactive as U, resolveComponent as s, resolveDirective as se, openBlock as u, createElementBlock as c, createElementVNode as N, createVNode as n, withCtx as l, unref as a, withKeys as S, createTextVNode as m, toDisplayString as d, withDirectives as b, createBlock as C, isRef as ie, createCommentVNode as $, vShow as z } from "vue";
3
+ import { D as V, s as re } from "./index-DLxpE9s5.mjs";
4
+ import { useI18n as ue } from "vue-i18n";
5
+ import { useRouter as de } from "vue-router";
6
+ import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-CekLyjO-.mjs";
7
+ import { useTableHooks as pe } from "jmash-core";
8
+ const ce = { class: "app-container" }, fe = { class: "search-container" }, be = { key: 0 }, ve = { key: 1 }, _e = {
9
+ key: 2,
10
+ class: "distance-left"
11
+ }, ye = ["onClick"], ge = ["onClick"], he = ["onClick"], Ne = /* @__PURE__ */ ne({
12
+ __name: "index",
13
+ setup(we) {
14
+ const { t: v } = ue();
15
+ V.unionOrgBizLayDict.useValues();
16
+ const E = de(), i = f({
17
+ curPage: 1,
18
+ pageSize: 10
19
+ }), {
20
+ tableHooks: r,
21
+ multipleTableRef: j,
22
+ queryFormRef: q,
23
+ listLoading: L,
24
+ tableData: x,
25
+ total: g
26
+ } = pe(v, re, i);
27
+ let B = f([
28
+ {
29
+ label: "序号",
30
+ prop: "index",
31
+ slotName: "index",
32
+ columnType: "slot",
33
+ isColumn: !0
34
+ },
35
+ // 所属工会
36
+ {
37
+ label: "site.orgId",
38
+ prop: "orgId",
39
+ slotName: "orgId",
40
+ columnType: "slot",
41
+ width: "150",
42
+ isColumn: !0
43
+ },
44
+ // 场地码
45
+ {
46
+ label: "site.siteQrcode",
47
+ prop: "siteQrcode",
48
+ width: "150",
49
+ isColumn: !0
50
+ },
51
+ // 场地名称
52
+ {
53
+ label: "site.name",
54
+ prop: "name",
55
+ width: "150",
56
+ sortable: "custom",
57
+ isColumn: !0
58
+ },
59
+ // 场地地址
60
+ {
61
+ label: "site.address",
62
+ prop: "address",
63
+ width: "150",
64
+ isColumn: !0
65
+ },
66
+ // 建成时间
67
+ {
68
+ label: "site.buildDate",
69
+ prop: "buildDate",
70
+ width: "150",
71
+ isColumn: !0
72
+ },
73
+ // 面积
74
+ {
75
+ label: "site.area",
76
+ prop: "area",
77
+ width: "150",
78
+ isColumn: !0
79
+ },
80
+ // 场地管理员姓名
81
+ {
82
+ label: "site.manager",
83
+ prop: "manager",
84
+ width: "150",
85
+ isColumn: !0
86
+ },
87
+ // 管理员手机号脱敏
88
+ {
89
+ label: "site.mobilePhone",
90
+ prop: "mobilePhone",
91
+ slotName: "mobilePhone",
92
+ columnType: "slot",
93
+ width: "150",
94
+ isColumn: !0
95
+ },
96
+ // 场地状态
97
+ {
98
+ label: "site.status",
99
+ prop: "status",
100
+ slotName: "status",
101
+ columnType: "slot",
102
+ width: "150",
103
+ sortable: "custom",
104
+ isColumn: !0
105
+ },
106
+ {
107
+ label: v("common.operate"),
108
+ width: "200",
109
+ slotName: "operation",
110
+ columnType: "slot",
111
+ fixed: "right",
112
+ isColumn: !0
113
+ }
114
+ ]);
115
+ const I = f(""), _ = f(!1), h = f(!1);
116
+ let P = U({});
117
+ function Q() {
118
+ P = U({}), I.value = v("common.add"), _.value = !0;
119
+ }
120
+ function K(t) {
121
+ P.siteId = t.siteId, I.value = v("common.edit"), _.value = !0;
122
+ }
123
+ function O(t) {
124
+ E.push({
125
+ path: "/asset/asset-site/info",
126
+ query: { entityKey: t.siteId }
127
+ });
128
+ }
129
+ function A(t) {
130
+ r.handleSort(t.prop, t.order);
131
+ }
132
+ const y = f([!1, !1, !1, !1]);
133
+ function R(t) {
134
+ y.value[t] = !y.value[t], console.log(t);
135
+ }
136
+ function F() {
137
+ h.value = !1;
138
+ }
139
+ function H(t) {
140
+ t.updateMask = "", r.importExcel(t).then(() => {
141
+ h.value = !1;
142
+ });
143
+ }
144
+ return r.getList(), (t, o) => {
145
+ const M = s("el-tree-select"), w = s("el-form-item"), G = s("el-input"), J = ae, D = s("el-button"), W = s("el-form"), X = s("el-col"), Y = s("el-row"), T = s("svg-icon"), Z = s("el-switch"), ee = s("jmash-table"), te = s("jmash-pagination"), oe = s("el-card"), le = s("jmash-import-upload"), k = se("hasPerm");
146
+ return u(), c("div", ce, [
147
+ N("div", fe, [
148
+ n(W, {
149
+ ref_key: "queryFormRef",
150
+ ref: q,
151
+ model: i.value,
152
+ inline: !0
153
+ }, {
154
+ default: l(() => [
155
+ n(w, {
156
+ label: t.$t("site.orgId"),
157
+ prop: "orgId"
158
+ }, {
159
+ default: l(() => [
160
+ n(M, {
161
+ modelValue: i.value.orgId,
162
+ "onUpdate:modelValue": o[0] || (o[0] = (e) => i.value.orgId = e),
163
+ data: a(V).unionOrgBizLayDict.values,
164
+ filterable: "",
165
+ "check-strictly": "",
166
+ "render-after-expand": !1,
167
+ placeholder: t.$t("site.orgIdRequired"),
168
+ style: { width: "203px" },
169
+ onKeyup: o[1] || (o[1] = S((e) => a(r).handleQuery(), ["enter"]))
170
+ }, null, 8, ["modelValue", "data", "placeholder"])
171
+ ]),
172
+ _: 1
173
+ }, 8, ["label"]),
174
+ n(w, {
175
+ label: t.$t("site.name"),
176
+ prop: "likeName"
177
+ }, {
178
+ default: l(() => [
179
+ n(G, {
180
+ modelValue: i.value.likeName,
181
+ "onUpdate:modelValue": o[2] || (o[2] = (e) => i.value.likeName = e),
182
+ placeholder: t.$t("site.nameRequired"),
183
+ onKeyup: o[3] || (o[3] = S((e) => a(r).handleQuery(), ["enter"]))
184
+ }, null, 8, ["modelValue", "placeholder"])
185
+ ]),
186
+ _: 1
187
+ }, 8, ["label"]),
188
+ n(w, {
189
+ label: t.$t("site.status"),
190
+ prop: "status"
191
+ }, {
192
+ default: l(() => [
193
+ n(J, {
194
+ modelValue: i.value.status,
195
+ "onUpdate:modelValue": o[4] || (o[4] = (e) => i.value.status = e),
196
+ placeholder: t.$t("site.statusRequired"),
197
+ data: a(V).enableDict.values,
198
+ clearable: "",
199
+ style: { width: "203px" }
200
+ }, null, 8, ["modelValue", "placeholder", "data"])
201
+ ]),
202
+ _: 1
203
+ }, 8, ["label"]),
204
+ n(w, null, {
205
+ default: l(() => [
206
+ n(D, {
207
+ type: "primary",
208
+ onClick: o[5] || (o[5] = (e) => a(r).handleQuery())
209
+ }, {
210
+ default: l(() => [
211
+ m(d(t.$t("common.search")), 1)
212
+ ]),
213
+ _: 1
214
+ }),
215
+ n(D, {
216
+ onClick: o[6] || (o[6] = (e) => a(r).resetQuery())
217
+ }, {
218
+ default: l(() => [
219
+ m(d(t.$t("common.reset")), 1)
220
+ ]),
221
+ _: 1
222
+ })
223
+ ]),
224
+ _: 1
225
+ })
226
+ ]),
227
+ _: 1
228
+ }, 8, ["model"])
229
+ ]),
230
+ n(oe, {
231
+ shadow: "never",
232
+ class: "table-container"
233
+ }, {
234
+ header: l(() => [
235
+ n(Y, {
236
+ justify: "space-between",
237
+ span: 20
238
+ }, {
239
+ default: l(() => [
240
+ n(X, { span: 12 }, {
241
+ default: l(() => [
242
+ b((u(), C(D, {
243
+ type: "primary",
244
+ onClick: Q
245
+ }, {
246
+ default: l(() => [
247
+ m(d(t.$t("common.add")), 1)
248
+ ]),
249
+ _: 1
250
+ })), [
251
+ [k, ["asset:site:add"]]
252
+ ])
253
+ ]),
254
+ _: 1
255
+ })
256
+ ]),
257
+ _: 1
258
+ })
259
+ ]),
260
+ footer: l(() => [
261
+ a(g) > 0 ? (u(), C(te, {
262
+ key: 0,
263
+ total: a(g),
264
+ "onUpdate:total": o[7] || (o[7] = (e) => ie(g) ? g.value = e : null),
265
+ "current-page": i.value.curPage,
266
+ "onUpdate:currentPage": o[8] || (o[8] = (e) => i.value.curPage = e),
267
+ "page-size": i.value.pageSize,
268
+ "onUpdate:pageSize": o[9] || (o[9] = (e) => i.value.pageSize = e),
269
+ onPagination: o[10] || (o[10] = (e) => a(r).getList())
270
+ }, null, 8, ["total", "current-page", "page-size"])) : $("", !0),
271
+ m("   ")
272
+ ]),
273
+ default: l(() => [
274
+ n(ee, {
275
+ ref_key: "multipleTableRef",
276
+ ref: j,
277
+ class: "table-top",
278
+ "row-key": "SiteId",
279
+ "list-loading": a(L),
280
+ data: a(x),
281
+ "table-label": a(B),
282
+ onSortChange: A
283
+ }, {
284
+ index: l((e) => [
285
+ m(d(e.data.$index + 1), 1)
286
+ ]),
287
+ orgId: l((e) => [
288
+ N("span", null, d(a(V).unionOrgBizLayDict.getValue(e.data.row.orgId)), 1)
289
+ ]),
290
+ mobilePhone: l((e) => [
291
+ y.value[e.data.$index] ? (u(), c("span", ve, d(e.data.row.mobilePhone), 1)) : (u(), c("span", be, d(e.data.row.mobilePhoneIns), 1)),
292
+ e.data.row.mobilePhoneIns ? (u(), c("span", _e, [
293
+ b(n(T, {
294
+ "icon-class": "close-eye",
295
+ onClick: (p) => R(e.data.$index)
296
+ }, null, 8, ["onClick"]), [
297
+ [z, !y.value[e.data.$index]]
298
+ ]),
299
+ b(n(T, {
300
+ "icon-class": "eye-open",
301
+ onClick: (p) => R(e.data.$index)
302
+ }, null, 8, ["onClick"]), [
303
+ [z, y.value[e.data.$index]]
304
+ ])
305
+ ])) : $("", !0)
306
+ ]),
307
+ status: l((e) => [
308
+ N("span", null, [
309
+ n(Z, {
310
+ modelValue: e.data.row.status,
311
+ "onUpdate:modelValue": (p) => e.data.row.status = p,
312
+ onChange: (p) => a(r).enableRecord(e.data.row, e.data.row.status)
313
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
314
+ ])
315
+ ]),
316
+ operation: l((e) => [
317
+ b((u(), c("span", {
318
+ class: "el-button-color",
319
+ onClick: (p) => K(e.data.row)
320
+ }, [
321
+ m(d(t.$t("common.edit")), 1)
322
+ ], 8, ye)), [
323
+ [k, ["union:union_member_honor:update"]]
324
+ ]),
325
+ b((u(), c("span", {
326
+ class: "el-button-color dropdown-left",
327
+ onClick: (p) => a(r).deleteRecord(e.data.row)
328
+ }, [
329
+ m(d(t.$t("common.delete")), 1)
330
+ ], 8, ge)), [
331
+ [k, ["union:union_member_honor:delete"]]
332
+ ]),
333
+ b((u(), c("span", {
334
+ class: "el-button-color dropdown-left",
335
+ onClick: (p) => O(e.data.row)
336
+ }, [
337
+ m(d(t.$t("common.view")), 1)
338
+ ], 8, he)), [
339
+ [k, ["union:union_member_honor:view"]]
340
+ ])
341
+ ]),
342
+ _: 1
343
+ }, 8, ["list-loading", "data", "table-label"])
344
+ ]),
345
+ _: 1
346
+ }),
347
+ _.value ? (u(), C(me, {
348
+ key: 0,
349
+ modelValue: _.value,
350
+ "onUpdate:modelValue": o[11] || (o[11] = (e) => _.value = e),
351
+ title: I.value,
352
+ "entity-key": a(P),
353
+ width: "900px"
354
+ }, null, 8, ["modelValue", "title", "entity-key"])) : $("", !0),
355
+ h.value ? (u(), C(le, {
356
+ key: 1,
357
+ "upload-visible": h.value,
358
+ "template-title": t.$t("sysUser.templateDownload"),
359
+ onTemplateDown: o[12] || (o[12] = (e) => a(r).downloadTemplate(a(v)("asset.site.name"))),
360
+ onImportEvents: H,
361
+ onUploadClosed: F
362
+ }, null, 8, ["upload-visible", "template-title"])) : $("", !0)
363
+ ]);
364
+ };
365
+ }
366
+ });
367
+ export {
368
+ Ne as default
369
+ };