@das-fed/ui 7.1.0-seres.30 → 7.1.0-seres.32
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/user-org-dialog/index.js +514 -431
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/src/hooks/use-user-pk-columns.d.ts +54 -0
- package/packages/business-components/user-org-dialog/style.css +1 -1
- package/packages/business-components/user-org-dialog/style.css.gz +0 -0
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/user-org-dialog/style.css';
|
|
2
|
-
import { ref as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { i18n as
|
|
5
|
-
import { DasTabs as
|
|
6
|
-
import { DasButton as
|
|
7
|
-
import { DasDialog as
|
|
8
|
-
import { getProjectInfo as
|
|
9
|
-
import { DasSearch as
|
|
10
|
-
import { DasSpin as
|
|
11
|
-
import { DasSplitPanel as
|
|
12
|
-
import { DasTable as
|
|
13
|
-
import { DasTree as
|
|
14
|
-
import { DasSelectList as
|
|
15
|
-
import { vDasTooltip as
|
|
16
|
-
import { enterpriseright as
|
|
17
|
-
import { createService as
|
|
18
|
-
import { DasTooltip as
|
|
19
|
-
const
|
|
2
|
+
import { ref as c, defineComponent as oe, computed as k, createElementBlock as L, openBlock as _, createVNode as g, unref as a, isRef as Ie, withCtx as y, withDirectives as $e, toDisplayString as x, h as pe, onMounted as _e, watch as Se, nextTick as ke, createElementVNode as V, createBlock as Y, createCommentVNode as ze, Fragment as me, renderList as Le, createTextVNode as se, mergeProps as xe } from "vue";
|
|
3
|
+
import { withInstall as Re } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { i18n as E, t as le, setI18nRule as Ke } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasTabs as Ee } from "@das-fed/ui/packages/components/tabs/index";
|
|
6
|
+
import { DasButton as ge } from "@das-fed/ui/packages/components/button/index";
|
|
7
|
+
import { DasDialog as Be } from "@das-fed/ui/packages/components/dialog/index";
|
|
8
|
+
import { getProjectInfo as Fe } from "@das-fed/utils/common-info";
|
|
9
|
+
import { DasSearch as Te } from "@das-fed/ui/packages/components/search/index";
|
|
10
|
+
import { DasSpin as Pe } from "@das-fed/ui/packages/components/spin/index";
|
|
11
|
+
import { DasSplitPanel as De } from "@das-fed/ui/packages/components/split-panel/index";
|
|
12
|
+
import { DasTable as Ne, DasTableColumn as Z } from "@das-fed/ui/packages/components/table/index";
|
|
13
|
+
import { DasTree as we } from "@das-fed/ui/packages/components/tree/index";
|
|
14
|
+
import { DasSelectList as je } from "@das-fed/ui/packages/components/select-list/index";
|
|
15
|
+
import { vDasTooltip as qe } from "@das-fed/ui/packages/components/text-tooltip/index";
|
|
16
|
+
import { enterpriseright as Je } from "@das-fed/utils/api-services/modules/enterpriseright";
|
|
17
|
+
import { createService as Ve } from "@das-fed/utils/create-api-service";
|
|
18
|
+
import { DasTooltip as He } from "@das-fed/ui/packages/components/tooltip/index";
|
|
19
|
+
const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-text" }, Ge = { key: 0 }, Qe = { key: 1 }, Xe = { key: 2 }, Ye = { key: 3 }, Ze = {
|
|
20
20
|
name: "selectList"
|
|
21
|
-
},
|
|
22
|
-
...
|
|
21
|
+
}, et = /* @__PURE__ */ oe({
|
|
22
|
+
...Ze,
|
|
23
23
|
props: {
|
|
24
24
|
isSelectedSensitive: { type: Boolean, default: !0 }
|
|
25
25
|
},
|
|
26
26
|
emits: ["itemRemove", "clearCheck"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
|
|
27
|
+
setup(s, { emit: r }) {
|
|
28
|
+
const o = s, l = k(() => o.isSelectedSensitive), h = r, v = (A) => {
|
|
29
|
+
h("itemRemove", A);
|
|
30
|
+
}, D = (A) => {
|
|
31
|
+
h("clearCheck");
|
|
32
32
|
};
|
|
33
|
-
return (
|
|
34
|
-
|
|
35
|
-
modelValue:
|
|
36
|
-
"onUpdate:modelValue":
|
|
33
|
+
return (A, b) => (_(), L("div", We, [
|
|
34
|
+
g(a(je), {
|
|
35
|
+
modelValue: a(P),
|
|
36
|
+
"onUpdate:modelValue": b[0] || (b[0] = (f) => Ie(P) ? P.value = f : null),
|
|
37
37
|
width: "100%",
|
|
38
38
|
height: "100%",
|
|
39
39
|
"custom-style": { border: "none" },
|
|
40
|
-
onItemRemove:
|
|
41
|
-
onRemoveAll:
|
|
40
|
+
onItemRemove: v,
|
|
41
|
+
onRemoveAll: D
|
|
42
42
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
default: y(({ item: f }) => [
|
|
44
|
+
$e((_(), L("div", Me, [
|
|
45
|
+
f.identityType == 2 ? (_(), L(
|
|
46
46
|
"span",
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Ge,
|
|
48
|
+
x(f.name),
|
|
49
49
|
1
|
|
50
50
|
/* TEXT */
|
|
51
|
-
)) :
|
|
51
|
+
)) : f.identityType == 1 && l.value ? (_(), L(
|
|
52
52
|
"span",
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
Qe,
|
|
54
|
+
x(f.name) + x(f.sensitivePhone ? `(${f.sensitivePhone})` : ""),
|
|
55
55
|
1
|
|
56
56
|
/* TEXT */
|
|
57
|
-
)) :
|
|
57
|
+
)) : f.identityType == 1 && !l.value ? (_(), L(
|
|
58
58
|
"span",
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Xe,
|
|
60
|
+
x(f.name) + x(f.phone ? `(${f.phone})` : ""),
|
|
61
61
|
1
|
|
62
62
|
/* TEXT */
|
|
63
|
-
)) : (
|
|
63
|
+
)) : (_(), L(
|
|
64
64
|
"span",
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
Ye,
|
|
66
|
+
x(f.name),
|
|
67
67
|
1
|
|
68
68
|
/* TEXT */
|
|
69
69
|
))
|
|
70
70
|
])), [
|
|
71
|
-
[
|
|
71
|
+
[a(qe)]
|
|
72
72
|
])
|
|
73
73
|
]),
|
|
74
74
|
_: 1
|
|
@@ -76,140 +76,140 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
76
76
|
}, 8, ["modelValue"])
|
|
77
77
|
]));
|
|
78
78
|
}
|
|
79
|
-
}),
|
|
80
|
-
const
|
|
81
|
-
for (const [
|
|
82
|
-
|
|
83
|
-
return
|
|
84
|
-
},
|
|
85
|
-
selectListRef:
|
|
86
|
-
selectListVue: () =>
|
|
87
|
-
isSelectedSensitive:
|
|
88
|
-
onItemRemove:
|
|
89
|
-
onClearCheck:
|
|
90
|
-
ref:
|
|
79
|
+
}), ne = (s, r) => {
|
|
80
|
+
const o = s.__vccOpts || s;
|
|
81
|
+
for (const [l, h] of r)
|
|
82
|
+
o[l] = h;
|
|
83
|
+
return o;
|
|
84
|
+
}, tt = /* @__PURE__ */ ne(et, [["__scopeId", "data-v-5b1d2b02"]]), he = c(null), Oe = (s, r, o) => ({
|
|
85
|
+
selectListRef: he,
|
|
86
|
+
selectListVue: () => pe(tt, {
|
|
87
|
+
isSelectedSensitive: s,
|
|
88
|
+
onItemRemove: r,
|
|
89
|
+
onClearCheck: o,
|
|
90
|
+
ref: he
|
|
91
91
|
})
|
|
92
|
-
}),
|
|
92
|
+
}), at = "v1", st = `/api/fms/base/interface//${at}`, Ue = Ve(`${st}`), Ae = Ue.post("/organization/authtree"), lt = Je.post("/organization/user"), ot = Ue.post("/organization/organizationpage"), nt = { class: "select-org-container" }, rt = { class: "split-left-content" }, it = { class: "split-right-box" }, ut = { class: "split-table" }, ct = { class: "table-searc-box" }, dt = { class: "split-table-content" }, pt = { class: "split-checkd" }, vt = {
|
|
93
93
|
name: "selectOrg"
|
|
94
|
-
},
|
|
95
|
-
...
|
|
94
|
+
}, ft = /* @__PURE__ */ oe({
|
|
95
|
+
...vt,
|
|
96
96
|
props: {
|
|
97
97
|
projectId: { default: "" },
|
|
98
98
|
isSelectedSensitive: { type: Boolean, default: !0 },
|
|
99
99
|
initProps: {}
|
|
100
100
|
},
|
|
101
|
-
setup(
|
|
102
|
-
const
|
|
103
|
-
var
|
|
104
|
-
return ((
|
|
105
|
-
}),
|
|
106
|
-
var
|
|
107
|
-
return ((
|
|
108
|
-
}),
|
|
109
|
-
var
|
|
110
|
-
return (
|
|
111
|
-
}),
|
|
112
|
-
var
|
|
113
|
-
return (
|
|
114
|
-
}),
|
|
115
|
-
|
|
116
|
-
|
|
101
|
+
setup(s, { expose: r }) {
|
|
102
|
+
const o = s, l = k(() => {
|
|
103
|
+
var t;
|
|
104
|
+
return ((t = o.initProps) == null ? void 0 : t.isCustomApi) || !1;
|
|
105
|
+
}), h = k(() => {
|
|
106
|
+
var t;
|
|
107
|
+
return ((t = o.initProps) == null ? void 0 : t.disabledNodeLabel) || "optional";
|
|
108
|
+
}), v = k(() => {
|
|
109
|
+
var t, i;
|
|
110
|
+
return (i = (t = o.initProps) == null ? void 0 : t.customApiOptions) == null ? void 0 : i.orgTree;
|
|
111
|
+
}), D = k(() => {
|
|
112
|
+
var t, i;
|
|
113
|
+
return (i = (t = o.initProps) == null ? void 0 : t.customApiOptions) == null ? void 0 : i.orgTable;
|
|
114
|
+
}), A = k(() => o.isSelectedSensitive), b = c(!1), f = c([]), S = c(""), W = c(""), z = c(""), N = c([]), I = c([]), R = c(20), C = c(1), M = c(0);
|
|
115
|
+
_e(() => {
|
|
116
|
+
F(), O();
|
|
117
117
|
});
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
}, { selectListVue:
|
|
127
|
-
var
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
J(
|
|
118
|
+
const O = () => {
|
|
119
|
+
I.value = P.value.filter((t) => t.identityType == 2);
|
|
120
|
+
}, Q = (t) => {
|
|
121
|
+
t && t instanceof Array && (I.value = t.filter((i) => i.identityType == 1));
|
|
122
|
+
}, B = (t) => {
|
|
123
|
+
I.value = I.value.filter((i) => i.id != t.id);
|
|
124
|
+
}, q = () => {
|
|
125
|
+
P.value = [], I.value = [];
|
|
126
|
+
}, { selectListVue: K } = Oe(A.value, B, q), J = (t) => {
|
|
127
|
+
var p, m;
|
|
128
|
+
const i = l.value && v.value && Array.isArray((p = v.value) == null ? void 0 : p.disabledOrgTypes) ? (m = v.value) == null ? void 0 : m.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
|
|
129
|
+
t._disabled = !t[h.value] || i.includes(t.type), !t._disabled && !S.value && (S.value = t.id), t.children && t.children.length && t.children.forEach(($) => {
|
|
130
|
+
J($);
|
|
131
131
|
});
|
|
132
|
-
},
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
let
|
|
136
|
-
if (
|
|
137
|
-
const { params:
|
|
138
|
-
|
|
132
|
+
}, F = async () => {
|
|
133
|
+
var $, X;
|
|
134
|
+
b.value = !0;
|
|
135
|
+
let t = {};
|
|
136
|
+
if (l.value && v.value) {
|
|
137
|
+
const { params: j = {}, query: te = {} } = v.value;
|
|
138
|
+
t = { ...j, ...te };
|
|
139
139
|
} else
|
|
140
|
-
|
|
140
|
+
t = {
|
|
141
141
|
name: "",
|
|
142
142
|
parentId: "",
|
|
143
143
|
implicit: !1
|
|
144
144
|
};
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
147
|
-
|
|
145
|
+
const i = l.value && (($ = v.value) != null && $.api) ? (X = v.value) == null ? void 0 : X.api : Ae, [p, m] = await i(t).run();
|
|
146
|
+
if (p) {
|
|
147
|
+
b.value = !1;
|
|
148
148
|
return;
|
|
149
149
|
}
|
|
150
|
-
|
|
151
|
-
J(
|
|
152
|
-
}),
|
|
153
|
-
},
|
|
154
|
-
var
|
|
155
|
-
if (!
|
|
156
|
-
|
|
150
|
+
m && m.length && m.forEach((j) => {
|
|
151
|
+
J(j);
|
|
152
|
+
}), f.value = m, w();
|
|
153
|
+
}, T = async () => {
|
|
154
|
+
var $, X;
|
|
155
|
+
if (!S.value) {
|
|
156
|
+
b.value = !1, N.value = [], M.value = 0;
|
|
157
157
|
return;
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
if (
|
|
162
|
-
const { params:
|
|
163
|
-
|
|
159
|
+
b.value = !0;
|
|
160
|
+
let t = {};
|
|
161
|
+
if (l.value && D.value) {
|
|
162
|
+
const { params: j = {}, query: te = {}, treeKey: e = "", searchKey: n = "" } = D.value;
|
|
163
|
+
t = { ...j, ...te }, e ? t[e] = S.value : t.parentId = S.value, n ? t[n] = z.value : t.search = z.value;
|
|
164
164
|
} else
|
|
165
|
-
|
|
166
|
-
parentId:
|
|
165
|
+
t = {
|
|
166
|
+
parentId: S.value,
|
|
167
167
|
// 树id
|
|
168
|
-
search:
|
|
168
|
+
search: z.value
|
|
169
169
|
// 名称
|
|
170
170
|
};
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
if (
|
|
174
|
-
|
|
171
|
+
t.pageIndex = C.value, t.pageSize = R.value;
|
|
172
|
+
const i = l.value && (($ = D.value) != null && $.api) ? (X = D.value) == null ? void 0 : X.api : ot, [p, m] = await i(t).run();
|
|
173
|
+
if (p) {
|
|
174
|
+
b.value = !1;
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
let
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
}),
|
|
191
|
-
|
|
192
|
-
}),
|
|
193
|
-
|
|
177
|
+
N.value = m.data.map((j) => (j.identityType = 2, j)), M.value = Number(m.totalCount), b.value = !1;
|
|
178
|
+
}, w = () => {
|
|
179
|
+
z.value = "", W.value = "", N.value = [], R.value = 20, C.value = 1, G();
|
|
180
|
+
}, G = () => {
|
|
181
|
+
C.value = 1, T();
|
|
182
|
+
}, re = (t) => {
|
|
183
|
+
C.value = 1, R.value = t, T();
|
|
184
|
+
}, ie = (t) => {
|
|
185
|
+
C.value = t, T();
|
|
186
|
+
}, ue = (t) => {
|
|
187
|
+
let i = [], p = [];
|
|
188
|
+
t.forEach((m) => {
|
|
189
|
+
i.push(m.id);
|
|
190
|
+
}), N.value.forEach((m) => {
|
|
191
|
+
i.includes(m.id) || p.push(m.id);
|
|
192
|
+
}), P.value = P.value.filter((m) => !p.includes(m.id)), t.forEach((m) => {
|
|
193
|
+
P.value.some(($) => $.id === m.id) || P.value.push(m);
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
|
-
return
|
|
197
|
-
() =>
|
|
196
|
+
return Se(
|
|
197
|
+
() => S,
|
|
198
198
|
() => {
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
ke(() => {
|
|
200
|
+
T();
|
|
201
201
|
});
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
immediate: !0,
|
|
205
205
|
deep: !0
|
|
206
206
|
}
|
|
207
|
-
),
|
|
208
|
-
setSelectData:
|
|
209
|
-
}), (
|
|
210
|
-
|
|
211
|
-
default:
|
|
212
|
-
|
|
207
|
+
), r({
|
|
208
|
+
setSelectData: Q
|
|
209
|
+
}), (t, i) => (_(), L("div", nt, [
|
|
210
|
+
g(a(Pe), { spinning: b.value }, {
|
|
211
|
+
default: y(() => [
|
|
212
|
+
g(a(De), {
|
|
213
213
|
defaultSplit: { first: 223 },
|
|
214
214
|
canFold: !0,
|
|
215
215
|
canDrag: !0,
|
|
@@ -217,65 +217,65 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
217
217
|
border: "none"
|
|
218
218
|
}
|
|
219
219
|
}, {
|
|
220
|
-
firstSlot:
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
firstSlot: y(() => [
|
|
221
|
+
V("div", rt, [
|
|
222
|
+
g(a(we), {
|
|
223
223
|
ref: "organizationTree",
|
|
224
|
-
data:
|
|
224
|
+
data: f.value,
|
|
225
225
|
isFilter: "",
|
|
226
226
|
"node-key": "id",
|
|
227
227
|
props: { disabled: "_disabled" },
|
|
228
|
-
inputOptions: { placeholder:
|
|
229
|
-
modelValue:
|
|
230
|
-
"onUpdate:modelValue":
|
|
231
|
-
"filter-value":
|
|
232
|
-
"onUpdate:filterValue":
|
|
228
|
+
inputOptions: { placeholder: a(E)("搜索组织名称").value },
|
|
229
|
+
modelValue: S.value,
|
|
230
|
+
"onUpdate:modelValue": i[0] || (i[0] = (p) => S.value = p),
|
|
231
|
+
"filter-value": W.value,
|
|
232
|
+
"onUpdate:filterValue": i[1] || (i[1] = (p) => W.value = p),
|
|
233
233
|
"is-ellipsis": ""
|
|
234
234
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
235
235
|
])
|
|
236
236
|
]),
|
|
237
|
-
secondSlot:
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
modelValue:
|
|
243
|
-
"onUpdate:modelValue":
|
|
237
|
+
secondSlot: y(() => [
|
|
238
|
+
V("div", it, [
|
|
239
|
+
V("div", ut, [
|
|
240
|
+
V("div", ct, [
|
|
241
|
+
g(a(Te), {
|
|
242
|
+
modelValue: z.value,
|
|
243
|
+
"onUpdate:modelValue": i[2] || (i[2] = (p) => z.value = p),
|
|
244
244
|
searchType: "basis",
|
|
245
245
|
isIconLeft: "",
|
|
246
246
|
size: "small",
|
|
247
|
-
placeholder:
|
|
248
|
-
onChange:
|
|
247
|
+
placeholder: a(E)("搜索组织名称/组织编码").value,
|
|
248
|
+
onChange: G
|
|
249
249
|
}, null, 8, ["modelValue", "placeholder"])
|
|
250
250
|
]),
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
V("div", dt, [
|
|
252
|
+
g(a(Ne), {
|
|
253
253
|
height: "100%",
|
|
254
|
-
data:
|
|
255
|
-
total:
|
|
254
|
+
data: N.value,
|
|
255
|
+
total: M.value,
|
|
256
256
|
selection: "",
|
|
257
257
|
"pagination-props": { layout: "prev,next,sizes", small: !0 },
|
|
258
|
-
"current-page":
|
|
259
|
-
"onUpdate:currentPage":
|
|
260
|
-
"selection-rows":
|
|
261
|
-
"onUpdate:selectionRows":
|
|
262
|
-
"page-size":
|
|
263
|
-
"onUpdate:pageSize":
|
|
264
|
-
onSizeChange:
|
|
265
|
-
onSelectionChange:
|
|
266
|
-
onCurrentPageChange:
|
|
258
|
+
"current-page": C.value,
|
|
259
|
+
"onUpdate:currentPage": i[3] || (i[3] = (p) => C.value = p),
|
|
260
|
+
"selection-rows": I.value,
|
|
261
|
+
"onUpdate:selectionRows": i[4] || (i[4] = (p) => I.value = p),
|
|
262
|
+
"page-size": R.value,
|
|
263
|
+
"onUpdate:pageSize": i[5] || (i[5] = (p) => R.value = p),
|
|
264
|
+
onSizeChange: re,
|
|
265
|
+
onSelectionChange: ue,
|
|
266
|
+
onCurrentPageChange: ie
|
|
267
267
|
}, {
|
|
268
|
-
default:
|
|
269
|
-
|
|
270
|
-
label:
|
|
268
|
+
default: y(() => [
|
|
269
|
+
g(a(Z), {
|
|
270
|
+
label: a(E)("组织名称").value,
|
|
271
271
|
prop: "name"
|
|
272
272
|
}, null, 8, ["label"]),
|
|
273
|
-
|
|
274
|
-
label:
|
|
273
|
+
g(a(Z), {
|
|
274
|
+
label: a(E)("组织编码").value,
|
|
275
275
|
prop: "code"
|
|
276
276
|
}, null, 8, ["label"]),
|
|
277
|
-
|
|
278
|
-
label:
|
|
277
|
+
g(a(Z), {
|
|
278
|
+
label: a(E)("组织路径").value,
|
|
279
279
|
prop: "pathName"
|
|
280
280
|
}, null, 8, ["label"])
|
|
281
281
|
]),
|
|
@@ -284,8 +284,8 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
284
284
|
}, 8, ["data", "total", "current-page", "selection-rows", "page-size"])
|
|
285
285
|
])
|
|
286
286
|
]),
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
V("div", pt, [
|
|
288
|
+
g(a(K))
|
|
289
289
|
])
|
|
290
290
|
])
|
|
291
291
|
]),
|
|
@@ -298,140 +298,192 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
298
298
|
}, 8, ["spinning"])
|
|
299
299
|
]));
|
|
300
300
|
}
|
|
301
|
-
}),
|
|
302
|
-
selectOrgRef:
|
|
303
|
-
selectOrgVue: () =>
|
|
304
|
-
projectId:
|
|
305
|
-
isSelectedSensitive:
|
|
306
|
-
ref:
|
|
307
|
-
initProps:
|
|
301
|
+
}), mt = /* @__PURE__ */ ne(ft, [["__scopeId", "data-v-976f4c9d"]]), be = c(null), gt = (s, r, o) => ({
|
|
302
|
+
selectOrgRef: be,
|
|
303
|
+
selectOrgVue: () => pe(mt, {
|
|
304
|
+
projectId: s,
|
|
305
|
+
isSelectedSensitive: r,
|
|
306
|
+
ref: be,
|
|
307
|
+
initProps: o
|
|
308
308
|
})
|
|
309
|
-
}),
|
|
309
|
+
}), ht = Ve("/api/system-config/v1"), bt = ht.get("/platform/user-primary-key"), yt = "搜索姓名/账号", de = (s) => s === 0 ? 0 : s == null || s === "" ? "-" : s, Ct = (s, r) => {
|
|
310
|
+
if (!s || !(r != null && r.prop)) return "-";
|
|
311
|
+
if (r.source === "param") {
|
|
312
|
+
const o = s.params;
|
|
313
|
+
return !o || typeof o != "object" ? "-" : de(o[r.prop]);
|
|
314
|
+
}
|
|
315
|
+
return de(s[r.prop]);
|
|
316
|
+
}, ye = () => [
|
|
317
|
+
{ fieldKey: "base:name", prop: "name", source: "base", label: "姓名", isPhone: !1, isJobNo: !1 },
|
|
318
|
+
{ fieldKey: "base:userName", prop: "userName", source: "base", label: "账号", isPhone: !1, isJobNo: !1 }
|
|
319
|
+
], _t = (s) => s.replace(/^(base:|param:)/, ""), St = (s) => s.startsWith("param:") ? "param" : s.startsWith("base:") ? "base" : null, kt = (s) => {
|
|
320
|
+
if (!Array.isArray(s) || s.length === 0) return null;
|
|
321
|
+
const r = [];
|
|
322
|
+
return s.forEach((o) => {
|
|
323
|
+
if (!o || typeof o != "object") return;
|
|
324
|
+
const l = o;
|
|
325
|
+
if (l.enabled === !1 || !l.fieldKey) return;
|
|
326
|
+
const h = St(l.fieldKey);
|
|
327
|
+
if (!h) return;
|
|
328
|
+
const v = _t(l.fieldKey);
|
|
329
|
+
if (!v) return;
|
|
330
|
+
const D = String(l.alias ?? "").trim();
|
|
331
|
+
r.push({
|
|
332
|
+
fieldKey: l.fieldKey,
|
|
333
|
+
prop: v,
|
|
334
|
+
source: h,
|
|
335
|
+
label: D || l.name || v,
|
|
336
|
+
isPhone: h === "base" && v === "phone",
|
|
337
|
+
isJobNo: l.name === "工号"
|
|
338
|
+
});
|
|
339
|
+
}), r.length ? r : null;
|
|
340
|
+
}, zt = (s, r) => {
|
|
341
|
+
if (r) return yt;
|
|
342
|
+
const o = ["姓名", "账号"];
|
|
343
|
+
return s.some((l) => l.isPhone) && o.push("手机号"), s.some((l) => l.isJobNo) && o.push("工号"), `搜索${o.join("/")}`;
|
|
344
|
+
}, Tt = () => {
|
|
345
|
+
const s = c(ye()), r = c(!0), o = k(() => zt(s.value, r.value));
|
|
346
|
+
return { columns: s, placeholder: o, load: async () => {
|
|
347
|
+
const [h, v] = await bt().run(), D = v && typeof v == "object" ? v.webFields : null, A = h ? null : kt(D);
|
|
348
|
+
if (!A) {
|
|
349
|
+
s.value = ye(), r.value = !0;
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
s.value = A, r.value = !1;
|
|
353
|
+
}, useFallback: r, getUserPkCellValue: Ct, formatUserPkEmpty: de };
|
|
354
|
+
}, Pt = { class: "select-user-container" }, Dt = { class: "split-left-content" }, Nt = { class: "split-right-box" }, wt = { class: "split-table" }, Vt = { class: "table-searc-box" }, Ot = { class: "split-checkd" }, Ut = {
|
|
310
355
|
name: "selectUser"
|
|
311
|
-
},
|
|
312
|
-
...
|
|
356
|
+
}, At = /* @__PURE__ */ oe({
|
|
357
|
+
...Ut,
|
|
313
358
|
props: {
|
|
314
359
|
projectId: { default: "" },
|
|
315
360
|
isTableSensitive: { type: Boolean, default: !0 },
|
|
316
361
|
isSelectedSensitive: { type: Boolean, default: !0 },
|
|
317
362
|
initProps: {}
|
|
318
363
|
},
|
|
319
|
-
setup(
|
|
320
|
-
const
|
|
364
|
+
setup(s, { expose: r }) {
|
|
365
|
+
const {
|
|
366
|
+
columns: o,
|
|
367
|
+
placeholder: l,
|
|
368
|
+
load: h,
|
|
369
|
+
useFallback: v,
|
|
370
|
+
getUserPkCellValue: D,
|
|
371
|
+
formatUserPkEmpty: A
|
|
372
|
+
} = Tt(), b = s, f = c(), S = k(() => {
|
|
321
373
|
var e;
|
|
322
|
-
return ((e =
|
|
323
|
-
}),
|
|
374
|
+
return ((e = b.initProps) == null ? void 0 : e.isCustomApi) || !1;
|
|
375
|
+
}), W = k(() => {
|
|
324
376
|
var e;
|
|
325
|
-
return ((e =
|
|
326
|
-
}),
|
|
327
|
-
var e,
|
|
328
|
-
return (
|
|
329
|
-
}),
|
|
330
|
-
var e,
|
|
331
|
-
return (
|
|
332
|
-
}),
|
|
333
|
-
|
|
334
|
-
|
|
377
|
+
return ((e = b.initProps) == null ? void 0 : e.disabledNodeLabel) || "optional";
|
|
378
|
+
}), z = k(() => {
|
|
379
|
+
var e, n;
|
|
380
|
+
return (n = (e = b.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : n.orgTree;
|
|
381
|
+
}), N = k(() => {
|
|
382
|
+
var e, n;
|
|
383
|
+
return (n = (e = b.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : n.userTable;
|
|
384
|
+
}), I = k(() => b.isTableSensitive), R = k(() => b.isSelectedSensitive), C = c(!1), M = c([]), O = c(""), Q = c(""), B = c(""), q = c([]), K = c([]), J = c(20), F = c(1), T = c(0);
|
|
385
|
+
_e(() => {
|
|
386
|
+
h(), i(), w();
|
|
335
387
|
});
|
|
336
|
-
const
|
|
337
|
-
|
|
388
|
+
const w = () => {
|
|
389
|
+
K.value = P.value.filter((e) => e.identityType == 1);
|
|
338
390
|
}, G = (e) => {
|
|
339
|
-
e && e instanceof Array && (
|
|
340
|
-
},
|
|
341
|
-
|
|
342
|
-
},
|
|
343
|
-
|
|
344
|
-
}, { selectListVue:
|
|
345
|
-
var
|
|
346
|
-
const
|
|
347
|
-
e._disabled = !e[
|
|
348
|
-
|
|
391
|
+
e && e instanceof Array && (K.value = e.filter((n) => n.identityType == 1));
|
|
392
|
+
}, re = (e) => {
|
|
393
|
+
K.value = K.value.filter((n) => n.id != e.id);
|
|
394
|
+
}, ie = () => {
|
|
395
|
+
P.value = [], K.value = [];
|
|
396
|
+
}, { selectListVue: ue } = Oe(R.value, re, ie), t = (e) => {
|
|
397
|
+
var u, d;
|
|
398
|
+
const n = S.value && z.value && Array.isArray((u = z.value) == null ? void 0 : u.disabledOrgTypes) ? (d = z.value) == null ? void 0 : d.disabledOrgTypes : [1, 2, 3, 4, 5, 6];
|
|
399
|
+
e._disabled = !e[W.value] || n.includes(e.type), !e._disabled && !O.value && (O.value = e.id), e.children && e.children.length && e.children.forEach((H) => {
|
|
400
|
+
t(H);
|
|
349
401
|
});
|
|
350
|
-
},
|
|
351
|
-
var
|
|
352
|
-
|
|
402
|
+
}, i = async () => {
|
|
403
|
+
var H, ae;
|
|
404
|
+
C.value = !0;
|
|
353
405
|
let e = {};
|
|
354
|
-
if (
|
|
355
|
-
const { params:
|
|
356
|
-
e = { ...
|
|
406
|
+
if (S.value && z.value) {
|
|
407
|
+
const { params: ee = {}, query: U = {} } = z.value;
|
|
408
|
+
e = { ...ee, ...U };
|
|
357
409
|
} else
|
|
358
410
|
e = {
|
|
359
411
|
name: "",
|
|
360
412
|
parentId: "",
|
|
361
413
|
implicit: !1
|
|
362
414
|
};
|
|
363
|
-
const
|
|
364
|
-
if (
|
|
365
|
-
|
|
415
|
+
const n = S.value && ((H = z.value) != null && H.api) ? (ae = z.value) == null ? void 0 : ae.api : Ae, [u, d] = await n(e).run();
|
|
416
|
+
if (u) {
|
|
417
|
+
C.value = !1;
|
|
366
418
|
return;
|
|
367
419
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
372
|
-
var
|
|
373
|
-
if (!
|
|
374
|
-
|
|
420
|
+
d && d.length && d.forEach((ee) => {
|
|
421
|
+
t(ee);
|
|
422
|
+
}), M.value = d, m();
|
|
423
|
+
}, p = async () => {
|
|
424
|
+
var H, ae, ee;
|
|
425
|
+
if (!O.value) {
|
|
426
|
+
C.value = !1, q.value = [], T.value = 0;
|
|
375
427
|
return;
|
|
376
428
|
}
|
|
377
|
-
|
|
429
|
+
C.value = !0;
|
|
378
430
|
let e = {};
|
|
379
|
-
if (
|
|
380
|
-
const { params:
|
|
381
|
-
e = { ...
|
|
431
|
+
if (S.value && N.value) {
|
|
432
|
+
const { params: U = {}, query: ce = {}, treeKey: ve = "", searchKey: fe = "" } = N.value;
|
|
433
|
+
e = { ...U, ...ce }, ve ? e[ve] = O.value : e.id = O.value, fe ? e[fe] = B.value : e.userPrimaryValue = B.value;
|
|
382
434
|
} else
|
|
383
435
|
e = {
|
|
384
|
-
id:
|
|
436
|
+
id: O.value,
|
|
385
437
|
//组织id
|
|
386
|
-
|
|
387
|
-
|
|
438
|
+
userPrimaryValue: B.value
|
|
439
|
+
// 主键配置统一筛选字段
|
|
388
440
|
};
|
|
389
|
-
e.pageIndex =
|
|
390
|
-
const
|
|
391
|
-
if (
|
|
392
|
-
|
|
441
|
+
e.pageIndex = F.value, e.pageSize = J.value, e.statusList = [1, 2];
|
|
442
|
+
const n = S.value && ((H = N.value) != null && H.api) ? (ae = N.value) == null ? void 0 : ae.api : lt, [u, d] = await n(e).run();
|
|
443
|
+
if (u) {
|
|
444
|
+
C.value = !1;
|
|
393
445
|
return;
|
|
394
446
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
let
|
|
398
|
-
return
|
|
399
|
-
}),
|
|
400
|
-
},
|
|
401
|
-
|
|
402
|
-
},
|
|
403
|
-
|
|
447
|
+
C.value = !1, q.value = (ee = d == null ? void 0 : d.data) == null ? void 0 : ee.map((U) => {
|
|
448
|
+
U.identityType = 1;
|
|
449
|
+
let ce = U.status == 1 ? le("das-user-org-dialog-user-normal") : U.status == 2 ? le("das-user-org-dialog-user-locked") : U.status == 3 ? le("das-user-org-dialog-user-disable") : "";
|
|
450
|
+
return U.statusName = (U == null ? void 0 : U.statusName) || ce, U;
|
|
451
|
+
}), T.value = Number(d.totalCount);
|
|
452
|
+
}, m = () => {
|
|
453
|
+
B.value = "", Q.value = "", q.value = [], J.value = 20, F.value = 1, $();
|
|
454
|
+
}, $ = () => {
|
|
455
|
+
F.value = 1, p();
|
|
456
|
+
}, X = (e) => {
|
|
457
|
+
F.value = 1, J.value = e, p();
|
|
458
|
+
}, j = (e) => {
|
|
459
|
+
F.value = e, p();
|
|
404
460
|
}, te = (e) => {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
e.forEach((
|
|
411
|
-
|
|
412
|
-
}), O.value.forEach((n) => {
|
|
413
|
-
t.includes(n.id) || s.push(n.id);
|
|
414
|
-
}), y.value = y.value.filter((n) => !s.includes(n.id)), e.forEach((n) => {
|
|
415
|
-
y.value.some((g) => g.id === n.id) || y.value.push(n);
|
|
461
|
+
let n = [], u = [];
|
|
462
|
+
e.forEach((d) => {
|
|
463
|
+
n.push(d.id);
|
|
464
|
+
}), q.value.forEach((d) => {
|
|
465
|
+
n.includes(d.id) || u.push(d.id);
|
|
466
|
+
}), P.value = P.value.filter((d) => !u.includes(d.id)), e.forEach((d) => {
|
|
467
|
+
P.value.some((H) => H.id === d.id) || P.value.push(d);
|
|
416
468
|
});
|
|
417
469
|
};
|
|
418
|
-
return
|
|
419
|
-
() =>
|
|
470
|
+
return Se(
|
|
471
|
+
() => O,
|
|
420
472
|
() => {
|
|
421
|
-
|
|
422
|
-
|
|
473
|
+
ke(() => {
|
|
474
|
+
p();
|
|
423
475
|
});
|
|
424
476
|
},
|
|
425
477
|
{
|
|
426
478
|
immediate: !0,
|
|
427
479
|
deep: !0
|
|
428
480
|
}
|
|
429
|
-
),
|
|
481
|
+
), r({
|
|
430
482
|
setSelectData: G
|
|
431
|
-
}), (e,
|
|
432
|
-
|
|
433
|
-
default:
|
|
434
|
-
|
|
483
|
+
}), (e, n) => (_(), L("div", Pt, [
|
|
484
|
+
g(a(Pe), { spinning: C.value }, {
|
|
485
|
+
default: y(() => [
|
|
486
|
+
g(a(De), {
|
|
435
487
|
defaultSplit: { first: 223 },
|
|
436
488
|
canFold: !0,
|
|
437
489
|
canDrag: !0,
|
|
@@ -439,106 +491,137 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
439
491
|
border: "none"
|
|
440
492
|
}
|
|
441
493
|
}, {
|
|
442
|
-
firstSlot:
|
|
443
|
-
|
|
444
|
-
|
|
494
|
+
firstSlot: y(() => [
|
|
495
|
+
V("div", Dt, [
|
|
496
|
+
g(a(we), {
|
|
445
497
|
ref: "organizationTree",
|
|
446
|
-
data:
|
|
498
|
+
data: M.value,
|
|
447
499
|
isFilter: "",
|
|
448
500
|
"node-key": "id",
|
|
449
501
|
props: { disabled: "_disabled" },
|
|
450
|
-
inputOptions: { placeholder:
|
|
451
|
-
modelValue:
|
|
452
|
-
"onUpdate:modelValue":
|
|
453
|
-
"filter-value":
|
|
454
|
-
"onUpdate:filterValue":
|
|
502
|
+
inputOptions: { placeholder: a(E)("搜索组织名称").value },
|
|
503
|
+
modelValue: O.value,
|
|
504
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => O.value = u),
|
|
505
|
+
"filter-value": Q.value,
|
|
506
|
+
"onUpdate:filterValue": n[1] || (n[1] = (u) => Q.value = u),
|
|
455
507
|
"is-ellipsis": ""
|
|
456
508
|
}, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
|
|
457
509
|
])
|
|
458
510
|
]),
|
|
459
|
-
secondSlot:
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
modelValue:
|
|
465
|
-
"onUpdate:modelValue":
|
|
511
|
+
secondSlot: y(() => [
|
|
512
|
+
V("div", Nt, [
|
|
513
|
+
V("div", wt, [
|
|
514
|
+
V("div", Vt, [
|
|
515
|
+
g(a(Te), {
|
|
516
|
+
modelValue: B.value,
|
|
517
|
+
"onUpdate:modelValue": n[2] || (n[2] = (u) => B.value = u),
|
|
466
518
|
searchType: "basis",
|
|
467
519
|
isIconLeft: "",
|
|
468
520
|
size: "small",
|
|
469
|
-
placeholder: l
|
|
470
|
-
onChange:
|
|
521
|
+
placeholder: a(l),
|
|
522
|
+
onChange: $
|
|
471
523
|
}, null, 8, ["modelValue", "placeholder"])
|
|
472
524
|
]),
|
|
473
|
-
|
|
525
|
+
V(
|
|
474
526
|
"div",
|
|
475
527
|
{
|
|
476
528
|
class: "split-table-content",
|
|
477
529
|
ref_key: "splitTableRef",
|
|
478
|
-
ref:
|
|
530
|
+
ref: f
|
|
479
531
|
},
|
|
480
532
|
[
|
|
481
|
-
|
|
533
|
+
g(a(Ne), {
|
|
482
534
|
height: "100%",
|
|
483
535
|
ref: "treeTableRef",
|
|
484
|
-
data:
|
|
485
|
-
total:
|
|
536
|
+
data: q.value,
|
|
537
|
+
total: T.value,
|
|
486
538
|
selection: "",
|
|
487
539
|
"pagination-props": { layout: "prev,next,sizes", small: !0 },
|
|
488
|
-
"current-page":
|
|
489
|
-
"onUpdate:currentPage":
|
|
490
|
-
"selection-rows":
|
|
491
|
-
"onUpdate:selectionRows":
|
|
492
|
-
"page-size":
|
|
493
|
-
"onUpdate:pageSize":
|
|
494
|
-
onSizeChange:
|
|
495
|
-
onSelectionChange:
|
|
496
|
-
onCurrentPageChange:
|
|
540
|
+
"current-page": F.value,
|
|
541
|
+
"onUpdate:currentPage": n[3] || (n[3] = (u) => F.value = u),
|
|
542
|
+
"selection-rows": K.value,
|
|
543
|
+
"onUpdate:selectionRows": n[4] || (n[4] = (u) => K.value = u),
|
|
544
|
+
"page-size": J.value,
|
|
545
|
+
"onUpdate:pageSize": n[5] || (n[5] = (u) => J.value = u),
|
|
546
|
+
onSizeChange: X,
|
|
547
|
+
onSelectionChange: te,
|
|
548
|
+
onCurrentPageChange: j
|
|
497
549
|
}, {
|
|
498
|
-
default:
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
550
|
+
default: y(() => [
|
|
551
|
+
(_(!0), L(
|
|
552
|
+
me,
|
|
553
|
+
null,
|
|
554
|
+
Le(a(o), (u) => (_(), L(
|
|
555
|
+
me,
|
|
556
|
+
{
|
|
557
|
+
key: u.fieldKey
|
|
558
|
+
},
|
|
559
|
+
[
|
|
560
|
+
u.isPhone && I.value ? (_(), Y(a(Z), {
|
|
561
|
+
key: 0,
|
|
562
|
+
label: u.label,
|
|
563
|
+
prop: "sensitivePhone"
|
|
564
|
+
}, {
|
|
565
|
+
default: y(({ row: d }) => [
|
|
566
|
+
g(a(He), {
|
|
567
|
+
placement: "top",
|
|
568
|
+
content: d.phone,
|
|
569
|
+
"append-to": f.value
|
|
570
|
+
}, {
|
|
571
|
+
default: y(() => [
|
|
572
|
+
V(
|
|
573
|
+
"span",
|
|
574
|
+
null,
|
|
575
|
+
x(a(A)(d.sensitivePhone)),
|
|
576
|
+
1
|
|
577
|
+
/* TEXT */
|
|
578
|
+
)
|
|
579
|
+
]),
|
|
580
|
+
_: 2
|
|
581
|
+
/* DYNAMIC */
|
|
582
|
+
}, 1032, ["content", "append-to"])
|
|
583
|
+
]),
|
|
584
|
+
_: 2
|
|
585
|
+
/* DYNAMIC */
|
|
586
|
+
}, 1032, ["label"])) : u.isPhone ? (_(), Y(a(Z), {
|
|
587
|
+
key: 1,
|
|
588
|
+
label: u.label
|
|
589
|
+
}, {
|
|
590
|
+
default: y(({ row: d }) => [
|
|
591
|
+
se(
|
|
592
|
+
x(a(D)(d, u)),
|
|
593
|
+
1
|
|
594
|
+
/* TEXT */
|
|
595
|
+
)
|
|
596
|
+
]),
|
|
597
|
+
_: 2
|
|
598
|
+
/* DYNAMIC */
|
|
599
|
+
}, 1032, ["label"])) : (_(), Y(a(Z), {
|
|
600
|
+
key: 2,
|
|
601
|
+
label: u.label
|
|
602
|
+
}, {
|
|
603
|
+
default: y(({ row: d }) => [
|
|
604
|
+
se(
|
|
605
|
+
x(a(D)(d, u)),
|
|
606
|
+
1
|
|
607
|
+
/* TEXT */
|
|
608
|
+
)
|
|
609
|
+
]),
|
|
610
|
+
_: 2
|
|
611
|
+
/* DYNAMIC */
|
|
612
|
+
}, 1032, ["label"]))
|
|
613
|
+
],
|
|
614
|
+
64
|
|
615
|
+
/* STABLE_FRAGMENT */
|
|
616
|
+
))),
|
|
617
|
+
128
|
|
618
|
+
/* KEYED_FRAGMENT */
|
|
619
|
+
)),
|
|
620
|
+
a(v) ? ze("v-if", !0) : (_(), Y(a(Z), {
|
|
508
621
|
key: 0,
|
|
509
|
-
label:
|
|
510
|
-
prop: "sensitivePhone"
|
|
511
|
-
}, {
|
|
512
|
-
default: h(({ row: s }) => [
|
|
513
|
-
c(l(Ae), {
|
|
514
|
-
placement: "top",
|
|
515
|
-
content: s.phone,
|
|
516
|
-
"append-to": r.value
|
|
517
|
-
}, {
|
|
518
|
-
default: h(() => [
|
|
519
|
-
P(
|
|
520
|
-
"span",
|
|
521
|
-
null,
|
|
522
|
-
B(s.sensitivePhone),
|
|
523
|
-
1
|
|
524
|
-
/* TEXT */
|
|
525
|
-
)
|
|
526
|
-
]),
|
|
527
|
-
_: 2
|
|
528
|
-
/* DYNAMIC */
|
|
529
|
-
}, 1032, ["content", "append-to"])
|
|
530
|
-
]),
|
|
531
|
-
_: 1
|
|
532
|
-
/* STABLE */
|
|
533
|
-
}, 8, ["label"])) : (V(), Q(l(j), {
|
|
534
|
-
key: 1,
|
|
535
|
-
label: l(T)("手机号").value,
|
|
536
|
-
prop: "phone"
|
|
537
|
-
}, null, 8, ["label"])),
|
|
538
|
-
c(l(j), {
|
|
539
|
-
label: l(T)("状态").value,
|
|
622
|
+
label: a(E)("状态").value,
|
|
540
623
|
prop: "statusName"
|
|
541
|
-
}, null, 8, ["label"])
|
|
624
|
+
}, null, 8, ["label"]))
|
|
542
625
|
]),
|
|
543
626
|
_: 1
|
|
544
627
|
/* STABLE */
|
|
@@ -548,8 +631,8 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
548
631
|
/* NEED_PATCH */
|
|
549
632
|
)
|
|
550
633
|
]),
|
|
551
|
-
|
|
552
|
-
|
|
634
|
+
V("div", Ot, [
|
|
635
|
+
g(a(ue))
|
|
553
636
|
])
|
|
554
637
|
])
|
|
555
638
|
]),
|
|
@@ -562,22 +645,22 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
562
645
|
}, 8, ["spinning"])
|
|
563
646
|
]));
|
|
564
647
|
}
|
|
565
|
-
}),
|
|
566
|
-
selectUserRef:
|
|
567
|
-
selectUserVue: () =>
|
|
568
|
-
projectId:
|
|
569
|
-
isTableSensitive:
|
|
570
|
-
isSelectedSensitive:
|
|
571
|
-
ref:
|
|
572
|
-
initProps:
|
|
648
|
+
}), It = /* @__PURE__ */ ne(At, [["__scopeId", "data-v-e600bf85"]]), Ce = c(null), $t = (s, r, o, l) => ({
|
|
649
|
+
selectUserRef: Ce,
|
|
650
|
+
selectUserVue: () => pe(It, {
|
|
651
|
+
projectId: s,
|
|
652
|
+
isTableSensitive: r,
|
|
653
|
+
isSelectedSensitive: o,
|
|
654
|
+
ref: Ce,
|
|
655
|
+
initProps: l
|
|
573
656
|
})
|
|
574
|
-
}),
|
|
657
|
+
}), Lt = { class: "select-org-user-dialog-box" }, xt = {
|
|
575
658
|
key: 0,
|
|
576
659
|
class: "select-org-user-dialog-content"
|
|
577
|
-
},
|
|
660
|
+
}, Rt = { class: "foot-btn-box" }, Kt = {
|
|
578
661
|
name: "selectOrganizationAndUser"
|
|
579
|
-
},
|
|
580
|
-
...
|
|
662
|
+
}, Et = /* @__PURE__ */ oe({
|
|
663
|
+
...Kt,
|
|
581
664
|
props: {
|
|
582
665
|
header: { default: "" },
|
|
583
666
|
selectData: { default: [] },
|
|
@@ -589,50 +672,50 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
589
672
|
singleTabKey: { default: "" }
|
|
590
673
|
},
|
|
591
674
|
emits: ["update:modelValue", "selectConfirm", "selectCancel"],
|
|
592
|
-
setup(
|
|
593
|
-
const
|
|
594
|
-
get: () =>
|
|
595
|
-
set: (
|
|
596
|
-
}),
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
),
|
|
675
|
+
setup(s, { expose: r, emit: o }) {
|
|
676
|
+
const l = s, h = o, v = c(!1), D = k(() => l.header || le("添加组织/用户")), A = k(() => l.isTableSensitive), b = k(() => l.isSelectedSensitive), f = k(() => l.singleTabKey), S = k({
|
|
677
|
+
get: () => l.modelValue,
|
|
678
|
+
set: (T) => h("update:modelValue", T)
|
|
679
|
+
}), W = Fe().id, { selectOrgVue: z, selectOrgRef: N } = gt(W, b.value, l), { selectUserVue: I, selectUserRef: R } = $t(
|
|
680
|
+
W,
|
|
681
|
+
A.value,
|
|
682
|
+
b.value,
|
|
683
|
+
l
|
|
684
|
+
), C = c(1), M = [
|
|
602
685
|
{
|
|
603
686
|
key: 1,
|
|
604
|
-
tab:
|
|
687
|
+
tab: E("组织").value,
|
|
605
688
|
contentSlot: "contentSlot1"
|
|
606
689
|
},
|
|
607
690
|
{
|
|
608
691
|
key: 2,
|
|
609
|
-
tab:
|
|
692
|
+
tab: E("用户").value,
|
|
610
693
|
contentSlot: "contentSlot2"
|
|
611
694
|
}
|
|
612
|
-
],
|
|
613
|
-
|
|
614
|
-
},
|
|
615
|
-
|
|
616
|
-
},
|
|
617
|
-
},
|
|
618
|
-
|
|
619
|
-
},
|
|
620
|
-
|
|
695
|
+
], O = () => {
|
|
696
|
+
h("selectCancel");
|
|
697
|
+
}, Q = async () => {
|
|
698
|
+
h("selectConfirm", P.value);
|
|
699
|
+
}, B = (T) => {
|
|
700
|
+
}, q = () => {
|
|
701
|
+
C.value = 1, v.value = !1, h("selectCancel");
|
|
702
|
+
}, K = () => {
|
|
703
|
+
P.value = l.selectData, v.value = !0;
|
|
621
704
|
};
|
|
622
|
-
return
|
|
623
|
-
setUserSelectData: (
|
|
624
|
-
var
|
|
625
|
-
(
|
|
705
|
+
return r({
|
|
706
|
+
setUserSelectData: (T) => {
|
|
707
|
+
var w;
|
|
708
|
+
(w = R == null ? void 0 : R.value) == null || w.setSelectData(T);
|
|
626
709
|
},
|
|
627
|
-
setOrgSelectData: (
|
|
628
|
-
var
|
|
629
|
-
(
|
|
710
|
+
setOrgSelectData: (T) => {
|
|
711
|
+
var w;
|
|
712
|
+
(w = N == null ? void 0 : N.value) == null || w.setSelectData(T);
|
|
630
713
|
}
|
|
631
|
-
}), (
|
|
632
|
-
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue":
|
|
635
|
-
},
|
|
714
|
+
}), (T, w) => (_(), L("div", Lt, [
|
|
715
|
+
g(a(Be), xe({
|
|
716
|
+
modelValue: S.value,
|
|
717
|
+
"onUpdate:modelValue": w[1] || (w[1] = (G) => S.value = G)
|
|
718
|
+
}, T.$attrs, {
|
|
636
719
|
customClass: "select-org-user-dialog",
|
|
637
720
|
type: "basic",
|
|
638
721
|
size: "small",
|
|
@@ -641,25 +724,25 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
641
724
|
bodyStyle: {
|
|
642
725
|
padding: "0"
|
|
643
726
|
},
|
|
644
|
-
onClose:
|
|
645
|
-
onOpen:
|
|
727
|
+
onClose: q,
|
|
728
|
+
onOpen: K
|
|
646
729
|
}), {
|
|
647
|
-
header:
|
|
730
|
+
header: y(() => [
|
|
648
731
|
se(
|
|
649
|
-
|
|
732
|
+
x(D.value),
|
|
650
733
|
1
|
|
651
734
|
/* TEXT */
|
|
652
735
|
)
|
|
653
736
|
]),
|
|
654
|
-
footer:
|
|
655
|
-
|
|
656
|
-
|
|
737
|
+
footer: y(() => [
|
|
738
|
+
V("div", Rt, [
|
|
739
|
+
g(a(ge), {
|
|
657
740
|
size: "middle",
|
|
658
|
-
onClick:
|
|
741
|
+
onClick: O
|
|
659
742
|
}, {
|
|
660
|
-
default:
|
|
743
|
+
default: y(() => [
|
|
661
744
|
se(
|
|
662
|
-
|
|
745
|
+
x(a(E)("取消").value),
|
|
663
746
|
1
|
|
664
747
|
/* TEXT */
|
|
665
748
|
)
|
|
@@ -667,14 +750,14 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
667
750
|
_: 1
|
|
668
751
|
/* STABLE */
|
|
669
752
|
}),
|
|
670
|
-
|
|
753
|
+
g(a(ge), {
|
|
671
754
|
btnType: "primary",
|
|
672
755
|
size: "middle",
|
|
673
|
-
onClick:
|
|
756
|
+
onClick: Q
|
|
674
757
|
}, {
|
|
675
|
-
default:
|
|
758
|
+
default: y(() => [
|
|
676
759
|
se(
|
|
677
|
-
|
|
760
|
+
x(a(E)("确定").value),
|
|
678
761
|
1
|
|
679
762
|
/* TEXT */
|
|
680
763
|
)
|
|
@@ -684,34 +767,34 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
684
767
|
})
|
|
685
768
|
])
|
|
686
769
|
]),
|
|
687
|
-
default:
|
|
688
|
-
|
|
689
|
-
|
|
770
|
+
default: y(() => [
|
|
771
|
+
v.value ? (_(), L("div", xt, [
|
|
772
|
+
f.value == 1 ? (_(), Y(a(z), { key: 0 })) : f.value == 2 ? (_(), Y(a(I), { key: 1 })) : (_(), Y(a(Ee), {
|
|
690
773
|
key: 2,
|
|
691
|
-
activeKey:
|
|
692
|
-
"onUpdate:activeKey":
|
|
774
|
+
activeKey: C.value,
|
|
775
|
+
"onUpdate:activeKey": w[0] || (w[0] = (G) => C.value = G),
|
|
693
776
|
isStrict: "",
|
|
694
777
|
hideAdd: "",
|
|
695
|
-
options:
|
|
696
|
-
onChange:
|
|
778
|
+
options: M,
|
|
779
|
+
onChange: B
|
|
697
780
|
}, {
|
|
698
|
-
contentSlot1:
|
|
699
|
-
|
|
781
|
+
contentSlot1: y(() => [
|
|
782
|
+
g(a(z))
|
|
700
783
|
]),
|
|
701
|
-
contentSlot2:
|
|
702
|
-
|
|
784
|
+
contentSlot2: y(() => [
|
|
785
|
+
g(a(I))
|
|
703
786
|
]),
|
|
704
787
|
_: 1
|
|
705
788
|
/* STABLE */
|
|
706
789
|
}, 8, ["activeKey"]))
|
|
707
|
-
])) :
|
|
790
|
+
])) : ze("v-if", !0)
|
|
708
791
|
]),
|
|
709
792
|
_: 1
|
|
710
793
|
/* STABLE */
|
|
711
794
|
}, 16, ["modelValue"])
|
|
712
795
|
]));
|
|
713
796
|
}
|
|
714
|
-
}),
|
|
797
|
+
}), Bt = /* @__PURE__ */ ne(Et, [["__scopeId", "data-v-139fae42"]]), Ft = {
|
|
715
798
|
搜索姓名: { "zh-CN": "搜索姓名", en: "Search name", _appCode: "framework" },
|
|
716
799
|
账号: { "zh-CN": "账号", en: "Account", _appCode: "framework" },
|
|
717
800
|
姓名: { "zh-CN": "姓名", en: "Name", _appCode: "framework" },
|
|
@@ -735,9 +818,9 @@ const y = i([]), Le = { class: "select-list-container" }, Re = { class: "check-t
|
|
|
735
818
|
"das-user-org-dialog-user-locked": { "zh-CN": "锁定", en: "Locked", _appCode: "framework" },
|
|
736
819
|
"das-user-org-dialog-user-disable": { "zh-CN": "禁用", en: "Disabled", _appCode: "framework" }
|
|
737
820
|
};
|
|
738
|
-
|
|
739
|
-
const
|
|
821
|
+
Ke(Ft);
|
|
822
|
+
const na = () => c(null), ra = Re(Bt);
|
|
740
823
|
export {
|
|
741
|
-
|
|
742
|
-
|
|
824
|
+
ra as DasUserOrgDialog,
|
|
825
|
+
na as DasUserOrgDialogRef
|
|
743
826
|
};
|