xyvcard-itsmsys 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.
- package/dist/{edit-C3NG4LWK.mjs → edit-BAH_6b13.mjs} +1 -1
- package/dist/{edit-Dxc1CH37.mjs → edit-CfJWdgBx.mjs} +1 -1
- package/dist/{edit-_PobHvyR.mjs → edit-a4L0fy11.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CtIAGnDl.mjs → edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BlMypmar.mjs → edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BnfSGJv_.mjs → edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs} +88 -88
- package/dist/{import-upload-Dn6fqub8.mjs → import-upload-BISlCHWj.mjs} +24 -24
- package/dist/import-upload-CzXWmSM6.mjs +161 -0
- package/dist/{import-upload-r5sF-dob.mjs → import-upload-TERPQdeq.mjs} +6 -6
- package/dist/{index-D-y6OhBi.mjs → index-B8RLzH1x.mjs} +3 -3
- package/dist/index-BxdZzcjP.mjs +462 -0
- package/dist/{index-Clqts1Tf.mjs → index-DRzFGqnW.mjs} +2 -2
- package/dist/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dts/views/itsmsys/itsm-sys-user-man/import-upload.vue.d.ts +31 -0
- package/package.json +1 -1
- package/dist/index-uAbzEnZH.mjs +0 -423
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { defineComponent as A, ref as i, reactive as C, toRefs as H, resolveComponent as l, openBlock as G, createBlock as J, unref as V, isRef as K, withCtx as o, createElementVNode as a, createVNode as t, createTextVNode as m, toDisplayString as n } from "vue";
|
|
2
|
+
import { useI18n as L } from "vue-i18n";
|
|
3
|
+
import { ElMessage as f } from "element-plus";
|
|
4
|
+
import { fileApi as w, useUserStore as D } from "jmash-core";
|
|
5
|
+
import { D as I } from "./index-C57850Qg.mjs";
|
|
6
|
+
import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
|
+
const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-primary)" } }, X = { class: "dialog-footer" }, Y = /* @__PURE__ */ A({
|
|
8
|
+
__name: "import-upload",
|
|
9
|
+
props: {
|
|
10
|
+
uploadVisible: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: () => !1
|
|
13
|
+
},
|
|
14
|
+
templateTitle: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: ["templateDown", "importEvents", "uploadClosed"],
|
|
20
|
+
setup(_, { emit: b }) {
|
|
21
|
+
const { t: g } = L(), U = i(w.uploadUrl()), k = i(w.authHeader()), $ = C({
|
|
22
|
+
tenant: D().user.tenant
|
|
23
|
+
}), E = i(), d = C({
|
|
24
|
+
tenant: D().user.tenant,
|
|
25
|
+
requestId: Math.random() * 10 + "",
|
|
26
|
+
fileNames: "",
|
|
27
|
+
updateMask: "",
|
|
28
|
+
addFlag: !0,
|
|
29
|
+
// 必填项,true新增,false修改
|
|
30
|
+
orgId: ""
|
|
31
|
+
});
|
|
32
|
+
I.sysOrgBizDict.useValues();
|
|
33
|
+
const N = _, p = b, { uploadVisible: u } = H(N), r = i();
|
|
34
|
+
function R() {
|
|
35
|
+
p("templateDown");
|
|
36
|
+
}
|
|
37
|
+
function S(e) {
|
|
38
|
+
r.value = e, d.orgId = e;
|
|
39
|
+
}
|
|
40
|
+
function q(e) {
|
|
41
|
+
d.fileNames = e.fileSrc, d.orgId = r.value, d.fileNames && f({
|
|
42
|
+
message: g("common.uploadSuccess"),
|
|
43
|
+
type: "success"
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
const B = () => {
|
|
47
|
+
f.warning("当前限制选择 1 个文件");
|
|
48
|
+
};
|
|
49
|
+
function O() {
|
|
50
|
+
if (!r.value) {
|
|
51
|
+
f({
|
|
52
|
+
message: g("sysUserOps.orgIdRequired"),
|
|
53
|
+
type: "warning"
|
|
54
|
+
});
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
p("importEvents", d);
|
|
58
|
+
}
|
|
59
|
+
function v() {
|
|
60
|
+
p("uploadClosed");
|
|
61
|
+
}
|
|
62
|
+
return (e, s) => {
|
|
63
|
+
const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
|
|
64
|
+
return G(), J(z, {
|
|
65
|
+
modelValue: V(u),
|
|
66
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => K(u) ? u.value = c : null),
|
|
67
|
+
title: e.$t("common.uploadFiles"),
|
|
68
|
+
width: "500px",
|
|
69
|
+
onClose: v
|
|
70
|
+
}, {
|
|
71
|
+
footer: o(() => [
|
|
72
|
+
a("div", X, [
|
|
73
|
+
t(h, { onClick: v }, {
|
|
74
|
+
default: o(() => [
|
|
75
|
+
m(n(e.$t("common.cancel")), 1)
|
|
76
|
+
]),
|
|
77
|
+
_: 1
|
|
78
|
+
}),
|
|
79
|
+
t(h, {
|
|
80
|
+
type: "primary",
|
|
81
|
+
onClick: O
|
|
82
|
+
}, {
|
|
83
|
+
default: o(() => [
|
|
84
|
+
m(n(e.$t("common.confirm")), 1)
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
})
|
|
88
|
+
])
|
|
89
|
+
]),
|
|
90
|
+
default: o(() => [
|
|
91
|
+
t(F, { class: "row" }, {
|
|
92
|
+
default: o(() => [
|
|
93
|
+
t(y, { span: 4 }, {
|
|
94
|
+
default: o(() => [
|
|
95
|
+
s[2] || (s[2] = a("span", { class: "required_red" }, "*", -1)),
|
|
96
|
+
a("span", null, n(e.$t("sysUserOps.orgId")), 1)
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}),
|
|
100
|
+
t(y, { span: 20 }, {
|
|
101
|
+
default: o(() => [
|
|
102
|
+
t(x, {
|
|
103
|
+
modelValue: r.value,
|
|
104
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
105
|
+
data: V(I).sysOrgBizDict.values,
|
|
106
|
+
filterable: "",
|
|
107
|
+
"check-strictly": "",
|
|
108
|
+
"render-after-expand": !1,
|
|
109
|
+
placeholder: e.$t("sysUserOps.orgIdRequired"),
|
|
110
|
+
class: "w-full",
|
|
111
|
+
onChange: S
|
|
112
|
+
}, null, 8, ["modelValue", "data", "placeholder"])
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
})
|
|
116
|
+
]),
|
|
117
|
+
_: 1
|
|
118
|
+
}),
|
|
119
|
+
t(j, {
|
|
120
|
+
ref_key: "uploadRef",
|
|
121
|
+
ref: E,
|
|
122
|
+
drag: "",
|
|
123
|
+
action: U.value,
|
|
124
|
+
headers: k.value,
|
|
125
|
+
data: $,
|
|
126
|
+
limit: 1,
|
|
127
|
+
"on-success": q,
|
|
128
|
+
"on-exceed": B,
|
|
129
|
+
style: { "margin-top": "20px" }
|
|
130
|
+
}, {
|
|
131
|
+
tip: o(() => [
|
|
132
|
+
a("div", {
|
|
133
|
+
class: "el-upload__tip",
|
|
134
|
+
onClick: R
|
|
135
|
+
}, [
|
|
136
|
+
a("a", W, n(_.templateTitle), 1)
|
|
137
|
+
])
|
|
138
|
+
]),
|
|
139
|
+
default: o(() => [
|
|
140
|
+
t(T, { class: "el-icon--upload" }, {
|
|
141
|
+
default: o(() => [
|
|
142
|
+
t(M)
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
}),
|
|
146
|
+
a("div", Q, [
|
|
147
|
+
m(n(e.$t("common.dragFiles")) + " ", 1),
|
|
148
|
+
a("em", null, n(e.$t("common.uploadEvent")), 1)
|
|
149
|
+
])
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 8, ["action", "headers", "data"])
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}, 8, ["modelValue", "title"]);
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-b1300bb0"]]);
|
|
159
|
+
export {
|
|
160
|
+
se as default
|
|
161
|
+
};
|
|
@@ -30,7 +30,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
30
30
|
orgId: ""
|
|
31
31
|
});
|
|
32
32
|
I.sysOutBizDict.useValues();
|
|
33
|
-
const N = _, u = U, { uploadVisible:
|
|
33
|
+
const N = _, u = U, { uploadVisible: p } = H(N), r = i();
|
|
34
34
|
function R() {
|
|
35
35
|
u("templateDown");
|
|
36
36
|
}
|
|
@@ -50,7 +50,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
50
50
|
if (!r.value) {
|
|
51
51
|
f({
|
|
52
52
|
message: g("sysUserOps.orgIdRequired"),
|
|
53
|
-
type: "
|
|
53
|
+
type: "warning"
|
|
54
54
|
});
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
@@ -62,8 +62,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
62
62
|
return (e, s) => {
|
|
63
63
|
const y = l("el-col"), x = l("jmash-select"), F = l("el-row"), M = l("upload-filled"), T = l("el-icon"), j = l("el-upload"), h = l("el-button"), z = l("el-dialog");
|
|
64
64
|
return G(), J(z, {
|
|
65
|
-
modelValue: V(
|
|
66
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
65
|
+
modelValue: V(p),
|
|
66
|
+
"onUpdate:modelValue": s[1] || (s[1] = (c) => K(p) ? p.value = c : null),
|
|
67
67
|
title: e.$t("common.uploadFiles"),
|
|
68
68
|
width: "500px",
|
|
69
69
|
onClose: v
|
|
@@ -101,7 +101,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
101
101
|
default: o(() => [
|
|
102
102
|
t(x, {
|
|
103
103
|
modelValue: r.value,
|
|
104
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
104
|
+
"onUpdate:modelValue": s[0] || (s[0] = (c) => r.value = c),
|
|
105
105
|
data: V(I).sysOutBizDict.values,
|
|
106
106
|
filterable: "",
|
|
107
107
|
"check-strictly": "",
|
|
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
155
155
|
}, 8, ["modelValue", "title"]);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-3072267a"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -4,9 +4,9 @@ import { useI18n as de } from "vue-i18n";
|
|
|
4
4
|
import { useRouter as pe } from "vue-router";
|
|
5
5
|
import { C as K, D as y } from "./index-C57850Qg.mjs";
|
|
6
6
|
import { sysUserExtApi as Q } from "./index.mjs";
|
|
7
|
-
import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as me } from "./edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs";
|
|
8
8
|
import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
-
import be from "./import-upload-
|
|
9
|
+
import be from "./import-upload-BISlCHWj.mjs";
|
|
10
10
|
const ce = { class: "app-container" }, fe = { class: "search-container" }, ge = { key: 0 }, ve = ["onClick"], we = ["onClick"], _e = ["onClick"], De = /* @__PURE__ */ re({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(Ce) {
|
|
@@ -124,7 +124,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ge =
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function Y(o) {
|
|
127
|
-
|
|
127
|
+
o.updateMask = "", i.importExcel(o).then(() => {
|
|
128
128
|
C.value = !1;
|
|
129
129
|
});
|
|
130
130
|
}
|
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
import { defineComponent as re, ref as U, reactive as z, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as k, createElementVNode as b, createVNode as a, withCtx as o, withKeys as V, unref as n, createTextVNode as m, toDisplayString as s, withDirectives as c, createBlock as f, isRef as B, createCommentVNode as S, vShow as q } from "vue";
|
|
2
|
+
import { useTableHooks as ie } from "jmash-core";
|
|
3
|
+
import { useI18n as de } from "vue-i18n";
|
|
4
|
+
import { useRouter as me } from "vue-router";
|
|
5
|
+
import { D as p, C as K } from "./index-C57850Qg.mjs";
|
|
6
|
+
import { sysUserExtApi as Q } from "./index.mjs";
|
|
7
|
+
import { _ as pe } from "./edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs";
|
|
8
|
+
import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
+
import be from "./import-upload-CzXWmSM6.mjs";
|
|
10
|
+
const ce = { class: "app-container" }, fe = { class: "search-container" }, ve = { key: 0 }, we = ["onClick"], ge = ["onClick"], _e = ["onClick"], De = /* @__PURE__ */ re({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup(je) {
|
|
13
|
+
const { t: g } = de(), L = me();
|
|
14
|
+
p.deptBizDict.useValues(), p.jobBizDict.useValues();
|
|
15
|
+
const r = U({
|
|
16
|
+
userType: K.userType.companyManager
|
|
17
|
+
}), {
|
|
18
|
+
tableHooks: u,
|
|
19
|
+
multipleTableRef: x,
|
|
20
|
+
queryFormRef: F,
|
|
21
|
+
listLoading: A,
|
|
22
|
+
tableData: H,
|
|
23
|
+
total: I
|
|
24
|
+
} = ie(g, Q, r);
|
|
25
|
+
let _ = U([
|
|
26
|
+
{
|
|
27
|
+
label: "sysUserMan.loginName",
|
|
28
|
+
prop: "loginName",
|
|
29
|
+
width: "150",
|
|
30
|
+
isColumn: !0
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "sysUserMan.realName",
|
|
34
|
+
prop: "realName",
|
|
35
|
+
width: "120",
|
|
36
|
+
isColumn: !0
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "sysUserMan.gender",
|
|
40
|
+
prop: "gender",
|
|
41
|
+
width: "80",
|
|
42
|
+
isColumn: !0,
|
|
43
|
+
slotName: "gender",
|
|
44
|
+
columnType: "slot"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "sysUserMan.mobilePhone",
|
|
48
|
+
prop: "mobilePhone",
|
|
49
|
+
width: "120",
|
|
50
|
+
isColumn: !0,
|
|
51
|
+
slotName: "mobilePhone",
|
|
52
|
+
columnType: "slot"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "sysUserMan.email",
|
|
56
|
+
prop: "email",
|
|
57
|
+
isColumn: !0,
|
|
58
|
+
slotName: "email",
|
|
59
|
+
columnType: "slot"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
label: "sysUserMan.deptId",
|
|
63
|
+
prop: "deptId",
|
|
64
|
+
isColumn: !0,
|
|
65
|
+
width: "100",
|
|
66
|
+
slotName: "deptId",
|
|
67
|
+
columnType: "slot"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: "sysUserMan.jobId",
|
|
71
|
+
prop: "jobId",
|
|
72
|
+
isColumn: !0,
|
|
73
|
+
width: "120",
|
|
74
|
+
slotName: "jobId",
|
|
75
|
+
columnType: "slot"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
label: "sysUserMan.jobStatus",
|
|
79
|
+
prop: "jobStatus",
|
|
80
|
+
width: "100",
|
|
81
|
+
isColumn: !0,
|
|
82
|
+
slotName: "jobStatus",
|
|
83
|
+
columnType: "slot"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "common.operate",
|
|
87
|
+
width: "200",
|
|
88
|
+
slotName: "operation",
|
|
89
|
+
columnType: "slot",
|
|
90
|
+
fixed: "right",
|
|
91
|
+
isColumn: !0
|
|
92
|
+
}
|
|
93
|
+
]);
|
|
94
|
+
function M(l) {
|
|
95
|
+
l.showEncrypt = !l.showEncrypt;
|
|
96
|
+
}
|
|
97
|
+
const y = U({
|
|
98
|
+
title: g("common.edit"),
|
|
99
|
+
visible: !1
|
|
100
|
+
});
|
|
101
|
+
let E = z({});
|
|
102
|
+
function O() {
|
|
103
|
+
E = z({}), y.value.title = g("common.add"), y.value.visible = !0;
|
|
104
|
+
}
|
|
105
|
+
function G(l) {
|
|
106
|
+
E.userId = l.userId, y.value.title = g("common.edit"), y.value.visible = !0;
|
|
107
|
+
}
|
|
108
|
+
function J(l) {
|
|
109
|
+
L.push({
|
|
110
|
+
path: "/rawitsmsys/itsm-sys-user-man/userManInfo",
|
|
111
|
+
query: { userId: l.userId }
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const j = U(!1);
|
|
115
|
+
function W() {
|
|
116
|
+
j.value = !1;
|
|
117
|
+
}
|
|
118
|
+
function X(l) {
|
|
119
|
+
Q.downloadTemplate().then((t) => {
|
|
120
|
+
const D = new Blob([t.data], {
|
|
121
|
+
type: "application/octet-stream"
|
|
122
|
+
});
|
|
123
|
+
ye.saveAs(D, l + ".xlsx");
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function Y(l) {
|
|
127
|
+
l.updateMask = "", u.importExcel(l).then(() => {
|
|
128
|
+
j.value = !1;
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function Z(l) {
|
|
132
|
+
u.selectionRows.value = l;
|
|
133
|
+
}
|
|
134
|
+
function ee(l) {
|
|
135
|
+
u.handleSort(l.prop, l.order);
|
|
136
|
+
}
|
|
137
|
+
function te(l) {
|
|
138
|
+
l && u.getList();
|
|
139
|
+
}
|
|
140
|
+
return u.getList(), (l, t) => {
|
|
141
|
+
const D = i("el-input"), h = i("el-form-item"), v = i("el-col"), N = i("jmash-select"), C = i("el-button"), T = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), P = i("el-tag"), R = i("svg-icon"), ae = i("jmash-table"), ne = i("jmash-pagination"), se = i("el-card"), w = ue("hasPerm");
|
|
142
|
+
return d(), k("div", ce, [
|
|
143
|
+
b("div", fe, [
|
|
144
|
+
a(le, {
|
|
145
|
+
ref_key: "queryFormRef",
|
|
146
|
+
ref: F,
|
|
147
|
+
model: r.value,
|
|
148
|
+
inline: !0
|
|
149
|
+
}, {
|
|
150
|
+
default: o(() => [
|
|
151
|
+
a(T, null, {
|
|
152
|
+
default: o(() => [
|
|
153
|
+
a(v, { span: 6 }, {
|
|
154
|
+
default: o(() => [
|
|
155
|
+
a(h, {
|
|
156
|
+
label: l.$t("sysUserMan.loginName"),
|
|
157
|
+
prop: "loginName"
|
|
158
|
+
}, {
|
|
159
|
+
default: o(() => [
|
|
160
|
+
a(D, {
|
|
161
|
+
modelValue: r.value.loginName,
|
|
162
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.loginName = e),
|
|
163
|
+
placeholder: l.$t("sysUserMan.loginNameRequired"),
|
|
164
|
+
onKeyup: t[1] || (t[1] = V((e) => n(u).handleQuery(), ["enter"])),
|
|
165
|
+
class: "!w-[203px]",
|
|
166
|
+
clearable: ""
|
|
167
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
}, 8, ["label"])
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
}),
|
|
174
|
+
a(v, { span: 6 }, {
|
|
175
|
+
default: o(() => [
|
|
176
|
+
a(h, {
|
|
177
|
+
label: l.$t("sysUserMan.deptId"),
|
|
178
|
+
prop: "deptId"
|
|
179
|
+
}, {
|
|
180
|
+
default: o(() => [
|
|
181
|
+
a(N, {
|
|
182
|
+
modelValue: r.value.deptId,
|
|
183
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => r.value.deptId = e),
|
|
184
|
+
placeholder: l.$t("sysUserMan.deptIdRequired"),
|
|
185
|
+
data: n(p).deptBizDict.values,
|
|
186
|
+
onKeyup: t[3] || (t[3] = V((e) => n(u).handleQuery(), ["enter"])),
|
|
187
|
+
clearable: ""
|
|
188
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["label"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
}),
|
|
195
|
+
a(v, { span: 6 }, {
|
|
196
|
+
default: o(() => [
|
|
197
|
+
a(h, {
|
|
198
|
+
label: l.$t("sysUserMan.jobId"),
|
|
199
|
+
prop: "jobId"
|
|
200
|
+
}, {
|
|
201
|
+
default: o(() => [
|
|
202
|
+
a(N, {
|
|
203
|
+
modelValue: r.value.jobId,
|
|
204
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => r.value.jobId = e),
|
|
205
|
+
placeholder: l.$t("sysUserMan.jobIdRequired"),
|
|
206
|
+
data: n(p).jobBizDict.values,
|
|
207
|
+
onKeyup: t[5] || (t[5] = V((e) => n(u).handleQuery(), ["enter"])),
|
|
208
|
+
clearable: ""
|
|
209
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
210
|
+
]),
|
|
211
|
+
_: 1
|
|
212
|
+
}, 8, ["label"])
|
|
213
|
+
]),
|
|
214
|
+
_: 1
|
|
215
|
+
}),
|
|
216
|
+
a(v, { span: 6 }, {
|
|
217
|
+
default: o(() => [
|
|
218
|
+
a(h, {
|
|
219
|
+
label: l.$t("sysUserMan.jobStatus"),
|
|
220
|
+
prop: "jobStatus"
|
|
221
|
+
}, {
|
|
222
|
+
default: o(() => [
|
|
223
|
+
a(N, {
|
|
224
|
+
modelValue: r.value.jobStatus,
|
|
225
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => r.value.jobStatus = e),
|
|
226
|
+
placeholder: l.$t("sysUserMan.jobStatusRequired"),
|
|
227
|
+
data: n(p).jobStatusDictEnum.values,
|
|
228
|
+
onKeyup: t[7] || (t[7] = V((e) => n(u).handleQuery(), ["enter"])),
|
|
229
|
+
clearable: ""
|
|
230
|
+
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["label"])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
}),
|
|
237
|
+
a(v, { span: 24 }, {
|
|
238
|
+
default: o(() => [
|
|
239
|
+
a(h, { class: "search-btn" }, {
|
|
240
|
+
default: o(() => [
|
|
241
|
+
a(C, {
|
|
242
|
+
type: "primary",
|
|
243
|
+
onClick: t[8] || (t[8] = (e) => n(u).handleQuery())
|
|
244
|
+
}, {
|
|
245
|
+
default: o(() => [
|
|
246
|
+
m(s(l.$t("common.search")), 1)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}),
|
|
250
|
+
a(C, {
|
|
251
|
+
onClick: t[9] || (t[9] = (e) => n(u).resetQuery())
|
|
252
|
+
}, {
|
|
253
|
+
default: o(() => [
|
|
254
|
+
m(s(l.$t("common.reset")), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
})
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
})
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}, 8, ["model"]),
|
|
270
|
+
t[19] || (t[19] = b("div", { class: "clear" }, null, -1))
|
|
271
|
+
]),
|
|
272
|
+
a(se, {
|
|
273
|
+
shadow: "never",
|
|
274
|
+
class: "table-container"
|
|
275
|
+
}, {
|
|
276
|
+
header: o(() => [
|
|
277
|
+
a(T, null, {
|
|
278
|
+
default: o(() => [
|
|
279
|
+
a(v, { span: 17 }, {
|
|
280
|
+
default: o(() => [
|
|
281
|
+
c((d(), f(C, {
|
|
282
|
+
type: "primary",
|
|
283
|
+
onClick: O
|
|
284
|
+
}, {
|
|
285
|
+
default: o(() => [
|
|
286
|
+
m(s(l.$t("common.add")), 1)
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
})), [
|
|
290
|
+
[w, ["itsmsys:sys_user_ext:add"]]
|
|
291
|
+
]),
|
|
292
|
+
c((d(), f(C, {
|
|
293
|
+
type: "primary",
|
|
294
|
+
onClick: t[10] || (t[10] = (e) => n(u).deleteRecords())
|
|
295
|
+
}, {
|
|
296
|
+
default: o(() => [
|
|
297
|
+
m(s(l.$t("common.batchDelete")), 1)
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
})), [
|
|
301
|
+
[w, ["itsmsys:sys_user_ext:delete"]]
|
|
302
|
+
])
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}),
|
|
306
|
+
a(v, {
|
|
307
|
+
span: 7,
|
|
308
|
+
class: "container-float"
|
|
309
|
+
}, {
|
|
310
|
+
default: o(() => [
|
|
311
|
+
c((d(), f(C, {
|
|
312
|
+
plain: "",
|
|
313
|
+
type: "primary",
|
|
314
|
+
onClick: t[11] || (t[11] = (e) => j.value = !0)
|
|
315
|
+
}, {
|
|
316
|
+
default: o(() => [
|
|
317
|
+
m(s(l.$t("common.import")), 1)
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
})), [
|
|
321
|
+
[w, ["itsmsys:sys_user_ext:import"]]
|
|
322
|
+
]),
|
|
323
|
+
a(oe, {
|
|
324
|
+
modelValue: n(_),
|
|
325
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => B(_) ? _.value = e : _ = e),
|
|
326
|
+
"label-name": "itsmsys/itsm-sys-user-ext"
|
|
327
|
+
}, null, 8, ["modelValue"])
|
|
328
|
+
]),
|
|
329
|
+
_: 1
|
|
330
|
+
})
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
})
|
|
334
|
+
]),
|
|
335
|
+
footer: o(() => [
|
|
336
|
+
n(I) > 0 ? (d(), f(ne, {
|
|
337
|
+
key: 0,
|
|
338
|
+
total: n(I),
|
|
339
|
+
"onUpdate:total": t[13] || (t[13] = (e) => B(I) ? I.value = e : null),
|
|
340
|
+
"current-page": r.value.curPage,
|
|
341
|
+
"onUpdate:currentPage": t[14] || (t[14] = (e) => r.value.curPage = e),
|
|
342
|
+
"page-size": r.value.pageSize,
|
|
343
|
+
"onUpdate:pageSize": t[15] || (t[15] = (e) => r.value.pageSize = e),
|
|
344
|
+
onPagination: t[16] || (t[16] = (e) => n(u).getList())
|
|
345
|
+
}, null, 8, ["total", "current-page", "page-size"])) : S("", !0)
|
|
346
|
+
]),
|
|
347
|
+
default: o(() => [
|
|
348
|
+
a(ae, {
|
|
349
|
+
ref_key: "multipleTableRef",
|
|
350
|
+
ref: x,
|
|
351
|
+
"row-key": "userId",
|
|
352
|
+
"list-loading": n(A),
|
|
353
|
+
data: n(H),
|
|
354
|
+
"table-label": n(_),
|
|
355
|
+
onSelectionChange: Z,
|
|
356
|
+
onSortChange: ee
|
|
357
|
+
}, {
|
|
358
|
+
gender: o((e) => [
|
|
359
|
+
b("span", null, s(n(p).genderDict.getEnumValue(e.data.row.gender)), 1)
|
|
360
|
+
]),
|
|
361
|
+
mobilePhone: o((e) => [
|
|
362
|
+
b("span", null, s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
|
|
363
|
+
]),
|
|
364
|
+
email: o((e) => [
|
|
365
|
+
b("span", null, s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
366
|
+
]),
|
|
367
|
+
deptId: o((e) => [
|
|
368
|
+
b("span", null, s(n(p).deptBizDict.getValue(e.data.row.deptId)), 1)
|
|
369
|
+
]),
|
|
370
|
+
jobId: o((e) => [
|
|
371
|
+
b("span", null, s(n(p).jobBizDict.getValue(e.data.row.jobId)), 1)
|
|
372
|
+
]),
|
|
373
|
+
jobStatus: o((e) => [
|
|
374
|
+
b("span", null, [
|
|
375
|
+
e.data.row.jobStatus === n(K).jobStatus.working ? (d(), f(P, {
|
|
376
|
+
key: 0,
|
|
377
|
+
type: "primary"
|
|
378
|
+
}, {
|
|
379
|
+
default: o(() => [
|
|
380
|
+
m(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
|
|
381
|
+
]),
|
|
382
|
+
_: 2
|
|
383
|
+
}, 1024)) : (d(), f(P, {
|
|
384
|
+
key: 1,
|
|
385
|
+
type: "danger"
|
|
386
|
+
}, {
|
|
387
|
+
default: o(() => [
|
|
388
|
+
m(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
|
|
389
|
+
]),
|
|
390
|
+
_: 2
|
|
391
|
+
}, 1024))
|
|
392
|
+
])
|
|
393
|
+
]),
|
|
394
|
+
operation: o((e) => [
|
|
395
|
+
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), k("span", ve, [
|
|
396
|
+
c(a(R, {
|
|
397
|
+
"icon-class": "close-eye",
|
|
398
|
+
onClick: ($) => M(e.data.row)
|
|
399
|
+
}, null, 8, ["onClick"]), [
|
|
400
|
+
[q, !e.data.row.showEncrypt]
|
|
401
|
+
]),
|
|
402
|
+
c(a(R, {
|
|
403
|
+
"icon-class": "eye-open",
|
|
404
|
+
onClick: ($) => M(e.data.row)
|
|
405
|
+
}, null, 8, ["onClick"]), [
|
|
406
|
+
[q, e.data.row.showEncrypt]
|
|
407
|
+
])
|
|
408
|
+
])) : S("", !0),
|
|
409
|
+
c((d(), k("span", {
|
|
410
|
+
class: "el-button-color dropdown-left",
|
|
411
|
+
onClick: ($) => G(e.data.row)
|
|
412
|
+
}, [
|
|
413
|
+
m(s(l.$t("common.edit")), 1)
|
|
414
|
+
], 8, we)), [
|
|
415
|
+
[w, ["itsmsys:sys_user_ext:update"]]
|
|
416
|
+
]),
|
|
417
|
+
c((d(), k("span", {
|
|
418
|
+
class: "el-button-color dropdown-left",
|
|
419
|
+
onClick: ($) => n(u).deleteRecord(e.data.row)
|
|
420
|
+
}, [
|
|
421
|
+
m(s(l.$t("common.delete")), 1)
|
|
422
|
+
], 8, ge)), [
|
|
423
|
+
[w, ["itsmsys:sys_user_ext:delete"]]
|
|
424
|
+
]),
|
|
425
|
+
c((d(), k("span", {
|
|
426
|
+
class: "el-button-color dropdown-left",
|
|
427
|
+
onClick: ($) => J(e.data.row)
|
|
428
|
+
}, [
|
|
429
|
+
m(s(l.$t("common.view")), 1)
|
|
430
|
+
], 8, _e)), [
|
|
431
|
+
[w, ["itsmsys:sys_user_ext:view"]]
|
|
432
|
+
])
|
|
433
|
+
]),
|
|
434
|
+
_: 1
|
|
435
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
436
|
+
]),
|
|
437
|
+
_: 1
|
|
438
|
+
}),
|
|
439
|
+
y.value.visible ? (d(), f(pe, {
|
|
440
|
+
key: 0,
|
|
441
|
+
modelValue: y.value.visible,
|
|
442
|
+
"onUpdate:modelValue": t[17] || (t[17] = (e) => y.value.visible = e),
|
|
443
|
+
title: y.value.title,
|
|
444
|
+
"entity-key": n(E),
|
|
445
|
+
onRefresh: te,
|
|
446
|
+
width: "900px"
|
|
447
|
+
}, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0),
|
|
448
|
+
j.value ? (d(), f(be, {
|
|
449
|
+
key: 1,
|
|
450
|
+
"upload-visible": j.value,
|
|
451
|
+
"template-title": l.$t("sysUser.templateDownload"),
|
|
452
|
+
onTemplateDown: t[18] || (t[18] = (e) => X(n(g)("sysUserOps.name"))),
|
|
453
|
+
onImportEvents: Y,
|
|
454
|
+
onUploadClosed: W
|
|
455
|
+
}, null, 8, ["upload-visible", "template-title"])) : S("", !0)
|
|
456
|
+
]);
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
export {
|
|
461
|
+
De as default
|
|
462
|
+
};
|