@das-fed/ui 7.0.7-hot.67 → 7.0.7-hot.69
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/package.json +5 -5
- package/packages/business-components/import-button/index.js +248 -246
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +2 -0
- package/packages/business-components/process-form/index.js +850 -814
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/user-org-dialog/index.js +183 -183
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/style.css +1 -1
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/select-input/index.js +9 -7
- package/packages/components/select-input/index.js.gz +0 -0
- package/packages/components/select-input/src/type.d.ts +3 -0
- package/packages/components/select-input/style.css +1 -1
- package/packages/components/select-input/style.css.gz +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/user-org-dialog/style.css';
|
|
2
|
-
import { ref as i, defineComponent as Z, computed as _, createElementBlock as
|
|
2
|
+
import { ref as i, defineComponent as Z, computed as _, createElementBlock as R, openBlock as V, createVNode as c, unref as l, isRef as ke, withCtx as h, withDirectives as ze, toDisplayString as B, h as oe, onMounted as pe, watch as ve, nextTick as fe, createElementVNode as P, createBlock as Q, mergeProps as Te, createCommentVNode as De, createTextVNode as se } from "vue";
|
|
3
3
|
import { withInstall as we } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { i18n as T, t as Y, setI18nRule as
|
|
5
|
-
import { DasTabs as
|
|
4
|
+
import { i18n as T, t as Y, setI18nRule as Ne } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasTabs as Oe } from "@das-fed/ui/packages/components/tabs/index";
|
|
6
6
|
import { DasButton as re } from "@das-fed/ui/packages/components/button/index";
|
|
7
7
|
import { DasDialog as Ve } from "@das-fed/ui/packages/components/dialog/index";
|
|
8
8
|
import { getProjectInfo as Ie } from "@das-fed/utils/common-info";
|
|
@@ -15,8 +15,8 @@ import { DasSelectList as Pe } from "@das-fed/ui/packages/components/select-list
|
|
|
15
15
|
import { vDasTooltip as Ue } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
16
16
|
import { enterpriseright as $e } from "@das-fed/utils/api-services/modules/enterpriseright";
|
|
17
17
|
import { createService as xe } from "@das-fed/utils/create-api-service";
|
|
18
|
-
import { DasTooltip as
|
|
19
|
-
const y = i([]),
|
|
18
|
+
import { DasTooltip as Ae } from "@das-fed/ui/packages/components/tooltip/index";
|
|
19
|
+
const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-text" }, Be = { key: 0 }, Ee = { key: 1 }, Ke = { key: 2 }, qe = { key: 3 }, je = {
|
|
20
20
|
name: "selectList"
|
|
21
21
|
}, Fe = /* @__PURE__ */ Z({
|
|
22
22
|
...je,
|
|
@@ -25,15 +25,15 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["itemRemove", "clearCheck"],
|
|
27
27
|
setup(S, { emit: D }) {
|
|
28
|
-
const u = S, r = _(() => u.isSelectedSensitive),
|
|
29
|
-
|
|
28
|
+
const u = S, r = _(() => u.isSelectedSensitive), m = D, w = ($) => {
|
|
29
|
+
m("itemRemove", $);
|
|
30
30
|
}, C = ($) => {
|
|
31
|
-
|
|
31
|
+
m("clearCheck");
|
|
32
32
|
};
|
|
33
|
-
return ($,
|
|
33
|
+
return ($, N) => (V(), R("div", Le, [
|
|
34
34
|
c(l(Pe), {
|
|
35
35
|
modelValue: l(y),
|
|
36
|
-
"onUpdate:modelValue":
|
|
36
|
+
"onUpdate:modelValue": N[0] || (N[0] = (d) => ke(y) ? y.value = d : null),
|
|
37
37
|
width: "100%",
|
|
38
38
|
height: "100%",
|
|
39
39
|
"custom-style": { border: "none" },
|
|
@@ -41,29 +41,29 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
41
41
|
onRemoveAll: C
|
|
42
42
|
}, {
|
|
43
43
|
default: h(({ item: d }) => [
|
|
44
|
-
ze((V(),
|
|
45
|
-
d.identityType == 2 ? (V(),
|
|
44
|
+
ze((V(), R("div", Re, [
|
|
45
|
+
d.identityType == 2 ? (V(), R(
|
|
46
46
|
"span",
|
|
47
47
|
Be,
|
|
48
|
-
|
|
48
|
+
B(d.name),
|
|
49
49
|
1
|
|
50
50
|
/* TEXT */
|
|
51
|
-
)) : d.identityType == 1 && r.value ? (V(),
|
|
51
|
+
)) : d.identityType == 1 && r.value ? (V(), R(
|
|
52
52
|
"span",
|
|
53
53
|
Ee,
|
|
54
|
-
|
|
54
|
+
B(d.name) + B(d.sensitivePhone ? `(${d.sensitivePhone})` : ""),
|
|
55
55
|
1
|
|
56
56
|
/* TEXT */
|
|
57
|
-
)) : d.identityType == 1 && !r.value ? (V(),
|
|
57
|
+
)) : d.identityType == 1 && !r.value ? (V(), R(
|
|
58
58
|
"span",
|
|
59
59
|
Ke,
|
|
60
|
-
|
|
60
|
+
B(d.name) + B(d.phone ? `(${d.phone})` : ""),
|
|
61
61
|
1
|
|
62
62
|
/* TEXT */
|
|
63
|
-
)) : (V(),
|
|
63
|
+
)) : (V(), R(
|
|
64
64
|
"span",
|
|
65
65
|
qe,
|
|
66
|
-
|
|
66
|
+
B(d.name),
|
|
67
67
|
1
|
|
68
68
|
/* TEXT */
|
|
69
69
|
))
|
|
@@ -78,8 +78,8 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
78
78
|
}
|
|
79
79
|
}), ee = (S, D) => {
|
|
80
80
|
const u = S.__vccOpts || S;
|
|
81
|
-
for (const [r,
|
|
82
|
-
u[r] =
|
|
81
|
+
for (const [r, m] of D)
|
|
82
|
+
u[r] = m;
|
|
83
83
|
return u;
|
|
84
84
|
}, Me = /* @__PURE__ */ ee(Fe, [["__scopeId", "data-v-5b1d2b02"]]), ue = i(null), ye = (S, D, u) => ({
|
|
85
85
|
selectListRef: ue,
|
|
@@ -89,10 +89,10 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
89
89
|
onClearCheck: u,
|
|
90
90
|
ref: ue
|
|
91
91
|
})
|
|
92
|
-
}), Ge = "v1", He = `/api/fms/base/interface//${Ge}`, Se = xe(`${He}`), Ce = Se.post("/organization/authtree"), Je = $e.post("/organization/user"), Qe = Se.post("/organization/organizationpage"), We = { class: "select-org-container" }, Xe = { class: "split-left-content" }, Ye = { class: "split-right-box" }, Ze = { class: "split-table" },
|
|
92
|
+
}), Ge = "v1", He = `/api/fms/base/interface//${Ge}`, Se = xe(`${He}`), Ce = Se.post("/organization/authtree"), Je = $e.post("/organization/user"), Qe = Se.post("/organization/organizationpage"), We = { class: "select-org-container" }, Xe = { class: "split-left-content" }, Ye = { class: "split-right-box" }, Ze = { class: "split-table" }, ea = { class: "table-searc-box" }, aa = { class: "split-table-content" }, ta = { class: "split-checkd" }, la = {
|
|
93
93
|
name: "selectOrg"
|
|
94
|
-
},
|
|
95
|
-
...
|
|
94
|
+
}, sa = /* @__PURE__ */ Z({
|
|
95
|
+
...la,
|
|
96
96
|
props: {
|
|
97
97
|
projectId: { default: "" },
|
|
98
98
|
isSelectedSensitive: { type: Boolean, default: !0 },
|
|
@@ -100,97 +100,97 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
100
100
|
},
|
|
101
101
|
setup(S, { expose: D }) {
|
|
102
102
|
const u = S, r = _(() => {
|
|
103
|
-
var
|
|
104
|
-
return ((
|
|
105
|
-
}),
|
|
106
|
-
var
|
|
107
|
-
return ((
|
|
103
|
+
var a;
|
|
104
|
+
return ((a = u.initProps) == null ? void 0 : a.isCustomApi) || !1;
|
|
105
|
+
}), m = _(() => {
|
|
106
|
+
var a;
|
|
107
|
+
return ((a = u.initProps) == null ? void 0 : a.disabledNodeLabel) || "optional";
|
|
108
108
|
}), w = _(() => {
|
|
109
|
-
var
|
|
110
|
-
return (o = (
|
|
109
|
+
var a, o;
|
|
110
|
+
return (o = (a = u.initProps) == null ? void 0 : a.customApiOptions) == null ? void 0 : o.orgTree;
|
|
111
111
|
}), C = _(() => {
|
|
112
|
-
var
|
|
113
|
-
return (o = (
|
|
114
|
-
}), $ = _(() => u.isSelectedSensitive),
|
|
112
|
+
var a, o;
|
|
113
|
+
return (o = (a = u.initProps) == null ? void 0 : a.customApiOptions) == null ? void 0 : o.orgTable;
|
|
114
|
+
}), $ = _(() => u.isSelectedSensitive), N = i(!1), d = i([]), p = i(""), E = i(""), v = i(""), U = i([]), b = i([]), O = i(20), f = i(1), x = i(0);
|
|
115
115
|
pe(() => {
|
|
116
|
-
W(),
|
|
116
|
+
W(), A();
|
|
117
117
|
});
|
|
118
|
-
const
|
|
119
|
-
b.value = y.value.filter((
|
|
120
|
-
}, F = (
|
|
121
|
-
|
|
122
|
-
}, M = (
|
|
123
|
-
b.value = b.value.filter((o) => o.id !=
|
|
118
|
+
const A = () => {
|
|
119
|
+
b.value = y.value.filter((a) => a.identityType == 2);
|
|
120
|
+
}, F = (a) => {
|
|
121
|
+
a && a instanceof Array && (b.value = a.filter((o) => o.identityType == 1));
|
|
122
|
+
}, M = (a) => {
|
|
123
|
+
b.value = b.value.filter((o) => o.id != a.id);
|
|
124
124
|
}, G = () => {
|
|
125
125
|
y.value = [], b.value = [];
|
|
126
|
-
}, { selectListVue: H } = ye($.value, M, G), J = (
|
|
127
|
-
var e,
|
|
128
|
-
const o = r.value &&
|
|
129
|
-
|
|
130
|
-
J(
|
|
126
|
+
}, { selectListVue: H } = ye($.value, M, G), J = (a) => {
|
|
127
|
+
var e, t;
|
|
128
|
+
const o = r.value && w.value && Array.isArray((e = w.value) == null ? void 0 : e.disabledOrgTypes) ? (t = w.value) == null ? void 0 : t.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
|
|
129
|
+
a._disabled = !a[m.value] || o.includes(a.type), !a._disabled && !p.value && (p.value = a.id), a.children && a.children.length && a.children.forEach((s) => {
|
|
130
|
+
J(s);
|
|
131
131
|
});
|
|
132
132
|
}, W = async () => {
|
|
133
133
|
var s, n;
|
|
134
|
-
|
|
135
|
-
let
|
|
134
|
+
N.value = !0;
|
|
135
|
+
let a = {};
|
|
136
136
|
if (r.value && w.value) {
|
|
137
|
-
const { params:
|
|
138
|
-
|
|
137
|
+
const { params: g = {}, query: K = {} } = w.value;
|
|
138
|
+
a = { ...g, ...K };
|
|
139
139
|
} else
|
|
140
|
-
|
|
140
|
+
a = {
|
|
141
141
|
name: "",
|
|
142
142
|
parentId: "",
|
|
143
143
|
implicit: !1
|
|
144
144
|
};
|
|
145
|
-
const o = r.value && ((s = w.value) != null && s.api) ? (n = w.value) == null ? void 0 : n.api : Ce, [e,
|
|
145
|
+
const o = r.value && ((s = w.value) != null && s.api) ? (n = w.value) == null ? void 0 : n.api : Ce, [e, t] = await o(a).run();
|
|
146
146
|
if (e) {
|
|
147
|
-
|
|
147
|
+
N.value = !1;
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
J(
|
|
152
|
-
}), d.value =
|
|
150
|
+
t && t.length && t.forEach((g) => {
|
|
151
|
+
J(g);
|
|
152
|
+
}), d.value = t, I();
|
|
153
153
|
}, k = async () => {
|
|
154
154
|
var s, n;
|
|
155
155
|
if (!p.value) {
|
|
156
|
-
|
|
156
|
+
N.value = !1, U.value = [], x.value = 0;
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
let
|
|
159
|
+
N.value = !0;
|
|
160
|
+
let a = {};
|
|
161
161
|
if (r.value && C.value) {
|
|
162
|
-
const { params:
|
|
163
|
-
|
|
162
|
+
const { params: g = {}, query: K = {}, treeKey: q = "", searchKey: z = "" } = C.value;
|
|
163
|
+
a = { ...g, ...K }, q ? a[q] = p.value : a.parentId = p.value, z ? a[z] = v.value : a.search = v.value;
|
|
164
164
|
} else
|
|
165
|
-
|
|
165
|
+
a = {
|
|
166
166
|
parentId: p.value,
|
|
167
167
|
// 树id
|
|
168
168
|
search: v.value
|
|
169
169
|
// 名称
|
|
170
170
|
};
|
|
171
|
-
|
|
172
|
-
const o = r.value && ((s = C.value) != null && s.api) ? (n = C.value) == null ? void 0 : n.api : Qe, [e,
|
|
171
|
+
a.pageIndex = f.value, a.pageSize = O.value;
|
|
172
|
+
const o = r.value && ((s = C.value) != null && s.api) ? (n = C.value) == null ? void 0 : n.api : Qe, [e, t] = await o(a).run();
|
|
173
173
|
if (e) {
|
|
174
|
-
|
|
174
|
+
N.value = !1;
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
U.value =
|
|
177
|
+
U.value = t.data.map((g) => (g.identityType = 2, g)), x.value = Number(t.totalCount), N.value = !1;
|
|
178
178
|
}, I = () => {
|
|
179
|
-
v.value = "",
|
|
180
|
-
},
|
|
179
|
+
v.value = "", E.value = "", U.value = [], O.value = 20, f.value = 1, L();
|
|
180
|
+
}, L = () => {
|
|
181
181
|
f.value = 1, k();
|
|
182
|
-
},
|
|
183
|
-
f.value = 1,
|
|
184
|
-
}, X = (
|
|
185
|
-
f.value =
|
|
186
|
-
},
|
|
182
|
+
}, ae = (a) => {
|
|
183
|
+
f.value = 1, O.value = a, k();
|
|
184
|
+
}, X = (a) => {
|
|
185
|
+
f.value = a, k();
|
|
186
|
+
}, te = (a) => {
|
|
187
187
|
let o = [], e = [];
|
|
188
|
-
|
|
189
|
-
o.push(
|
|
190
|
-
}), U.value.forEach((
|
|
191
|
-
o.includes(
|
|
192
|
-
}), y.value = y.value.filter((
|
|
193
|
-
y.value.some((s) => s.id ===
|
|
188
|
+
a.forEach((t) => {
|
|
189
|
+
o.push(t.id);
|
|
190
|
+
}), U.value.forEach((t) => {
|
|
191
|
+
o.includes(t.id) || e.push(t.id);
|
|
192
|
+
}), y.value = y.value.filter((t) => !e.includes(t.id)), a.forEach((t) => {
|
|
193
|
+
y.value.some((s) => s.id === t.id) || y.value.push(t);
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
196
|
return ve(
|
|
@@ -206,8 +206,8 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
206
206
|
}
|
|
207
207
|
), D({
|
|
208
208
|
setSelectData: F
|
|
209
|
-
}), (
|
|
210
|
-
c(l(ge), { spinning:
|
|
209
|
+
}), (a, o) => (V(), R("div", We, [
|
|
210
|
+
c(l(ge), { spinning: N.value }, {
|
|
211
211
|
default: h(() => [
|
|
212
212
|
c(l(he), {
|
|
213
213
|
defaultSplit: { first: 223 },
|
|
@@ -228,8 +228,8 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
228
228
|
inputOptions: { placeholder: l(T)("搜索组织名称").value },
|
|
229
229
|
modelValue: p.value,
|
|
230
230
|
"onUpdate:modelValue": o[0] || (o[0] = (e) => p.value = e),
|
|
231
|
-
"filter-value":
|
|
232
|
-
"onUpdate:filterValue": o[1] || (o[1] = (e) =>
|
|
231
|
+
"filter-value": E.value,
|
|
232
|
+
"onUpdate:filterValue": o[1] || (o[1] = (e) => E.value = e),
|
|
233
233
|
"is-ellipsis": ""
|
|
234
234
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
235
235
|
])
|
|
@@ -237,7 +237,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
237
237
|
secondSlot: h(() => [
|
|
238
238
|
P("div", Ye, [
|
|
239
239
|
P("div", Ze, [
|
|
240
|
-
P("div",
|
|
240
|
+
P("div", ea, [
|
|
241
241
|
c(l(me), {
|
|
242
242
|
modelValue: v.value,
|
|
243
243
|
"onUpdate:modelValue": o[2] || (o[2] = (e) => v.value = e),
|
|
@@ -245,10 +245,10 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
245
245
|
isIconLeft: "",
|
|
246
246
|
size: "small",
|
|
247
247
|
placeholder: l(T)("搜索组织名称/组织编码").value,
|
|
248
|
-
onChange:
|
|
248
|
+
onChange: L
|
|
249
249
|
}, null, 8, ["modelValue", "placeholder"])
|
|
250
250
|
]),
|
|
251
|
-
P("div",
|
|
251
|
+
P("div", aa, [
|
|
252
252
|
c(l(be), {
|
|
253
253
|
height: "100%",
|
|
254
254
|
data: U.value,
|
|
@@ -259,10 +259,10 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
259
259
|
"onUpdate:currentPage": o[3] || (o[3] = (e) => f.value = e),
|
|
260
260
|
"selection-rows": b.value,
|
|
261
261
|
"onUpdate:selectionRows": o[4] || (o[4] = (e) => b.value = e),
|
|
262
|
-
"page-size":
|
|
263
|
-
"onUpdate:pageSize": o[5] || (o[5] = (e) =>
|
|
264
|
-
onSizeChange:
|
|
265
|
-
onSelectionChange:
|
|
262
|
+
"page-size": O.value,
|
|
263
|
+
"onUpdate:pageSize": o[5] || (o[5] = (e) => O.value = e),
|
|
264
|
+
onSizeChange: ae,
|
|
265
|
+
onSelectionChange: te,
|
|
266
266
|
onCurrentPageChange: X
|
|
267
267
|
}, {
|
|
268
268
|
default: h(() => [
|
|
@@ -284,7 +284,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
284
284
|
}, 8, ["data", "total", "current-page", "selection-rows", "page-size"])
|
|
285
285
|
])
|
|
286
286
|
]),
|
|
287
|
-
P("div",
|
|
287
|
+
P("div", ta, [
|
|
288
288
|
c(l(H))
|
|
289
289
|
])
|
|
290
290
|
])
|
|
@@ -298,18 +298,18 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
298
298
|
}, 8, ["spinning"])
|
|
299
299
|
]));
|
|
300
300
|
}
|
|
301
|
-
}),
|
|
301
|
+
}), oa = /* @__PURE__ */ ee(sa, [["__scopeId", "data-v-976f4c9d"]]), ce = i(null), na = (S, D, u) => ({
|
|
302
302
|
selectOrgRef: ce,
|
|
303
|
-
selectOrgVue: () => oe(
|
|
303
|
+
selectOrgVue: () => oe(oa, {
|
|
304
304
|
projectId: S,
|
|
305
305
|
isSelectedSensitive: D,
|
|
306
306
|
ref: ce,
|
|
307
307
|
initProps: u
|
|
308
308
|
})
|
|
309
|
-
}),
|
|
309
|
+
}), ia = { class: "select-user-container" }, ra = { class: "split-left-content" }, ua = { class: "split-right-box" }, ca = { class: "split-table" }, da = { class: "table-searc-box" }, pa = { class: "split-checkd" }, va = {
|
|
310
310
|
name: "selectUser"
|
|
311
|
-
},
|
|
312
|
-
...
|
|
311
|
+
}, fa = /* @__PURE__ */ Z({
|
|
312
|
+
...va,
|
|
313
313
|
props: {
|
|
314
314
|
projectId: { default: "" },
|
|
315
315
|
isTableSensitive: { type: Boolean, default: !0 },
|
|
@@ -317,41 +317,41 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
317
317
|
initProps: {}
|
|
318
318
|
},
|
|
319
319
|
setup(S, { expose: D }) {
|
|
320
|
-
const u = S, r = i(),
|
|
320
|
+
const u = S, r = i(), m = _(() => {
|
|
321
321
|
var e;
|
|
322
322
|
return ((e = u.initProps) == null ? void 0 : e.isCustomApi) || !1;
|
|
323
323
|
}), w = _(() => {
|
|
324
324
|
var e;
|
|
325
325
|
return ((e = u.initProps) == null ? void 0 : e.disabledNodeLabel) || "optional";
|
|
326
326
|
}), C = _(() => {
|
|
327
|
-
var e,
|
|
328
|
-
return (
|
|
327
|
+
var e, t;
|
|
328
|
+
return (t = (e = u.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : t.orgTree;
|
|
329
329
|
}), $ = _(() => {
|
|
330
|
-
var e,
|
|
331
|
-
return (
|
|
332
|
-
}),
|
|
330
|
+
var e, t;
|
|
331
|
+
return (t = (e = u.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : t.userTable;
|
|
332
|
+
}), N = _(() => u.isTableSensitive), d = _(() => u.isSelectedSensitive), p = i(!1), E = i([]), v = i(""), U = i(""), b = i(""), O = i([]), f = i([]), x = i(20), A = i(1), F = i(0);
|
|
333
333
|
pe(() => {
|
|
334
334
|
I(), M();
|
|
335
335
|
});
|
|
336
336
|
const M = () => {
|
|
337
337
|
f.value = y.value.filter((e) => e.identityType == 1);
|
|
338
338
|
}, G = (e) => {
|
|
339
|
-
e && e instanceof Array && (f.value = e.filter((
|
|
339
|
+
e && e instanceof Array && (f.value = e.filter((t) => t.identityType == 1));
|
|
340
340
|
}, H = (e) => {
|
|
341
|
-
f.value = f.value.filter((
|
|
341
|
+
f.value = f.value.filter((t) => t.id != e.id);
|
|
342
342
|
}, J = () => {
|
|
343
343
|
y.value = [], f.value = [];
|
|
344
344
|
}, { selectListVue: W } = ye(d.value, H, J), k = (e) => {
|
|
345
|
-
var s, n
|
|
346
|
-
const
|
|
347
|
-
e._disabled = !e[w.value] ||
|
|
348
|
-
k(
|
|
345
|
+
var s, n;
|
|
346
|
+
const t = m.value && C.value && Array.isArray((s = C.value) == null ? void 0 : s.disabledOrgTypes) ? (n = C.value) == null ? void 0 : n.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
|
|
347
|
+
e._disabled = !e[w.value] || t.includes(e.type), !e._disabled && !v.value && (v.value = e.id), e.children && e.children.length && e.children.forEach((g) => {
|
|
348
|
+
k(g);
|
|
349
349
|
});
|
|
350
350
|
}, I = async () => {
|
|
351
|
-
var
|
|
351
|
+
var g, K;
|
|
352
352
|
p.value = !0;
|
|
353
353
|
let e = {};
|
|
354
|
-
if (
|
|
354
|
+
if (m.value && C.value) {
|
|
355
355
|
const { params: q = {}, query: z = {} } = C.value;
|
|
356
356
|
e = { ...q, ...z };
|
|
357
357
|
} else
|
|
@@ -360,23 +360,23 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
360
360
|
parentId: "",
|
|
361
361
|
implicit: !1
|
|
362
362
|
};
|
|
363
|
-
const
|
|
363
|
+
const t = m.value && ((g = C.value) != null && g.api) ? (K = C.value) == null ? void 0 : K.api : Ce, [s, n] = await t(e).run();
|
|
364
364
|
if (s) {
|
|
365
365
|
p.value = !1;
|
|
366
366
|
return;
|
|
367
367
|
}
|
|
368
368
|
n && n.length && n.forEach((q) => {
|
|
369
369
|
k(q);
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
372
|
-
var
|
|
370
|
+
}), E.value = n, ae();
|
|
371
|
+
}, L = async () => {
|
|
372
|
+
var g, K, q;
|
|
373
373
|
if (!v.value) {
|
|
374
|
-
p.value = !1,
|
|
374
|
+
p.value = !1, O.value = [], F.value = 0;
|
|
375
375
|
return;
|
|
376
376
|
}
|
|
377
377
|
p.value = !0;
|
|
378
378
|
let e = {};
|
|
379
|
-
if (
|
|
379
|
+
if (m.value && $.value) {
|
|
380
380
|
const { params: z = {}, query: le = {}, treeKey: ne = "", searchKey: ie = "" } = $.value;
|
|
381
381
|
e = { ...z, ...le }, ne ? e[ne] = v.value : e.id = v.value, ie ? e[ie] = b.value : e.filterValue = b.value;
|
|
382
382
|
} else
|
|
@@ -386,40 +386,40 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
386
386
|
filterValue: b.value
|
|
387
387
|
//账号或姓名
|
|
388
388
|
};
|
|
389
|
-
e.pageIndex =
|
|
390
|
-
const
|
|
389
|
+
e.pageIndex = A.value, e.pageSize = x.value, e.statusList = [1, 2];
|
|
390
|
+
const t = m.value && ((g = $.value) != null && g.api) ? (K = $.value) == null ? void 0 : K.api : Je, [s, n] = await t(e).run();
|
|
391
391
|
if (s) {
|
|
392
392
|
p.value = !1;
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
p.value = !1,
|
|
395
|
+
p.value = !1, O.value = (q = n == null ? void 0 : n.data) == null ? void 0 : q.map((z) => {
|
|
396
396
|
z.identityType = 1;
|
|
397
397
|
let le = z.status == 1 ? Y("das-user-org-dialog-user-normal") : z.status == 2 ? Y("das-user-org-dialog-user-locked") : z.status == 3 ? Y("das-user-org-dialog-user-disable") : "";
|
|
398
398
|
return z.statusName = (z == null ? void 0 : z.statusName) || le, z;
|
|
399
399
|
}), F.value = Number(n.totalCount);
|
|
400
|
-
},
|
|
401
|
-
b.value = "", U.value = "",
|
|
400
|
+
}, ae = () => {
|
|
401
|
+
b.value = "", U.value = "", O.value = [], x.value = 20, A.value = 1, X();
|
|
402
402
|
}, X = () => {
|
|
403
|
-
|
|
404
|
-
},
|
|
405
|
-
|
|
406
|
-
},
|
|
407
|
-
|
|
403
|
+
A.value = 1, L();
|
|
404
|
+
}, te = (e) => {
|
|
405
|
+
A.value = 1, x.value = e, L();
|
|
406
|
+
}, a = (e) => {
|
|
407
|
+
A.value = e, L();
|
|
408
408
|
}, o = (e) => {
|
|
409
|
-
let
|
|
409
|
+
let t = [], s = [];
|
|
410
410
|
e.forEach((n) => {
|
|
411
|
-
|
|
412
|
-
}),
|
|
413
|
-
|
|
411
|
+
t.push(n.id);
|
|
412
|
+
}), O.value.forEach((n) => {
|
|
413
|
+
t.includes(n.id) || s.push(n.id);
|
|
414
414
|
}), y.value = y.value.filter((n) => !s.includes(n.id)), e.forEach((n) => {
|
|
415
|
-
y.value.some((
|
|
415
|
+
y.value.some((g) => g.id === n.id) || y.value.push(n);
|
|
416
416
|
});
|
|
417
417
|
};
|
|
418
418
|
return ve(
|
|
419
419
|
() => v,
|
|
420
420
|
() => {
|
|
421
421
|
fe(() => {
|
|
422
|
-
|
|
422
|
+
L();
|
|
423
423
|
});
|
|
424
424
|
},
|
|
425
425
|
{
|
|
@@ -428,7 +428,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
428
428
|
}
|
|
429
429
|
), D({
|
|
430
430
|
setSelectData: G
|
|
431
|
-
}), (e,
|
|
431
|
+
}), (e, t) => (V(), R("div", ia, [
|
|
432
432
|
c(l(ge), { spinning: p.value }, {
|
|
433
433
|
default: h(() => [
|
|
434
434
|
c(l(he), {
|
|
@@ -440,29 +440,29 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
440
440
|
}
|
|
441
441
|
}, {
|
|
442
442
|
firstSlot: h(() => [
|
|
443
|
-
P("div",
|
|
443
|
+
P("div", ra, [
|
|
444
444
|
c(l(_e), {
|
|
445
445
|
ref: "organizationTree",
|
|
446
|
-
data:
|
|
446
|
+
data: E.value,
|
|
447
447
|
isFilter: "",
|
|
448
448
|
"node-key": "id",
|
|
449
449
|
props: { disabled: "_disabled" },
|
|
450
450
|
inputOptions: { placeholder: l(T)("搜索组织名称").value },
|
|
451
451
|
modelValue: v.value,
|
|
452
|
-
"onUpdate:modelValue":
|
|
452
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => v.value = s),
|
|
453
453
|
"filter-value": U.value,
|
|
454
|
-
"onUpdate:filterValue":
|
|
454
|
+
"onUpdate:filterValue": t[1] || (t[1] = (s) => U.value = s),
|
|
455
455
|
"is-ellipsis": ""
|
|
456
456
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
457
457
|
])
|
|
458
458
|
]),
|
|
459
459
|
secondSlot: h(() => [
|
|
460
|
-
P("div",
|
|
461
|
-
P("div",
|
|
462
|
-
P("div",
|
|
460
|
+
P("div", ua, [
|
|
461
|
+
P("div", ca, [
|
|
462
|
+
P("div", da, [
|
|
463
463
|
c(l(me), {
|
|
464
464
|
modelValue: b.value,
|
|
465
|
-
"onUpdate:modelValue":
|
|
465
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => b.value = s),
|
|
466
466
|
searchType: "basis",
|
|
467
467
|
isIconLeft: "",
|
|
468
468
|
size: "small",
|
|
@@ -481,19 +481,19 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
481
481
|
c(l(be), {
|
|
482
482
|
height: "100%",
|
|
483
483
|
ref: "treeTableRef",
|
|
484
|
-
data:
|
|
484
|
+
data: O.value,
|
|
485
485
|
total: F.value,
|
|
486
486
|
selection: "",
|
|
487
487
|
"pagination-props": { layout: "prev,next,sizes", small: !0 },
|
|
488
|
-
"current-page":
|
|
489
|
-
"onUpdate:currentPage":
|
|
488
|
+
"current-page": A.value,
|
|
489
|
+
"onUpdate:currentPage": t[3] || (t[3] = (s) => A.value = s),
|
|
490
490
|
"selection-rows": f.value,
|
|
491
|
-
"onUpdate:selectionRows":
|
|
491
|
+
"onUpdate:selectionRows": t[4] || (t[4] = (s) => f.value = s),
|
|
492
492
|
"page-size": x.value,
|
|
493
|
-
"onUpdate:pageSize":
|
|
494
|
-
onSizeChange:
|
|
493
|
+
"onUpdate:pageSize": t[5] || (t[5] = (s) => x.value = s),
|
|
494
|
+
onSizeChange: te,
|
|
495
495
|
onSelectionChange: o,
|
|
496
|
-
onCurrentPageChange:
|
|
496
|
+
onCurrentPageChange: a
|
|
497
497
|
}, {
|
|
498
498
|
default: h(() => [
|
|
499
499
|
c(l(j), {
|
|
@@ -504,13 +504,13 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
504
504
|
label: l(T)("账号").value,
|
|
505
505
|
prop: "userName"
|
|
506
506
|
}, null, 8, ["label"]),
|
|
507
|
-
|
|
507
|
+
N.value ? (V(), Q(l(j), {
|
|
508
508
|
key: 0,
|
|
509
509
|
label: l(T)("手机号").value,
|
|
510
510
|
prop: "sensitivePhone"
|
|
511
511
|
}, {
|
|
512
512
|
default: h(({ row: s }) => [
|
|
513
|
-
c(l(
|
|
513
|
+
c(l(Ae), {
|
|
514
514
|
placement: "top",
|
|
515
515
|
content: s.phone,
|
|
516
516
|
"append-to": r.value
|
|
@@ -519,7 +519,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
519
519
|
P(
|
|
520
520
|
"span",
|
|
521
521
|
null,
|
|
522
|
-
|
|
522
|
+
B(s.sensitivePhone),
|
|
523
523
|
1
|
|
524
524
|
/* TEXT */
|
|
525
525
|
)
|
|
@@ -548,7 +548,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
548
548
|
/* NEED_PATCH */
|
|
549
549
|
)
|
|
550
550
|
]),
|
|
551
|
-
P("div",
|
|
551
|
+
P("div", pa, [
|
|
552
552
|
c(l(W))
|
|
553
553
|
])
|
|
554
554
|
])
|
|
@@ -562,22 +562,22 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
562
562
|
}, 8, ["spinning"])
|
|
563
563
|
]));
|
|
564
564
|
}
|
|
565
|
-
}),
|
|
565
|
+
}), ma = /* @__PURE__ */ ee(fa, [["__scopeId", "data-v-38c99355"]]), de = i(null), ga = (S, D, u, r) => ({
|
|
566
566
|
selectUserRef: de,
|
|
567
|
-
selectUserVue: () => oe(
|
|
567
|
+
selectUserVue: () => oe(ma, {
|
|
568
568
|
projectId: S,
|
|
569
569
|
isTableSensitive: D,
|
|
570
570
|
isSelectedSensitive: u,
|
|
571
571
|
ref: de,
|
|
572
572
|
initProps: r
|
|
573
573
|
})
|
|
574
|
-
}),
|
|
574
|
+
}), ha = { class: "select-org-user-dialog-box" }, ba = {
|
|
575
575
|
key: 0,
|
|
576
576
|
class: "select-org-user-dialog-content"
|
|
577
|
-
},
|
|
577
|
+
}, _a = { class: "foot-btn-box" }, ya = {
|
|
578
578
|
name: "selectOrganizationAndUser"
|
|
579
|
-
},
|
|
580
|
-
...
|
|
579
|
+
}, Sa = /* @__PURE__ */ Z({
|
|
580
|
+
...ya,
|
|
581
581
|
props: {
|
|
582
582
|
header: { default: "" },
|
|
583
583
|
selectData: { default: [] },
|
|
@@ -590,13 +590,13 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
590
590
|
},
|
|
591
591
|
emits: ["update:modelValue", "selectConfirm", "selectCancel"],
|
|
592
592
|
setup(S, { expose: D, emit: u }) {
|
|
593
|
-
const r = S,
|
|
593
|
+
const r = S, m = u, w = i(!1), C = _(() => r.header || Y("添加组织/用户")), $ = _(() => r.isTableSensitive), N = _(() => r.isSelectedSensitive), d = _(() => r.singleTabKey), p = _({
|
|
594
594
|
get: () => r.modelValue,
|
|
595
|
-
set: (k) =>
|
|
596
|
-
}),
|
|
597
|
-
|
|
595
|
+
set: (k) => m("update:modelValue", k)
|
|
596
|
+
}), E = Ie().id, { selectOrgVue: v, selectOrgRef: U } = na(E, N.value, r), { selectUserVue: b, selectUserRef: O } = ga(
|
|
597
|
+
E,
|
|
598
598
|
$.value,
|
|
599
|
-
|
|
599
|
+
N.value,
|
|
600
600
|
r
|
|
601
601
|
), f = i(1), x = [
|
|
602
602
|
{
|
|
@@ -609,29 +609,29 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
609
609
|
tab: T("用户").value,
|
|
610
610
|
contentSlot: "contentSlot2"
|
|
611
611
|
}
|
|
612
|
-
],
|
|
613
|
-
|
|
612
|
+
], A = () => {
|
|
613
|
+
m("selectCancel");
|
|
614
614
|
}, F = async () => {
|
|
615
|
-
|
|
615
|
+
m("selectConfirm", y.value);
|
|
616
616
|
}, M = (k) => {
|
|
617
617
|
}, G = () => {
|
|
618
|
-
f.value = 1, w.value = !1,
|
|
618
|
+
f.value = 1, w.value = !1, m("selectCancel");
|
|
619
619
|
}, H = () => {
|
|
620
620
|
y.value = r.selectData, w.value = !0;
|
|
621
621
|
};
|
|
622
622
|
return D({
|
|
623
623
|
setUserSelectData: (k) => {
|
|
624
624
|
var I;
|
|
625
|
-
(I =
|
|
625
|
+
(I = O == null ? void 0 : O.value) == null || I.setSelectData(k);
|
|
626
626
|
},
|
|
627
627
|
setOrgSelectData: (k) => {
|
|
628
628
|
var I;
|
|
629
629
|
(I = U == null ? void 0 : U.value) == null || I.setSelectData(k);
|
|
630
630
|
}
|
|
631
|
-
}), (k, I) => (V(),
|
|
631
|
+
}), (k, I) => (V(), R("div", ha, [
|
|
632
632
|
c(l(Ve), Te({
|
|
633
633
|
modelValue: p.value,
|
|
634
|
-
"onUpdate:modelValue": I[1] || (I[1] = (
|
|
634
|
+
"onUpdate:modelValue": I[1] || (I[1] = (L) => p.value = L)
|
|
635
635
|
}, k.$attrs, {
|
|
636
636
|
customClass: "select-org-user-dialog",
|
|
637
637
|
type: "basic",
|
|
@@ -646,20 +646,20 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
646
646
|
}), {
|
|
647
647
|
header: h(() => [
|
|
648
648
|
se(
|
|
649
|
-
|
|
649
|
+
B(C.value),
|
|
650
650
|
1
|
|
651
651
|
/* TEXT */
|
|
652
652
|
)
|
|
653
653
|
]),
|
|
654
654
|
footer: h(() => [
|
|
655
|
-
P("div",
|
|
655
|
+
P("div", _a, [
|
|
656
656
|
c(l(re), {
|
|
657
657
|
size: "middle",
|
|
658
|
-
onClick:
|
|
658
|
+
onClick: A
|
|
659
659
|
}, {
|
|
660
660
|
default: h(() => [
|
|
661
661
|
se(
|
|
662
|
-
|
|
662
|
+
B(l(T)("取消").value),
|
|
663
663
|
1
|
|
664
664
|
/* TEXT */
|
|
665
665
|
)
|
|
@@ -674,7 +674,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
674
674
|
}, {
|
|
675
675
|
default: h(() => [
|
|
676
676
|
se(
|
|
677
|
-
|
|
677
|
+
B(l(T)("确定").value),
|
|
678
678
|
1
|
|
679
679
|
/* TEXT */
|
|
680
680
|
)
|
|
@@ -685,11 +685,11 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
685
685
|
])
|
|
686
686
|
]),
|
|
687
687
|
default: h(() => [
|
|
688
|
-
w.value ? (V(),
|
|
689
|
-
d.value == 1 ? (V(), Q(l(v), { key: 0 })) : d.value == 2 ? (V(), Q(l(b), { key: 1 })) : (V(), Q(l(
|
|
688
|
+
w.value ? (V(), R("div", ba, [
|
|
689
|
+
d.value == 1 ? (V(), Q(l(v), { key: 0 })) : d.value == 2 ? (V(), Q(l(b), { key: 1 })) : (V(), Q(l(Oe), {
|
|
690
690
|
key: 2,
|
|
691
691
|
activeKey: f.value,
|
|
692
|
-
"onUpdate:activeKey": I[0] || (I[0] = (
|
|
692
|
+
"onUpdate:activeKey": I[0] || (I[0] = (L) => f.value = L),
|
|
693
693
|
isStrict: "",
|
|
694
694
|
hideAdd: "",
|
|
695
695
|
options: x,
|
|
@@ -711,7 +711,7 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
711
711
|
}, 16, ["modelValue"])
|
|
712
712
|
]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), Ca = /* @__PURE__ */ ee(Sa, [["__scopeId", "data-v-139fae42"]]), ka = {
|
|
715
715
|
搜索姓名: { "zh-CN": "搜索姓名", en: "Search name", _appCode: "framework" },
|
|
716
716
|
账号: { "zh-CN": "账号", en: "Account", _appCode: "framework" },
|
|
717
717
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
@@ -735,9 +735,9 @@ const y = i([]), Ae = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
735
735
|
"das-user-org-dialog-user-locked": { "zh-CN": "锁定", en: "Locked", _appCode: "framework" },
|
|
736
736
|
"das-user-org-dialog-user-disable": { "zh-CN": "禁用", en: "Disabled", _appCode: "framework" }
|
|
737
737
|
};
|
|
738
|
-
|
|
739
|
-
const
|
|
738
|
+
Ne(ka);
|
|
739
|
+
const Ka = () => i(null), qa = we(Ca);
|
|
740
740
|
export {
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
qa as DasUserOrgDialog,
|
|
742
|
+
Ka as DasUserOrgDialogRef
|
|
743
743
|
};
|