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