xyvcard-itsmsys 0.0.7 → 0.0.9
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-BbJa_Nfr.mjs → edit-BNe0hNw4.mjs} +9 -8
- package/dist/{edit-B2gR_6I8.mjs → edit-BqPZHwxi.mjs} +1 -1
- package/dist/{edit-Fi1_QjAr.mjs → edit-CwV1OVfe.mjs} +1 -1
- package/dist/{edit-GlkC3kLR.mjs → edit-CyM6IuLb.mjs} +29 -28
- package/dist/{edit-C42Omp9z.mjs → edit-DG_Iw1-J.mjs} +1 -1
- package/dist/{edit-Dfay8i1B.mjs → edit-DdUUCXSa.mjs} +1 -1
- package/dist/{edit-Dm9CXMA6.mjs → edit-RSO388mB.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Cj-FgUgJ.mjs → edit.vue_vue_type_script_setup_true_lang-BQeZknmJ.mjs} +39 -39
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CoB3CDY2.mjs → edit.vue_vue_type_script_setup_true_lang-CX_5__mh.mjs} +12 -12
- package/dist/{edit.vue_vue_type_script_setup_true_lang-r4tQk9wV.mjs → edit.vue_vue_type_script_setup_true_lang-DGAgGwVY.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C26lz_HM.mjs → edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs} +5 -5
- package/dist/{index-DTjJvEfz.mjs → index-CI8Z4rNf.mjs} +4 -4
- package/dist/{index-BHLCtDlx.mjs → index-CMBtB1kH.mjs} +3 -3
- package/dist/{index-Ce07ACPH.mjs → index-CNGaGeE7.mjs} +3 -3
- package/dist/index-CQ5Bo5a2.mjs +135 -0
- package/dist/{index-BV8SsW14.mjs → index-DirPUdCN.mjs} +1 -1
- package/dist/{index-N57BEkTO.mjs → index-DxILUznW.mjs} +6 -6
- package/dist/{index-Up4lAJrU.mjs → index-NugT80P7.mjs} +2 -2
- package/dist/{index-CSMVzE7h.mjs → index-w2SWNZRB.mjs} +3 -3
- package/dist/index.mjs +1048 -1089
- package/dist/{index.vue_vue_type_script_setup_true_lang-C5j_HTke.mjs → index.vue_vue_type_script_setup_true_lang-r7jQEFkS.mjs} +2 -2
- package/dist/{info-D7YAHptq.mjs → info-BFZTqoY3.mjs} +1 -1
- package/dist/{info-BVrtvDle.mjs → info-C0OHjgoS.mjs} +1 -1
- package/dist/{info-D-ykgDrJ.mjs → info-CXx2899k.mjs} +1 -1
- package/dist/{info-DO3PSaAZ.mjs → info-DReeRuaA.mjs} +1 -1
- package/dist/{info-Bc3bycK1.mjs → info-Dilg-bji.mjs} +1 -1
- package/dist/{info-Bz6yHt3N.mjs → info-DvYUiSRY.mjs} +1 -1
- package/package.json +2 -2
- package/dist/index-B6FMyHxQ.mjs +0 -99
- package/dts/src/App.vue.d.ts +0 -2
- package/dts/src/api/dict.d.ts +0 -15
- package/dts/src/api/index.d.ts +0 -13
- package/dts/src/api/itsm-sys-org/index.d.ts +0 -17
- package/dts/src/api/itsm-sys-org/types.d.ts +0 -85
- package/dts/src/api/itsm-sys-org-invoice/index.d.ts +0 -14
- package/dts/src/api/itsm-sys-org-invoice/types.d.ts +0 -53
- package/dts/src/api/itsm-sys-user-ext/index.d.ts +0 -14
- package/dts/src/api/itsm-sys-user-ext/types.d.ts +0 -91
- package/dts/src/components/TMaps/index.vue.d.ts +0 -20
- package/dts/src/constant.d.ts +0 -33
- package/dts/src/index.d.ts +0 -12
- package/dts/src/lang/index.d.ts +0 -1
- package/dts/src/lang/itsmsys/en.d.ts +0 -73
- package/dts/src/lang/itsmsys/zh-cn.d.ts +0 -139
- package/dts/src/main.d.ts +0 -4
- package/dts/src/permission.d.ts +0 -1
- package/dts/src/router/index.d.ts +0 -12
- package/dts/src/utils/TMap.d.ts +0 -1
- package/dts/src/utils/common.d.ts +0 -1
- package/dts/src/utils/momentPlugin.d.ts +0 -5
- package/dts/src/views/itsmsys/itsm-sys-gov/edit.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-gov/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-gov/info.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-org/edit.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-org/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-org/info.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-org-invoice/edit.vue.d.ts +0 -22
- package/dts/src/views/itsmsys/itsm-sys-org-invoice/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-out/edit.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-out/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-out/info.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-man/edit.vue.d.ts +0 -22
- package/dts/src/views/itsmsys/itsm-sys-user-man/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-man/info.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-ops/edit.vue.d.ts +0 -22
- package/dts/src/views/itsmsys/itsm-sys-user-ops/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-ops/info.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-out/edit.vue.d.ts +0 -22
- package/dts/src/views/itsmsys/itsm-sys-user-out/index.vue.d.ts +0 -2
- package/dts/src/views/itsmsys/itsm-sys-user-out/info.vue.d.ts +0 -2
|
@@ -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 {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { C as q, D as S } from "./index-CQ5Bo5a2.mjs";
|
|
6
|
+
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
+
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-CX_5__mh.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) {
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var p = (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) => p(i, typeof r != "symbol" ? r + "" : r, t);
|
|
4
|
+
import { ref as S, reactive as T } from "vue";
|
|
5
|
+
import { BizLayDict as h, BizDict as _, EnumDict as u } from "jmash-core";
|
|
6
|
+
import { sysOrgApi as n } from "./index.mjs";
|
|
7
|
+
class e {
|
|
8
|
+
}
|
|
9
|
+
//模块
|
|
10
|
+
s(e, "MODULE_RBAC", "rbac"), s(e, "MODULE_ITSMSYS", "itsmsys"), // 公司管理状态
|
|
11
|
+
s(e, "HAS_STATUS", S([
|
|
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, "jobStatus", {
|
|
29
|
+
// 在职
|
|
30
|
+
working: "WORKING",
|
|
31
|
+
// 离职
|
|
32
|
+
leave: "LEAVE"
|
|
33
|
+
}), // 人员类型
|
|
34
|
+
s(e, "userType", {
|
|
35
|
+
// 公司管理
|
|
36
|
+
companyManager: "COMPANY_MANAGER",
|
|
37
|
+
// 公司运维
|
|
38
|
+
companyOps: "COMPANY_OPS",
|
|
39
|
+
// 外协运维
|
|
40
|
+
outsourceOps: "OUTSOURCE_OPS"
|
|
41
|
+
});
|
|
42
|
+
class O {
|
|
43
|
+
constructor(r, t) {
|
|
44
|
+
s(this, "values", T([]));
|
|
45
|
+
// 查询条件
|
|
46
|
+
s(this, "query");
|
|
47
|
+
this.values.length = 0, this.values.push(...r.value), this.query = t;
|
|
48
|
+
}
|
|
49
|
+
// 根据给定键获取业务数据项的值的方法
|
|
50
|
+
getValue(r) {
|
|
51
|
+
for (const t of this.values)
|
|
52
|
+
if (t.key == r)
|
|
53
|
+
return t.value;
|
|
54
|
+
return "";
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
class M extends h {
|
|
58
|
+
// 实现 useValues 方法
|
|
59
|
+
useValues() {
|
|
60
|
+
return new Promise((r, t) => {
|
|
61
|
+
if (typeof n.findList > "u") {
|
|
62
|
+
r(this.values);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const o = { ...this.query };
|
|
66
|
+
n.findList(o).then(({ data: E }) => {
|
|
67
|
+
const c = E.results;
|
|
68
|
+
this.values.length = 0, this.values.push(...this.convertToLayEntryArray(c)), r(this.values);
|
|
69
|
+
}).catch(t);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
convertToLayEntryArray(r) {
|
|
73
|
+
return r.map((t) => ({
|
|
74
|
+
value: t.orgId,
|
|
75
|
+
label: t.orgName,
|
|
76
|
+
parentId: t.parentId || "",
|
|
77
|
+
children: t.children ? this.convertToLayEntryArray(t.children) : []
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
class l extends _ {
|
|
82
|
+
// 实现 useValues 方法
|
|
83
|
+
useValues() {
|
|
84
|
+
return new Promise((r, t) => {
|
|
85
|
+
n.findPage(this.query).then(({ data: o }) => {
|
|
86
|
+
const E = o.results;
|
|
87
|
+
this.values.length = 0, this.values.push(
|
|
88
|
+
...E.map(
|
|
89
|
+
(c) => ({
|
|
90
|
+
key: c.orgId,
|
|
91
|
+
value: c.orgName
|
|
92
|
+
})
|
|
93
|
+
)
|
|
94
|
+
), r(this.values);
|
|
95
|
+
}).catch(t);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
class a {
|
|
100
|
+
}
|
|
101
|
+
// 公司管理状态
|
|
102
|
+
s(a, "hasStatusDict", new O(e.HAS_STATUS, {})), // 公司发票类型
|
|
103
|
+
s(a, "invoiceTypeDictEnum", new u(
|
|
104
|
+
e.MODULE_ITSMSYS,
|
|
105
|
+
e.ENUM_INVOICE_TYPE
|
|
106
|
+
)), // 厅局管理父厅级单位
|
|
107
|
+
s(a, "parentIdBizDict", new M({
|
|
108
|
+
orgType: e.orgType.hall
|
|
109
|
+
})), // 管理人员工作状态
|
|
110
|
+
s(a, "jobStatusDictEnum", new u(
|
|
111
|
+
e.MODULE_ITSMSYS,
|
|
112
|
+
e.ENUM_JOB_ATATUS
|
|
113
|
+
)), // 运维人员工作模式
|
|
114
|
+
s(a, "engineeJobModeDictEnum", new u(
|
|
115
|
+
e.MODULE_ITSMSYS,
|
|
116
|
+
e.ENUM_ENGINEE_JOB_MODE
|
|
117
|
+
)), // 性别
|
|
118
|
+
s(a, "genderDict", new u(
|
|
119
|
+
e.MODULE_RBAC,
|
|
120
|
+
e.ENUM_GENDER
|
|
121
|
+
)), // 运维人员工程师类型
|
|
122
|
+
s(a, "engineeTypeDictEnum", new u(
|
|
123
|
+
e.MODULE_ITSMSYS,
|
|
124
|
+
e.ENUM_ENGINEE_TYPE
|
|
125
|
+
)), // 公司人员选择公司名称
|
|
126
|
+
s(a, "sysOrgBizDict", new l({
|
|
127
|
+
orgType: e.orgType.cloud
|
|
128
|
+
})), // 外协运维人员选择公司名称
|
|
129
|
+
s(a, "sysOutBizDict", new l({
|
|
130
|
+
orgType: e.orgType.outsource
|
|
131
|
+
}));
|
|
132
|
+
export {
|
|
133
|
+
e as C,
|
|
134
|
+
a as D
|
|
135
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as J, ref as P, resolveComponent as s, resolveDirective as W, openBlock as m, createElementBlock as h, createElementVNode as $, createVNode as n, withCtx as l, withKeys as V, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as b, createBlock as C, isRef as N, createCommentVNode as X } from "vue";
|
|
2
2
|
import { useTableHooks as Y } from "jmash-core";
|
|
3
3
|
import { useI18n as Z } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { C as x, D as ee } from "./index-CQ5Bo5a2.mjs";
|
|
5
|
+
import { sysOrgApi as te } from "./index.mjs";
|
|
6
|
+
import { useRouter as oe } from "vue-router";
|
|
7
7
|
const le = { class: "app-container" }, ne = { class: "search-container" }, ae = ["onClick"], se = ["onClick"], re = ["onClick"], ge = /* @__PURE__ */ J({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(ie) {
|
|
10
|
-
const { t: O } = Z(), v =
|
|
10
|
+
const { t: O } = Z(), v = oe(), i = P({
|
|
11
11
|
orgType: x.orgType.cloud
|
|
12
12
|
}), {
|
|
13
13
|
tableHooks: r,
|
|
@@ -16,7 +16,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
16
16
|
listLoading: I,
|
|
17
17
|
tableData: R,
|
|
18
18
|
total: f
|
|
19
|
-
} = Y(O,
|
|
19
|
+
} = Y(O, te, i);
|
|
20
20
|
let c = P([
|
|
21
21
|
{
|
|
22
22
|
label: "sysOrg.orgName",
|
|
@@ -136,7 +136,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
136
136
|
modelValue: i.value.status,
|
|
137
137
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
|
|
138
138
|
placeholder: o.$t("sysOrg.statusRequired"),
|
|
139
|
-
data: a(
|
|
139
|
+
data: a(ee).hasStatusDict.values,
|
|
140
140
|
clearable: "",
|
|
141
141
|
onKeyup: t[3] || (t[3] = V((e) => a(r).handleQuery(), ["enter"]))
|
|
142
142
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -2,8 +2,8 @@ import { defineComponent as ee, ref as D, resolveComponent as s, resolveDirectiv
|
|
|
2
2
|
import { useTableHooks as ne } from "jmash-core";
|
|
3
3
|
import { ElMessageBox as I, ElMessage as T } from "element-plus";
|
|
4
4
|
import { useI18n as le } from "vue-i18n";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { C as se, D as ae } from "./index-CQ5Bo5a2.mjs";
|
|
6
|
+
import { sysOrgApi as w } from "./index.mjs";
|
|
7
7
|
import { useRouter as re } from "vue-router";
|
|
8
8
|
const me = { class: "app-container" }, ie = { class: "search-container" }, ce = ["onClick"], de = ["onClick"], ue = ["onClick"], we = /* @__PURE__ */ ee({
|
|
9
9
|
__name: "index",
|
|
@@ -2,9 +2,9 @@ import { defineComponent as oe, ref as j, reactive as M, resolveComponent as r,
|
|
|
2
2
|
import { useTableHooks as ne } from "jmash-core";
|
|
3
3
|
import { useI18n as ae } from "vue-i18n";
|
|
4
4
|
import { useRouter as se } from "vue-router";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { C as J, D as c } from "./index-CQ5Bo5a2.mjs";
|
|
6
|
+
import { sysUserExtApi as re } from "./index.mjs";
|
|
7
|
+
import { _ as ie } from "./edit.vue_vue_type_script_setup_true_lang-DsN204D0.mjs";
|
|
8
8
|
const ue = { class: "app-container" }, de = { class: "search-container" }, me = { key: 0 }, pe = ["onClick"], ye = ["onClick"], be = ["onClick"], Ce = /* @__PURE__ */ oe({
|
|
9
9
|
__name: "index",
|
|
10
10
|
setup(ce) {
|