xyvcard-itsmsys 0.0.19 → 0.0.21
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-Czi-Vkbf.mjs → edit-tX79QBAc.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CJmMqL9f.mjs → edit.vue_vue_type_script_setup_true_lang-Ddo5V16V.mjs} +1 -1
- package/dist/{import-upload-DBk1lPqR.mjs → import-upload-BaJGVcNb.mjs} +4 -4
- package/dist/{import-upload-BvY7RZa-.mjs → import-upload-CC1Ho43e.mjs} +1 -1
- package/dist/{index-CuBZptA_.mjs → index-BV5uRZXE.mjs} +24 -22
- package/dist/{index-BHcHN6PY.mjs → index-BWc93IIa.mjs} +29 -27
- package/dist/{index-D__UxnZG.mjs → index-CAzxJ_Vp.mjs} +28 -26
- package/dist/{index-p50UkFiJ.mjs → index-Di1yx94g.mjs} +31 -29
- package/dist/{index-Cow_4AlE.mjs → index-WHNNztBg.mjs} +29 -27
- package/dist/index.mjs +44 -35
- package/dist/{info-Dx5fzSIP.mjs → info-6E3wqxd6.mjs} +1 -1
- package/dist/{info-bYWisCey.mjs → info-AE3ch4Zw.mjs} +1 -1
- package/dist/{info-Bn5mhJtq.mjs → info-DttXGxP3.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dts/api/itsm-sys-org/index.d.ts +2 -1
- package/dts/api/itsm-sys-org/types.d.ts +4 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
# pnpm publish --no-git-checks
|
|
2
|
-
npm config set registry https://registry.npmjs.org/
|
|
3
|
-
|
|
4
|
-
# pnpm install
|
|
5
|
-
npm config set registry https://registry.npmmirror.com/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
-
|
|
10
|
-
## Recommended IDE Setup
|
|
11
|
-
|
|
12
|
-
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
-
|
|
14
|
-
## Type Support for `.vue` Imports in TS
|
|
15
|
-
|
|
16
|
-
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
-
|
|
18
|
-
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
-
|
|
20
|
-
1. Disable the built-in TypeScript Extension
|
|
21
|
-
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
-
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
-
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
-
|
|
25
|
-
## Customize configuration
|
|
26
|
-
|
|
27
|
-
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
-
|
|
29
|
-
## Project Setup
|
|
30
|
-
|
|
31
|
-
```sh
|
|
32
|
-
pnpm install
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Compile and Hot-Reload for Development
|
|
36
|
-
|
|
37
|
-
```sh
|
|
38
|
-
pnpm dev
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Type-Check, Compile and Minify for Production
|
|
42
|
-
|
|
43
|
-
```sh
|
|
44
|
-
pnpm build
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
pnpm lint
|
|
51
|
-
```
|
|
1
|
+
# pnpm publish --no-git-checks
|
|
2
|
+
npm config set registry https://registry.npmjs.org/
|
|
3
|
+
|
|
4
|
+
# pnpm install
|
|
5
|
+
npm config set registry https://registry.npmmirror.com/
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
This template should help get you started developing with Vue 3 in Vite.
|
|
9
|
+
|
|
10
|
+
## Recommended IDE Setup
|
|
11
|
+
|
|
12
|
+
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
|
|
13
|
+
|
|
14
|
+
## Type Support for `.vue` Imports in TS
|
|
15
|
+
|
|
16
|
+
TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
|
|
17
|
+
|
|
18
|
+
If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
|
|
19
|
+
|
|
20
|
+
1. Disable the built-in TypeScript Extension
|
|
21
|
+
1) Run `Extensions: Show Built-in Extensions` from VSCode's command palette
|
|
22
|
+
2) Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
|
|
23
|
+
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
|
|
24
|
+
|
|
25
|
+
## Customize configuration
|
|
26
|
+
|
|
27
|
+
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
28
|
+
|
|
29
|
+
## Project Setup
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
pnpm install
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Compile and Hot-Reload for Development
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
pnpm dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Type-Check, Compile and Minify for Production
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
pnpm build
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Lint with [ESLint](https://eslint.org/)
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
pnpm lint
|
|
51
|
+
```
|
|
@@ -109,7 +109,7 @@ const ne = { class: "dialog-footer" }, ye = /* @__PURE__ */ X({
|
|
|
109
109
|
}));
|
|
110
110
|
};
|
|
111
111
|
function L() {
|
|
112
|
-
oe.treelistDept().then(({ data: e }) => {
|
|
112
|
+
oe.treelistDept({}).then(({ data: e }) => {
|
|
113
113
|
N.value = e.results;
|
|
114
114
|
}), se.treelistJob().then(({ data: e }) => {
|
|
115
115
|
$.value = e.results;
|
|
@@ -18,7 +18,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["templateDown", "importEvents", "uploadClosed"],
|
|
20
20
|
setup(_, { emit: U }) {
|
|
21
|
-
const { t: g } = L(), k = i(w.uploadUrl()),
|
|
21
|
+
const { t: g } = L(), k = i(w.uploadUrl()), $ = i(w.authHeader()), b = C({
|
|
22
22
|
tenant: D().user.tenant
|
|
23
23
|
}), E = i(), d = C({
|
|
24
24
|
tenant: D().user.tenant,
|
|
@@ -121,8 +121,8 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
121
121
|
ref: E,
|
|
122
122
|
drag: "",
|
|
123
123
|
action: k.value,
|
|
124
|
-
headers:
|
|
125
|
-
data:
|
|
124
|
+
headers: $.value,
|
|
125
|
+
data: b,
|
|
126
126
|
limit: 1,
|
|
127
127
|
"on-success": q,
|
|
128
128
|
"on-exceed": B,
|
|
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
155
155
|
}, 8, ["modelValue", "title"]);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-2d832d04"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -155,7 +155,7 @@ const Q = { class: "el-upload__text" }, W = { style: { color: "var(--el-color-pr
|
|
|
155
155
|
}, 8, ["modelValue", "title"]);
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), se = /* @__PURE__ */ P(Y, [["__scopeId", "data-v-96565565"]]);
|
|
159
159
|
export {
|
|
160
160
|
se as default
|
|
161
161
|
};
|
|
@@ -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 { useRouter as
|
|
5
|
-
import { C as k, D as
|
|
6
|
-
import { sysOrgApi as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as W, ref as $, onActivated as X, resolveComponent as s, resolveDirective as Y, openBlock as i, createElementBlock as h, createElementVNode as V, createVNode as n, withCtx as l, withKeys as N, unref as a, createTextVNode as m, toDisplayString as d, withDirectives as _, 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 { useRouter as te } from "vue-router";
|
|
5
|
+
import { C as k, D as oe } from "./index-dIcRC4jE.mjs";
|
|
6
|
+
import { sysOrgApi as le } from "./index.mjs";
|
|
7
|
+
const ne = { class: "app-container" }, ae = { class: "search-container" }, se = ["onClick"], re = ["onClick"], ue = ["onClick"], _e = /* @__PURE__ */ W({
|
|
8
8
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { t: T } =
|
|
9
|
+
setup(ie) {
|
|
10
|
+
const { t: T } = ee(), v = te(), u = $({
|
|
11
11
|
orgType: k.orgType.outsource,
|
|
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, le, u);
|
|
22
22
|
let c = $([
|
|
23
23
|
{
|
|
24
24
|
label: "sysOut.orgName",
|
|
@@ -92,10 +92,12 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
92
92
|
function z(o) {
|
|
93
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"), g = 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"), b = Y("hasPerm");
|
|
99
|
+
return i(), h("div", ne, [
|
|
100
|
+
V("div", ae, [
|
|
99
101
|
n(K, {
|
|
100
102
|
ref_key: "queryFormRef",
|
|
101
103
|
ref: I,
|
|
@@ -112,7 +114,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
112
114
|
prop: "likeOrgName"
|
|
113
115
|
}, {
|
|
114
116
|
default: l(() => [
|
|
115
|
-
n(
|
|
117
|
+
n(A, {
|
|
116
118
|
modelValue: u.value.likeOrgName,
|
|
117
119
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => u.value.likeOrgName = e),
|
|
118
120
|
placeholder: o.$t("sysOut.orgNameRequired"),
|
|
@@ -133,11 +135,11 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
133
135
|
prop: "status"
|
|
134
136
|
}, {
|
|
135
137
|
default: l(() => [
|
|
136
|
-
n(
|
|
138
|
+
n(B, {
|
|
137
139
|
modelValue: u.value.status,
|
|
138
140
|
"onUpdate:modelValue": t[2] || (t[2] = (e) => u.value.status = e),
|
|
139
141
|
placeholder: o.$t("sysOut.statusRequired"),
|
|
140
|
-
data: a(
|
|
142
|
+
data: a(oe).hasStatusDict.values,
|
|
141
143
|
clearable: "",
|
|
142
144
|
onKeyup: t[3] || (t[3] = N((e) => a(r).handleQuery(), ["enter"]))
|
|
143
145
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -243,7 +245,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
243
245
|
"page-size": u.value.pageSize,
|
|
244
246
|
"onUpdate:pageSize": t[10] || (t[10] = (e) => u.value.pageSize = e),
|
|
245
247
|
onPagination: t[11] || (t[11] = (e) => a(r).getList())
|
|
246
|
-
}, null, 8, ["total", "current-page", "page-size"])) :
|
|
248
|
+
}, null, 8, ["total", "current-page", "page-size"])) : Z("", !0)
|
|
247
249
|
]),
|
|
248
250
|
default: l(() => [
|
|
249
251
|
n(H, {
|
|
@@ -277,7 +279,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
277
279
|
onClick: (p) => U(e.data.row)
|
|
278
280
|
}, [
|
|
279
281
|
m(d(o.$t("common.edit")), 1)
|
|
280
|
-
], 8,
|
|
282
|
+
], 8, se)), [
|
|
281
283
|
[b, ["itsmsys:sys_org_out:update"]]
|
|
282
284
|
]),
|
|
283
285
|
_((i(), h("span", {
|
|
@@ -285,7 +287,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
285
287
|
onClick: (p) => a(r).deleteRecord(e.data.row)
|
|
286
288
|
}, [
|
|
287
289
|
m(d(o.$t("common.delete")), 1)
|
|
288
|
-
], 8,
|
|
290
|
+
], 8, re)), [
|
|
289
291
|
[b, ["itsmsys:sys_org_out:delete"]]
|
|
290
292
|
]),
|
|
291
293
|
_((i(), h("span", {
|
|
@@ -293,7 +295,7 @@ const le = { class: "app-container" }, ne = { class: "search-container" }, ae =
|
|
|
293
295
|
onClick: (p) => q(e.data.row)
|
|
294
296
|
}, [
|
|
295
297
|
m(d(o.$t("common.view")), 1)
|
|
296
|
-
], 8,
|
|
298
|
+
], 8, ue)), [
|
|
297
299
|
[b, ["itsmsys:sys_org_out: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
|
+
_e as default
|
|
311
313
|
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as re, ref as U, reactive as B, resolveComponent as i, resolveDirective as
|
|
2
|
-
import { useTableHooks as
|
|
3
|
-
import { useI18n as
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as re, ref as U, reactive as B, onActivated as ue, resolveComponent as i, resolveDirective as ie, openBlock as d, createElementBlock as k, createElementVNode as b, createVNode as a, withCtx as o, withKeys as V, unref as n, createTextVNode as m, toDisplayString as s, withDirectives as c, createBlock as f, isRef as q, createCommentVNode as S, vShow as K } from "vue";
|
|
2
|
+
import { useTableHooks as de } from "jmash-core";
|
|
3
|
+
import { useI18n as me } from "vue-i18n";
|
|
4
|
+
import { useRouter as pe } from "vue-router";
|
|
5
5
|
import { D as p, C as N } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysUserExtApi as Q } from "./index.mjs";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { F as
|
|
9
|
-
import
|
|
10
|
-
const
|
|
7
|
+
import { _ as ye } from "./edit.vue_vue_type_script_setup_true_lang-Ddo5V16V.mjs";
|
|
8
|
+
import { F as be } from "./FileSaver.min-BeKvLuyk.mjs";
|
|
9
|
+
import ce from "./import-upload-BaJGVcNb.mjs";
|
|
10
|
+
const fe = { class: "app-container" }, ve = { class: "search-container" }, we = { key: 0 }, ge = ["onClick"], _e = ["onClick"], je = ["onClick"], Me = /* @__PURE__ */ re({
|
|
11
11
|
__name: "index",
|
|
12
|
-
setup(
|
|
13
|
-
const { t: g } =
|
|
12
|
+
setup(he) {
|
|
13
|
+
const { t: g } = me(), L = pe();
|
|
14
14
|
p.deptBizDict.useValues(), p.jobBizDict.useValues();
|
|
15
15
|
const r = U({
|
|
16
16
|
userType: N.userType.companyManager
|
|
17
17
|
}), {
|
|
18
18
|
tableHooks: u,
|
|
19
19
|
multipleTableRef: x,
|
|
20
|
-
queryFormRef:
|
|
21
|
-
listLoading:
|
|
20
|
+
queryFormRef: A,
|
|
21
|
+
listLoading: F,
|
|
22
22
|
tableData: H,
|
|
23
23
|
total: I
|
|
24
|
-
} =
|
|
24
|
+
} = de(g, Q, r);
|
|
25
25
|
let _ = U([
|
|
26
26
|
{
|
|
27
27
|
label: "sysUserMan.loginName",
|
|
@@ -120,7 +120,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
120
120
|
const D = new Blob([t.data], {
|
|
121
121
|
type: "application/octet-stream"
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
be.saveAs(D, l + ".xlsx");
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
function Y(l) {
|
|
@@ -137,13 +137,15 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
137
137
|
function te(l) {
|
|
138
138
|
l && u.getList();
|
|
139
139
|
}
|
|
140
|
-
return
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
return ue(() => {
|
|
141
|
+
u.getList();
|
|
142
|
+
}), (l, t) => {
|
|
143
|
+
const D = i("el-input"), h = i("el-form-item"), v = i("el-col"), M = i("jmash-select"), C = i("el-button"), P = i("el-row"), le = i("el-form"), oe = i("jmash-column-select"), R = i("el-tag"), z = i("svg-icon"), ae = i("jmash-table"), ne = i("jmash-pagination"), se = i("el-card"), w = ie("hasPerm");
|
|
144
|
+
return d(), k("div", fe, [
|
|
145
|
+
b("div", ve, [
|
|
144
146
|
a(le, {
|
|
145
147
|
ref_key: "queryFormRef",
|
|
146
|
-
ref:
|
|
148
|
+
ref: A,
|
|
147
149
|
model: r.value,
|
|
148
150
|
inline: !0
|
|
149
151
|
}, {
|
|
@@ -349,7 +351,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
349
351
|
ref_key: "multipleTableRef",
|
|
350
352
|
ref: x,
|
|
351
353
|
"row-key": "userId",
|
|
352
|
-
"list-loading": n(
|
|
354
|
+
"list-loading": n(F),
|
|
353
355
|
data: n(H),
|
|
354
356
|
"table-label": n(_),
|
|
355
357
|
onSelectionChange: Z,
|
|
@@ -392,7 +394,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
392
394
|
])
|
|
393
395
|
]),
|
|
394
396
|
operation: o((e) => [
|
|
395
|
-
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), k("span",
|
|
397
|
+
e.data.row.mobilePhoneIns || e.data.row.emailIns ? (d(), k("span", we, [
|
|
396
398
|
c(a(z, {
|
|
397
399
|
"icon-class": "close-eye",
|
|
398
400
|
onClick: ($) => T(e.data.row)
|
|
@@ -411,7 +413,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
411
413
|
onClick: ($) => G(e.data.row)
|
|
412
414
|
}, [
|
|
413
415
|
m(s(l.$t("common.edit")), 1)
|
|
414
|
-
], 8,
|
|
416
|
+
], 8, ge)), [
|
|
415
417
|
[w, ["itsmsys:sys_user_ext:update"]]
|
|
416
418
|
]),
|
|
417
419
|
c((d(), k("span", {
|
|
@@ -419,7 +421,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
419
421
|
onClick: ($) => n(u).deleteRecord(e.data.row)
|
|
420
422
|
}, [
|
|
421
423
|
m(s(l.$t("common.delete")), 1)
|
|
422
|
-
], 8,
|
|
424
|
+
], 8, _e)), [
|
|
423
425
|
[w, ["itsmsys:sys_user_ext:delete"]]
|
|
424
426
|
]),
|
|
425
427
|
c((d(), k("span", {
|
|
@@ -427,7 +429,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
427
429
|
onClick: ($) => J(e.data.row)
|
|
428
430
|
}, [
|
|
429
431
|
m(s(l.$t("common.view")), 1)
|
|
430
|
-
], 8,
|
|
432
|
+
], 8, je)), [
|
|
431
433
|
[w, ["itsmsys:sys_user_ext:view"]]
|
|
432
434
|
])
|
|
433
435
|
]),
|
|
@@ -436,7 +438,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
436
438
|
]),
|
|
437
439
|
_: 1
|
|
438
440
|
}),
|
|
439
|
-
y.value.visible ? (d(), f(
|
|
441
|
+
y.value.visible ? (d(), f(ye, {
|
|
440
442
|
key: 0,
|
|
441
443
|
modelValue: y.value.visible,
|
|
442
444
|
"onUpdate:modelValue": t[17] || (t[17] = (e) => y.value.visible = e),
|
|
@@ -445,7 +447,7 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
445
447
|
onRefresh: te,
|
|
446
448
|
width: "900px"
|
|
447
449
|
}, null, 8, ["modelValue", "title", "entity-key"])) : S("", !0),
|
|
448
|
-
j.value ? (d(), f(
|
|
450
|
+
j.value ? (d(), f(ce, {
|
|
449
451
|
key: 1,
|
|
450
452
|
"upload-visible": j.value,
|
|
451
453
|
"template-title": l.$t("sysUser.templateDownload"),
|
|
@@ -458,5 +460,5 @@ const ce = { class: "app-container" }, fe = { class: "search-container" }, ve =
|
|
|
458
460
|
}
|
|
459
461
|
});
|
|
460
462
|
export {
|
|
461
|
-
|
|
463
|
+
Me as default
|
|
462
464
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as te, ref as N, resolveComponent as s, resolveDirective as
|
|
2
|
-
import { useTableHooks as
|
|
1
|
+
import { defineComponent as te, ref as N, onActivated as ne, resolveComponent as s, resolveDirective as le, 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 se } from "vue";
|
|
2
|
+
import { useTableHooks as ae } from "jmash-core";
|
|
3
3
|
import { ElMessageBox as j, ElMessage as T } from "element-plus";
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { C as
|
|
4
|
+
import { useI18n as re } from "vue-i18n";
|
|
5
|
+
import { C as ie, D as me } from "./index-dIcRC4jE.mjs";
|
|
6
6
|
import { sysOrgApi as u } from "./index.mjs";
|
|
7
|
-
import { useRouter as
|
|
8
|
-
const
|
|
7
|
+
import { useRouter as ce } from "vue-router";
|
|
8
|
+
const de = { class: "app-container" }, ue = { class: "search-container" }, pe = ["onClick"], fe = ["onClick"], ye = ["onClick"], $e = /* @__PURE__ */ te({
|
|
9
9
|
__name: "index",
|
|
10
|
-
setup(
|
|
11
|
-
const { t: a } =
|
|
12
|
-
orgType:
|
|
13
|
-
}), { tableHooks: r, multipleTableRef: P, queryFormRef: V, listLoading: M, tableData: S } =
|
|
10
|
+
setup(_e) {
|
|
11
|
+
const { t: a } = re(), $ = ce(), p = N({
|
|
12
|
+
orgType: ie.orgType.hall
|
|
13
|
+
}), { tableHooks: r, multipleTableRef: P, queryFormRef: V, listLoading: M, tableData: S } = ae(a, u, p);
|
|
14
14
|
let b = N([
|
|
15
15
|
{
|
|
16
16
|
label: "sysGov.orgName",
|
|
@@ -89,7 +89,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
89
89
|
function U(e) {
|
|
90
90
|
r.selectionRows.value = e;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function A(e) {
|
|
93
93
|
r.handleSort(e.prop, e.order);
|
|
94
94
|
}
|
|
95
95
|
function B(e, t) {
|
|
@@ -100,7 +100,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
100
100
|
!m || typeof m != "object" || m.status === 200 && r.findList();
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function F(e) {
|
|
104
104
|
j.confirm(a("common.confirmDelete"), a("common.delete"), {
|
|
105
105
|
cancelButtonText: a("common.cancel"),
|
|
106
106
|
confirmButtonText: a("common.confirm"),
|
|
@@ -114,7 +114,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
114
114
|
});
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function z() {
|
|
118
118
|
if (r.selectionRows.value.length === 0) {
|
|
119
119
|
T({
|
|
120
120
|
message: a("common.chooseDelete"),
|
|
@@ -145,10 +145,12 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
145
145
|
function H() {
|
|
146
146
|
V.value.resetFields(), w();
|
|
147
147
|
}
|
|
148
|
-
return
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
return ne(() => {
|
|
149
|
+
r.findList();
|
|
150
|
+
}), (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"), g = le("hasPerm");
|
|
152
|
+
return y(), k("div", de, [
|
|
153
|
+
R("div", ue, [
|
|
152
154
|
n(x, {
|
|
153
155
|
ref_key: "queryFormRef",
|
|
154
156
|
ref: V,
|
|
@@ -190,7 +192,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
190
192
|
modelValue: p.value.status,
|
|
191
193
|
"onUpdate:modelValue": t[2] || (t[2] = (o) => p.value.status = o),
|
|
192
194
|
placeholder: e.$t("sysGov.statusRequired"),
|
|
193
|
-
data: _(
|
|
195
|
+
data: _(me).hasStatusDict.values,
|
|
194
196
|
clearable: "",
|
|
195
197
|
onKeyup: t[3] || (t[3] = I((o) => w(), ["enter"]))
|
|
196
198
|
}, null, 8, ["modelValue", "placeholder", "data"])
|
|
@@ -257,7 +259,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
257
259
|
]),
|
|
258
260
|
h((y(), G(C, {
|
|
259
261
|
type: "primary",
|
|
260
|
-
onClick: t[6] || (t[6] = (o) =>
|
|
262
|
+
onClick: t[6] || (t[6] = (o) => z())
|
|
261
263
|
}, {
|
|
262
264
|
default: l(() => [
|
|
263
265
|
c(d(e.$t("common.batchDelete")), 1)
|
|
@@ -276,7 +278,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
276
278
|
default: l(() => [
|
|
277
279
|
n(J, {
|
|
278
280
|
modelValue: _(b),
|
|
279
|
-
"onUpdate:modelValue": t[7] || (t[7] = (o) =>
|
|
281
|
+
"onUpdate:modelValue": t[7] || (t[7] = (o) => se(b) ? b.value = o : b = o),
|
|
280
282
|
"label-name": "itsmsys/itsm-sys-org"
|
|
281
283
|
}, null, 8, ["modelValue"])
|
|
282
284
|
]),
|
|
@@ -295,7 +297,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
295
297
|
data: _(S),
|
|
296
298
|
"table-label": _(b),
|
|
297
299
|
onSelectionChange: U,
|
|
298
|
-
onSortChange:
|
|
300
|
+
onSortChange: A
|
|
299
301
|
}, {
|
|
300
302
|
contactPersonMobile: l((o) => [
|
|
301
303
|
n(W, {
|
|
@@ -338,15 +340,15 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
338
340
|
onClick: (i) => K(o.data.row)
|
|
339
341
|
}, [
|
|
340
342
|
c(d(e.$t("common.edit")), 1)
|
|
341
|
-
], 8,
|
|
343
|
+
], 8, pe)), [
|
|
342
344
|
[g, ["itsmsys:sys_org_gov:update"]]
|
|
343
345
|
]),
|
|
344
346
|
h((y(), k("span", {
|
|
345
347
|
class: "el-button-color dropdown-left",
|
|
346
|
-
onClick: (i) =>
|
|
348
|
+
onClick: (i) => F(o.data.row)
|
|
347
349
|
}, [
|
|
348
350
|
c(d(e.$t("common.delete")), 1)
|
|
349
|
-
], 8,
|
|
351
|
+
], 8, fe)), [
|
|
350
352
|
[g, ["itsmsys:sys_org_gov:delete"]]
|
|
351
353
|
]),
|
|
352
354
|
h((y(), k("span", {
|
|
@@ -354,7 +356,7 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
354
356
|
onClick: (i) => O(o.data.row)
|
|
355
357
|
}, [
|
|
356
358
|
c(d(e.$t("common.view")), 1)
|
|
357
|
-
], 8,
|
|
359
|
+
], 8, ye)), [
|
|
358
360
|
[g, ["itsmsys:sys_org_gov:view"]]
|
|
359
361
|
])
|
|
360
362
|
]),
|
|
@@ -368,5 +370,5 @@ const ce = { class: "app-container" }, de = { class: "search-container" }, ue =
|
|
|
368
370
|
}
|
|
369
371
|
});
|
|
370
372
|
export {
|
|
371
|
-
|
|
373
|
+
$e as default
|
|
372
374
|
};
|