@das-fed/ui 7.1.0-seres.30 → 7.1.0-seres.32

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