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