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