@das-fed/ui 7.1.0-seres.33 → 7.1.0-seres.34

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