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