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