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

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.33",
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.33",
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.33",
60
+ "@das-fed/utils": "7.1.0-seres.33",
61
+ "@das-fed/web": "7.1.0-seres.33",
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";
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 = {
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";
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 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";
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";
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 = {
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) => {
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
31
  h("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, 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),
37
37
  width: "100%",
38
38
  height: "100%",
39
39
  "custom-style": { border: "none" },
40
- onItemRemove: v,
40
+ onItemRemove: p,
41
41
  onRemoveAll: D
42
42
  }, {
43
- default: y(({ item: f }) => [
44
- $e((_(), L("div", Me, [
45
- f.identityType == 2 ? (_(), L(
43
+ default: b(({ item: v }) => [
44
+ Ae((_(), L("div", We, [
45
+ v.identityType == 2 ? (_(), L(
46
46
  "span",
47
- Ge,
48
- x(f.name),
47
+ Me,
48
+ x(v.name),
49
49
  1
50
50
  /* TEXT */
51
- )) : f.identityType == 1 && l.value ? (_(), L(
51
+ )) : v.identityType == 1 && s.value ? (_(), L(
52
52
  "span",
53
- Qe,
54
- x(f.name) + x(f.sensitivePhone ? `(${f.sensitivePhone})` : ""),
53
+ Xe,
54
+ x(v.name) + x(v.sensitivePhone ? `(${v.sensitivePhone})` : ""),
55
55
  1
56
56
  /* TEXT */
57
- )) : f.identityType == 1 && !l.value ? (_(), L(
57
+ )) : v.identityType == 1 && !s.value ? (_(), L(
58
58
  "span",
59
- Xe,
60
- x(f.name) + x(f.phone ? `(${f.phone})` : ""),
59
+ Ge,
60
+ x(v.name) + x(v.phone ? `(${v.phone})` : ""),
61
61
  1
62
62
  /* TEXT */
63
63
  )) : (_(), L(
64
64
  "span",
65
- Ye,
66
- x(f.name),
65
+ Qe,
66
+ x(v.name),
67
67
  1
68
68
  /* TEXT */
69
69
  ))
70
70
  ])), [
71
- [a(qe)]
71
+ [l(je)]
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, h] of r)
82
+ o[s] = h;
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}`, 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 = {
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 = y(() => {
103
103
  var t;
104
104
  return ((t = o.initProps) == null ? void 0 : t.isCustomApi) || !1;
105
- }), h = k(() => {
105
+ }), h = y(() => {
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 = y(() => {
109
+ var t, n;
110
+ return (n = (t = o.initProps) == null ? void 0 : t.customApiOptions) == null ? void 0 : n.orgTree;
111
+ }), D = y(() => {
112
+ var t, n;
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);
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 = k.value.filter((t) => t.identityType == 2);
120
+ }, F = (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
+ 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) => {
130
+ E(B);
131
131
  });
132
- }, F = async () => {
133
- var $, X;
134
- b.value = !0;
132
+ }, Q = async () => {
133
+ var B, G;
134
+ T.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: j = {}, query: e = {} } = p.value;
138
+ t = { ...j, ...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 : Ve, [f, m] = await n(t).run();
146
+ if (f) {
147
+ T.value = !1;
148
148
  return;
149
149
  }
150
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;
151
+ E(j);
152
+ }), v.value = m, O();
153
+ }, P = async () => {
154
+ var B, G;
155
+ if (!N.value) {
156
+ T.value = !1, R.value = [], z.value = 0;
157
157
  return;
158
158
  }
159
- b.value = !0;
159
+ T.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 && 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;
164
164
  } else
165
165
  t = {
166
- parentId: S.value,
166
+ parentId: N.value,
167
167
  // 树id
168
- search: z.value
168
+ search: U.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 = 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;
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 = 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();
180
+ }, M = () => {
181
+ V.value = 1, P();
182
182
  }, re = (t) => {
183
- C.value = 1, R.value = t, T();
183
+ V.value = 1, S.value = t, P();
184
184
  }, ie = (t) => {
185
- C.value = t, T();
186
- }, ue = (t) => {
187
- let i = [], p = [];
185
+ V.value = t, P();
186
+ }, se = (t) => {
187
+ let n = [], f = [];
188
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);
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);
194
194
  });
195
195
  };
196
- return Se(
197
- () => S,
196
+ return Ce(
197
+ () => N,
198
198
  () => {
199
- ke(() => {
200
- T();
199
+ Se(() => {
200
+ P();
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 }, {
211
- default: y(() => [
212
- g(a(De), {
208
+ setSelectData: F
209
+ }), (t, n) => (_(), L("div", ot, [
210
+ g(l(Te), { spinning: T.value }, {
211
+ default: b(() => [
212
+ g(l(ze), {
213
213
  defaultSplit: { first: 223 },
214
214
  canFold: !0,
215
215
  canDrag: !0,
@@ -217,65 +217,65 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
217
217
  border: "none"
218
218
  }
219
219
  }, {
220
- firstSlot: y(() => [
221
- V("div", rt, [
222
- g(a(we), {
220
+ firstSlot: b(() => [
221
+ A("div", nt, [
222
+ g(l(De), {
223
223
  ref: "organizationTree",
224
- data: f.value,
224
+ data: v.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: N.value,
230
+ "onUpdate:modelValue": n[0] || (n[0] = (f) => N.value = f),
231
+ "filter-value": w.value,
232
+ "onUpdate:filterValue": n[1] || (n[1] = (f) => w.value = f),
233
233
  "is-ellipsis": ""
234
234
  }, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
235
235
  ])
236
236
  ]),
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),
237
+ secondSlot: b(() => [
238
+ A("div", rt, [
239
+ A("div", it, [
240
+ A("div", ut, [
241
+ g(l(ke), {
242
+ modelValue: U.value,
243
+ "onUpdate:modelValue": n[2] || (n[2] = (f) => U.value = f),
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
+ g(l(Pe), {
253
253
  height: "100%",
254
- data: N.value,
255
- total: M.value,
254
+ data: R.value,
255
+ total: z.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": V.value,
259
+ "onUpdate:currentPage": n[3] || (n[3] = (f) => V.value = f),
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),
264
264
  onSizeChange: re,
265
- onSelectionChange: ue,
265
+ onSelectionChange: se,
266
266
  onCurrentPageChange: ie
267
267
  }, {
268
- default: y(() => [
269
- g(a(Z), {
270
- label: a(E)("组织名称").value,
268
+ default: b(() => [
269
+ g(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
+ g(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
+ g(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
+ g(l(H))
289
289
  ])
290
290
  ])
291
291
  ]),
@@ -298,180 +298,186 @@ 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 = Ne("/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);
331
+ const s = o;
332
+ if (s.enabled === !1 || !s.fieldKey) return;
333
+ const h = St(s.fieldKey);
327
334
  if (!h) return;
328
- const v = _t(l.fieldKey);
329
- if (!v) return;
330
- const D = String(l.alias ?? "").trim();
335
+ const p = Ct(s.fieldKey);
336
+ if (!p) return;
337
+ const D = String(s.alias ?? "").trim();
331
338
  r.push({
332
- fieldKey: l.fieldKey,
333
- prop: v,
339
+ fieldKey: s.fieldKey,
340
+ prop: p,
334
341
  source: h,
335
- label: D || l.name || v,
336
- isPhone: h === "base" && v === "phone",
337
- isJobNo: l.name === "工号"
342
+ label: D || s.name || p,
343
+ isPhone: h === "base" && p === "phone",
344
+ isJobNo: s.name === "工号"
338
345
  });
339
346
  }), r.length ? r : null;
340
- }, zt = (s, r) => {
341
- if (r) return yt;
347
+ }, Tt = (a, r) => {
348
+ if (r) return bt;
342
349
  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;
350
+ return a.some((s) => s.isPhone) && o.push("手机号"), a.some((s) => s.isJobNo) && o.push("工号"), `搜索${o.join("/")}`;
351
+ }, zt = () => {
352
+ const a = c(be()), r = c(!0), o = y(() => Tt(a.value, r.value));
353
+ 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) {
356
+ a.value = be(), r.value = !0;
350
357
  return;
351
358
  }
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 = {
359
+ a.value = C, r.value = !1;
360
+ }, 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 = {
355
362
  name: "selectUser"
356
363
  }, At = /* @__PURE__ */ oe({
357
- ...Ut,
364
+ ...Ot,
358
365
  props: {
359
366
  projectId: { default: "" },
360
367
  isTableSensitive: { type: Boolean, default: !0 },
361
368
  isSelectedSensitive: { type: Boolean, default: !0 },
362
369
  initProps: {}
363
370
  },
364
- setup(s, { expose: r }) {
371
+ setup(a, { expose: r }) {
365
372
  const {
366
373
  columns: o,
367
- placeholder: l,
374
+ placeholder: s,
368
375
  load: h,
369
- useFallback: v,
370
- getUserPkCellValue: D,
371
- formatUserPkEmpty: A
372
- } = Tt(), b = s, f = c(), S = k(() => {
376
+ getUserPkCellValue: p,
377
+ formatUserPkEmpty: D
378
+ } = zt(), C = a, T = c(), v = y(() => {
373
379
  var e;
374
- return ((e = b.initProps) == null ? void 0 : e.isCustomApi) || !1;
375
- }), W = k(() => {
380
+ return ((e = C.initProps) == null ? void 0 : e.isCustomApi) || !1;
381
+ }), N = y(() => {
376
382
  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);
383
+ return ((e = C.initProps) == null ? void 0 : e.disabledNodeLabel) || "optional";
384
+ }), w = y(() => {
385
+ var e, i;
386
+ return (i = (e = C.initProps) == null ? void 0 : e.customApiOptions) == null ? void 0 : i.orgTree;
387
+ }), U = y(() => {
388
+ 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);
385
391
  _e(() => {
386
- h(), i(), w();
392
+ h(), t(), P();
387
393
  });
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) => {
394
+ const P = () => {
395
+ K.value = k.value.filter((e) => e.identityType == 1);
396
+ }, O = (e) => {
397
+ e && e instanceof Array && (K.value = e.filter((i) => i.identityType == 1));
398
+ }, M = (e) => {
399
+ K.value = K.value.filter((i) => i.id != e.id);
400
+ }, re = () => {
401
+ k.value = [], K.value = [];
402
+ }, { selectListVue: ie } = we($.value, M, re), se = (e) => {
397
403
  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);
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) => {
406
+ se(W);
401
407
  });
402
- }, i = async () => {
403
- var H, ae;
404
- C.value = !0;
408
+ }, t = async () => {
409
+ var W, te;
410
+ S.value = !0;
405
411
  let e = {};
406
- if (S.value && z.value) {
407
- const { params: ee = {}, query: U = {} } = z.value;
408
- e = { ...ee, ...U };
412
+ if (v.value && w.value) {
413
+ const { params: Y = {}, query: I = {} } = w.value;
414
+ e = { ...Y, ...I };
409
415
  } else
410
416
  e = {
411
417
  name: "",
412
418
  parentId: "",
413
419
  implicit: !1
414
420
  };
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();
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();
416
422
  if (u) {
417
- C.value = !1;
423
+ S.value = !1;
418
424
  return;
419
425
  }
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;
426
+ d && d.length && d.forEach((Y) => {
427
+ se(Y);
428
+ }), V.value = d, f();
429
+ }, n = async () => {
430
+ var W, te, Y;
431
+ if (!z.value) {
432
+ S.value = !1, J.value = [], Q.value = 0;
427
433
  return;
428
434
  }
429
- C.value = !0;
435
+ S.value = !0;
430
436
  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;
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;
434
440
  } else
435
441
  e = {
436
- id: O.value,
442
+ id: z.value,
437
443
  //组织id
438
- userPrimaryValue: B.value
444
+ userPrimaryValue: F.value
439
445
  // 主键配置统一筛选字段
440
446
  };
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();
447
+ 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();
443
449
  if (u) {
444
- C.value = !1;
450
+ S.value = !1;
445
451
  return;
446
452
  }
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);
453
+ S.value = !1, J.value = (Y = d == null ? void 0 : d.data) == null ? void 0 : Y.map((I) => {
454
+ I.identityType = 1;
455
+ 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
+ return I.statusName = (I == null ? void 0 : I.statusName) || ue, I;
457
+ }), Q.value = Number(d.totalCount);
458
+ }, f = () => {
459
+ F.value = "", X.value = "", J.value = [], H.value = 20, E.value = 1, m();
452
460
  }, 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();
461
+ E.value = 1, n();
462
+ }, B = (e) => {
463
+ E.value = 1, H.value = e, n();
464
+ }, G = (e) => {
465
+ E.value = e, n();
458
466
  }, j = (e) => {
459
- F.value = e, p();
460
- }, te = (e) => {
461
- let n = [], u = [];
467
+ let i = [], u = [];
462
468
  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);
469
+ i.push(d.id);
470
+ }), J.value.forEach((d) => {
471
+ 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);
468
474
  });
469
475
  };
470
- return Se(
471
- () => O,
476
+ return Ce(
477
+ () => z,
472
478
  () => {
473
- ke(() => {
474
- p();
479
+ Se(() => {
480
+ n();
475
481
  });
476
482
  },
477
483
  {
@@ -479,11 +485,11 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
479
485
  deep: !0
480
486
  }
481
487
  ), r({
482
- setSelectData: G
483
- }), (e, n) => (_(), L("div", Pt, [
484
- g(a(Pe), { spinning: C.value }, {
485
- default: y(() => [
486
- g(a(De), {
488
+ setSelectData: O
489
+ }), (e, i) => (_(), L("div", Pt, [
490
+ g(l(Te), { spinning: S.value }, {
491
+ default: b(() => [
492
+ g(l(ze), {
487
493
  defaultSplit: { first: 223 },
488
494
  canFold: !0,
489
495
  canDrag: !0,
@@ -491,88 +497,88 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
491
497
  border: "none"
492
498
  }
493
499
  }, {
494
- firstSlot: y(() => [
495
- V("div", Dt, [
496
- g(a(we), {
500
+ firstSlot: b(() => [
501
+ A("div", Dt, [
502
+ g(l(De), {
497
503
  ref: "organizationTree",
498
- data: M.value,
504
+ data: V.value,
499
505
  isFilter: "",
500
506
  "node-key": "id",
501
507
  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),
508
+ inputOptions: { placeholder: l(q)("搜索组织名称").value },
509
+ modelValue: z.value,
510
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => z.value = u),
511
+ "filter-value": X.value,
512
+ "onUpdate:filterValue": i[1] || (i[1] = (u) => X.value = u),
507
513
  "is-ellipsis": ""
508
514
  }, null, 8, ["data", "inputOptions", "modelValue", "filter-value"])
509
515
  ])
510
516
  ]),
511
- 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),
517
+ secondSlot: b(() => [
518
+ A("div", Nt, [
519
+ 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),
518
524
  searchType: "basis",
519
525
  isIconLeft: "",
520
526
  size: "small",
521
- placeholder: a(l),
522
- onChange: $
527
+ placeholder: l(s),
528
+ onChange: m
523
529
  }, null, 8, ["modelValue", "placeholder"])
524
530
  ]),
525
- V(
531
+ A(
526
532
  "div",
527
533
  {
528
534
  class: "split-table-content",
529
535
  ref_key: "splitTableRef",
530
- ref: f
536
+ ref: T
531
537
  },
532
538
  [
533
- g(a(Ne), {
539
+ g(l(Pe), {
534
540
  height: "100%",
535
541
  ref: "treeTableRef",
536
- data: q.value,
537
- total: T.value,
542
+ data: J.value,
543
+ total: Q.value,
538
544
  selection: "",
539
545
  "pagination-props": { layout: "prev,next,sizes", small: !0 },
540
- "current-page": F.value,
541
- "onUpdate:currentPage": n[3] || (n[3] = (u) => F.value = u),
546
+ "current-page": E.value,
547
+ "onUpdate:currentPage": i[3] || (i[3] = (u) => E.value = u),
542
548
  "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
549
+ "onUpdate:selectionRows": i[4] || (i[4] = (u) => K.value = u),
550
+ "page-size": H.value,
551
+ "onUpdate:pageSize": i[5] || (i[5] = (u) => H.value = u),
552
+ onSizeChange: B,
553
+ onSelectionChange: j,
554
+ onCurrentPageChange: G
549
555
  }, {
550
- default: y(() => [
556
+ default: b(() => [
551
557
  (_(!0), L(
552
- me,
558
+ fe,
553
559
  null,
554
- Le(a(o), (u) => (_(), L(
555
- me,
560
+ Ie(l(o), (u) => (_(), L(
561
+ fe,
556
562
  {
557
563
  key: u.fieldKey
558
564
  },
559
565
  [
560
- u.isPhone && I.value ? (_(), Y(a(Z), {
566
+ u.isPhone && R.value ? (_(), Z(l(ee), {
561
567
  key: 0,
562
568
  label: u.label,
563
569
  prop: "sensitivePhone"
564
570
  }, {
565
- default: y(({ row: d }) => [
566
- g(a(He), {
571
+ default: b(({ row: d }) => [
572
+ g(l(Je), {
567
573
  placement: "top",
568
574
  content: d.phone,
569
- "append-to": f.value
575
+ "append-to": T.value
570
576
  }, {
571
- default: y(() => [
572
- V(
577
+ default: b(() => [
578
+ A(
573
579
  "span",
574
580
  null,
575
- x(a(A)(d.sensitivePhone)),
581
+ x(l(D)(d.sensitivePhone)),
576
582
  1
577
583
  /* TEXT */
578
584
  )
@@ -583,26 +589,26 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
583
589
  ]),
584
590
  _: 2
585
591
  /* DYNAMIC */
586
- }, 1032, ["label"])) : u.isPhone ? (_(), Y(a(Z), {
592
+ }, 1032, ["label"])) : u.isPhone ? (_(), Z(l(ee), {
587
593
  key: 1,
588
594
  label: u.label
589
595
  }, {
590
- default: y(({ row: d }) => [
591
- se(
592
- x(a(D)(d, u)),
596
+ default: b(({ row: d }) => [
597
+ ae(
598
+ x(l(p)(d, u)),
593
599
  1
594
600
  /* TEXT */
595
601
  )
596
602
  ]),
597
603
  _: 2
598
604
  /* DYNAMIC */
599
- }, 1032, ["label"])) : (_(), Y(a(Z), {
605
+ }, 1032, ["label"])) : (_(), Z(l(ee), {
600
606
  key: 2,
601
607
  label: u.label
602
608
  }, {
603
- default: y(({ row: d }) => [
604
- se(
605
- x(a(D)(d, u)),
609
+ default: b(({ row: d }) => [
610
+ ae(
611
+ x(l(p)(d, u)),
606
612
  1
607
613
  /* TEXT */
608
614
  )
@@ -616,12 +622,7 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
616
622
  ))),
617
623
  128
618
624
  /* 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"]))
625
+ ))
625
626
  ]),
626
627
  _: 1
627
628
  /* STABLE */
@@ -631,8 +632,8 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
631
632
  /* NEED_PATCH */
632
633
  )
633
634
  ]),
634
- V("div", Ot, [
635
- g(a(ue))
635
+ A("div", Vt, [
636
+ g(l(ie))
636
637
  ])
637
638
  ])
638
639
  ]),
@@ -645,14 +646,14 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
645
646
  }, 8, ["spinning"])
646
647
  ]));
647
648
  }
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,
649
+ }), It = /* @__PURE__ */ ne(At, [["__scopeId", "data-v-fbc75f34"]]), ye = c(null), $t = (a, r, o, s) => ({
650
+ selectUserRef: ye,
651
+ selectUserVue: () => de(It, {
652
+ projectId: a,
652
653
  isTableSensitive: r,
653
654
  isSelectedSensitive: o,
654
- ref: Ce,
655
- initProps: l
655
+ ref: ye,
656
+ initProps: s
656
657
  })
657
658
  }), Lt = { class: "select-org-user-dialog-box" }, xt = {
658
659
  key: 0,
@@ -672,50 +673,50 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
672
673
  singleTabKey: { default: "" }
673
674
  },
674
675
  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 = [
676
+ 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({
678
+ 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(
681
+ w,
682
+ C.value,
683
+ T.value,
684
+ s
685
+ ), V = c(1), z = [
685
686
  {
686
687
  key: 1,
687
- tab: E("组织").value,
688
+ tab: q("组织").value,
688
689
  contentSlot: "contentSlot1"
689
690
  },
690
691
  {
691
692
  key: 2,
692
- tab: E("用户").value,
693
+ tab: q("用户").value,
693
694
  contentSlot: "contentSlot2"
694
695
  }
695
- ], O = () => {
696
+ ], X = () => {
696
697
  h("selectCancel");
697
- }, Q = async () => {
698
- h("selectConfirm", P.value);
699
- }, B = (T) => {
700
- }, q = () => {
701
- C.value = 1, v.value = !1, h("selectCancel");
698
+ }, F = async () => {
699
+ h("selectConfirm", k.value);
700
+ }, J = (P) => {
702
701
  }, K = () => {
703
- P.value = l.selectData, v.value = !0;
702
+ V.value = 1, p.value = !1, h("selectCancel");
703
+ }, H = () => {
704
+ k.value = s.selectData, p.value = !0;
704
705
  };
705
706
  return r({
706
- setUserSelectData: (T) => {
707
- var w;
708
- (w = R == null ? void 0 : R.value) == null || w.setSelectData(T);
707
+ setUserSelectData: (P) => {
708
+ var O;
709
+ (O = S == null ? void 0 : S.value) == null || O.setSelectData(P);
709
710
  },
710
- setOrgSelectData: (T) => {
711
- var w;
712
- (w = N == null ? void 0 : N.value) == null || w.setSelectData(T);
711
+ setOrgSelectData: (P) => {
712
+ var O;
713
+ (O = R == null ? void 0 : R.value) == null || O.setSelectData(P);
713
714
  }
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, {
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, {
719
720
  customClass: "select-org-user-dialog",
720
721
  type: "basic",
721
722
  size: "small",
@@ -724,25 +725,25 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
724
725
  bodyStyle: {
725
726
  padding: "0"
726
727
  },
727
- onClose: q,
728
- onOpen: K
728
+ onClose: K,
729
+ onOpen: H
729
730
  }), {
730
- header: y(() => [
731
- se(
731
+ header: b(() => [
732
+ ae(
732
733
  x(D.value),
733
734
  1
734
735
  /* TEXT */
735
736
  )
736
737
  ]),
737
- footer: y(() => [
738
- V("div", Rt, [
739
- g(a(ge), {
738
+ footer: b(() => [
739
+ A("div", Rt, [
740
+ g(l(me), {
740
741
  size: "middle",
741
- onClick: O
742
+ onClick: X
742
743
  }, {
743
- default: y(() => [
744
- se(
745
- x(a(E)("取消").value),
744
+ default: b(() => [
745
+ ae(
746
+ x(l(q)("取消").value),
746
747
  1
747
748
  /* TEXT */
748
749
  )
@@ -750,14 +751,14 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
750
751
  _: 1
751
752
  /* STABLE */
752
753
  }),
753
- g(a(ge), {
754
+ g(l(me), {
754
755
  btnType: "primary",
755
756
  size: "middle",
756
- onClick: Q
757
+ onClick: F
757
758
  }, {
758
- default: y(() => [
759
- se(
760
- x(a(E)("确定").value),
759
+ default: b(() => [
760
+ ae(
761
+ x(l(q)("确定").value),
761
762
  1
762
763
  /* TEXT */
763
764
  )
@@ -767,27 +768,27 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
767
768
  })
768
769
  ])
769
770
  ]),
770
- 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), {
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), {
773
774
  key: 2,
774
- activeKey: C.value,
775
- "onUpdate:activeKey": w[0] || (w[0] = (G) => C.value = G),
775
+ activeKey: V.value,
776
+ "onUpdate:activeKey": O[0] || (O[0] = (M) => V.value = M),
776
777
  isStrict: "",
777
778
  hideAdd: "",
778
- options: M,
779
- onChange: B
779
+ options: z,
780
+ onChange: J
780
781
  }, {
781
- contentSlot1: y(() => [
782
- g(a(z))
782
+ contentSlot1: b(() => [
783
+ g(l(U))
783
784
  ]),
784
- contentSlot2: y(() => [
785
- g(a(I))
785
+ contentSlot2: b(() => [
786
+ g(l($))
786
787
  ]),
787
788
  _: 1
788
789
  /* STABLE */
789
790
  }, 8, ["activeKey"]))
790
- ])) : ze("v-if", !0)
791
+ ])) : Le("v-if", !0)
791
792
  ]),
792
793
  _: 1
793
794
  /* STABLE */
@@ -818,8 +819,8 @@ const P = c([]), We = { class: "select-list-container" }, Me = { class: "check-t
818
819
  "das-user-org-dialog-user-locked": { "zh-CN": "锁定", en: "Locked", _appCode: "framework" },
819
820
  "das-user-org-dialog-user-disable": { "zh-CN": "禁用", en: "Disabled", _appCode: "framework" }
820
821
  };
821
- Ke(Ft);
822
- const na = () => c(null), ra = Re(Bt);
822
+ Re(Ft);
823
+ const na = () => c(null), ra = xe(Bt);
823
824
  export {
824
825
  ra as DasUserOrgDialog,
825
826
  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}