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