xyvcard-itsmsys 0.0.25 → 0.0.27
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 → FileSaver.min-5d27MsC6.mjs} +12 -12
- package/dist/assets/7f3e996112b4923f.png +0 -0
- package/dist/{edit-CfbonHOl.mjs → edit-4Z-ZnpFy.mjs} +1 -1
- package/dist/{edit-DybO5r3p.mjs → edit-8-gDtIOz.mjs} +1 -1
- package/dist/{edit-BrHOGUbU.mjs → edit-BlkaYTGl.mjs} +1 -1
- package/dist/{edit-C82n7Lq0.mjs → edit-CEYAvHd3.mjs} +1 -1
- package/dist/{edit-CNEVornb.mjs → edit-QJ7ZmxX_.mjs} +131 -135
- package/dist/{edit-DYqAdRsK.mjs → edit-diNsokNw.mjs} +3 -3
- package/dist/edit-oJm1rfX1.mjs +410 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CaZa7PUh.mjs → edit.vue_vue_type_script_setup_true_lang-CFG4x85k.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D2j1brBX.mjs → edit.vue_vue_type_script_setup_true_lang-DeduEUOD.mjs} +100 -96
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BfQVspxd.mjs → edit.vue_vue_type_script_setup_true_lang-T6aiep4s.mjs} +74 -72
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Cg1uyqed.mjs → edit.vue_vue_type_script_setup_true_lang-g81nThyI.mjs} +7 -7
- package/dist/{import-upload-CC1Ho43e.mjs → import-upload-BxVBkr7-.mjs} +2 -2
- package/dist/{import-upload-BaJGVcNb.mjs → import-upload-CtJh5u39.mjs} +2 -2
- package/dist/index-3An-8Hfg.mjs +343 -0
- package/dist/{index-CAzxJ_Vp.mjs → index-BsrMxEM8.mjs} +146 -116
- package/dist/{index-igV06vtf.mjs → index-C2od41K0.mjs} +161 -153
- package/dist/{index-cpyRUYdS.mjs → index-CR3fzc4o.mjs} +79 -73
- package/dist/{index-Di1yx94g.mjs → index-Cgq1M4Qb.mjs} +120 -112
- package/dist/{index-B2xwBTw-.mjs → index-RF4VErgF.mjs} +8 -8
- package/dist/{index-IpHv0Vzi.mjs → index-Trc70jRt.mjs} +1 -1
- package/dist/{index-cKI_mzoF.mjs → index-XMaINj6l.mjs} +188 -179
- package/dist/index.mjs +488 -484
- package/dist/index.vue_vue_type_script_setup_true_lang-B2_RWC8z.mjs +199 -0
- package/dist/{info-G1z1-aeX.mjs → info-0SKOqQd1.mjs} +2 -2
- package/dist/{info-BUKhtcuu.mjs → info-BVo8clC4.mjs} +2 -2
- package/dist/{info-EodyqiPm.mjs → info-CSazWjOe.mjs} +2 -2
- package/dist/{info-6E3wqxd6.mjs → info-DzQiIFfX.mjs} +35 -35
- package/dist/{info-DttXGxP3.mjs → info-Ju_uuO8i.mjs} +3 -3
- package/dist/{info-AE3ch4Zw.mjs → info-n4JaFgZW.mjs} +3 -3
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/types.d.ts +3 -0
- package/dts/lang/itsmsys/zh-cn.d.ts +17 -13
- package/package.json +8 -7
- package/dist/avatar-DFToerb2.mjs +0 -4
- package/dist/edit-COKceKzl.mjs +0 -358
- package/dist/index-BV5uRZXE.mjs +0 -313
- package/dist/index.vue_vue_type_script_setup_true_lang-BnhxjAOt.mjs +0 -198
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { C as k, D as
|
|
5
|
-
import { sysOrgApi as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as X, ref as $, onActivated as Y, resolveComponent as s, resolveDirective as V, createElementBlock as h, openBlock as m, createElementVNode as Z, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as u, toDisplayString as d, withDirectives as c, createBlock as v, createCommentVNode as x, isRef as O } from "vue";
|
|
2
|
+
import { useTableHooks as ee } from "jmash-core";
|
|
3
|
+
import { useI18n as te } from "vue-i18n";
|
|
4
|
+
import { C as k, D as oe } from "./index-dIcRC4jE.mjs";
|
|
5
|
+
import { sysOrgApi as le } from "./index.mjs";
|
|
6
|
+
import { useRouter as ne } from "vue-router";
|
|
7
|
+
const ae = { class: "app-container" }, se = { class: "search-container" }, re = ["onClick"], ie = ["onClick"], me = ["onClick"], _e = /* @__PURE__ */ X({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t: T } =
|
|
9
|
+
setup(ue) {
|
|
10
|
+
const { t: T } = te(), w = ne(), i = $({
|
|
11
11
|
orgType: k.orgType.cloud,
|
|
12
12
|
orderName: k.orderBy.orderName,
|
|
13
13
|
orderAsc: k.orderBy.orderAsc
|
|
@@ -17,45 +17,51 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
17
17
|
queryFormRef: I,
|
|
18
18
|
listLoading: R,
|
|
19
19
|
tableData: j,
|
|
20
|
-
total:
|
|
21
|
-
} =
|
|
22
|
-
let
|
|
20
|
+
total: _
|
|
21
|
+
} = ee(T, le, i);
|
|
22
|
+
let y = $([
|
|
23
23
|
{
|
|
24
24
|
label: "sysOrg.orgName",
|
|
25
25
|
prop: "orgName",
|
|
26
|
-
width: "
|
|
26
|
+
width: "200",
|
|
27
|
+
sortable: "custom",
|
|
27
28
|
isColumn: !0
|
|
28
29
|
},
|
|
29
30
|
{
|
|
30
31
|
label: "sysOrg.contactPerson",
|
|
31
32
|
prop: "contactPerson",
|
|
32
|
-
width: "
|
|
33
|
+
width: "150",
|
|
34
|
+
sortable: "custom",
|
|
33
35
|
isColumn: !0
|
|
34
36
|
},
|
|
35
37
|
{
|
|
36
38
|
label: "sysOrg.contactPersonMobile",
|
|
37
39
|
prop: "contactPersonMobile",
|
|
38
|
-
width: "
|
|
40
|
+
width: "120",
|
|
39
41
|
isColumn: !0,
|
|
42
|
+
sortable: "custom",
|
|
40
43
|
slotName: "contactPersonMobile",
|
|
41
44
|
columnType: "slot"
|
|
42
45
|
},
|
|
43
46
|
{
|
|
44
47
|
label: "sysOrg.contactPersonTel",
|
|
45
48
|
prop: "contactPersonTel",
|
|
46
|
-
width: "
|
|
47
|
-
isColumn: !0
|
|
49
|
+
width: "120",
|
|
50
|
+
isColumn: !0,
|
|
51
|
+
sortable: "custom"
|
|
48
52
|
},
|
|
49
53
|
{
|
|
50
54
|
label: "sysOrg.address",
|
|
51
55
|
prop: "address",
|
|
52
|
-
|
|
53
|
-
isColumn: !0
|
|
56
|
+
minWidth: "150",
|
|
57
|
+
isColumn: !0,
|
|
58
|
+
sortable: "custom"
|
|
54
59
|
},
|
|
55
60
|
{
|
|
56
61
|
label: "sysOrg.status",
|
|
57
62
|
prop: "status",
|
|
58
63
|
isColumn: !0,
|
|
64
|
+
width: "70",
|
|
59
65
|
slotName: "status",
|
|
60
66
|
columnType: "slot"
|
|
61
67
|
},
|
|
@@ -72,16 +78,16 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
72
78
|
o.mobileEncrypt = !o.mobileEncrypt;
|
|
73
79
|
}
|
|
74
80
|
function D() {
|
|
75
|
-
|
|
81
|
+
w.push({ path: "/rawitsmsys/itsm-sys-org/edit" });
|
|
76
82
|
}
|
|
77
83
|
function U(o) {
|
|
78
|
-
|
|
84
|
+
w.push({
|
|
79
85
|
path: "/rawitsmsys/itsm-sys-org/edit",
|
|
80
86
|
query: { entityKey: o.orgId }
|
|
81
87
|
});
|
|
82
88
|
}
|
|
83
89
|
function q(o) {
|
|
84
|
-
|
|
90
|
+
w.push({
|
|
85
91
|
path: "/rawitsmsys/itsm-sys-org/orgInfo",
|
|
86
92
|
query: { orgId: o.orgId }
|
|
87
93
|
});
|
|
@@ -92,12 +98,12 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
92
98
|
function z(o) {
|
|
93
99
|
r.handleSort(o.prop, o.order);
|
|
94
100
|
}
|
|
95
|
-
return
|
|
101
|
+
return Y(() => {
|
|
96
102
|
r.getList();
|
|
97
103
|
}), (o, t) => {
|
|
98
|
-
const A = s("el-input"),
|
|
99
|
-
return m(), h("div",
|
|
100
|
-
|
|
104
|
+
const A = s("el-input"), C = s("el-form-item"), g = s("el-col"), B = s("jmash-select"), f = 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"), W = s("jmash-pagination"), G = s("el-card"), b = V("hasPerm"), J = V("loading");
|
|
105
|
+
return m(), h("div", ae, [
|
|
106
|
+
Z("div", se, [
|
|
101
107
|
n(K, {
|
|
102
108
|
ref_key: "queryFormRef",
|
|
103
109
|
ref: I,
|
|
@@ -107,9 +113,9 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
107
113
|
default: l(() => [
|
|
108
114
|
n(P, null, {
|
|
109
115
|
default: l(() => [
|
|
110
|
-
n(
|
|
116
|
+
n(g, { span: 6 }, {
|
|
111
117
|
default: l(() => [
|
|
112
|
-
n(
|
|
118
|
+
n(C, {
|
|
113
119
|
label: o.$t("sysOrg.orgName"),
|
|
114
120
|
prop: "likeOrgName"
|
|
115
121
|
}, {
|
|
@@ -128,9 +134,9 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
128
134
|
]),
|
|
129
135
|
_: 1
|
|
130
136
|
}),
|
|
131
|
-
n(
|
|
137
|
+
n(g, { span: 6 }, {
|
|
132
138
|
default: l(() => [
|
|
133
|
-
n(
|
|
139
|
+
n(C, {
|
|
134
140
|
label: o.$t("sysOrg.status"),
|
|
135
141
|
prop: "status"
|
|
136
142
|
}, {
|
|
@@ -139,7 +145,7 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
139
145
|
modelValue: i.value.status,
|
|
140
146
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => i.value.status = e),
|
|
141
147
|
placeholder: o.$t("sysOrg.statusRequired"),
|
|
142
|
-
data: a(
|
|
148
|
+
data: a(oe).hasStatusDict.values,
|
|
143
149
|
clearable: "",
|
|
144
150
|
onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
|
|
145
151
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -149,24 +155,24 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
149
155
|
]),
|
|
150
156
|
_: 1
|
|
151
157
|
}),
|
|
152
|
-
n(
|
|
158
|
+
n(g, { span: 12 }, {
|
|
153
159
|
default: l(() => [
|
|
154
|
-
n(
|
|
160
|
+
n(C, { class: "search-btn" }, {
|
|
155
161
|
default: l(() => [
|
|
156
|
-
n(
|
|
162
|
+
n(f, {
|
|
157
163
|
type: "primary",
|
|
158
164
|
onClick: t[4] || (t[4] = (e) => a(r).handleQuery())
|
|
159
165
|
}, {
|
|
160
166
|
default: l(() => [
|
|
161
|
-
d(
|
|
167
|
+
u(d(o.$t("common.search")), 1)
|
|
162
168
|
]),
|
|
163
169
|
_: 1
|
|
164
170
|
}),
|
|
165
|
-
n(
|
|
171
|
+
n(f, {
|
|
166
172
|
onClick: t[5] || (t[5] = (e) => a(r).resetQuery())
|
|
167
173
|
}, {
|
|
168
174
|
default: l(() => [
|
|
169
|
-
d(
|
|
175
|
+
u(d(o.$t("common.reset")), 1)
|
|
170
176
|
]),
|
|
171
177
|
_: 1
|
|
172
178
|
})
|
|
@@ -181,51 +187,50 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
181
187
|
})
|
|
182
188
|
]),
|
|
183
189
|
_: 1
|
|
184
|
-
}, 8, ["model"])
|
|
185
|
-
t[12] || (t[12] = V("div", { class: "clear" }, null, -1))
|
|
190
|
+
}, 8, ["model"])
|
|
186
191
|
]),
|
|
187
|
-
n(
|
|
192
|
+
n(G, {
|
|
188
193
|
shadow: "never",
|
|
189
194
|
class: "table-container"
|
|
190
195
|
}, {
|
|
191
196
|
header: l(() => [
|
|
192
197
|
n(P, null, {
|
|
193
198
|
default: l(() => [
|
|
194
|
-
n(
|
|
199
|
+
n(g, { span: 17 }, {
|
|
195
200
|
default: l(() => [
|
|
196
|
-
|
|
201
|
+
c((m(), v(f, {
|
|
197
202
|
type: "primary",
|
|
198
203
|
onClick: D
|
|
199
204
|
}, {
|
|
200
205
|
default: l(() => [
|
|
201
|
-
d(
|
|
206
|
+
u(d(o.$t("common.add")), 1)
|
|
202
207
|
]),
|
|
203
208
|
_: 1
|
|
204
209
|
})), [
|
|
205
|
-
[
|
|
210
|
+
[b, ["itsmsys:sys_org:add"]]
|
|
206
211
|
]),
|
|
207
|
-
|
|
212
|
+
c((m(), v(f, {
|
|
208
213
|
type: "primary",
|
|
209
214
|
onClick: t[6] || (t[6] = (e) => a(r).deleteRecords())
|
|
210
215
|
}, {
|
|
211
216
|
default: l(() => [
|
|
212
|
-
d(
|
|
217
|
+
u(d(o.$t("common.batchDelete")), 1)
|
|
213
218
|
]),
|
|
214
219
|
_: 1
|
|
215
220
|
})), [
|
|
216
|
-
[
|
|
221
|
+
[b, ["itsmsys:sys_org:delete"]]
|
|
217
222
|
])
|
|
218
223
|
]),
|
|
219
224
|
_: 1
|
|
220
225
|
}),
|
|
221
|
-
n(
|
|
226
|
+
n(g, {
|
|
222
227
|
span: 7,
|
|
223
228
|
class: "container-float"
|
|
224
229
|
}, {
|
|
225
230
|
default: l(() => [
|
|
226
231
|
n(L, {
|
|
227
|
-
modelValue: a(
|
|
228
|
-
"onUpdate:modelValue": t[7] || (t[7] = (e) => O(
|
|
232
|
+
modelValue: a(y),
|
|
233
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => O(y) ? y.value = e : y = e),
|
|
229
234
|
"label-name": "itsmsys/itsm-sys-org"
|
|
230
235
|
}, null, 8, ["modelValue"])
|
|
231
236
|
]),
|
|
@@ -236,25 +241,24 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
236
241
|
})
|
|
237
242
|
]),
|
|
238
243
|
footer: l(() => [
|
|
239
|
-
a(
|
|
244
|
+
a(_) > 0 ? (m(), v(W, {
|
|
240
245
|
key: 0,
|
|
241
|
-
total: a(
|
|
242
|
-
"onUpdate:total": t[8] || (t[8] = (e) => O(
|
|
246
|
+
total: a(_),
|
|
247
|
+
"onUpdate:total": t[8] || (t[8] = (e) => O(_) ? _.value = e : null),
|
|
243
248
|
"current-page": i.value.curPage,
|
|
244
249
|
"onUpdate:currentPage": t[9] || (t[9] = (e) => i.value.curPage = e),
|
|
245
250
|
"page-size": i.value.pageSize,
|
|
246
251
|
"onUpdate:pageSize": t[10] || (t[10] = (e) => i.value.pageSize = e),
|
|
247
252
|
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
248
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
253
|
+
}, null, 8, ["total", "current-page", "page-size"])) : x("", !0)
|
|
249
254
|
]),
|
|
250
255
|
default: l(() => [
|
|
251
|
-
|
|
256
|
+
c((m(), v(H, {
|
|
252
257
|
ref_key: "multipleTableRef",
|
|
253
258
|
ref: E,
|
|
254
259
|
"row-key": "orgId",
|
|
255
|
-
"list-loading": a(R),
|
|
256
260
|
data: a(j),
|
|
257
|
-
"table-label": a(
|
|
261
|
+
"table-label": a(y),
|
|
258
262
|
onSelectionChange: M,
|
|
259
263
|
onSortChange: z
|
|
260
264
|
}, {
|
|
@@ -274,33 +278,35 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
274
278
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
275
279
|
]),
|
|
276
280
|
operation: l((e) => [
|
|
277
|
-
|
|
281
|
+
c((m(), h("span", {
|
|
278
282
|
class: "el-button-color",
|
|
279
283
|
onClick: (p) => U(e.data.row)
|
|
280
284
|
}, [
|
|
281
|
-
d(
|
|
282
|
-
], 8,
|
|
283
|
-
[
|
|
285
|
+
u(d(o.$t("common.edit")), 1)
|
|
286
|
+
], 8, re)), [
|
|
287
|
+
[b, ["itsmsys:sys_org:update"]]
|
|
284
288
|
]),
|
|
285
|
-
|
|
286
|
-
class: "el-button-color
|
|
289
|
+
c((m(), h("span", {
|
|
290
|
+
class: "el-button-color",
|
|
287
291
|
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
288
292
|
}, [
|
|
289
|
-
d(
|
|
290
|
-
], 8,
|
|
291
|
-
[
|
|
293
|
+
u(d(o.$t("common.delete")), 1)
|
|
294
|
+
], 8, ie)), [
|
|
295
|
+
[b, ["itsmsys:sys_org:delete"]]
|
|
292
296
|
]),
|
|
293
|
-
|
|
294
|
-
class: "el-button-color
|
|
297
|
+
c((m(), h("span", {
|
|
298
|
+
class: "el-button-color",
|
|
295
299
|
onClick: (p) => q(e.data.row)
|
|
296
300
|
}, [
|
|
297
|
-
d(
|
|
298
|
-
], 8,
|
|
299
|
-
[
|
|
301
|
+
u(d(o.$t("common.view")), 1)
|
|
302
|
+
], 8, me)), [
|
|
303
|
+
[b, ["itsmsys:sys_org:view"]]
|
|
300
304
|
])
|
|
301
305
|
]),
|
|
302
306
|
_: 1
|
|
303
|
-
}, 8, ["
|
|
307
|
+
}, 8, ["data", "table-label"])), [
|
|
308
|
+
[J, a(R)]
|
|
309
|
+
])
|
|
304
310
|
]),
|
|
305
311
|
_: 1
|
|
306
312
|
})
|
|
@@ -309,5 +315,5 @@ const ne = { class: "app-container" }, ae = { class: "search-container" }, se =
|
|
|
309
315
|
}
|
|
310
316
|
});
|
|
311
317
|
export {
|
|
312
|
-
|
|
318
|
+
_e as default
|
|
313
319
|
};
|