xyvcard-itsmsys 0.0.26 → 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/assets/7f3e996112b4923f.png +0 -0
- package/dist/{edit-3Y_XpZxY.mjs → edit-QJ7ZmxX_.mjs} +130 -134
- package/dist/edit-oJm1rfX1.mjs +410 -0
- package/dist/{index-CNmDTZ5s.mjs → index-3An-8Hfg.mjs} +122 -98
- package/dist/{index-CuCoE8rm.mjs → index-BsrMxEM8.mjs} +126 -102
- package/dist/index.mjs +488 -484
- package/dist/{info-DPpTceEz.mjs → info-DzQiIFfX.mjs} +35 -35
- package/dist/{info-BLmEh_qP.mjs → info-Ju_uuO8i.mjs} +1 -1
- package/dist/{info-Bbkgb1XC.mjs → info-n4JaFgZW.mjs} +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-BuYTlsXr.mjs +0 -358
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { C as k, D as
|
|
6
|
-
import { sysOrgApi as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as Z, getCurrentInstance as x, ref as P, onActivated as ee, resolveComponent as s, resolveDirective as V, createElementBlock as v, openBlock as m, createElementVNode as te, createVNode as a, withCtx as l, withKeys as N, unref as n, createTextVNode as i, toDisplayString as d, withDirectives as y, createBlock as w, createCommentVNode as oe, isRef as O } from "vue";
|
|
2
|
+
import { useTableHooks as le } from "jmash-core";
|
|
3
|
+
import { useI18n as ae } from "vue-i18n";
|
|
4
|
+
import { useRouter as ne } from "vue-router";
|
|
5
|
+
import { C as k, D as se } from "./index-dIcRC4jE.mjs";
|
|
6
|
+
import { sysOrgApi as re } from "./index.mjs";
|
|
7
|
+
const ue = { class: "app-container" }, me = { class: "search-container" }, ie = ["onClick"], de = ["onClick"], pe = ["onClick"], ve = /* @__PURE__ */ Z({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t:
|
|
9
|
+
setup(ce) {
|
|
10
|
+
const { t: I } = ae(), C = ne(), { proxy: R } = x(), r = P({
|
|
11
11
|
orgType: k.orgType.outsource,
|
|
12
12
|
orderName: k.orderBy.orderName,
|
|
13
|
-
orderAsc: k.orderBy.orderAsc
|
|
13
|
+
orderAsc: k.orderBy.orderAsc,
|
|
14
|
+
annual: R.$moment.formatDate(/* @__PURE__ */ new Date(), "YYYY")
|
|
14
15
|
}), {
|
|
15
|
-
tableHooks:
|
|
16
|
-
multipleTableRef:
|
|
17
|
-
queryFormRef:
|
|
18
|
-
listLoading:
|
|
16
|
+
tableHooks: u,
|
|
17
|
+
multipleTableRef: T,
|
|
18
|
+
queryFormRef: E,
|
|
19
|
+
listLoading: Y,
|
|
19
20
|
tableData: j,
|
|
20
21
|
total: f
|
|
21
|
-
} =
|
|
22
|
-
let
|
|
22
|
+
} = le(I, re, r);
|
|
23
|
+
let b = P([
|
|
23
24
|
{
|
|
24
25
|
label: "sysOut.orgName",
|
|
25
26
|
prop: "orgName",
|
|
@@ -74,57 +75,80 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
74
75
|
isColumn: !0
|
|
75
76
|
}
|
|
76
77
|
]);
|
|
77
|
-
function
|
|
78
|
+
function D(o) {
|
|
78
79
|
o.mobileEncrypt = !o.mobileEncrypt;
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
|
|
81
|
+
function S() {
|
|
82
|
+
C.push({ path: "/rawitsmsys/itsm-sys-out/edit" });
|
|
82
83
|
}
|
|
83
84
|
function U(o) {
|
|
84
|
-
|
|
85
|
+
C.push({
|
|
85
86
|
path: "/rawitsmsys/itsm-sys-out/edit",
|
|
86
87
|
query: { entityKey: o.orgId }
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
function q(o) {
|
|
90
|
-
|
|
91
|
+
C.push({
|
|
91
92
|
path: "/rawitsmsys/itsm-sys-out/outInfo",
|
|
92
93
|
query: { orgId: o.orgId }
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
96
|
function M(o) {
|
|
96
|
-
|
|
97
|
+
u.selectionRows.value = o;
|
|
97
98
|
}
|
|
98
99
|
function z(o) {
|
|
99
|
-
|
|
100
|
+
u.handleSort(o.prop, o.order);
|
|
100
101
|
}
|
|
101
|
-
return
|
|
102
|
-
|
|
102
|
+
return ee(() => {
|
|
103
|
+
u.getList();
|
|
103
104
|
}), (o, t) => {
|
|
104
|
-
const A = s("el-
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
const A = s("el-date-picker"), g = s("el-form-item"), p = s("el-col"), B = s("el-input"), K = s("jmash-select"), h = s("el-button"), $ = s("el-row"), L = s("el-form"), Q = s("jmash-column-select"), F = s("jmash-mobileIns-component"), H = s("el-switch"), W = s("jmash-table"), G = s("jmash-pagination"), J = s("el-card"), _ = V("hasPerm"), X = V("loading");
|
|
106
|
+
return m(), v("div", ue, [
|
|
107
|
+
te("div", me, [
|
|
108
|
+
a(L, {
|
|
108
109
|
ref_key: "queryFormRef",
|
|
109
|
-
ref:
|
|
110
|
-
model:
|
|
110
|
+
ref: E,
|
|
111
|
+
model: r.value,
|
|
111
112
|
inline: !0
|
|
112
113
|
}, {
|
|
113
114
|
default: l(() => [
|
|
114
|
-
|
|
115
|
+
a($, null, {
|
|
115
116
|
default: l(() => [
|
|
116
|
-
|
|
117
|
+
a(p, { span: 6 }, {
|
|
117
118
|
default: l(() => [
|
|
118
|
-
|
|
119
|
+
a(g, {
|
|
120
|
+
label: o.$t("sysOut.annual"),
|
|
121
|
+
prop: "annual"
|
|
122
|
+
}, {
|
|
123
|
+
default: l(() => [
|
|
124
|
+
a(A, {
|
|
125
|
+
modelValue: r.value.annual,
|
|
126
|
+
"onUpdate:modelValue": t[0] || (t[0] = (e) => r.value.annual = e),
|
|
127
|
+
type: "year",
|
|
128
|
+
placeholder: o.$t("sysOut.annualRequired"),
|
|
129
|
+
format: "YYYY",
|
|
130
|
+
"value-format": "YYYY",
|
|
131
|
+
clearable: !1,
|
|
132
|
+
class: "!w-[203px]"
|
|
133
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
134
|
+
]),
|
|
135
|
+
_: 1
|
|
136
|
+
}, 8, ["label"])
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
}),
|
|
140
|
+
a(p, { span: 6 }, {
|
|
141
|
+
default: l(() => [
|
|
142
|
+
a(g, {
|
|
119
143
|
label: o.$t("sysOut.orgName"),
|
|
120
144
|
prop: "likeOrgName"
|
|
121
145
|
}, {
|
|
122
146
|
default: l(() => [
|
|
123
|
-
|
|
124
|
-
modelValue:
|
|
125
|
-
"onUpdate:modelValue": t[
|
|
147
|
+
a(B, {
|
|
148
|
+
modelValue: r.value.likeOrgName,
|
|
149
|
+
"onUpdate:modelValue": t[1] || (t[1] = (e) => r.value.likeOrgName = e),
|
|
126
150
|
placeholder: o.$t("sysOut.orgNameRequired"),
|
|
127
|
-
onKeyup: t[
|
|
151
|
+
onKeyup: t[2] || (t[2] = N((e) => n(u).handleQuery(), ["enter"])),
|
|
128
152
|
class: "!w-[203px]",
|
|
129
153
|
clearable: ""
|
|
130
154
|
}, null, 8, ["modelValue", "placeholder"])
|
|
@@ -134,20 +158,20 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
134
158
|
]),
|
|
135
159
|
_: 1
|
|
136
160
|
}),
|
|
137
|
-
|
|
161
|
+
a(p, { span: 6 }, {
|
|
138
162
|
default: l(() => [
|
|
139
|
-
|
|
163
|
+
a(g, {
|
|
140
164
|
label: o.$t("sysOut.status"),
|
|
141
165
|
prop: "status"
|
|
142
166
|
}, {
|
|
143
167
|
default: l(() => [
|
|
144
|
-
|
|
145
|
-
modelValue:
|
|
146
|
-
"onUpdate:modelValue": t[
|
|
168
|
+
a(K, {
|
|
169
|
+
modelValue: r.value.status,
|
|
170
|
+
"onUpdate:modelValue": t[3] || (t[3] = (e) => r.value.status = e),
|
|
147
171
|
placeholder: o.$t("sysOut.statusRequired"),
|
|
148
|
-
data:
|
|
172
|
+
data: n(se).hasStatusDict.values,
|
|
149
173
|
clearable: "",
|
|
150
|
-
onKeyup: t[
|
|
174
|
+
onKeyup: t[4] || (t[4] = N((e) => n(u).handleQuery(), ["enter"]))
|
|
151
175
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
152
176
|
]),
|
|
153
177
|
_: 1
|
|
@@ -155,24 +179,24 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
155
179
|
]),
|
|
156
180
|
_: 1
|
|
157
181
|
}),
|
|
158
|
-
|
|
182
|
+
a(p, { span: 6 }, {
|
|
159
183
|
default: l(() => [
|
|
160
|
-
|
|
184
|
+
a(g, { class: "search-btn" }, {
|
|
161
185
|
default: l(() => [
|
|
162
|
-
|
|
186
|
+
a(h, {
|
|
163
187
|
type: "primary",
|
|
164
|
-
onClick: t[
|
|
188
|
+
onClick: t[5] || (t[5] = (e) => n(u).handleQuery())
|
|
165
189
|
}, {
|
|
166
190
|
default: l(() => [
|
|
167
|
-
|
|
191
|
+
i(d(o.$t("common.search")), 1)
|
|
168
192
|
]),
|
|
169
193
|
_: 1
|
|
170
194
|
}),
|
|
171
|
-
|
|
172
|
-
onClick: t[
|
|
195
|
+
a(h, {
|
|
196
|
+
onClick: t[6] || (t[6] = (e) => n(u).resetQuery())
|
|
173
197
|
}, {
|
|
174
198
|
default: l(() => [
|
|
175
|
-
|
|
199
|
+
i(d(o.$t("common.reset")), 1)
|
|
176
200
|
]),
|
|
177
201
|
_: 1
|
|
178
202
|
})
|
|
@@ -189,32 +213,32 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
189
213
|
_: 1
|
|
190
214
|
}, 8, ["model"])
|
|
191
215
|
]),
|
|
192
|
-
|
|
216
|
+
a(J, {
|
|
193
217
|
shadow: "never",
|
|
194
218
|
class: "table-container"
|
|
195
219
|
}, {
|
|
196
220
|
header: l(() => [
|
|
197
|
-
|
|
221
|
+
a($, null, {
|
|
198
222
|
default: l(() => [
|
|
199
|
-
|
|
223
|
+
a(p, { span: 17 }, {
|
|
200
224
|
default: l(() => [
|
|
201
|
-
|
|
225
|
+
y((m(), w(h, {
|
|
202
226
|
type: "primary",
|
|
203
|
-
onClick:
|
|
227
|
+
onClick: S
|
|
204
228
|
}, {
|
|
205
229
|
default: l(() => [
|
|
206
|
-
|
|
230
|
+
i(d(o.$t("common.add")), 1)
|
|
207
231
|
]),
|
|
208
232
|
_: 1
|
|
209
233
|
})), [
|
|
210
234
|
[_, ["itsmsys:sys_org_out:add"]]
|
|
211
235
|
]),
|
|
212
|
-
|
|
236
|
+
y((m(), w(h, {
|
|
213
237
|
type: "primary",
|
|
214
|
-
onClick: t[
|
|
238
|
+
onClick: t[7] || (t[7] = (e) => n(u).deleteRecords())
|
|
215
239
|
}, {
|
|
216
240
|
default: l(() => [
|
|
217
|
-
|
|
241
|
+
i(d(o.$t("common.batchDelete")), 1)
|
|
218
242
|
]),
|
|
219
243
|
_: 1
|
|
220
244
|
})), [
|
|
@@ -223,14 +247,14 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
223
247
|
]),
|
|
224
248
|
_: 1
|
|
225
249
|
}),
|
|
226
|
-
|
|
250
|
+
a(p, {
|
|
227
251
|
span: 7,
|
|
228
252
|
class: "container-float"
|
|
229
253
|
}, {
|
|
230
254
|
default: l(() => [
|
|
231
|
-
|
|
232
|
-
modelValue:
|
|
233
|
-
"onUpdate:modelValue": t[
|
|
255
|
+
a(Q, {
|
|
256
|
+
modelValue: n(b),
|
|
257
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => O(b) ? b.value = e : b = e),
|
|
234
258
|
"label-name": "itsmsys/itsm-sys-org"
|
|
235
259
|
}, null, 8, ["modelValue"])
|
|
236
260
|
]),
|
|
@@ -241,71 +265,71 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
241
265
|
})
|
|
242
266
|
]),
|
|
243
267
|
footer: l(() => [
|
|
244
|
-
|
|
268
|
+
n(f) > 0 ? (m(), w(G, {
|
|
245
269
|
key: 0,
|
|
246
|
-
total:
|
|
247
|
-
"onUpdate:total": t[
|
|
248
|
-
"current-page":
|
|
249
|
-
"onUpdate:currentPage": t[
|
|
250
|
-
"page-size":
|
|
251
|
-
"onUpdate:pageSize": t[
|
|
252
|
-
onPagination: t[
|
|
253
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
270
|
+
total: n(f),
|
|
271
|
+
"onUpdate:total": t[9] || (t[9] = (e) => O(f) ? f.value = e : null),
|
|
272
|
+
"current-page": r.value.curPage,
|
|
273
|
+
"onUpdate:currentPage": t[10] || (t[10] = (e) => r.value.curPage = e),
|
|
274
|
+
"page-size": r.value.pageSize,
|
|
275
|
+
"onUpdate:pageSize": t[11] || (t[11] = (e) => r.value.pageSize = e),
|
|
276
|
+
onPagination: t[12] || (t[12] = (e) => n(u).getList())
|
|
277
|
+
}, null, 8, ["total", "current-page", "page-size"])) : oe("", !0)
|
|
254
278
|
]),
|
|
255
279
|
default: l(() => [
|
|
256
|
-
|
|
280
|
+
y((m(), w(W, {
|
|
257
281
|
ref_key: "multipleTableRef",
|
|
258
|
-
ref:
|
|
282
|
+
ref: T,
|
|
259
283
|
"row-key": "orgId",
|
|
260
|
-
data:
|
|
261
|
-
"table-label":
|
|
284
|
+
data: n(j),
|
|
285
|
+
"table-label": n(b),
|
|
262
286
|
onSelectionChange: M,
|
|
263
287
|
onSortChange: z
|
|
264
288
|
}, {
|
|
265
289
|
contactPersonMobile: l((e) => [
|
|
266
|
-
|
|
290
|
+
a(F, {
|
|
267
291
|
mobilePhoneIns: e.data.row.contactPersonMobileIns,
|
|
268
292
|
mobilePhone: e.data.row.contactPersonMobile,
|
|
269
293
|
mobileEncrypt: e.data.row.mobileEncrypt,
|
|
270
|
-
onToggleEncrypt: (
|
|
294
|
+
onToggleEncrypt: (c) => D(e.data.row)
|
|
271
295
|
}, null, 8, ["mobilePhoneIns", "mobilePhone", "mobileEncrypt", "onToggleEncrypt"])
|
|
272
296
|
]),
|
|
273
297
|
status: l((e) => [
|
|
274
|
-
|
|
298
|
+
a(H, {
|
|
275
299
|
modelValue: e.data.row.status,
|
|
276
|
-
"onUpdate:modelValue": (
|
|
277
|
-
onChange: (
|
|
300
|
+
"onUpdate:modelValue": (c) => e.data.row.status = c,
|
|
301
|
+
onChange: (c) => n(u).enableRecord(e.data.row, e.data.row.status)
|
|
278
302
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
279
303
|
]),
|
|
280
304
|
operation: l((e) => [
|
|
281
|
-
|
|
305
|
+
y((m(), v("span", {
|
|
282
306
|
class: "el-button-color",
|
|
283
|
-
onClick: (
|
|
307
|
+
onClick: (c) => U(e.data.row)
|
|
284
308
|
}, [
|
|
285
|
-
|
|
286
|
-
], 8,
|
|
309
|
+
i(d(o.$t("common.edit")), 1)
|
|
310
|
+
], 8, ie)), [
|
|
287
311
|
[_, ["itsmsys:sys_org_out:update"]]
|
|
288
312
|
]),
|
|
289
|
-
|
|
313
|
+
y((m(), v("span", {
|
|
290
314
|
class: "el-button-color",
|
|
291
|
-
onClick: (
|
|
315
|
+
onClick: (c) => n(u).deleteRecord(e.data.row)
|
|
292
316
|
}, [
|
|
293
|
-
|
|
294
|
-
], 8,
|
|
317
|
+
i(d(o.$t("common.delete")), 1)
|
|
318
|
+
], 8, de)), [
|
|
295
319
|
[_, ["itsmsys:sys_org_out:delete"]]
|
|
296
320
|
]),
|
|
297
|
-
|
|
321
|
+
y((m(), v("span", {
|
|
298
322
|
class: "el-button-color",
|
|
299
|
-
onClick: (
|
|
323
|
+
onClick: (c) => q(e.data.row)
|
|
300
324
|
}, [
|
|
301
|
-
|
|
302
|
-
], 8,
|
|
325
|
+
i(d(o.$t("common.view")), 1)
|
|
326
|
+
], 8, pe)), [
|
|
303
327
|
[_, ["itsmsys:sys_org_out:view"]]
|
|
304
328
|
])
|
|
305
329
|
]),
|
|
306
330
|
_: 1
|
|
307
331
|
}, 8, ["data", "table-label"])), [
|
|
308
|
-
[
|
|
332
|
+
[X, n(Y)]
|
|
309
333
|
])
|
|
310
334
|
]),
|
|
311
335
|
_: 1
|
|
@@ -315,5 +339,5 @@ const ae = { class: "app-container" }, se = { class: "search-container" }, re =
|
|
|
315
339
|
}
|
|
316
340
|
});
|
|
317
341
|
export {
|
|
318
|
-
|
|
342
|
+
ve as default
|
|
319
343
|
};
|