xyvcard-itsmsys 0.0.17 → 0.0.19
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/README.md +51 -51
- package/dist/{edit-BAH_6b13.mjs → edit-BrHOGUbU.mjs} +1 -1
- package/dist/{edit-DgxHpvC6.mjs → edit-CNEVornb.mjs} +100 -100
- package/dist/{edit-CJKLiFvj.mjs → edit-COKceKzl.mjs} +87 -87
- package/dist/{edit-a4L0fy11.mjs → edit-Czi-Vkbf.mjs} +1 -1
- package/dist/{edit-DdBemEtp.mjs → edit-DYqAdRsK.mjs} +99 -99
- package/dist/{edit-CfJWdgBx.mjs → edit-DybO5r3p.mjs} +1 -1
- package/dist/{edit-pCyaGLeW.mjs → edit-_QJnKCdq.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Bs8-z-IO.mjs → edit.vue_vue_type_script_setup_true_lang-BOvUiQbv.mjs} +136 -136
- package/dist/{edit.vue_vue_type_script_setup_true_lang-V7Qgl4pY.mjs → edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs} +173 -174
- package/dist/{edit.vue_vue_type_script_setup_true_lang-ygCvblxi.mjs → edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs} +53 -53
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CZ1mhblw.mjs → edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs} +108 -108
- package/dist/{import-upload-TERPQdeq.mjs → import-upload-BvY7RZa-.mjs} +2 -2
- package/dist/{import-upload-BISlCHWj.mjs → import-upload-DBk1lPqR.mjs} +5 -5
- package/dist/{index-BxdZzcjP.mjs → index-BHcHN6PY.mjs} +25 -25
- package/dist/{index-DRzFGqnW.mjs → index-Cow_4AlE.mjs} +22 -22
- package/dist/{index-rAUwvtcF.mjs → index-CuBZptA_.mjs} +1 -1
- package/dist/{index-ekie5iUI.mjs → index-D__UxnZG.mjs} +13 -15
- package/dist/{index-DGX9vRbo.mjs → index-IpHv0Vzi.mjs} +1 -1
- package/dist/{index-byYol6y6.mjs → index-cpyRUYdS.mjs} +57 -55
- package/dist/{index-C57850Qg.mjs → index-dIcRC4jE.mjs} +23 -29
- package/dist/{index-B8RLzH1x.mjs → index-p50UkFiJ.mjs} +28 -28
- package/dist/index.mjs +1021 -936
- package/dist/{index.vue_vue_type_script_setup_true_lang-CFepWDIx.mjs → index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs} +2 -2
- package/dist/{info-DHxVt25p.mjs → info-BUKhtcuu.mjs} +2 -2
- package/dist/{info-BqQdA6b-.mjs → info-Bn5mhJtq.mjs} +2 -2
- package/dist/{info-to4iDhQX.mjs → info-Dx5fzSIP.mjs} +2 -2
- package/dist/{info-BraECWiO.mjs → info-EodyqiPm.mjs} +2 -2
- package/dist/{info-Cjx0ceNM.mjs → info-G1z1-aeX.mjs} +2 -2
- package/dist/{info-BNw5IiGi.mjs → info-bYWisCey.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/index.d.ts +5 -0
- package/dts/api/itsm-sys-org-invoice/types.d.ts +3 -3
- package/dts/api/itsm-sys-user-ext/types.d.ts +9 -0
- package/dts/constant.d.ts +0 -4
- package/dts/index.d.ts +0 -1
- package/dts/lang/itsmsys/en.d.ts +130 -49
- package/dts/lang/itsmsys/zh-cn.d.ts +0 -3
- package/dts/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +8 -2
- package/dts/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +8 -2
- package/package.json +18 -20
- package/dist/import-upload-CzXWmSM6.mjs +0 -161
- package/dts/components/TMaps/index.vue.d.ts +0 -20
- package/dts/utils/TMap.d.ts +0 -1
- package/dts/utils/common.d.ts +0 -1
- package/dts/views/itsmsys/itsm-sys-user-ops/import-upload.vue.d.ts +0 -31
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as re, ref as S, reactive as
|
|
1
|
+
import { defineComponent as re, ref as S, reactive as M, resolveComponent as i, resolveDirective as ue, openBlock as d, createElementBlock as V, createElementVNode as m, createVNode as a, withCtx as o, unref as n, withKeys as k, createTextVNode as y, toDisplayString as s, withDirectives as f, createBlock as c, isRef as J, createCommentVNode as O, vShow as q } from "vue";
|
|
2
2
|
import { useTableHooks as ie } from "jmash-core";
|
|
3
3
|
import { useI18n as de } from "vue-i18n";
|
|
4
4
|
import { useRouter as pe } from "vue-router";
|
|
5
|
-
import { D as p, C as
|
|
5
|
+
import { D as p, C as D } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysUserExtApi as z } 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-BOvUiQbv.mjs";
|
|
8
8
|
import { F as ye } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
-
import be from "./import-upload-
|
|
9
|
+
import be from "./import-upload-BvY7RZa-.mjs";
|
|
10
10
|
const ge = { class: "app-container" }, fe = { class: "search-container" }, ce = { key: 0 }, ve = ["onClick"], we = ["onClick"], _e = ["onClick"], je = /* @__PURE__ */ re({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(Ce) {
|
|
13
13
|
const { t: C } = de(), B = pe();
|
|
14
14
|
p.sysOutBizDict.useValues();
|
|
15
15
|
const r = S({
|
|
16
|
-
userType:
|
|
16
|
+
userType: D.userType.outsourceOps
|
|
17
17
|
}), {
|
|
18
18
|
tableHooks: u,
|
|
19
19
|
multipleTableRef: K,
|
|
@@ -101,16 +101,16 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
101
101
|
isColumn: !0
|
|
102
102
|
}
|
|
103
103
|
]);
|
|
104
|
-
function
|
|
104
|
+
function I(l) {
|
|
105
105
|
l.showEncrypt = !l.showEncrypt;
|
|
106
106
|
}
|
|
107
107
|
const b = S({
|
|
108
108
|
title: C("common.edit"),
|
|
109
109
|
visible: !1
|
|
110
110
|
});
|
|
111
|
-
let j =
|
|
111
|
+
let j = M({});
|
|
112
112
|
function A() {
|
|
113
|
-
j =
|
|
113
|
+
j = M({}), b.value.title = C("common.add"), b.value.visible = !0;
|
|
114
114
|
}
|
|
115
115
|
function x(l) {
|
|
116
116
|
j.userId = l.userId, b.value.title = C("common.edit"), b.value.visible = !0;
|
|
@@ -134,7 +134,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
function X(l) {
|
|
137
|
-
l.updateMask = "", u.importExcel(l).then(() => {
|
|
137
|
+
l.updateMask = "", l.userType = D.userType.outsourceOps, u.importExcel(l).then(() => {
|
|
138
138
|
$.value = !1;
|
|
139
139
|
});
|
|
140
140
|
}
|
|
@@ -148,7 +148,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
148
148
|
l && u.getList();
|
|
149
149
|
}
|
|
150
150
|
return u.getList(), (l, t) => {
|
|
151
|
-
const v = i("jmash-select"), w = i("el-form-item"), g = i("el-col"), te = i("el-input"), U = i("el-button"),
|
|
151
|
+
const v = i("jmash-select"), w = i("el-form-item"), g = i("el-col"), te = i("el-input"), U = i("el-button"), N = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), R = i("el-tag"), P = i("svg-icon"), ne = i("jmash-table"), ae = i("jmash-pagination"), se = i("el-card"), _ = ue("hasPerm");
|
|
152
152
|
return d(), V("div", ge, [
|
|
153
153
|
m("div", fe, [
|
|
154
154
|
a(le, {
|
|
@@ -158,7 +158,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
158
158
|
inline: !0
|
|
159
159
|
}, {
|
|
160
160
|
default: o(() => [
|
|
161
|
-
a(
|
|
161
|
+
a(N, null, {
|
|
162
162
|
default: o(() => [
|
|
163
163
|
a(g, { span: 6 }, {
|
|
164
164
|
default: o(() => [
|
|
@@ -304,7 +304,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
304
304
|
class: "table-container"
|
|
305
305
|
}, {
|
|
306
306
|
header: o(() => [
|
|
307
|
-
a(
|
|
307
|
+
a(N, null, {
|
|
308
308
|
default: o(() => [
|
|
309
309
|
a(g, { span: 17 }, {
|
|
310
310
|
default: o(() => [
|
|
@@ -352,7 +352,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
352
352
|
]),
|
|
353
353
|
a(oe, {
|
|
354
354
|
modelValue: n(h),
|
|
355
|
-
"onUpdate:modelValue": t[14] || (t[14] = (e) =>
|
|
355
|
+
"onUpdate:modelValue": t[14] || (t[14] = (e) => J(h) ? h.value = e : h = e),
|
|
356
356
|
"label-name": "itsmsys/itsm-sys-user-ext"
|
|
357
357
|
}, null, 8, ["modelValue"])
|
|
358
358
|
]),
|
|
@@ -366,7 +366,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
366
366
|
n(T) > 0 ? (d(), c(ae, {
|
|
367
367
|
key: 0,
|
|
368
368
|
total: n(T),
|
|
369
|
-
"onUpdate:total": t[15] || (t[15] = (e) =>
|
|
369
|
+
"onUpdate:total": t[15] || (t[15] = (e) => J(T) ? T.value = e : null),
|
|
370
370
|
"current-page": r.value.curPage,
|
|
371
371
|
"onUpdate:currentPage": t[16] || (t[16] = (e) => r.value.curPage = e),
|
|
372
372
|
"page-size": r.value.pageSize,
|
|
@@ -399,7 +399,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
399
399
|
]),
|
|
400
400
|
jobStatus: o((e) => [
|
|
401
401
|
m("span", null, [
|
|
402
|
-
e.data.row.jobStatus === n(
|
|
402
|
+
e.data.row.jobStatus === n(D).jobStatus.working ? (d(), c(R, {
|
|
403
403
|
key: 0,
|
|
404
404
|
type: "primary"
|
|
405
405
|
}, {
|
|
@@ -407,7 +407,7 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
407
407
|
y(s(n(p).jobStatusDictEnum.getEnumValue(e.data.row.jobStatus)), 1)
|
|
408
408
|
]),
|
|
409
409
|
_: 2
|
|
410
|
-
}, 1024)) : (d(), c(
|
|
410
|
+
}, 1024)) : (d(), c(R, {
|
|
411
411
|
key: 1,
|
|
412
412
|
type: "danger"
|
|
413
413
|
}, {
|
|
@@ -435,17 +435,17 @@ const ge = { class: "app-container" }, fe = { class: "search-container" }, ce =
|
|
|
435
435
|
]),
|
|
436
436
|
operation: o((e) => [
|
|
437
437
|
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), V("span", ce, [
|
|
438
|
-
f(a(
|
|
438
|
+
f(a(P, {
|
|
439
439
|
"icon-class": "close-eye",
|
|
440
|
-
onClick: (E) =>
|
|
440
|
+
onClick: (E) => I(e.data.row)
|
|
441
441
|
}, null, 8, ["onClick"]), [
|
|
442
|
-
[
|
|
442
|
+
[q, !e.data.row.showEncrypt]
|
|
443
443
|
]),
|
|
444
|
-
f(a(
|
|
444
|
+
f(a(P, {
|
|
445
445
|
"icon-class": "eye-open",
|
|
446
|
-
onClick: (E) =>
|
|
446
|
+
onClick: (E) => I(e.data.row)
|
|
447
447
|
}, null, 8, ["onClick"]), [
|
|
448
|
-
[
|
|
448
|
+
[q, e.data.row.showEncrypt]
|
|
449
449
|
])
|
|
450
450
|
])) : O("", !0),
|
|
451
451
|
f((d(), V("span", {
|
|
@@ -2,7 +2,7 @@ import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective
|
|
|
2
2
|
import { useTableHooks as Z } from "jmash-core";
|
|
3
3
|
import { useI18n as x } from "vue-i18n";
|
|
4
4
|
import { useRouter as ee } from "vue-router";
|
|
5
|
-
import { C as k, D as te } from "./index-
|
|
5
|
+
import { C as k, D as te } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysOrgApi as oe } from "./index.mjs";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], be = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as ne, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as
|
|
1
|
+
import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as ne, openBlock as y, createElementBlock as k, createElementVNode as R, createVNode as n, withCtx as l, withKeys as I, unref as _, createTextVNode as c, toDisplayString as d, withDirectives as h, createBlock as G, isRef as le } from "vue";
|
|
2
2
|
import { useTableHooks as se } from "jmash-core";
|
|
3
3
|
import { ElMessageBox as j, ElMessage as T } from "element-plus";
|
|
4
4
|
import { useI18n as ae } from "vue-i18n";
|
|
5
|
-
import { C as re, D as ie } from "./index-
|
|
5
|
+
import { C as re, D as ie } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysOrgApi as u } from "./index.mjs";
|
|
7
7
|
import { useRouter as me } from "vue-router";
|
|
8
8
|
const ce = { class: "app-container" }, de = { class: "search-container" }, ue = ["onClick"], pe = ["onClick"], fe = ["onClick"], ke = /* @__PURE__ */ te({
|
|
@@ -112,7 +112,6 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
112
112
|
type: "success"
|
|
113
113
|
}), r.findList());
|
|
114
114
|
});
|
|
115
|
-
}).catch(() => {
|
|
116
115
|
});
|
|
117
116
|
}
|
|
118
117
|
function A() {
|
|
@@ -138,7 +137,6 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
138
137
|
type: "success"
|
|
139
138
|
}), r.findList(), (f = P.value) == null || f.clearSelection());
|
|
140
139
|
});
|
|
141
|
-
}).catch(() => {
|
|
142
140
|
});
|
|
143
141
|
}
|
|
144
142
|
function w() {
|
|
@@ -148,7 +146,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
148
146
|
V.value.resetFields(), w();
|
|
149
147
|
}
|
|
150
148
|
return r.findList(), (e, t) => {
|
|
151
|
-
const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"),
|
|
149
|
+
const f = s("el-input"), m = s("el-form-item"), v = s("el-col"), Q = s("jmash-select"), C = s("el-button"), D = s("el-row"), x = s("el-form"), J = s("jmash-column-select"), W = s("jmash-mobileIns-component"), X = s("Bottom"), E = s("el-icon"), Y = s("Top"), Z = s("el-switch"), ee = s("jmash-table"), oe = s("el-card"), g = ne("hasPerm");
|
|
152
150
|
return y(), k("div", ce, [
|
|
153
151
|
R("div", de, [
|
|
154
152
|
n(x, {
|
|
@@ -246,7 +244,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
246
244
|
default: l(() => [
|
|
247
245
|
n(v, { span: 17 }, {
|
|
248
246
|
default: l(() => [
|
|
249
|
-
|
|
247
|
+
h((y(), G(C, {
|
|
250
248
|
type: "primary",
|
|
251
249
|
onClick: L
|
|
252
250
|
}, {
|
|
@@ -255,9 +253,9 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
255
253
|
]),
|
|
256
254
|
_: 1
|
|
257
255
|
})), [
|
|
258
|
-
[
|
|
256
|
+
[g, ["itsmsys:sys_org_gov:add"]]
|
|
259
257
|
]),
|
|
260
|
-
|
|
258
|
+
h((y(), G(C, {
|
|
261
259
|
type: "primary",
|
|
262
260
|
onClick: t[6] || (t[6] = (o) => A())
|
|
263
261
|
}, {
|
|
@@ -266,7 +264,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
266
264
|
]),
|
|
267
265
|
_: 1
|
|
268
266
|
})), [
|
|
269
|
-
[
|
|
267
|
+
[g, ["itsmsys:sys_org_gov:delete"]]
|
|
270
268
|
])
|
|
271
269
|
]),
|
|
272
270
|
_: 1
|
|
@@ -335,29 +333,29 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
335
333
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
336
334
|
]),
|
|
337
335
|
operation: l((o) => [
|
|
338
|
-
|
|
336
|
+
h((y(), k("span", {
|
|
339
337
|
class: "el-button-color",
|
|
340
338
|
onClick: (i) => K(o.data.row)
|
|
341
339
|
}, [
|
|
342
340
|
c(d(e.$t("common.edit")), 1)
|
|
343
341
|
], 8, ue)), [
|
|
344
|
-
[
|
|
342
|
+
[g, ["itsmsys:sys_org_gov:update"]]
|
|
345
343
|
]),
|
|
346
|
-
|
|
344
|
+
h((y(), k("span", {
|
|
347
345
|
class: "el-button-color dropdown-left",
|
|
348
346
|
onClick: (i) => z(o.data.row)
|
|
349
347
|
}, [
|
|
350
348
|
c(d(e.$t("common.delete")), 1)
|
|
351
349
|
], 8, pe)), [
|
|
352
|
-
[
|
|
350
|
+
[g, ["itsmsys:sys_org_gov:delete"]]
|
|
353
351
|
]),
|
|
354
|
-
|
|
352
|
+
h((y(), k("span", {
|
|
355
353
|
class: "el-button-color dropdown-left",
|
|
356
354
|
onClick: (i) => O(o.data.row)
|
|
357
355
|
}, [
|
|
358
356
|
c(d(e.$t("common.view")), 1)
|
|
359
357
|
], 8, fe)), [
|
|
360
|
-
[
|
|
358
|
+
[g, ["itsmsys:sys_org_gov:view"]]
|
|
361
359
|
])
|
|
362
360
|
]),
|
|
363
361
|
_: 1
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as W, ref as $, resolveComponent as s, resolveDirective as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { C as k, D as
|
|
1
|
+
import { defineComponent as W, ref as $, onActivated as X, resolveComponent as s, resolveDirective as Y, openBlock as m, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as d, toDisplayString as u, withDirectives as b, createBlock as C, isRef as O, createCommentVNode as Z } from "vue";
|
|
2
|
+
import { useTableHooks as x } from "jmash-core";
|
|
3
|
+
import { useI18n as ee } from "vue-i18n";
|
|
4
|
+
import { C as k, D as te } from "./index-dIcRC4jE.mjs";
|
|
5
5
|
import { sysOrgApi as oe } from "./index.mjs";
|
|
6
|
-
import { useRouter as
|
|
7
|
-
const
|
|
6
|
+
import { useRouter as le } from "vue-router";
|
|
7
|
+
const ne = { class: "app-container" }, ae = { class: "search-container" }, se = ["onClick"], re = ["onClick"], ie = ["onClick"], be = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t: T } =
|
|
9
|
+
setup(me) {
|
|
10
|
+
const { t: T } = ee(), v = le(), i = $({
|
|
11
11
|
orgType: k.orgType.cloud,
|
|
12
12
|
orderName: k.orderBy.orderName,
|
|
13
13
|
orderAsc: k.orderBy.orderAsc
|
|
@@ -18,7 +18,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
18
18
|
listLoading: R,
|
|
19
19
|
tableData: j,
|
|
20
20
|
total: f
|
|
21
|
-
} =
|
|
21
|
+
} = x(T, oe, i);
|
|
22
22
|
let c = $([
|
|
23
23
|
{
|
|
24
24
|
label: "sysOrg.orgName",
|
|
@@ -68,34 +68,36 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
68
68
|
isColumn: !0
|
|
69
69
|
}
|
|
70
70
|
]);
|
|
71
|
-
function S(
|
|
72
|
-
|
|
71
|
+
function S(o) {
|
|
72
|
+
o.mobileEncrypt = !o.mobileEncrypt;
|
|
73
73
|
}
|
|
74
74
|
function D() {
|
|
75
75
|
v.push({ path: "/rawitsmsys/itsm-sys-org/edit" });
|
|
76
76
|
}
|
|
77
|
-
function U(
|
|
77
|
+
function U(o) {
|
|
78
78
|
v.push({
|
|
79
79
|
path: "/rawitsmsys/itsm-sys-org/edit",
|
|
80
|
-
query: { entityKey:
|
|
80
|
+
query: { entityKey: o.orgId }
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
function q(
|
|
83
|
+
function q(o) {
|
|
84
84
|
v.push({
|
|
85
85
|
path: "/rawitsmsys/itsm-sys-org/orgInfo",
|
|
86
|
-
query: { orgId:
|
|
86
|
+
query: { orgId: o.orgId }
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
function M(
|
|
90
|
-
r.selectionRows.value =
|
|
89
|
+
function M(o) {
|
|
90
|
+
r.selectionRows.value = o;
|
|
91
91
|
}
|
|
92
|
-
function z(
|
|
93
|
-
r.handleSort(
|
|
92
|
+
function z(o) {
|
|
93
|
+
r.handleSort(o.prop, o.order);
|
|
94
94
|
}
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
return X(() => {
|
|
96
|
+
r.getList();
|
|
97
|
+
}), (o, t) => {
|
|
98
|
+
const A = s("el-input"), w = s("el-form-item"), y = s("el-col"), B = s("jmash-select"), _ = s("el-button"), P = s("el-row"), K = s("el-form"), L = s("jmash-column-select"), Q = s("jmash-mobileIns-component"), F = s("el-switch"), H = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), g = Y("hasPerm");
|
|
99
|
+
return m(), h("div", ne, [
|
|
100
|
+
V("div", ae, [
|
|
99
101
|
n(K, {
|
|
100
102
|
ref_key: "queryFormRef",
|
|
101
103
|
ref: I,
|
|
@@ -108,15 +110,15 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
108
110
|
n(y, { span: 6 }, {
|
|
109
111
|
default: l(() => [
|
|
110
112
|
n(w, {
|
|
111
|
-
label:
|
|
113
|
+
label: o.$t("sysOrg.orgName"),
|
|
112
114
|
prop: "likeOrgName"
|
|
113
115
|
}, {
|
|
114
116
|
default: l(() => [
|
|
115
|
-
n(
|
|
117
|
+
n(A, {
|
|
116
118
|
modelValue: i.value.likeOrgName,
|
|
117
|
-
"onUpdate:modelValue":
|
|
118
|
-
placeholder:
|
|
119
|
-
onKeyup:
|
|
119
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => i.value.likeOrgName = e),
|
|
120
|
+
placeholder: o.$t("sysOrg.orgNameRequired"),
|
|
121
|
+
onKeyup: t[1] || (t[1] = N((e) => a(r).handleQuery(), ["enter"])),
|
|
120
122
|
class: "!w-[203px]",
|
|
121
123
|
clearable: ""
|
|
122
124
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -129,17 +131,17 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
129
131
|
n(y, { span: 6 }, {
|
|
130
132
|
default: l(() => [
|
|
131
133
|
n(w, {
|
|
132
|
-
label:
|
|
134
|
+
label: o.$t("sysOrg.status"),
|
|
133
135
|
prop: "status"
|
|
134
136
|
}, {
|
|
135
137
|
default: l(() => [
|
|
136
|
-
n(
|
|
138
|
+
n(B, {
|
|
137
139
|
modelValue: i.value.status,
|
|
138
|
-
"onUpdate:modelValue":
|
|
139
|
-
placeholder:
|
|
140
|
-
data: a(
|
|
140
|
+
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
|
|
141
|
+
placeholder: o.$t("sysOrg.statusRequired"),
|
|
142
|
+
data: a(te).hasStatusDict.values,
|
|
141
143
|
clearable: "",
|
|
142
|
-
onKeyup:
|
|
144
|
+
onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
|
|
143
145
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
144
146
|
]),
|
|
145
147
|
_: 1
|
|
@@ -153,18 +155,18 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
153
155
|
default: l(() => [
|
|
154
156
|
n(_, {
|
|
155
157
|
type: "primary",
|
|
156
|
-
onClick:
|
|
158
|
+
onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
|
|
157
159
|
}, {
|
|
158
160
|
default: l(() => [
|
|
159
|
-
d(u(
|
|
161
|
+
d(u(o.$t("common.search")), 1)
|
|
160
162
|
]),
|
|
161
163
|
_: 1
|
|
162
164
|
}),
|
|
163
165
|
n(_, {
|
|
164
|
-
onClick:
|
|
166
|
+
onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
|
|
165
167
|
}, {
|
|
166
168
|
default: l(() => [
|
|
167
|
-
d(u(
|
|
169
|
+
d(u(o.$t("common.reset")), 1)
|
|
168
170
|
]),
|
|
169
171
|
_: 1
|
|
170
172
|
})
|
|
@@ -180,7 +182,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
180
182
|
]),
|
|
181
183
|
_: 1
|
|
182
184
|
}, 8, ["model"]),
|
|
183
|
-
|
|
185
|
+
t[12] || (t[12] = V("div", { class: "clear" }, null, -1))
|
|
184
186
|
]),
|
|
185
187
|
n(J, {
|
|
186
188
|
shadow: "never",
|
|
@@ -196,7 +198,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
196
198
|
onClick: D
|
|
197
199
|
}, {
|
|
198
200
|
default: l(() => [
|
|
199
|
-
d(u(
|
|
201
|
+
d(u(o.$t("common.add")), 1)
|
|
200
202
|
]),
|
|
201
203
|
_: 1
|
|
202
204
|
})), [
|
|
@@ -204,10 +206,10 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
204
206
|
]),
|
|
205
207
|
b((m(), C(_, {
|
|
206
208
|
type: "primary",
|
|
207
|
-
onClick:
|
|
209
|
+
onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
|
|
208
210
|
}, {
|
|
209
211
|
default: l(() => [
|
|
210
|
-
d(u(
|
|
212
|
+
d(u(o.$t("common.batchDelete")), 1)
|
|
211
213
|
]),
|
|
212
214
|
_: 1
|
|
213
215
|
})), [
|
|
@@ -223,7 +225,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
223
225
|
default: l(() => [
|
|
224
226
|
n(L, {
|
|
225
227
|
modelValue: a(c),
|
|
226
|
-
"onUpdate:modelValue":
|
|
228
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => O(c) ? c.value = e : c = e),
|
|
227
229
|
"label-name": "itsmsys/itsm-sys-org"
|
|
228
230
|
}, null, 8, ["modelValue"])
|
|
229
231
|
]),
|
|
@@ -237,13 +239,13 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
237
239
|
a(f) > 0 ? (m(), C(G, {
|
|
238
240
|
key: 0,
|
|
239
241
|
total: a(f),
|
|
240
|
-
"onUpdate:total":
|
|
242
|
+
"onUpdate:total": t[8] || (t[8] = (e) => O(f) ? f.value = e : null),
|
|
241
243
|
"current-page": i.value.curPage,
|
|
242
|
-
"onUpdate:currentPage":
|
|
244
|
+
"onUpdate:currentPage": t[9] || (t[9] = (e) => i.value.curPage = e),
|
|
243
245
|
"page-size": i.value.pageSize,
|
|
244
|
-
"onUpdate:pageSize":
|
|
245
|
-
onPagination:
|
|
246
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
246
|
+
"onUpdate:pageSize": t[10] || (t[10] = (e) => i.value.pageSize = e),
|
|
247
|
+
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
248
|
+
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
247
249
|
]),
|
|
248
250
|
default: l(() => [
|
|
249
251
|
n(H, {
|
|
@@ -276,24 +278,24 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
276
278
|
class: "el-button-color",
|
|
277
279
|
onClick: (p) => U(e.data.row)
|
|
278
280
|
}, [
|
|
279
|
-
d(u(
|
|
280
|
-
], 8,
|
|
281
|
+
d(u(o.$t("common.edit")), 1)
|
|
282
|
+
], 8, se)), [
|
|
281
283
|
[g, ["itsmsys:sys_org:update"]]
|
|
282
284
|
]),
|
|
283
285
|
b((m(), h("span", {
|
|
284
286
|
class: "el-button-color dropdown-left",
|
|
285
287
|
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
286
288
|
}, [
|
|
287
|
-
d(u(
|
|
288
|
-
], 8,
|
|
289
|
+
d(u(o.$t("common.delete")), 1)
|
|
290
|
+
], 8, re)), [
|
|
289
291
|
[g, ["itsmsys:sys_org:delete"]]
|
|
290
292
|
]),
|
|
291
293
|
b((m(), h("span", {
|
|
292
294
|
class: "el-button-color dropdown-left",
|
|
293
295
|
onClick: (p) => q(e.data.row)
|
|
294
296
|
}, [
|
|
295
|
-
d(u(
|
|
296
|
-
], 8,
|
|
297
|
+
d(u(o.$t("common.view")), 1)
|
|
298
|
+
], 8, ie)), [
|
|
297
299
|
[g, ["itsmsys:sys_org:view"]]
|
|
298
300
|
])
|
|
299
301
|
]),
|
|
@@ -307,5 +309,5 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
307
309
|
}
|
|
308
310
|
});
|
|
309
311
|
export {
|
|
310
|
-
|
|
312
|
+
be as default
|
|
311
313
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
2
|
var d = (a, i, t) => i in a ? T(a, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[i] = t;
|
|
3
3
|
var s = (a, i, t) => d(a, typeof i != "symbol" ? i + "" : i, t);
|
|
4
|
-
import { ref as
|
|
5
|
-
import { BizLayDict as _, BizDict as n, CustomBizDict as h, EnumDict as
|
|
4
|
+
import { ref as S } from "vue";
|
|
5
|
+
import { BizLayDict as _, BizDict as n, CustomBizDict as h, EnumDict as E } from "jmash-core";
|
|
6
6
|
import { sysOrgApi as l } from "./index.mjs";
|
|
7
|
-
import { deptApi as
|
|
7
|
+
import { deptApi as m, jobApi as N } from "jmash-rbac";
|
|
8
8
|
import { EntryDict as O } from "jmash-dict";
|
|
9
9
|
class e {
|
|
10
10
|
}
|
|
11
11
|
//模块
|
|
12
12
|
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
13
|
-
s(e, "HAS_STATUS",
|
|
13
|
+
s(e, "HAS_STATUS", S([
|
|
14
14
|
{ key: !0, value: "启用" },
|
|
15
15
|
{ key: !1, value: "禁用" }
|
|
16
16
|
])), // 公司发票类型
|
|
@@ -67,15 +67,9 @@ s(e, "orderBy", {
|
|
|
67
67
|
orderName: "createTime",
|
|
68
68
|
// 是否升序排序
|
|
69
69
|
orderAsc: !1
|
|
70
|
-
}), // 发票税率范围
|
|
71
|
-
s(e, "taxRate", {
|
|
72
|
-
// 最小
|
|
73
|
-
min: 0,
|
|
74
|
-
// 最大
|
|
75
|
-
max: 0.99
|
|
76
70
|
}), // 岗位字典传参
|
|
77
71
|
s(e, "roleType", "job");
|
|
78
|
-
class
|
|
72
|
+
class M extends _ {
|
|
79
73
|
// 实现 useValues 方法
|
|
80
74
|
useValues(i) {
|
|
81
75
|
return new Promise((t, u) => {
|
|
@@ -83,8 +77,8 @@ class g extends _ {
|
|
|
83
77
|
t(this.values);
|
|
84
78
|
return;
|
|
85
79
|
}
|
|
86
|
-
const
|
|
87
|
-
l.findList(
|
|
80
|
+
const o = { ...this.query, excludeOrgId: i };
|
|
81
|
+
l.findList(o).then(({ data: c }) => {
|
|
88
82
|
const y = c.results;
|
|
89
83
|
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(y)), t(this.values);
|
|
90
84
|
}).catch(u);
|
|
@@ -103,10 +97,10 @@ class p extends n {
|
|
|
103
97
|
// 实现 useValues 方法
|
|
104
98
|
useValues() {
|
|
105
99
|
return new Promise((i, t) => {
|
|
106
|
-
l.
|
|
107
|
-
const
|
|
100
|
+
l.findOutSourceList(this.query).then(({ data: u }) => {
|
|
101
|
+
const o = u.results;
|
|
108
102
|
this.values.length = 0, this.values.push(
|
|
109
|
-
...
|
|
103
|
+
...o.map(
|
|
110
104
|
(c) => ({
|
|
111
105
|
key: c.orgId,
|
|
112
106
|
value: c.orgName
|
|
@@ -117,14 +111,14 @@ class p extends n {
|
|
|
117
111
|
});
|
|
118
112
|
}
|
|
119
113
|
}
|
|
120
|
-
class
|
|
114
|
+
class g extends n {
|
|
121
115
|
// 实现 useValues 方法
|
|
122
116
|
useValues() {
|
|
123
117
|
return new Promise((i, t) => {
|
|
124
|
-
|
|
125
|
-
const
|
|
118
|
+
m.findList(this.query).then(({ data: u }) => {
|
|
119
|
+
const o = u.results;
|
|
126
120
|
this.values.length = 0, this.values.push(
|
|
127
|
-
...
|
|
121
|
+
...o.map(
|
|
128
122
|
(c) => ({
|
|
129
123
|
key: c.deptId,
|
|
130
124
|
value: c.deptName
|
|
@@ -140,9 +134,9 @@ class I extends n {
|
|
|
140
134
|
useValues() {
|
|
141
135
|
return new Promise((i, t) => {
|
|
142
136
|
N.findPage(this.query).then(({ data: u }) => {
|
|
143
|
-
const
|
|
137
|
+
const o = u.results;
|
|
144
138
|
this.values.length = 0, this.values.push(
|
|
145
|
-
...
|
|
139
|
+
...o.map(
|
|
146
140
|
(c) => ({
|
|
147
141
|
key: c.roleId,
|
|
148
142
|
value: c.roleName
|
|
@@ -157,26 +151,26 @@ class r {
|
|
|
157
151
|
}
|
|
158
152
|
// 公司管理状态
|
|
159
153
|
s(r, "hasStatusDict", new h(e.HAS_STATUS, {})), // 公司发票类型
|
|
160
|
-
s(r, "invoiceTypeDictEnum", new
|
|
154
|
+
s(r, "invoiceTypeDictEnum", new E(
|
|
161
155
|
e.MODULE_ITSMSYS,
|
|
162
156
|
e.ENUM_INVOICE_TYPE
|
|
163
157
|
)), // 厅局管理父厅级单位
|
|
164
|
-
s(r, "parentIdBizDict", new
|
|
158
|
+
s(r, "parentIdBizDict", new M({
|
|
165
159
|
orgType: e.orgType.hall
|
|
166
160
|
})), // 管理人员工作状态
|
|
167
|
-
s(r, "jobStatusDictEnum", new
|
|
161
|
+
s(r, "jobStatusDictEnum", new E(
|
|
168
162
|
e.MODULE_ITSMSYS,
|
|
169
163
|
e.ENUM_JOB_ATATUS
|
|
170
164
|
)), // 运维人员工作模式
|
|
171
|
-
s(r, "engineerJobModeDictEnum", new
|
|
165
|
+
s(r, "engineerJobModeDictEnum", new E(
|
|
172
166
|
e.MODULE_ITSMSYS,
|
|
173
167
|
e.ENUM_ENGINEER_JOB_MODE
|
|
174
168
|
)), // 性别
|
|
175
|
-
s(r, "genderDict", new
|
|
169
|
+
s(r, "genderDict", new E(
|
|
176
170
|
e.MODULE_RBAC,
|
|
177
171
|
e.ENUM_GENDER
|
|
178
172
|
)), // 运维人员工程师类型
|
|
179
|
-
s(r, "engineerTypeDictEnum", new
|
|
173
|
+
s(r, "engineerTypeDictEnum", new E(
|
|
180
174
|
e.MODULE_ITSMSYS,
|
|
181
175
|
e.ENUM_ENGINEER_TYPE
|
|
182
176
|
)), // 公司人员选择公司名称
|
|
@@ -189,7 +183,7 @@ s(r, "sysOutBizDict", new p({
|
|
|
189
183
|
s(r, "engineerCertificateDict", new O(
|
|
190
184
|
e.DICT_ENGINEER_GRADE
|
|
191
185
|
)), // 分组
|
|
192
|
-
s(r, "deptBizDict", new
|
|
186
|
+
s(r, "deptBizDict", new g({})), // 岗位
|
|
193
187
|
s(r, "jobBizDict", new I({
|
|
194
188
|
roleType: e.roleType
|
|
195
189
|
}));
|