@das-fed/ui 6.4.0-dev.87 → 6.4.0-dev.88

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