@das-fed/ui 7.0.7-hot.67 → 7.0.7-hot.69

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