xyvcard-itsmsys 0.0.2 → 0.0.3
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.
- package/dist/edit-BeMy_aOl.mjs +548 -0
- package/dist/edit-BhXrnHr7.mjs +520 -0
- package/dist/edit-BsLAy2-H.mjs +276 -0
- package/dist/edit-D7n1rZY2.mjs +240 -0
- package/dist/edit-l4-w6Psd.mjs +520 -0
- package/dist/index-B02UvpyC.mjs +334 -0
- package/dist/index-BRupqW34.mjs +96 -0
- package/dist/index-Bw3EuEs9.mjs +345 -0
- package/dist/index-COPul57Z.mjs +84 -0
- package/dist/index-CRlIL96y.mjs +334 -0
- package/dist/index-CUjT3FVb.mjs +351 -0
- package/dist/index-Cskg0LGf.mjs +341 -0
- package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
- package/dist/index.mjs +236 -42
- package/dist/info-7Rre3Mm0.mjs +198 -0
- package/dist/info-CYKiOMB6.mjs +198 -0
- package/dist/info-Dub2j7gN.mjs +198 -0
- package/dist/info-O3dKVGmT.mjs +10 -0
- package/dist/invoiceEdit-C5dQG8ZJ.mjs +253 -0
- package/dist/invoiceEdit-Chsj8_aC.mjs +253 -0
- package/dist/invoiceEdit-DuSCNiDz.mjs +253 -0
- package/dist/style.css +1 -1
- package/dts/src/api/dict.d.ts +6 -1
- package/dts/src/api/index.d.ts +5 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +1 -0
- package/dts/src/api/itsm-sys-org/types.d.ts +13 -5
- package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +76 -0
- package/dts/src/constant.d.ts +4 -0
- package/dts/src/index.d.ts +2 -0
- package/dts/src/lang/itsmsys/zh-cn.d.ts +65 -4
- package/dts/src/router/index.d.ts +5 -0
- package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +1 -21
- package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-gov/invoiceEdit.vue.d.ts +31 -0
- package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-out/invoiceEdit.vue.d.ts +31 -0
- package/dts/src/views/itsmsys-user/itsm-sys-user-man/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys-user/itsm-sys-user-man/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys-user/itsm-sys-user-man/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys-user/itsm-sys-user-ops/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys-user/itsm-sys-user-ops/index.vue.d.ts +2 -0
- package/package.json +2 -2
- package/dist/edit-BKMLirl4.mjs +0 -602
- package/dist/edit-ccGk5679.mjs +0 -610
- package/dist/index-BGwm5W6z.mjs +0 -343
- package/dist/index-CSDhKMEP.mjs +0 -332
- package/dist/info-CSOdbuvm.mjs +0 -192
- package/dist/invoiceEdit-D9zxwIoM.mjs +0 -288
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { defineComponent as ee, ref as j, reactive as M, resolveComponent as s, resolveDirective as te, openBlock as m, createElementBlock as _, createElementVNode as y, createVNode as n, withCtx as l, withKeys as R, unref as a, createTextVNode as p, toDisplayString as i, withDirectives as c, createBlock as C, isRef as I, createCommentVNode as N, vShow as D } from "vue";
|
|
2
|
+
import { useTableHooks as oe } from "jmash-core";
|
|
3
|
+
import { useI18n as le } from "vue-i18n";
|
|
4
|
+
import { useRouter as ne } from "vue-router";
|
|
5
|
+
import { sysUserExtApi as ae } from "./index.mjs";
|
|
6
|
+
import se from "./edit-BsLAy2-H.mjs";
|
|
7
|
+
import { D as U } from "./index-COPul57Z.mjs";
|
|
8
|
+
const re = { class: "app-container" }, ie = { class: "search-container" }, ue = { key: 0 }, me = ["onClick"], de = ["onClick"], pe = ["onClick"], ge = /* @__PURE__ */ ee({
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(ce) {
|
|
11
|
+
const { t: w } = le(), T = ne(), u = j({
|
|
12
|
+
userType: "COMPANY_MANAGER"
|
|
13
|
+
}), {
|
|
14
|
+
tableHooks: r,
|
|
15
|
+
multipleTableRef: q,
|
|
16
|
+
queryFormRef: z,
|
|
17
|
+
listLoading: A,
|
|
18
|
+
tableData: L,
|
|
19
|
+
total: h
|
|
20
|
+
} = oe(w, ae, u);
|
|
21
|
+
let f = j([
|
|
22
|
+
{
|
|
23
|
+
label: "sysUserMan.realName",
|
|
24
|
+
prop: "realName",
|
|
25
|
+
width: "200",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "sysUserMan.gender",
|
|
30
|
+
prop: "gender",
|
|
31
|
+
width: "100",
|
|
32
|
+
isColumn: !0,
|
|
33
|
+
slotName: "gender",
|
|
34
|
+
columnType: "slot"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "sysUserMan.mobilePhone",
|
|
38
|
+
prop: "mobilePhone",
|
|
39
|
+
width: "150",
|
|
40
|
+
isColumn: !0,
|
|
41
|
+
slotName: "mobilePhone",
|
|
42
|
+
columnType: "slot"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "sysUserMan.email",
|
|
46
|
+
prop: "email",
|
|
47
|
+
isColumn: !0,
|
|
48
|
+
slotName: "email",
|
|
49
|
+
columnType: "slot"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: "sysUserMan.jobStatus",
|
|
53
|
+
prop: "jobStatus",
|
|
54
|
+
width: "150",
|
|
55
|
+
isColumn: !0,
|
|
56
|
+
slotName: "jobStatus",
|
|
57
|
+
columnType: "slot"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "common.operate",
|
|
61
|
+
width: "200",
|
|
62
|
+
slotName: "operation",
|
|
63
|
+
columnType: "slot",
|
|
64
|
+
fixed: "right",
|
|
65
|
+
isColumn: !0
|
|
66
|
+
}
|
|
67
|
+
]);
|
|
68
|
+
function V(o) {
|
|
69
|
+
o.showEncrypt = !o.showEncrypt;
|
|
70
|
+
}
|
|
71
|
+
const d = j({
|
|
72
|
+
title: w("common.edit"),
|
|
73
|
+
visible: !1
|
|
74
|
+
});
|
|
75
|
+
let S = M({});
|
|
76
|
+
function K() {
|
|
77
|
+
S = M({}), d.value.title = w("common.add"), d.value.visible = !0;
|
|
78
|
+
}
|
|
79
|
+
function Q(o) {
|
|
80
|
+
S.userId = o.userId, d.value.title = w("common.edit"), d.value.visible = !0;
|
|
81
|
+
}
|
|
82
|
+
function B(o) {
|
|
83
|
+
T.push({
|
|
84
|
+
path: "/itsmsys-user/itsm-sys-user-man/userManInfo",
|
|
85
|
+
query: { userId: o.userId }
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function F(o) {
|
|
89
|
+
r.selectionRows.value = o;
|
|
90
|
+
}
|
|
91
|
+
function H(o) {
|
|
92
|
+
r.handleSort(o.prop, o.order);
|
|
93
|
+
}
|
|
94
|
+
function G(o) {
|
|
95
|
+
o && r.getList();
|
|
96
|
+
}
|
|
97
|
+
return r.getList(), (o, t) => {
|
|
98
|
+
const O = s("el-input"), $ = s("el-form-item"), b = s("el-col"), Y = s("jmash-select"), g = s("el-button"), E = s("el-row"), J = s("el-form"), W = s("jmash-column-select"), P = s("svg-icon"), X = s("jmash-table"), Z = s("jmash-pagination"), x = s("el-card"), v = te("hasPerm");
|
|
99
|
+
return m(), _("div", re, [
|
|
100
|
+
y("div", ie, [
|
|
101
|
+
n(J, {
|
|
102
|
+
ref_key: "queryFormRef",
|
|
103
|
+
ref: z,
|
|
104
|
+
model: u.value,
|
|
105
|
+
inline: !0
|
|
106
|
+
}, {
|
|
107
|
+
default: l(() => [
|
|
108
|
+
n(E, null, {
|
|
109
|
+
default: l(() => [
|
|
110
|
+
n(b, { span: 6 }, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
n($, {
|
|
113
|
+
label: o.$t("sysUserMan.realName"),
|
|
114
|
+
prop: "realName"
|
|
115
|
+
}, {
|
|
116
|
+
default: l(() => [
|
|
117
|
+
n(O, {
|
|
118
|
+
modelValue: u.value.realName,
|
|
119
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.realName = e),
|
|
120
|
+
placeholder: o.$t("sysUserMan.realNameRequired"),
|
|
121
|
+
onKeyup: t[1] || (t[1] = R((e) => a(r).handleQuery(), ["enter"])),
|
|
122
|
+
class: "!w-[203px]"
|
|
123
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["label"])
|
|
127
|
+
]),
|
|
128
|
+
_: 1
|
|
129
|
+
}),
|
|
130
|
+
n(b, { span: 6 }, {
|
|
131
|
+
default: l(() => [
|
|
132
|
+
n($, {
|
|
133
|
+
label: o.$t("sysUserMan.jobStatus"),
|
|
134
|
+
prop: "jobStatus"
|
|
135
|
+
}, {
|
|
136
|
+
default: l(() => [
|
|
137
|
+
n(Y, {
|
|
138
|
+
modelValue: u.value.jobStatus,
|
|
139
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.jobStatus = e),
|
|
140
|
+
placeholder: o.$t("sysUserMan.jobStatusRequired"),
|
|
141
|
+
data: a(U).jobStatusDictEnum.values,
|
|
142
|
+
onKeyup: t[3] || (t[3] = R((e) => a(r).handleQuery(), ["enter"])),
|
|
143
|
+
clearable: ""
|
|
144
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
}, 8, ["label"])
|
|
148
|
+
]),
|
|
149
|
+
_: 1
|
|
150
|
+
}),
|
|
151
|
+
n(b, { span: 12 }, {
|
|
152
|
+
default: l(() => [
|
|
153
|
+
n($, { class: "search-btn" }, {
|
|
154
|
+
default: l(() => [
|
|
155
|
+
n(g, {
|
|
156
|
+
type: "primary",
|
|
157
|
+
onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
|
|
158
|
+
}, {
|
|
159
|
+
default: l(() => [
|
|
160
|
+
p(i(o.$t("common.search")), 1)
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}),
|
|
164
|
+
n(g, {
|
|
165
|
+
onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
|
|
166
|
+
}, {
|
|
167
|
+
default: l(() => [
|
|
168
|
+
p(i(o.$t("common.reset")), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})
|
|
172
|
+
]),
|
|
173
|
+
_: 1
|
|
174
|
+
})
|
|
175
|
+
]),
|
|
176
|
+
_: 1
|
|
177
|
+
})
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
183
|
+
}, 8, ["model"]),
|
|
184
|
+
t[13] || (t[13] = y("div", { class: "clear" }, null, -1))
|
|
185
|
+
]),
|
|
186
|
+
n(x, {
|
|
187
|
+
shadow: "never",
|
|
188
|
+
class: "table-container"
|
|
189
|
+
}, {
|
|
190
|
+
header: l(() => [
|
|
191
|
+
n(E, null, {
|
|
192
|
+
default: l(() => [
|
|
193
|
+
n(b, { span: 17 }, {
|
|
194
|
+
default: l(() => [
|
|
195
|
+
c((m(), C(g, {
|
|
196
|
+
type: "primary",
|
|
197
|
+
onClick: K
|
|
198
|
+
}, {
|
|
199
|
+
default: l(() => [
|
|
200
|
+
p(i(o.$t("common.add")), 1)
|
|
201
|
+
]),
|
|
202
|
+
_: 1
|
|
203
|
+
})), [
|
|
204
|
+
[v, ["itsmsys:sys_user_man:add"]]
|
|
205
|
+
]),
|
|
206
|
+
c((m(), C(g, {
|
|
207
|
+
type: "primary",
|
|
208
|
+
onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
|
|
209
|
+
}, {
|
|
210
|
+
default: l(() => [
|
|
211
|
+
p(i(o.$t("common.batchDelete")), 1)
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})), [
|
|
215
|
+
[v, ["itsmsys:sys_user_man:delete"]]
|
|
216
|
+
])
|
|
217
|
+
]),
|
|
218
|
+
_: 1
|
|
219
|
+
}),
|
|
220
|
+
n(b, {
|
|
221
|
+
span: 7,
|
|
222
|
+
class: "container-float"
|
|
223
|
+
}, {
|
|
224
|
+
default: l(() => [
|
|
225
|
+
n(W, {
|
|
226
|
+
modelValue: a(f),
|
|
227
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => I(f) ? f.value = e : f = e),
|
|
228
|
+
"label-name": "itsmsys/itsm-sys-user-man"
|
|
229
|
+
}, null, 8, ["modelValue"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
})
|
|
236
|
+
]),
|
|
237
|
+
footer: l(() => [
|
|
238
|
+
a(h) > 0 ? (m(), C(Z, {
|
|
239
|
+
key: 0,
|
|
240
|
+
total: a(h),
|
|
241
|
+
"onUpdate:total": t[8] || (t[8] = (e) => I(h) ? h.value = e : null),
|
|
242
|
+
"current-page": u.value.curPage,
|
|
243
|
+
"onUpdate:currentPage": t[9] || (t[9] = (e) => u.value.curPage = e),
|
|
244
|
+
"page-size": u.value.pageSize,
|
|
245
|
+
"onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
|
|
246
|
+
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
247
|
+
}, null, 8, ["total", "current-page", "page-size"])) : N("", !0)
|
|
248
|
+
]),
|
|
249
|
+
default: l(() => [
|
|
250
|
+
n(X, {
|
|
251
|
+
ref_key: "multipleTableRef",
|
|
252
|
+
ref: q,
|
|
253
|
+
"row-key": "userId",
|
|
254
|
+
"list-loading": a(A),
|
|
255
|
+
data: a(L),
|
|
256
|
+
"table-label": a(f),
|
|
257
|
+
onSelectionChange: F,
|
|
258
|
+
onSortChange: H
|
|
259
|
+
}, {
|
|
260
|
+
gender: l((e) => [
|
|
261
|
+
y("span", null, i(a(U).genderDict.getEnumValue(e.data.row.gender)), 1)
|
|
262
|
+
]),
|
|
263
|
+
mobilePhone: l((e) => [
|
|
264
|
+
y("span", null, i(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
|
|
265
|
+
]),
|
|
266
|
+
email: l((e) => [
|
|
267
|
+
y("span", null, i(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
268
|
+
]),
|
|
269
|
+
jobStatus: l((e) => [
|
|
270
|
+
y("span", null, i(a(U).jobStatusDictEnum.getEnumValue(
|
|
271
|
+
e.data.row.jobStatus
|
|
272
|
+
)), 1)
|
|
273
|
+
]),
|
|
274
|
+
operation: l((e) => [
|
|
275
|
+
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (m(), _("span", ue, [
|
|
276
|
+
c(n(P, {
|
|
277
|
+
"icon-class": "close-eye",
|
|
278
|
+
onClick: (k) => V(e.data.row)
|
|
279
|
+
}, null, 8, ["onClick"]), [
|
|
280
|
+
[D, !e.data.row.showEncrypt]
|
|
281
|
+
]),
|
|
282
|
+
c(n(P, {
|
|
283
|
+
"icon-class": "eye-open",
|
|
284
|
+
onClick: (k) => V(e.data.row)
|
|
285
|
+
}, null, 8, ["onClick"]), [
|
|
286
|
+
[D, e.data.row.showEncrypt]
|
|
287
|
+
])
|
|
288
|
+
])) : N("", !0),
|
|
289
|
+
c((m(), _("span", {
|
|
290
|
+
class: "el-button-color dropdown-left",
|
|
291
|
+
onClick: (k) => Q(e.data.row)
|
|
292
|
+
}, [
|
|
293
|
+
p(i(o.$t("common.edit")), 1)
|
|
294
|
+
], 8, me)), [
|
|
295
|
+
[v, ["itsmsys:sys_user_man:update"]]
|
|
296
|
+
]),
|
|
297
|
+
c((m(), _("span", {
|
|
298
|
+
class: "el-button-color dropdown-left",
|
|
299
|
+
onClick: (k) => a(r).deleteRecord(e.data.row)
|
|
300
|
+
}, [
|
|
301
|
+
p(i(o.$t("common.delete")), 1)
|
|
302
|
+
], 8, de)), [
|
|
303
|
+
[v, ["itsmsys:sys_user_man:delete"]]
|
|
304
|
+
]),
|
|
305
|
+
c((m(), _("span", {
|
|
306
|
+
class: "el-button-color dropdown-left",
|
|
307
|
+
onClick: (k) => B(e.data.row)
|
|
308
|
+
}, [
|
|
309
|
+
p(i(o.$t("common.view")), 1)
|
|
310
|
+
], 8, pe)), [
|
|
311
|
+
[v, ["itsmsys:sys_user_man:view"]]
|
|
312
|
+
])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}),
|
|
319
|
+
d.value.visible ? (m(), C(se, {
|
|
320
|
+
key: 0,
|
|
321
|
+
modelValue: d.value.visible,
|
|
322
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => d.value.visible = e),
|
|
323
|
+
title: d.value.title,
|
|
324
|
+
"entity-key": a(S),
|
|
325
|
+
onRefresh: G,
|
|
326
|
+
width: "900px"
|
|
327
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : N("", !0)
|
|
328
|
+
]);
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
});
|
|
332
|
+
export {
|
|
333
|
+
ge as default
|
|
334
|
+
};
|
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { defineComponent as W, ref as N, resolveComponent as s, resolveDirective as X, openBlock as i, createElementBlock as m, createElementVNode as G, createVNode as o, withCtx as l, withKeys as g, unref as a, createTextVNode as p, toDisplayString as u, withDirectives as y, createBlock as M, isRef as Y, vShow as R, createCommentVNode as Z } from "vue";
|
|
2
|
+
import { useTableHooks as x } from "jmash-core";
|
|
3
|
+
import { useI18n as ee } from "vue-i18n";
|
|
4
|
+
import { sysOrgApi as oe } from "./index.mjs";
|
|
5
|
+
import { D as te } from "./index-COPul57Z.mjs";
|
|
6
|
+
import { useRouter as le } from "vue-router";
|
|
7
|
+
const ne = { class: "app-container" }, se = { class: "search-container" }, ae = { key: 0 }, re = { key: 1 }, de = {
|
|
8
|
+
key: 2,
|
|
9
|
+
class: "distance-left"
|
|
10
|
+
}, ie = ["onClick"], ue = ["onClick"], ce = ["onClick"], he = /* @__PURE__ */ W({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup(me) {
|
|
13
|
+
const { t: T } = ee(), w = le(), c = N({
|
|
14
|
+
depth: "0",
|
|
15
|
+
orgType: "HALL"
|
|
16
|
+
}), { tableHooks: r, multipleTableRef: I, queryFormRef: E, listLoading: B, tableData: q } = x(T, oe, c);
|
|
17
|
+
let _ = N([
|
|
18
|
+
{
|
|
19
|
+
label: "sysGov.orgName",
|
|
20
|
+
prop: "orgName",
|
|
21
|
+
width: "270",
|
|
22
|
+
isColumn: !0
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "sysGov.address",
|
|
26
|
+
prop: "address",
|
|
27
|
+
width: "350",
|
|
28
|
+
isColumn: !0
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "sysGov.contactPerson",
|
|
32
|
+
prop: "contactPerson",
|
|
33
|
+
width: "150",
|
|
34
|
+
isColumn: !0
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "sysOrg.contactPersonMobile",
|
|
38
|
+
prop: "contactPersonMobile",
|
|
39
|
+
width: "150",
|
|
40
|
+
isColumn: !0,
|
|
41
|
+
slotName: "contactPersonMobile",
|
|
42
|
+
columnType: "slot"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: "sysGov.contactPersonTel",
|
|
46
|
+
prop: "contactPersonTel",
|
|
47
|
+
width: "150",
|
|
48
|
+
isColumn: !0
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "sysGov.status",
|
|
52
|
+
prop: "status",
|
|
53
|
+
width: "100",
|
|
54
|
+
isColumn: !0,
|
|
55
|
+
slotName: "status",
|
|
56
|
+
columnType: "slot"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "sysGov.orderBy",
|
|
60
|
+
prop: "orderBy",
|
|
61
|
+
width: "100",
|
|
62
|
+
isColumn: !0,
|
|
63
|
+
slotName: "orderBy",
|
|
64
|
+
columnType: "slot"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "common.operate",
|
|
68
|
+
width: "200",
|
|
69
|
+
slotName: "operation",
|
|
70
|
+
columnType: "slot",
|
|
71
|
+
fixed: "right",
|
|
72
|
+
isColumn: !0
|
|
73
|
+
}
|
|
74
|
+
]);
|
|
75
|
+
function C(t) {
|
|
76
|
+
t.contactPersonMobileEncrypt = !t.contactPersonMobileEncrypt;
|
|
77
|
+
}
|
|
78
|
+
function D() {
|
|
79
|
+
w.push({ path: "/itsmsys/itsm-sys-gov/editGovInfo" });
|
|
80
|
+
}
|
|
81
|
+
function S(t) {
|
|
82
|
+
w.push({
|
|
83
|
+
path: "/itsmsys/itsm-sys-gov/editGovInfo",
|
|
84
|
+
query: { entityKey: t.orgId }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function j(t) {
|
|
88
|
+
w.push({
|
|
89
|
+
path: "/itsmsys/itsm-sys-gov/govInfo",
|
|
90
|
+
query: { orgId: t.orgId }
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
function U(t) {
|
|
94
|
+
r.selectionRows.value = t;
|
|
95
|
+
}
|
|
96
|
+
function K(t) {
|
|
97
|
+
r.handleSort(t.prop, t.order);
|
|
98
|
+
}
|
|
99
|
+
return r.findList(), (t, n) => {
|
|
100
|
+
const k = s("el-input"), b = s("el-form-item"), v = s("el-col"), L = s("jmash-select"), h = s("el-button"), $ = s("el-row"), Q = s("el-form"), A = s("jmash-column-select"), P = s("svg-icon"), H = s("Bottom"), V = s("el-icon"), z = s("Top"), F = s("el-switch"), O = s("jmash-table"), J = s("el-card"), f = X("hasPerm");
|
|
101
|
+
return i(), m("div", ne, [
|
|
102
|
+
G("div", se, [
|
|
103
|
+
o(Q, {
|
|
104
|
+
ref_key: "queryFormRef",
|
|
105
|
+
ref: E,
|
|
106
|
+
model: c.value,
|
|
107
|
+
inline: !0
|
|
108
|
+
}, {
|
|
109
|
+
default: l(() => [
|
|
110
|
+
o($, null, {
|
|
111
|
+
default: l(() => [
|
|
112
|
+
o(v, { span: 6 }, {
|
|
113
|
+
default: l(() => [
|
|
114
|
+
o(b, {
|
|
115
|
+
label: t.$t("sysGov.orgName"),
|
|
116
|
+
prop: "orgName"
|
|
117
|
+
}, {
|
|
118
|
+
default: l(() => [
|
|
119
|
+
o(k, {
|
|
120
|
+
modelValue: c.value.orgName,
|
|
121
|
+
"onUpdate:modelValue": n[0] || (n[0] = (e) => c.value.orgName = e),
|
|
122
|
+
placeholder: t.$t("sysGov.orgNameRequired"),
|
|
123
|
+
onKeyup: n[1] || (n[1] = g((e) => a(r).handleQuery(), ["enter"])),
|
|
124
|
+
class: "!w-[203px]"
|
|
125
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
126
|
+
]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["label"])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}),
|
|
132
|
+
o(v, { span: 6 }, {
|
|
133
|
+
default: l(() => [
|
|
134
|
+
o(b, {
|
|
135
|
+
label: t.$t("sysGov.contactPerson"),
|
|
136
|
+
prop: "contactPerson"
|
|
137
|
+
}, {
|
|
138
|
+
default: l(() => [
|
|
139
|
+
o(k, {
|
|
140
|
+
modelValue: c.value.contactPerson,
|
|
141
|
+
"onUpdate:modelValue": n[2] || (n[2] = (e) => c.value.contactPerson = e),
|
|
142
|
+
placeholder: t.$t("sysGov.contactPersonRequired"),
|
|
143
|
+
onKeyup: n[3] || (n[3] = g((e) => a(r).handleQuery(), ["enter"])),
|
|
144
|
+
class: "!w-[203px]"
|
|
145
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
146
|
+
]),
|
|
147
|
+
_: 1
|
|
148
|
+
}, 8, ["label"])
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
}),
|
|
152
|
+
o(v, { span: 6 }, {
|
|
153
|
+
default: l(() => [
|
|
154
|
+
o(b, {
|
|
155
|
+
label: t.$t("sysGov.status"),
|
|
156
|
+
prop: "status"
|
|
157
|
+
}, {
|
|
158
|
+
default: l(() => [
|
|
159
|
+
o(L, {
|
|
160
|
+
modelValue: c.value.status,
|
|
161
|
+
"onUpdate:modelValue": n[4] || (n[4] = (e) => c.value.status = e),
|
|
162
|
+
placeholder: t.$t("sysGov.statusRequired"),
|
|
163
|
+
data: a(te).hasStatusDict.values,
|
|
164
|
+
clearable: "",
|
|
165
|
+
onKeyup: n[5] || (n[5] = g((e) => a(r).handleQuery(), ["enter"]))
|
|
166
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}, 8, ["label"])
|
|
170
|
+
]),
|
|
171
|
+
_: 1
|
|
172
|
+
}),
|
|
173
|
+
o(v, { span: 6 }, {
|
|
174
|
+
default: l(() => [
|
|
175
|
+
o(b, { class: "search-btn" }, {
|
|
176
|
+
default: l(() => [
|
|
177
|
+
o(h, {
|
|
178
|
+
type: "primary",
|
|
179
|
+
onClick: n[6] || (n[6] = (e) => a(r).handleQuery())
|
|
180
|
+
}, {
|
|
181
|
+
default: l(() => [
|
|
182
|
+
p(u(t.$t("common.search")), 1)
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
o(h, {
|
|
187
|
+
onClick: n[7] || (n[7] = (e) => a(r).resetQuery())
|
|
188
|
+
}, {
|
|
189
|
+
default: l(() => [
|
|
190
|
+
p(u(t.$t("common.reset")), 1)
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
})
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
]),
|
|
204
|
+
_: 1
|
|
205
|
+
}, 8, ["model"]),
|
|
206
|
+
n[10] || (n[10] = G("div", { class: "clear" }, null, -1))
|
|
207
|
+
]),
|
|
208
|
+
o(J, {
|
|
209
|
+
shadow: "never",
|
|
210
|
+
class: "table-container"
|
|
211
|
+
}, {
|
|
212
|
+
header: l(() => [
|
|
213
|
+
o($, null, {
|
|
214
|
+
default: l(() => [
|
|
215
|
+
o(v, { span: 17 }, {
|
|
216
|
+
default: l(() => [
|
|
217
|
+
y((i(), M(h, {
|
|
218
|
+
type: "primary",
|
|
219
|
+
onClick: D
|
|
220
|
+
}, {
|
|
221
|
+
default: l(() => [
|
|
222
|
+
p(u(t.$t("common.add")), 1)
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
})), [
|
|
226
|
+
[f, ["itsmsys:sys_gov:add"]]
|
|
227
|
+
]),
|
|
228
|
+
y((i(), M(h, {
|
|
229
|
+
type: "primary",
|
|
230
|
+
onClick: n[8] || (n[8] = (e) => a(r).deleteRecords())
|
|
231
|
+
}, {
|
|
232
|
+
default: l(() => [
|
|
233
|
+
p(u(t.$t("common.batchDelete")), 1)
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
})), [
|
|
237
|
+
[f, ["itsmsys:sys_gov:delete"]]
|
|
238
|
+
])
|
|
239
|
+
]),
|
|
240
|
+
_: 1
|
|
241
|
+
}),
|
|
242
|
+
o(v, {
|
|
243
|
+
span: 7,
|
|
244
|
+
class: "container-float"
|
|
245
|
+
}, {
|
|
246
|
+
default: l(() => [
|
|
247
|
+
o(A, {
|
|
248
|
+
modelValue: a(_),
|
|
249
|
+
"onUpdate:modelValue": n[9] || (n[9] = (e) => Y(_) ? _.value = e : _ = e),
|
|
250
|
+
"label-name": "itsmsys/itsm-sys-gov"
|
|
251
|
+
}, null, 8, ["modelValue"])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
})
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
default: l(() => [
|
|
260
|
+
o(O, {
|
|
261
|
+
ref_key: "multipleTableRef",
|
|
262
|
+
ref: I,
|
|
263
|
+
"row-key": "orgId",
|
|
264
|
+
"list-loading": a(B),
|
|
265
|
+
data: a(q),
|
|
266
|
+
"table-label": a(_),
|
|
267
|
+
onSelectionChange: U,
|
|
268
|
+
onSortChange: K
|
|
269
|
+
}, {
|
|
270
|
+
contactPersonMobile: l((e) => [
|
|
271
|
+
e.data.row.contactPersonMobileEncrypt ? (i(), m("span", re, u(e.data.row.contactPersonMobile), 1)) : (i(), m("span", ae, u(e.data.row.contactPersonMobileIns), 1)),
|
|
272
|
+
e.data.row.contactPersonMobileIns ? (i(), m("span", de, [
|
|
273
|
+
y(o(P, {
|
|
274
|
+
"icon-class": "close-eye",
|
|
275
|
+
onClick: (d) => C(e.data.row)
|
|
276
|
+
}, null, 8, ["onClick"]), [
|
|
277
|
+
[R, !e.data.row.contactPersonMobileEncrypt]
|
|
278
|
+
]),
|
|
279
|
+
y(o(P, {
|
|
280
|
+
"icon-class": "eye-open",
|
|
281
|
+
onClick: (d) => C(e.data.row)
|
|
282
|
+
}, null, 8, ["onClick"]), [
|
|
283
|
+
[R, e.data.row.contactPersonMobileEncrypt]
|
|
284
|
+
])
|
|
285
|
+
])) : Z("", !0)
|
|
286
|
+
]),
|
|
287
|
+
orderBy: l((e) => [
|
|
288
|
+
o(V, {
|
|
289
|
+
size: "16",
|
|
290
|
+
onClick: (d) => a(r).handleMove(e.data.row, !1)
|
|
291
|
+
}, {
|
|
292
|
+
default: l(() => [
|
|
293
|
+
o(H)
|
|
294
|
+
]),
|
|
295
|
+
_: 2
|
|
296
|
+
}, 1032, ["onClick"]),
|
|
297
|
+
o(V, {
|
|
298
|
+
size: "16",
|
|
299
|
+
onClick: (d) => a(r).handleMove(e.data.row, !0)
|
|
300
|
+
}, {
|
|
301
|
+
default: l(() => [
|
|
302
|
+
o(z)
|
|
303
|
+
]),
|
|
304
|
+
_: 2
|
|
305
|
+
}, 1032, ["onClick"])
|
|
306
|
+
]),
|
|
307
|
+
status: l((e) => [
|
|
308
|
+
o(F, {
|
|
309
|
+
modelValue: e.data.row.status,
|
|
310
|
+
"onUpdate:modelValue": (d) => e.data.row.status = d,
|
|
311
|
+
onChange: (d) => a(r).enableRecord(e.data.row, e.data.row.status)
|
|
312
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
313
|
+
]),
|
|
314
|
+
operation: l((e) => [
|
|
315
|
+
y((i(), m("span", {
|
|
316
|
+
class: "el-button-color",
|
|
317
|
+
onClick: (d) => S(e.data.row)
|
|
318
|
+
}, [
|
|
319
|
+
p(u(t.$t("common.edit")), 1)
|
|
320
|
+
], 8, ie)), [
|
|
321
|
+
[f, ["itsmsys:sys_gov:update"]]
|
|
322
|
+
]),
|
|
323
|
+
y((i(), m("span", {
|
|
324
|
+
class: "el-button-color dropdown-left",
|
|
325
|
+
onClick: (d) => a(r).deleteRecord(e.data.row)
|
|
326
|
+
}, [
|
|
327
|
+
p(u(t.$t("common.delete")), 1)
|
|
328
|
+
], 8, ue)), [
|
|
329
|
+
[f, ["itsmsys:sys_gov:delete"]]
|
|
330
|
+
]),
|
|
331
|
+
y((i(), m("span", {
|
|
332
|
+
class: "el-button-color dropdown-left",
|
|
333
|
+
onClick: (d) => j(e.data.row)
|
|
334
|
+
}, [
|
|
335
|
+
p(u(t.$t("common.view")), 1)
|
|
336
|
+
], 8, ce)), [
|
|
337
|
+
[f, ["itsmsys:sys_gov:view"]]
|
|
338
|
+
])
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
342
|
+
]),
|
|
343
|
+
_: 1
|
|
344
|
+
})
|
|
345
|
+
]);
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
export {
|
|
350
|
+
he as default
|
|
351
|
+
};
|