xyvcard-itsmsys 0.0.2 → 0.0.4
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/common-B2PCBCJ2.mjs +13 -0
- package/dist/edit-BhRXuYku.mjs +342 -0
- package/dist/edit-CIm8Y0Be.mjs +4 -0
- package/dist/edit-CWVYUzgf.mjs +369 -0
- package/dist/edit-CkaU_6vk.mjs +342 -0
- package/dist/edit-D82hX9if.mjs +4 -0
- package/dist/edit-DPM0jGQT.mjs +4 -0
- package/dist/edit-DZJU5ZPt.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BIx7D8XA.mjs +437 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs +439 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CkIn1tAB.mjs +248 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-yCnCh6Q1.mjs +439 -0
- package/dist/index-BRupqW34.mjs +96 -0
- package/dist/index-B_cot8iN.mjs +439 -0
- package/dist/index-BkHGzL0R.mjs +358 -0
- package/dist/index-C6KvLUoL.mjs +4 -0
- package/dist/index-CEUyLrKg.mjs +404 -0
- package/dist/index-ChTssr8-.mjs +123 -0
- package/dist/index-ClU157bA.mjs +324 -0
- package/dist/index-CogdeN09.mjs +331 -0
- package/dist/{index-B-FkgFqA.mjs → index-DOXuGEyW.mjs} +6 -6
- package/dist/index-i7X9N_rj.mjs +341 -0
- package/dist/index.mjs +2903 -70
- package/dist/index.vue_vue_type_script_setup_true_lang-CNEAZibd.mjs +180 -0
- package/dist/info-70H0sycC.mjs +187 -0
- package/dist/info-BWgVN2mJ.mjs +176 -0
- package/dist/info-CE-ZnFj5.mjs +179 -0
- package/dist/info-Kf11Ye-N.mjs +187 -0
- package/dist/info-MYJGcyMX.mjs +179 -0
- package/dist/info-Z5LuCRmr.mjs +187 -0
- package/dist/style.css +1 -1
- package/dts/src/api/dict.d.ts +9 -1
- package/dts/src/api/index.d.ts +8 -1
- package/dts/src/api/itsm-sys-org/index.d.ts +2 -0
- package/dts/src/api/itsm-sys-org/types.d.ts +14 -6
- package/dts/src/api/itsm-sys-user-ext/index.d.ts +14 -0
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +91 -0
- package/dts/src/constant.d.ts +11 -0
- package/dts/src/index.d.ts +2 -0
- package/dts/src/lang/itsmsys/zh-cn.d.ts +87 -10
- package/dts/src/router/index.d.ts +8 -1
- package/dts/src/utils/common.d.ts +1 -0
- package/dts/src/utils/momentPlugin.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-org/invoiceEdit.vue.d.ts → itsm-sys-org-invoice/edit.vue.d.ts} +3 -12
- package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +2 -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-user-man/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +22 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +2 -0
- package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +2 -0
- package/package.json +3 -3
- 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
- package/dts/src/api/itsm-sys-gov/index.d.ts +0 -15
- package/dts/src/api/itsm-sys-gov/types.d.ts +0 -87
- package/dts/src/api/itsm-sys-gov-invoice/index.d.ts +0 -13
- package/dts/src/api/itsm-sys-gov-invoice/types.d.ts +0 -48
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
import { defineComponent as te, ref as j, reactive as M, resolveComponent as r, resolveDirective as oe, openBlock as d, createElementBlock as w, createElementVNode as y, createVNode as n, withCtx as o, withKeys as E, unref as a, createTextVNode as m, toDisplayString as s, withDirectives as b, createBlock as g, isRef as R, createCommentVNode as h, vShow as I } from "vue";
|
|
2
|
+
import { useTableHooks as le } from "jmash-core";
|
|
3
|
+
import { useI18n as ne } from "vue-i18n";
|
|
4
|
+
import { useRouter as ae } from "vue-router";
|
|
5
|
+
import { sysUserExtApi as se } from "./index.mjs";
|
|
6
|
+
import { _ as re } from "./edit.vue_vue_type_script_setup_true_lang-Bt5P3H7c.mjs";
|
|
7
|
+
import { D as c } from "./index-ChTssr8-.mjs";
|
|
8
|
+
const ue = { class: "app-container" }, ie = { class: "search-container" }, de = { key: 0 }, me = ["onClick"], pe = ["onClick"], ye = ["onClick"], ke = /* @__PURE__ */ te({
|
|
9
|
+
__name: "index",
|
|
10
|
+
setup(be) {
|
|
11
|
+
const { t: k } = ne(), J = ae(), u = j({
|
|
12
|
+
userType: "COMPANY_OPS"
|
|
13
|
+
}), {
|
|
14
|
+
tableHooks: i,
|
|
15
|
+
multipleTableRef: q,
|
|
16
|
+
queryFormRef: z,
|
|
17
|
+
listLoading: K,
|
|
18
|
+
tableData: L,
|
|
19
|
+
total: C
|
|
20
|
+
} = le(k, se, u);
|
|
21
|
+
let v = j([
|
|
22
|
+
{
|
|
23
|
+
label: "sysUserOps.realName",
|
|
24
|
+
prop: "realName",
|
|
25
|
+
width: "150",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "sysUserOps.gender",
|
|
30
|
+
prop: "gender",
|
|
31
|
+
width: "100",
|
|
32
|
+
isColumn: !0,
|
|
33
|
+
slotName: "gender",
|
|
34
|
+
columnType: "slot"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: "sysUserOps.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: "sysUserOps.engineeType",
|
|
53
|
+
prop: "engineeType",
|
|
54
|
+
width: "150",
|
|
55
|
+
isColumn: !0,
|
|
56
|
+
slotName: "engineeType",
|
|
57
|
+
columnType: "slot"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: "sysUserOps.engineeJobMode",
|
|
61
|
+
prop: "engineeJobMode",
|
|
62
|
+
width: "150",
|
|
63
|
+
isColumn: !0,
|
|
64
|
+
slotName: "engineeJobMode",
|
|
65
|
+
columnType: "slot"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: "sysUserOps.jobStatus",
|
|
69
|
+
prop: "jobStatus",
|
|
70
|
+
width: "150",
|
|
71
|
+
isColumn: !0,
|
|
72
|
+
slotName: "jobStatus",
|
|
73
|
+
columnType: "slot"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: "common.operate",
|
|
77
|
+
width: "200",
|
|
78
|
+
slotName: "operation",
|
|
79
|
+
columnType: "slot",
|
|
80
|
+
fixed: "right",
|
|
81
|
+
isColumn: !0
|
|
82
|
+
}
|
|
83
|
+
]);
|
|
84
|
+
function N(l) {
|
|
85
|
+
l.showEncrypt = !l.showEncrypt;
|
|
86
|
+
}
|
|
87
|
+
const p = j({
|
|
88
|
+
title: k("common.edit"),
|
|
89
|
+
visible: !1
|
|
90
|
+
});
|
|
91
|
+
let $ = M({});
|
|
92
|
+
function Q() {
|
|
93
|
+
$ = M({}), p.value.title = k("common.add"), p.value.visible = !0;
|
|
94
|
+
}
|
|
95
|
+
function A(l) {
|
|
96
|
+
$.userId = l.userId, p.value.title = k("common.edit"), p.value.visible = !0;
|
|
97
|
+
}
|
|
98
|
+
function B(l) {
|
|
99
|
+
J.push({
|
|
100
|
+
path: "/rawitsmsys/itsm-sys-user-ops/userOpsInfo",
|
|
101
|
+
query: { userId: l.userId }
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function F(l) {
|
|
105
|
+
i.selectionRows.value = l;
|
|
106
|
+
}
|
|
107
|
+
function H(l) {
|
|
108
|
+
i.handleSort(l.prop, l.order);
|
|
109
|
+
}
|
|
110
|
+
function G(l) {
|
|
111
|
+
l && i.getList();
|
|
112
|
+
}
|
|
113
|
+
return i.getList(), (l, t) => {
|
|
114
|
+
const W = r("el-input"), S = r("el-form-item"), f = r("el-col"), T = r("jmash-select"), U = r("el-button"), O = r("el-row"), Y = r("el-form"), X = r("jmash-column-select"), P = r("el-tag"), D = r("svg-icon"), Z = r("jmash-table"), x = r("jmash-pagination"), ee = r("el-card"), _ = oe("hasPerm");
|
|
115
|
+
return d(), w("div", ue, [
|
|
116
|
+
y("div", ie, [
|
|
117
|
+
n(Y, {
|
|
118
|
+
ref_key: "queryFormRef",
|
|
119
|
+
ref: z,
|
|
120
|
+
model: u.value,
|
|
121
|
+
inline: !0
|
|
122
|
+
}, {
|
|
123
|
+
default: o(() => [
|
|
124
|
+
n(O, null, {
|
|
125
|
+
default: o(() => [
|
|
126
|
+
n(f, { span: 6 }, {
|
|
127
|
+
default: o(() => [
|
|
128
|
+
n(S, {
|
|
129
|
+
label: l.$t("sysUserOps.realName"),
|
|
130
|
+
prop: "likeUserName"
|
|
131
|
+
}, {
|
|
132
|
+
default: o(() => [
|
|
133
|
+
n(W, {
|
|
134
|
+
modelValue: u.value.likeUserName,
|
|
135
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeUserName = e),
|
|
136
|
+
placeholder: l.$t("sysUserOps.realNameRequired"),
|
|
137
|
+
onKeyup: t[1] || (t[1] = E((e) => a(i).handleQuery(), ["enter"])),
|
|
138
|
+
class: "!w-[203px]"
|
|
139
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}, 8, ["label"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
n(f, { span: 6 }, {
|
|
147
|
+
default: o(() => [
|
|
148
|
+
n(S, {
|
|
149
|
+
label: l.$t("sysUserOps.engineeJobMode"),
|
|
150
|
+
prop: "engineeJobMode"
|
|
151
|
+
}, {
|
|
152
|
+
default: o(() => [
|
|
153
|
+
n(T, {
|
|
154
|
+
modelValue: u.value.engineeJobMode,
|
|
155
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.engineeJobMode = e),
|
|
156
|
+
placeholder: l.$t("sysUserOps.engineeJobModeRequired"),
|
|
157
|
+
data: a(c).engineeJobModeDictEnum.values,
|
|
158
|
+
onKeyup: t[3] || (t[3] = E((e) => a(i).handleQuery(), ["enter"])),
|
|
159
|
+
clearable: ""
|
|
160
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
161
|
+
]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["label"])
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}),
|
|
167
|
+
n(f, { span: 6 }, {
|
|
168
|
+
default: o(() => [
|
|
169
|
+
n(S, {
|
|
170
|
+
label: l.$t("sysUserOps.jobStatus"),
|
|
171
|
+
prop: "jobStatus"
|
|
172
|
+
}, {
|
|
173
|
+
default: o(() => [
|
|
174
|
+
n(T, {
|
|
175
|
+
modelValue: u.value.jobStatus,
|
|
176
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => u.value.jobStatus = e),
|
|
177
|
+
placeholder: l.$t("sysUserOps.jobStatusRequired"),
|
|
178
|
+
data: a(c).jobStatusDictEnum.values,
|
|
179
|
+
onKeyup: t[5] || (t[5] = E((e) => a(i).handleQuery(), ["enter"])),
|
|
180
|
+
clearable: ""
|
|
181
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
}, 8, ["label"])
|
|
185
|
+
]),
|
|
186
|
+
_: 1
|
|
187
|
+
}),
|
|
188
|
+
n(f, { span: 6 }, {
|
|
189
|
+
default: o(() => [
|
|
190
|
+
n(S, { class: "search-btn" }, {
|
|
191
|
+
default: o(() => [
|
|
192
|
+
n(U, {
|
|
193
|
+
type: "primary",
|
|
194
|
+
onClick: t[6] || (t[6] = (e) => a(i).handleQuery())
|
|
195
|
+
}, {
|
|
196
|
+
default: o(() => [
|
|
197
|
+
m(s(l.$t("common.search")), 1)
|
|
198
|
+
]),
|
|
199
|
+
_: 1
|
|
200
|
+
}),
|
|
201
|
+
n(U, {
|
|
202
|
+
onClick: t[7] || (t[7] = (e) => a(i).resetQuery())
|
|
203
|
+
}, {
|
|
204
|
+
default: o(() => [
|
|
205
|
+
m(s(l.$t("common.reset")), 1)
|
|
206
|
+
]),
|
|
207
|
+
_: 1
|
|
208
|
+
})
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
})
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})
|
|
218
|
+
]),
|
|
219
|
+
_: 1
|
|
220
|
+
}, 8, ["model"]),
|
|
221
|
+
t[15] || (t[15] = y("div", { class: "clear" }, null, -1))
|
|
222
|
+
]),
|
|
223
|
+
n(ee, {
|
|
224
|
+
shadow: "never",
|
|
225
|
+
class: "table-container"
|
|
226
|
+
}, {
|
|
227
|
+
header: o(() => [
|
|
228
|
+
n(O, null, {
|
|
229
|
+
default: o(() => [
|
|
230
|
+
n(f, { span: 17 }, {
|
|
231
|
+
default: o(() => [
|
|
232
|
+
b((d(), g(U, {
|
|
233
|
+
type: "primary",
|
|
234
|
+
onClick: Q
|
|
235
|
+
}, {
|
|
236
|
+
default: o(() => [
|
|
237
|
+
m(s(l.$t("common.add")), 1)
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
})), [
|
|
241
|
+
[_, ["itsmsys:sys_user_ops:add"]]
|
|
242
|
+
]),
|
|
243
|
+
b((d(), g(U, {
|
|
244
|
+
type: "primary",
|
|
245
|
+
onClick: t[8] || (t[8] = (e) => a(i).deleteRecords())
|
|
246
|
+
}, {
|
|
247
|
+
default: o(() => [
|
|
248
|
+
m(s(l.$t("common.batchDelete")), 1)
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
})), [
|
|
252
|
+
[_, ["itsmsys:sys_user_ops:delete"]]
|
|
253
|
+
])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
n(f, {
|
|
258
|
+
span: 7,
|
|
259
|
+
class: "container-float"
|
|
260
|
+
}, {
|
|
261
|
+
default: o(() => [
|
|
262
|
+
n(X, {
|
|
263
|
+
modelValue: a(v),
|
|
264
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => R(v) ? v.value = e : v = e),
|
|
265
|
+
"label-name": "itsmsys/itsm-sys-user-ops"
|
|
266
|
+
}, null, 8, ["modelValue"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
})
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
})
|
|
273
|
+
]),
|
|
274
|
+
footer: o(() => [
|
|
275
|
+
a(C) > 0 ? (d(), g(x, {
|
|
276
|
+
key: 0,
|
|
277
|
+
total: a(C),
|
|
278
|
+
"onUpdate:total": t[10] || (t[10] = (e) => R(C) ? C.value = e : null),
|
|
279
|
+
"current-page": u.value.curPage,
|
|
280
|
+
"onUpdate:currentPage": t[11] || (t[11] = (e) => u.value.curPage = e),
|
|
281
|
+
"page-size": u.value.pageSize,
|
|
282
|
+
"onUpdate:pageSize": t[12] || (t[12] = (e) => u.value.pageSize = e),
|
|
283
|
+
onPagination: t[13] || (t[13] = (e) => a(i).getList())
|
|
284
|
+
}, null, 8, ["total", "current-page", "page-size"])) : h("", !0)
|
|
285
|
+
]),
|
|
286
|
+
default: o(() => [
|
|
287
|
+
n(Z, {
|
|
288
|
+
ref_key: "multipleTableRef",
|
|
289
|
+
ref: q,
|
|
290
|
+
"row-key": "userId",
|
|
291
|
+
"list-loading": a(K),
|
|
292
|
+
data: a(L),
|
|
293
|
+
"table-label": a(v),
|
|
294
|
+
onSelectionChange: F,
|
|
295
|
+
onSortChange: H
|
|
296
|
+
}, {
|
|
297
|
+
gender: o((e) => [
|
|
298
|
+
y("span", null, s(a(c).genderDict.getEnumValue(e.data.row.gender)), 1)
|
|
299
|
+
]),
|
|
300
|
+
mobilePhone: o((e) => [
|
|
301
|
+
y("span", null, s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
|
|
302
|
+
]),
|
|
303
|
+
email: o((e) => [
|
|
304
|
+
y("span", null, s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
305
|
+
]),
|
|
306
|
+
jobStatus: o((e) => [
|
|
307
|
+
y("span", null, [
|
|
308
|
+
e.data.row.jobStatus === "WORKING" ? (d(), g(P, {
|
|
309
|
+
key: 0,
|
|
310
|
+
type: "success",
|
|
311
|
+
size: "small"
|
|
312
|
+
}, {
|
|
313
|
+
default: o(() => [
|
|
314
|
+
m(s(a(c).jobStatusDictEnum.getEnumValue(
|
|
315
|
+
e.data.row.jobStatus
|
|
316
|
+
)), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 2
|
|
319
|
+
}, 1024)) : h("", !0),
|
|
320
|
+
e.data.row.jobStatus === "LEAVE" ? (d(), g(P, {
|
|
321
|
+
key: 1,
|
|
322
|
+
type: "danger",
|
|
323
|
+
size: "small"
|
|
324
|
+
}, {
|
|
325
|
+
default: o(() => [
|
|
326
|
+
m(s(a(c).jobStatusDictEnum.getEnumValue(
|
|
327
|
+
e.data.row.jobStatus
|
|
328
|
+
)), 1)
|
|
329
|
+
]),
|
|
330
|
+
_: 2
|
|
331
|
+
}, 1024)) : h("", !0)
|
|
332
|
+
])
|
|
333
|
+
]),
|
|
334
|
+
engineeType: o((e) => [
|
|
335
|
+
y("span", null, s(a(c).engineeTypeDictEnum.getEnumValue(
|
|
336
|
+
e.data.row.engineeType
|
|
337
|
+
)), 1)
|
|
338
|
+
]),
|
|
339
|
+
engineeJobMode: o((e) => [
|
|
340
|
+
y("span", null, s(a(c).engineeJobModeDictEnum.getEnumValue(
|
|
341
|
+
e.data.row.engineeJobMode
|
|
342
|
+
)), 1)
|
|
343
|
+
]),
|
|
344
|
+
operation: o((e) => [
|
|
345
|
+
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), w("span", de, [
|
|
346
|
+
b(n(D, {
|
|
347
|
+
"icon-class": "close-eye",
|
|
348
|
+
onClick: (V) => N(e.data.row)
|
|
349
|
+
}, null, 8, ["onClick"]), [
|
|
350
|
+
[I, !e.data.row.showEncrypt]
|
|
351
|
+
]),
|
|
352
|
+
b(n(D, {
|
|
353
|
+
"icon-class": "eye-open",
|
|
354
|
+
onClick: (V) => N(e.data.row)
|
|
355
|
+
}, null, 8, ["onClick"]), [
|
|
356
|
+
[I, e.data.row.showEncrypt]
|
|
357
|
+
])
|
|
358
|
+
])) : h("", !0),
|
|
359
|
+
b((d(), w("span", {
|
|
360
|
+
class: "el-button-color dropdown-left",
|
|
361
|
+
onClick: (V) => A(e.data.row)
|
|
362
|
+
}, [
|
|
363
|
+
m(s(l.$t("common.edit")), 1)
|
|
364
|
+
], 8, me)), [
|
|
365
|
+
[_, ["itsmsys:sys_user_ops:update"]]
|
|
366
|
+
]),
|
|
367
|
+
b((d(), w("span", {
|
|
368
|
+
class: "el-button-color dropdown-left",
|
|
369
|
+
onClick: (V) => a(i).deleteRecord(e.data.row)
|
|
370
|
+
}, [
|
|
371
|
+
m(s(l.$t("common.delete")), 1)
|
|
372
|
+
], 8, pe)), [
|
|
373
|
+
[_, ["itsmsys:sys_user_ops:delete"]]
|
|
374
|
+
]),
|
|
375
|
+
b((d(), w("span", {
|
|
376
|
+
class: "el-button-color dropdown-left",
|
|
377
|
+
onClick: (V) => B(e.data.row)
|
|
378
|
+
}, [
|
|
379
|
+
m(s(l.$t("common.view")), 1)
|
|
380
|
+
], 8, ye)), [
|
|
381
|
+
[_, ["itsmsys:sys_user_ops:view"]]
|
|
382
|
+
])
|
|
383
|
+
]),
|
|
384
|
+
_: 1
|
|
385
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
386
|
+
]),
|
|
387
|
+
_: 1
|
|
388
|
+
}),
|
|
389
|
+
p.value.visible ? (d(), g(re, {
|
|
390
|
+
key: 0,
|
|
391
|
+
modelValue: p.value.visible,
|
|
392
|
+
"onUpdate:modelValue": t[14] || (t[14] = (e) => p.value.visible = e),
|
|
393
|
+
title: p.value.title,
|
|
394
|
+
"entity-key": a($),
|
|
395
|
+
onRefresh: G,
|
|
396
|
+
width: "900px"
|
|
397
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : h("", !0)
|
|
398
|
+
]);
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
export {
|
|
403
|
+
ke as default
|
|
404
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var h = (i, r, t) => r in i ? y(i, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[r] = t;
|
|
3
|
+
var s = (i, r, t) => h(i, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { ref as p, reactive as T } from "vue";
|
|
5
|
+
import { BizLayDict as S, BizDict as _, EnumDict as u } from "jmash-core";
|
|
6
|
+
import { sysOrgApi as l } from "./index.mjs";
|
|
7
|
+
class e {
|
|
8
|
+
}
|
|
9
|
+
//模块
|
|
10
|
+
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
11
|
+
s(e, "HAS_STATUS", p([
|
|
12
|
+
{ key: !0, value: "启用" },
|
|
13
|
+
{ key: !1, value: "禁用" }
|
|
14
|
+
])), // 公司发票类型
|
|
15
|
+
s(e, "ENUM_INVOICE_TYPE", "xyvcard.itsmsys.protobuf.InvoiceType"), // 管理人员工作状态
|
|
16
|
+
s(e, "ENUM_JOB_ATATUS", "xyvcard.itsmsys.protobuf.SysUserJobStatus"), // 运维人员工作模式
|
|
17
|
+
s(e, "ENUM_ENGINEE_JOB_MODE", "xyvcard.itsmsys.protobuf.SysUserJobMode"), // 人员性别
|
|
18
|
+
s(e, "ENUM_GENDER", "jmash.protobuf.Gender"), // 运维人员工程师类型
|
|
19
|
+
s(e, "ENUM_ENGINEE_TYPE", "xyvcard.itsmsys.protobuf.SysEngineeType"), // 机构类型
|
|
20
|
+
s(e, "orgType", {
|
|
21
|
+
// 公司
|
|
22
|
+
cloud: "CLOUD",
|
|
23
|
+
// 厅局
|
|
24
|
+
hall: "HALL",
|
|
25
|
+
// 外协
|
|
26
|
+
outsource: "OUTSOURCE"
|
|
27
|
+
}), // 机构类型厅局深度
|
|
28
|
+
s(e, "depth", "0");
|
|
29
|
+
class v {
|
|
30
|
+
constructor(r, t) {
|
|
31
|
+
s(this, "values", T([]));
|
|
32
|
+
// 查询条件
|
|
33
|
+
s(this, "query");
|
|
34
|
+
this.values.length = 0, this.values.push(...r.value), this.query = t;
|
|
35
|
+
}
|
|
36
|
+
// 根据给定键获取业务数据项的值的方法
|
|
37
|
+
getValue(r) {
|
|
38
|
+
for (const t of this.values)
|
|
39
|
+
if (t.key == r)
|
|
40
|
+
return t.value;
|
|
41
|
+
return "";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
class M extends S {
|
|
45
|
+
// 实现 useValues 方法
|
|
46
|
+
useValues() {
|
|
47
|
+
return new Promise((r, t) => {
|
|
48
|
+
if (typeof l.findList > "u") {
|
|
49
|
+
r(this.values);
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const o = { ...this.query };
|
|
53
|
+
l.findList(o).then(({ data: E }) => {
|
|
54
|
+
const c = E.results;
|
|
55
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), r(this.values);
|
|
56
|
+
}).catch(t);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
convertToLayEntryArray(r) {
|
|
60
|
+
return r.map((t) => ({
|
|
61
|
+
value: t.orgId,
|
|
62
|
+
label: t.orgName,
|
|
63
|
+
parentId: t.parentId || "",
|
|
64
|
+
children: t.children ? this.convertToLayEntryArray(t.children) : []
|
|
65
|
+
}));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
class n extends _ {
|
|
69
|
+
// 实现 useValues 方法
|
|
70
|
+
useValues() {
|
|
71
|
+
return new Promise((r, t) => {
|
|
72
|
+
l.findPage(this.query).then(({ data: o }) => {
|
|
73
|
+
const E = o.results;
|
|
74
|
+
this.values.length = 0, this.values.push(
|
|
75
|
+
...E.map(
|
|
76
|
+
(c) => ({
|
|
77
|
+
key: c.orgId,
|
|
78
|
+
value: c.orgName
|
|
79
|
+
})
|
|
80
|
+
)
|
|
81
|
+
), r(this.values);
|
|
82
|
+
}).catch(t);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
class a {
|
|
87
|
+
}
|
|
88
|
+
// 公司管理状态
|
|
89
|
+
s(a, "hasStatusDict", new v(e.HAS_STATUS, {})), // 公司发票类型
|
|
90
|
+
s(a, "invoiceTypeDictEnum", new u(
|
|
91
|
+
e.MODULE_ITSMSYS,
|
|
92
|
+
e.ENUM_INVOICE_TYPE
|
|
93
|
+
)), // 厅局管理父厅级单位
|
|
94
|
+
s(a, "parentIdBizDict", new M({
|
|
95
|
+
depth: e.depth,
|
|
96
|
+
orgType: e.orgType.hall
|
|
97
|
+
})), // 管理人员工作状态
|
|
98
|
+
s(a, "jobStatusDictEnum", new u(
|
|
99
|
+
e.MODULE_ITSMSYS,
|
|
100
|
+
e.ENUM_JOB_ATATUS
|
|
101
|
+
)), // 运维人员工作模式
|
|
102
|
+
s(a, "engineeJobModeDictEnum", new u(
|
|
103
|
+
e.MODULE_ITSMSYS,
|
|
104
|
+
e.ENUM_ENGINEE_JOB_MODE
|
|
105
|
+
)), // 性别
|
|
106
|
+
s(a, "genderDict", new u(
|
|
107
|
+
e.MODULE_RBAC,
|
|
108
|
+
e.ENUM_GENDER
|
|
109
|
+
)), // 运维人员工程师类型
|
|
110
|
+
s(a, "engineeTypeDictEnum", new u(
|
|
111
|
+
e.MODULE_ITSMSYS,
|
|
112
|
+
e.ENUM_ENGINEE_TYPE
|
|
113
|
+
)), // 公司人员选择公司名称
|
|
114
|
+
s(a, "sysOrgBizDict", new n({
|
|
115
|
+
orgType: e.orgType.cloud
|
|
116
|
+
})), // 外协运维人员选择公司名称
|
|
117
|
+
s(a, "sysOutBizDict", new n({
|
|
118
|
+
orgType: e.orgType.outsource
|
|
119
|
+
}));
|
|
120
|
+
export {
|
|
121
|
+
e as C,
|
|
122
|
+
a as D
|
|
123
|
+
};
|