xyvcard-itsmsys 0.0.11 → 0.0.12
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/FileSaver.min-BeKvLuyk.mjs +73 -0
- package/dist/{edit-CiCHPkRg.mjs → edit-BSgQ7aTw.mjs} +1 -1
- package/dist/{edit-BcE5qrWo.mjs → edit-BSllWdRO.mjs} +1 -1
- package/dist/{edit-BSIP_9Mq.mjs → edit-C-Ddf0UV.mjs} +27 -25
- package/dist/{edit-BsUWSNnA.mjs → edit-CNw8JPUb.mjs} +23 -21
- package/dist/{edit-znznl9Td.mjs → edit-Cd4dWFsH.mjs} +1 -1
- package/dist/{edit-Dxs-2AFY.mjs → edit-aqBMKpoJ.mjs} +23 -21
- package/dist/{edit-CW0kqOpj.mjs → edit-q5TFAMBm.mjs} +1 -1
- package/dist/edit.vue_vue_type_script_setup_true_lang-BA39WCu3.mjs +463 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BJcLgzvH.mjs +463 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-PDq1GpSZ.mjs → edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs} +202 -124
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DjrTJAzO.mjs → edit.vue_vue_type_script_setup_true_lang-D1lAHFeM.mjs} +79 -56
- package/dist/import-upload-BIT504-g.mjs +4 -0
- package/dist/import-upload-pZG8yku3.mjs +4 -0
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-pjSs3v9e.mjs +162 -0
- package/dist/import-upload.vue_vue_type_script_setup_true_lang-tjMLoB_W.mjs +162 -0
- package/dist/{index-BV3Je3Rq.mjs → index-BY5Djw_C.mjs} +7 -7
- package/dist/{index-BIvJ7rs4.mjs → index-BaixQptZ.mjs} +7 -7
- package/dist/index-CoMhbtrg.mjs +449 -0
- package/dist/{index-CNRO77Xg.mjs → index-Cz9Xj4Mn.mjs} +1 -1
- package/dist/{index-Hh4b5GAI.mjs → index-DPz8be3T.mjs} +32 -32
- package/dist/{index-cBbN-uY2.mjs → index-Dno_3GpX.mjs} +49 -59
- package/dist/{index-4qnVgDwe.mjs → index-DrBtW9Aj.mjs} +183 -132
- package/dist/{index-CzE5REdf.mjs → index-LOMCvxtf.mjs} +1 -1
- package/dist/index.mjs +214 -181
- package/dist/{index.vue_vue_type_script_setup_true_lang-B18iZWXl.mjs → index.vue_vue_type_script_setup_true_lang-C67sXgs5.mjs} +41 -34
- package/dist/{info-BP7wPWFZ.mjs → info-BUDmirQy.mjs} +1 -1
- package/dist/{info-CtGMbfQJ.mjs → info-BivxW-qV.mjs} +1 -1
- package/dist/{info-BCPme1g5.mjs → info-Bn-BseIm.mjs} +1 -1
- package/dist/{info-Dk3RzCIp.mjs → info-C-ga_8K9.mjs} +1 -1
- package/dist/{info-DRYPl2T-.mjs → info-C3knY6l_.mjs} +58 -47
- package/dist/{info-DCRqBi8M.mjs → info-D0Pwnmsu.mjs} +71 -60
- package/dist/style.css +1 -1
- package/dts/api/dict.d.ts +0 -6
- package/dts/api/index.d.ts +4 -2
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -0
- package/dts/api/itsm-sys-user-ext/index.d.ts +3 -1
- package/dts/api/itsm-sys-user-ext/types.d.ts +15 -1
- package/dts/constant.d.ts +1 -0
- package/dts/index.d.ts +1 -0
- package/dts/lang/itsmsys/zh-cn.d.ts +13 -0
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +31 -0
- package/dts/views/itsmsys/itsm-sys-user-out/import-upload.vue.d.ts +31 -0
- package/package.json +3 -3
- package/dist/edit.vue_vue_type_script_setup_true_lang-BZ-sa6BZ.mjs +0 -422
- package/dist/edit.vue_vue_type_script_setup_true_lang-DOiO9REN.mjs +0 -422
- package/dist/index-BTO0NHK6.mjs +0 -397
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as U, reactive as I, resolveComponent as s,
|
|
|
2
2
|
import { useTableHooks as ae } from "jmash-core";
|
|
3
3
|
import { useI18n as ne } from "vue-i18n";
|
|
4
4
|
import { useRouter as se } from "vue-router";
|
|
5
|
-
import { C as q, D as S } from "./index-
|
|
5
|
+
import { C as q, D as S } from "./index-Dno_3GpX.mjs";
|
|
6
6
|
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
-
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-BV_YHrlE.mjs";
|
|
8
8
|
const ue = { class: "app-container" }, me = { class: "search-container" }, de = { key: 0 }, pe = ["onClick"], ce = ["onClick"], ye = ["onClick"], Ce = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(be) {
|
|
@@ -13,9 +13,9 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
13
13
|
}), {
|
|
14
14
|
tableHooks: i,
|
|
15
15
|
multipleTableRef: L,
|
|
16
|
-
queryFormRef:
|
|
17
|
-
listLoading:
|
|
18
|
-
tableData:
|
|
16
|
+
queryFormRef: x,
|
|
17
|
+
listLoading: K,
|
|
18
|
+
tableData: Q,
|
|
19
19
|
total: h
|
|
20
20
|
} = ae(g, re, m);
|
|
21
21
|
let f = U([
|
|
@@ -73,34 +73,34 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
73
73
|
visible: !1
|
|
74
74
|
});
|
|
75
75
|
let j = I({});
|
|
76
|
-
function
|
|
76
|
+
function B() {
|
|
77
77
|
j = I({}), p.value.title = g("common.add"), p.value.visible = !0;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function A(o) {
|
|
80
80
|
j.userId = o.userId, p.value.title = g("common.edit"), p.value.visible = !0;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function F(o) {
|
|
83
83
|
z.push({
|
|
84
84
|
path: "/rawitsmsys/itsm-sys-user-man/userManInfo",
|
|
85
85
|
query: { userId: o.userId }
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function H(o) {
|
|
89
89
|
i.selectionRows.value = o;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function G(o) {
|
|
92
92
|
i.handleSort(o.prop, o.order);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function J(o) {
|
|
95
95
|
o && i.getList();
|
|
96
96
|
}
|
|
97
97
|
return i.getList(), (o, t) => {
|
|
98
|
-
const
|
|
98
|
+
const O = s("el-input"), $ = s("el-form-item"), _ = s("el-col"), W = s("jmash-select"), k = s("el-button"), N = s("el-row"), X = s("el-form"), Y = s("jmash-column-select"), P = s("el-tag"), D = s("svg-icon"), Z = s("jmash-table"), ee = s("jmash-pagination"), te = s("el-card"), v = le("hasPerm");
|
|
99
99
|
return u(), w("div", ue, [
|
|
100
100
|
y("div", me, [
|
|
101
|
-
a(
|
|
101
|
+
a(X, {
|
|
102
102
|
ref_key: "queryFormRef",
|
|
103
|
-
ref:
|
|
103
|
+
ref: x,
|
|
104
104
|
model: m.value,
|
|
105
105
|
inline: !0
|
|
106
106
|
}, {
|
|
@@ -114,7 +114,7 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
114
114
|
prop: "likeUserName"
|
|
115
115
|
}, {
|
|
116
116
|
default: l(() => [
|
|
117
|
-
a(
|
|
117
|
+
a(O, {
|
|
118
118
|
modelValue: m.value.likeUserName,
|
|
119
119
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => m.value.likeUserName = e),
|
|
120
120
|
placeholder: o.$t("sysUserMan.realNameRequired"),
|
|
@@ -135,7 +135,7 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
135
135
|
prop: "jobStatus"
|
|
136
136
|
}, {
|
|
137
137
|
default: l(() => [
|
|
138
|
-
a(
|
|
138
|
+
a(W, {
|
|
139
139
|
modelValue: m.value.jobStatus,
|
|
140
140
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => m.value.jobStatus = e),
|
|
141
141
|
placeholder: o.$t("sysUserMan.jobStatusRequired"),
|
|
@@ -195,14 +195,14 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
195
195
|
default: l(() => [
|
|
196
196
|
c((u(), b(k, {
|
|
197
197
|
type: "primary",
|
|
198
|
-
onClick:
|
|
198
|
+
onClick: B
|
|
199
199
|
}, {
|
|
200
200
|
default: l(() => [
|
|
201
201
|
d(r(o.$t("common.add")), 1)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
})), [
|
|
205
|
-
[v, ["itsmsys:
|
|
205
|
+
[v, ["itsmsys:sys_user_ext:add"]]
|
|
206
206
|
]),
|
|
207
207
|
c((u(), b(k, {
|
|
208
208
|
type: "primary",
|
|
@@ -213,7 +213,7 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
213
213
|
]),
|
|
214
214
|
_: 1
|
|
215
215
|
})), [
|
|
216
|
-
[v, ["itsmsys:
|
|
216
|
+
[v, ["itsmsys:sys_user_ext:delete"]]
|
|
217
217
|
])
|
|
218
218
|
]),
|
|
219
219
|
_: 1
|
|
@@ -223,10 +223,10 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
223
223
|
class: "container-float"
|
|
224
224
|
}, {
|
|
225
225
|
default: l(() => [
|
|
226
|
-
a(
|
|
226
|
+
a(Y, {
|
|
227
227
|
modelValue: n(f),
|
|
228
228
|
"onUpdate:modelValue": t[7] || (t[7] = (e) => M(f) ? f.value = e : f = e),
|
|
229
|
-
"label-name": "itsmsys/itsm-sys-user-
|
|
229
|
+
"label-name": "itsmsys/itsm-sys-user-ext"
|
|
230
230
|
}, null, 8, ["modelValue"])
|
|
231
231
|
]),
|
|
232
232
|
_: 1
|
|
@@ -248,15 +248,15 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
248
248
|
}, null, 8, ["total", "current-page", "page-size"])) : V("", !0)
|
|
249
249
|
]),
|
|
250
250
|
default: l(() => [
|
|
251
|
-
a(
|
|
251
|
+
a(Z, {
|
|
252
252
|
ref_key: "multipleTableRef",
|
|
253
253
|
ref: L,
|
|
254
254
|
"row-key": "userId",
|
|
255
|
-
"list-loading": n(
|
|
256
|
-
data: n(
|
|
255
|
+
"list-loading": n(K),
|
|
256
|
+
data: n(Q),
|
|
257
257
|
"table-label": n(f),
|
|
258
|
-
onSelectionChange:
|
|
259
|
-
onSortChange:
|
|
258
|
+
onSelectionChange: H,
|
|
259
|
+
onSortChange: G
|
|
260
260
|
}, {
|
|
261
261
|
gender: l((e) => [
|
|
262
262
|
y("span", null, r(n(S).genderDict.getEnumValue(e.data.row.gender)), 1)
|
|
@@ -305,11 +305,11 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
305
305
|
])) : V("", !0),
|
|
306
306
|
c((u(), w("span", {
|
|
307
307
|
class: "el-button-color dropdown-left",
|
|
308
|
-
onClick: (C) =>
|
|
308
|
+
onClick: (C) => A(e.data.row)
|
|
309
309
|
}, [
|
|
310
310
|
d(r(o.$t("common.edit")), 1)
|
|
311
311
|
], 8, pe)), [
|
|
312
|
-
[v, ["itsmsys:
|
|
312
|
+
[v, ["itsmsys:sys_user_ext:update"]]
|
|
313
313
|
]),
|
|
314
314
|
c((u(), w("span", {
|
|
315
315
|
class: "el-button-color dropdown-left",
|
|
@@ -317,15 +317,15 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
317
317
|
}, [
|
|
318
318
|
d(r(o.$t("common.delete")), 1)
|
|
319
319
|
], 8, ce)), [
|
|
320
|
-
[v, ["itsmsys:
|
|
320
|
+
[v, ["itsmsys:sys_user_ext:delete"]]
|
|
321
321
|
]),
|
|
322
322
|
c((u(), w("span", {
|
|
323
323
|
class: "el-button-color dropdown-left",
|
|
324
|
-
onClick: (C) =>
|
|
324
|
+
onClick: (C) => F(e.data.row)
|
|
325
325
|
}, [
|
|
326
326
|
d(r(o.$t("common.view")), 1)
|
|
327
327
|
], 8, ye)), [
|
|
328
|
-
[v, ["itsmsys:
|
|
328
|
+
[v, ["itsmsys:sys_user_ext:view"]]
|
|
329
329
|
])
|
|
330
330
|
]),
|
|
331
331
|
_: 1
|
|
@@ -339,7 +339,7 @@ const ue = { class: "app-container" }, me = { class: "search-container" }, de =
|
|
|
339
339
|
"onUpdate:modelValue": t[12] || (t[12] = (e) => p.value.visible = e),
|
|
340
340
|
title: p.value.title,
|
|
341
341
|
"entity-key": n(j),
|
|
342
|
-
onRefresh:
|
|
342
|
+
onRefresh: J,
|
|
343
343
|
width: "900px"
|
|
344
344
|
}, null, 8, ["modelValue", "title", "entity-key"])) : V("", !0)
|
|
345
345
|
]);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (
|
|
4
|
-
import { ref as
|
|
5
|
-
import { BizLayDict as
|
|
6
|
-
import { sysOrgApi as
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var _ = (c, t, i) => t in c ? T(c, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : c[t] = i;
|
|
3
|
+
var s = (c, t, i) => _(c, typeof t != "symbol" ? t + "" : t, i);
|
|
4
|
+
import { ref as S } from "vue";
|
|
5
|
+
import { BizLayDict as p, BizDict as l, CustomBizDict as N, EnumDict as a } from "jmash-core";
|
|
6
|
+
import { sysOrgApi as n } from "./index.mjs";
|
|
7
|
+
import { EntryDict as O } from "jmash-dict";
|
|
7
8
|
class e {
|
|
8
9
|
}
|
|
9
10
|
//模块
|
|
10
11
|
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
11
|
-
s(e, "HAS_STATUS",
|
|
12
|
+
s(e, "HAS_STATUS", S([
|
|
12
13
|
{ key: !0, value: "启用" },
|
|
13
14
|
{ key: !1, value: "禁用" }
|
|
14
15
|
])), // 公司发票类型
|
|
@@ -58,98 +59,87 @@ s(e, "amapConfig", {
|
|
|
58
59
|
apiKey: "b08fdd63c62296ccd2c1f2cc0f423e14",
|
|
59
60
|
// 高德地图安全密钥
|
|
60
61
|
securityJsCode: "9c92eb8120ea30d8c5ce75140e5b5c08"
|
|
61
|
-
})
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
s(this, "values", p([]));
|
|
65
|
-
// 查询条件
|
|
66
|
-
s(this, "query");
|
|
67
|
-
this.values.length = 0, this.values.push(...r.value), this.query = t;
|
|
68
|
-
}
|
|
69
|
-
// 根据给定键获取业务数据项的值的方法
|
|
70
|
-
getValue(r) {
|
|
71
|
-
for (const t of this.values)
|
|
72
|
-
if (t.key == r)
|
|
73
|
-
return t.value;
|
|
74
|
-
return "";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
class M extends _ {
|
|
62
|
+
}), // 运维工程师资质等级
|
|
63
|
+
s(e, "DICT_ENGINEE_GRADE", "enginee_grade");
|
|
64
|
+
class M extends p {
|
|
78
65
|
// 实现 useValues 方法
|
|
79
66
|
useValues() {
|
|
80
|
-
return new Promise((
|
|
81
|
-
if (typeof
|
|
82
|
-
|
|
67
|
+
return new Promise((t, i) => {
|
|
68
|
+
if (typeof n.findList > "u") {
|
|
69
|
+
t(this.values);
|
|
83
70
|
return;
|
|
84
71
|
}
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(
|
|
89
|
-
}).catch(
|
|
72
|
+
const u = { ...this.query };
|
|
73
|
+
n.findList(u).then(({ data: o }) => {
|
|
74
|
+
const E = o.results;
|
|
75
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(E)), t(this.values);
|
|
76
|
+
}).catch(i);
|
|
90
77
|
});
|
|
91
78
|
}
|
|
92
|
-
convertToLayEntryArray(
|
|
93
|
-
return
|
|
94
|
-
value:
|
|
95
|
-
label:
|
|
96
|
-
parentId:
|
|
97
|
-
children:
|
|
79
|
+
convertToLayEntryArray(t) {
|
|
80
|
+
return t.map((i) => ({
|
|
81
|
+
value: i.orgId,
|
|
82
|
+
label: i.orgName,
|
|
83
|
+
parentId: i.parentId || "",
|
|
84
|
+
children: i.children ? this.convertToLayEntryArray(i.children) : []
|
|
98
85
|
}));
|
|
99
86
|
}
|
|
100
87
|
}
|
|
101
|
-
class
|
|
88
|
+
class y extends l {
|
|
102
89
|
// 实现 useValues 方法
|
|
103
90
|
useValues() {
|
|
104
|
-
return new Promise((
|
|
105
|
-
|
|
106
|
-
const o =
|
|
91
|
+
return new Promise((t, i) => {
|
|
92
|
+
n.findPage(this.query).then(({ data: u }) => {
|
|
93
|
+
const o = u.results;
|
|
107
94
|
this.values.length = 0, this.values.push(
|
|
108
95
|
...o.map(
|
|
109
|
-
(
|
|
110
|
-
key:
|
|
111
|
-
value:
|
|
96
|
+
(E) => ({
|
|
97
|
+
key: E.orgId,
|
|
98
|
+
value: E.orgName
|
|
112
99
|
})
|
|
113
100
|
)
|
|
114
|
-
),
|
|
115
|
-
}).catch(
|
|
101
|
+
), t(this.values);
|
|
102
|
+
}).catch(i);
|
|
116
103
|
});
|
|
117
104
|
}
|
|
118
105
|
}
|
|
119
|
-
class
|
|
106
|
+
class r {
|
|
120
107
|
}
|
|
121
108
|
// 公司管理状态
|
|
122
|
-
s(
|
|
123
|
-
s(
|
|
109
|
+
s(r, "hasStatusDict", new N(e.HAS_STATUS, {})), // 公司发票类型
|
|
110
|
+
s(r, "invoiceTypeDictEnum", new a(
|
|
124
111
|
e.MODULE_ITSMSYS,
|
|
125
112
|
e.ENUM_INVOICE_TYPE
|
|
126
113
|
)), // 厅局管理父厅级单位
|
|
127
|
-
s(
|
|
114
|
+
s(r, "parentIdBizDict", new M({
|
|
128
115
|
orgType: e.orgType.hall
|
|
129
116
|
})), // 管理人员工作状态
|
|
130
|
-
s(
|
|
117
|
+
s(r, "jobStatusDictEnum", new a(
|
|
131
118
|
e.MODULE_ITSMSYS,
|
|
132
119
|
e.ENUM_JOB_ATATUS
|
|
133
120
|
)), // 运维人员工作模式
|
|
134
|
-
s(
|
|
121
|
+
s(r, "engineeJobModeDictEnum", new a(
|
|
135
122
|
e.MODULE_ITSMSYS,
|
|
136
123
|
e.ENUM_ENGINEE_JOB_MODE
|
|
137
124
|
)), // 性别
|
|
138
|
-
s(
|
|
125
|
+
s(r, "genderDict", new a(
|
|
139
126
|
e.MODULE_RBAC,
|
|
140
127
|
e.ENUM_GENDER
|
|
141
128
|
)), // 运维人员工程师类型
|
|
142
|
-
s(
|
|
129
|
+
s(r, "engineeTypeDictEnum", new a(
|
|
143
130
|
e.MODULE_ITSMSYS,
|
|
144
131
|
e.ENUM_ENGINEE_TYPE
|
|
145
132
|
)), // 公司人员选择公司名称
|
|
146
|
-
s(
|
|
133
|
+
s(r, "sysOrgBizDict", new y({
|
|
147
134
|
orgType: e.orgType.cloud
|
|
148
135
|
})), // 外协运维人员选择公司名称
|
|
149
|
-
s(
|
|
136
|
+
s(r, "sysOutBizDict", new y({
|
|
150
137
|
orgType: e.orgType.outsource
|
|
151
|
-
}))
|
|
138
|
+
})), // 运维工程师资质等级
|
|
139
|
+
s(r, "engineeCertificateDict", new O(
|
|
140
|
+
e.DICT_ENGINEE_GRADE
|
|
141
|
+
));
|
|
152
142
|
export {
|
|
153
143
|
e as C,
|
|
154
|
-
|
|
144
|
+
r as D
|
|
155
145
|
};
|