@das-fed/ui 6.4.0-test.52 → 6.4.0-test.54

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