kso-sel-org 1.0.15 → 1.0.16
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/index.js +103 -103
- package/package.json +1 -1
package/index.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".org-list-box[data-v-
|
2
|
-
import { defineComponent as
|
3
|
-
import { ElMessage as
|
4
|
-
const K = (h) => (
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".org-list-box[data-v-016ae89d]{display:flex;padding:10px;box-sizing:border-box;justify-content:space-between}.org-list-box .left-tree-box[data-v-016ae89d]{width:50%;overflow:hidden;border:1px solid #ebeef5}.org-list-box .left-tree-box .search-box[data-v-016ae89d]{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center}.org-list-box .left-tree-box .search-box label[data-v-016ae89d]{font-weight:700;color:#303133;white-space:nowrap}.org-list-box .left-tree-box .search-box .el-input[data-v-016ae89d]{width:100%;margin-left:10px}.org-list-box .right-selected-list[data-v-016ae89d]{width:48%;border:1px solid #ebeef5}.org-list-box .right-selected-list .selected-box[data-v-016ae89d]{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center;justify-content:space-between}.org-list-box .right-selected-list .selected-box span[data-v-016ae89d]{font-weight:700;color:#303133}.org-list-box .right-selected-list .selected-box .delete-btn[data-v-016ae89d]{display:inline-block;width:17px;height:17px;cursor:pointer;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAARCAYAAAA7bUf6AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADkSURBVDiN7ZOxccJAEEXfwiX2EFCCSnAHhkoM+V4NtKAZRCw6kVwCHUAHDixImPsOPJ5BMrKsGYd+4d79d/+CNTqc3SvBojv/wqB+LIrl7Sxc3FuBBPM+AYBg3s2EBNVPoTs8dTNBZmuTMmCD2V7wOmQxeEZamVme4GAAF/dFgkpm69l2ux+SvMe4MqmcwPKhKOrJyK/cpVfSuKuJsQRoYiwbd42W/EmTf8l3DGqkE4BSOhjUfXdD38Htks12uxzIRzcZQ6uJwebs/jIUktTa9E9JCEeu1zekTJD96nmzI9PpEeADOClObZiMikMAAAAASUVORK5CYII=) no-repeat;block-size:100% 100%}.org-list-box .right-selected-list .el-icon svg[data-v-016ae89d]{width:1.5em;height:1.5em}.org-list-box .tree-content-box[data-v-016ae89d]{height:420px;padding:5px 15px;overflow:auto;box-sizing:border-box}.org-list-box ul li[data-v-016ae89d]{display:flex;width:100%;padding:0 20px;margin-bottom:8px;line-height:40px;border:solid 1px #d7dde4;border-radius:4px;box-sizing:border-box;align-items:center;justify-content:space-between}.org-list-box ul .org-name[data-v-016ae89d]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.org-list-box ul .el-icon[data-v-016ae89d]{cursor:pointer}.org-list-box .org-del .img-box[data-v-016ae89d]{margin:7px 0 0;cursor:pointer}.org-list-box .flow-modal-title[data-v-016ae89d]{width:100%;height:40px;line-height:40px;color:#fff;text-indent:1em;background:#2b5fda}.selector-footer[data-v-016ae89d]{display:flex;padding:10px;border-top:solid 1px #dcdfe6;justify-content:flex-end}[data-v-016ae89d] .tree-folder-node-icon{display:inline-block;width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIvSURBVFiF7ZaxaxRBFMZ/73JFhBQWlhIDXmGRIoKFxR1OYboIFloKu7cBAyLEykpIYSFYi4W32QQFiwTyDwhOsaJgm+KKNFpdYRkkYJJncZO7SW7vdu+SgMH74Ir5bt77vn3v7czCGP87JG+DSfQtytIZajb5Q80+ll8ApdztZysOcIMJ7h4tykME7iCkI8sqFaAKgDA5vAEhtaGEo+qbWAPEGfCQ34JzRvEKKHOmobN2UbZ92sSaADBBagOJAcyaRhy0n9ZGg6s2TAXmKPHdrOqDY6wQIASoV16l2uFzMNCAeae3T1CTwIZJ9Hlh2zno2wLT0PsI7z1qG5gFQHllEp3hB09tXXrOEjeshQY2swIm1mWEDYQpR63zk5vAQ2DPmVhimi3zRqeychTFsQqYFS1zjdcoyx3ykBd2UV661aaJtYWwBVwBFrjEZ5PoPRtKy3uAKsJ1AFuX9UEGOhUwK1pmmo+e+D7wyBMHwEaSItSAHUfdQvlqGlrxskbAmvsNRLcFV1kAjiZ8F2He1uVDVpANpYlQQ/jmqBlKjDSYXQPCZY9/ZkOxgwJtKC1+M+/Fd9t5SIwSovmDmP0WKPt5gQD2ieyaVe3lI0mh2L1xMY5ik2iCtk+1rPf+NPsvRgWGhvIl/1vrHA3YujSARpG9/2gLhMjEeqez9q7azv1/Ekq173/tnJUsumtA2fP6Vs36fHKJgj4SlX4iPVB3oeG34IBPQLNQgtOh6bTGGAOAv4Uio5lixzLEAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%}[data-v-016ae89d] .tree-file-node-icon{display:inline-block;width:18px;height:18px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJxSURBVFiF7Za/a1NRFMc/5zWFCh07ZBBF6NDBoUOhFjpchw5iCwpdHARfWiEigotTl4CjiyBSi315gRa6VByiOEjoFYQ6dHToUBBbh/wBoS0YehzeTWh+vDRJ0xahXwiEc8893+89P+598D/DLOmQWdKh08TwuibP6iz97NHPnsnq7LkKMIGmUdaAAWAAZc0Emj4XASarCwiLCImqUUggLJqsLnQaT9omzmiC67xCee5MZeCJ+78ITpDwmt+8sBkp90yAyWiCa6wBlVqXAN+mZB1cP0AIDLr1dXZ50I6IEwWYtzrIFfKAqZIrd+ycfK/xC3QS4csxEZYDZuxTKXUtwISaRMkDY85URLhtfdmO8R9B2QCSzrSFMGN9KcZxxDahWdZhF6xCvo0wEUcOYH3ZRpgAKj5jKBtmWYfj9jTNgFnWm3h8rZ5E+AHcb3WSmv2hJoGPKLecqcgRU3Zeftb7NmTA1XKzSq4U2GeqXXIA60uRfaZQCs6URNg0gU7W+9ZkwHXzCtEFE2GX/nZHqh5uev4eMx0CDyvTUyPA3WRvai4YwKakeZmyOo1wFwDls03Jpxg/rTEoZeCZnZN34EpgQh3BYxyPVYQcsNPyZFl9CeRR0ihpIG8CzbTaA+wg5PBYxWPchDoCcU0YaojyCBozYN7rVTx+1WcKpcwRN+xj+VMnNsqAkLO++PVcnT9GfYw2kEcECfoY7TRc5wKU+GlotdYrAXZOtoBvTcgLbu1sBQBwwDRKQPQolVACDrnXTajGWrYB98DMu9+p0PUnWa9wKeDCBZzYhCbQ8EIFINGVfFZoXgLlA9GM9wolF/MSl2jAP+MZ1PXRPKaQAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%}[data-v-016ae89d] .el-input{height:32px}[data-v-016ae89d] .node-text-box{display:flex;align-items:center}[data-v-016ae89d] .node-text-box .el-radio{margin-right:5px}[data-v-016ae89d] .node-text-box .el-radio .el-radio__label{display:none}[data-v-016ae89d] .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f5ff}[data-v-016ae89d] .el-input__icon{color:#a8abb2}[data-v-016ae89d]::-webkit-scrollbar{width:5px}[data-v-016ae89d]::-webkit-scrollbar-thumb{background:#b7c7dd;border-radius:3px}[data-v-016ae89d]::-webkit-scrollbar-track{background:#ededed;border-radius:3px}.close[data-v-016ae89d]{position:absolute;display:none;padding:2px;cursor:pointer;border-radius:50%}.org-selector:hover .close[data-v-016ae89d]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
2
|
+
import { defineComponent as ve, mergeModels as Z, useAttrs as he, useModel as ge, inject as _e, ref as f, onMounted as me, resolveComponent as y, openBlock as g, createElementBlock as b, createElementVNode as o, createVNode as r, unref as _, isRef as j, Fragment as ee, renderList as le, toDisplayString as E, withCtx as k, renderSlot as ye, createBlock as te, createTextVNode as z, normalizeStyle as ke, createCommentVNode as xe, pushScopeId as be, popScopeId as Ce } from "vue";
|
3
|
+
import { ElMessage as oe } from "element-plus";
|
4
|
+
const K = (h) => (be("data-v-016ae89d"), h = h(), Ce(), h), Ne = {
|
5
5
|
key: 0,
|
6
6
|
class: "org-selector"
|
7
|
-
},
|
7
|
+
}, Ve = { class: "org-list-box" }, Te = { class: "left-tree-box" }, Ie = { class: "search-box" }, Se = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), Ee = { class: "tree-content-box" }, Oe = { class: "right-selected-list" }, Be = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), De = { class: "tree-content-box" }, we = ["title"], Ae = {
|
8
8
|
key: 1,
|
9
9
|
class: "org-selector"
|
10
|
-
},
|
10
|
+
}, je = { class: "org-list-box" }, Ke = { class: "left-tree-box" }, Le = { class: "search-box" }, Me = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), qe = { class: "tree-content-box" }, ze = { class: "right-selected-list" }, Fe = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), Pe = { class: "tree-content-box" }, Re = ["title"], Ue = { class: "selector-footer" }, $e = /* @__PURE__ */ ve({
|
11
11
|
__name: "index",
|
12
|
-
props: /* @__PURE__ */
|
12
|
+
props: /* @__PURE__ */ Z({
|
13
13
|
notDialog: { type: Boolean },
|
14
14
|
title: { default: "单位选择" },
|
15
15
|
modelValue: { default: "" },
|
@@ -32,16 +32,16 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
32
32
|
inputText: { type: String },
|
33
33
|
inputTextModifiers: {}
|
34
34
|
}),
|
35
|
-
emits: /* @__PURE__ */
|
35
|
+
emits: /* @__PURE__ */ Z(["onCancel", "onSelect", "update:modelValue", "onClear"], ["update:inputText"]),
|
36
36
|
setup(h, { expose: L, emit: O }) {
|
37
37
|
const n = h;
|
38
|
-
let B =
|
39
|
-
const C = O, N =
|
38
|
+
let B = he();
|
39
|
+
const C = O, N = ge(h, "inputText"), F = _e("req"), P = {
|
40
40
|
children: "childrenList",
|
41
41
|
label: "orgName"
|
42
42
|
}, i = f();
|
43
|
-
let
|
44
|
-
const T = f([]), m = f("");
|
43
|
+
let R = f(!1), p = f(!1), D = f(!1), V = f(""), v = f(""), u = f([]), w = f([]), x = f([]);
|
44
|
+
const T = f([]), m = f(""), M = f(!0);
|
45
45
|
function A() {
|
46
46
|
if (n.modelValue)
|
47
47
|
m.value = n.modelValue, x.value = m.value.split(","), T.value = x.value;
|
@@ -50,40 +50,40 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
50
50
|
const e = JSON.parse(localStorage.getItem("userInfo"));
|
51
51
|
T.value = [e.orgId], x.value = [];
|
52
52
|
}
|
53
|
-
if (p.value = !0,
|
53
|
+
if (p.value = !0, R.value && i.value) {
|
54
54
|
i.value.setCheckedKeys(x.value), u.value = i.value.getCheckedNodes();
|
55
55
|
return;
|
56
56
|
}
|
57
|
-
|
57
|
+
ae();
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function ne() {
|
60
60
|
n.bindEvent && A();
|
61
61
|
}
|
62
|
-
function
|
62
|
+
function ae() {
|
63
63
|
let e = {
|
64
64
|
pid: n.rootOrgId,
|
65
65
|
orgType: n.orgType
|
66
66
|
};
|
67
|
-
n.reqParams && (e = Object.assign(e, n.reqParams)),
|
67
|
+
n.reqParams && (e = Object.assign(e, n.reqParams)), F.post({ url: getKsoRoot("/sys/org/list-by-condition"), params: e }).then(({ data: l }) => {
|
68
68
|
n.rootOrgId && l.forEach((a) => {
|
69
69
|
a.id == n.rootOrgId && (a.pid = "");
|
70
70
|
});
|
71
|
-
let t =
|
71
|
+
let t = se(l);
|
72
72
|
T.value.length < 1 && t && t.length > 0 && t.forEach((a) => {
|
73
73
|
a.expanded = !0;
|
74
|
-
}), w.value = t, i.value.setCheckedKeys(x.value),
|
74
|
+
}), w.value = t, i.value.setCheckedKeys(x.value), R.value = !0;
|
75
75
|
});
|
76
76
|
}
|
77
|
-
function
|
77
|
+
function U() {
|
78
78
|
if (!m.value)
|
79
79
|
return;
|
80
80
|
D.value = !0;
|
81
81
|
let e = { ids: m.value };
|
82
|
-
|
83
|
-
l && l.length > 0 && (
|
82
|
+
F.post({ url: getKsoRoot("/sys/org/find-by-ids"), params: e }).then(({ data: l }) => {
|
83
|
+
l && l.length > 0 && (X(l), C("onSelect", l));
|
84
84
|
});
|
85
85
|
}
|
86
|
-
function
|
86
|
+
function se(e) {
|
87
87
|
return e.forEach((l) => {
|
88
88
|
l.name = l.orgName, x.value.length > 0 && x.value.includes(l.id) && u.value.push(l);
|
89
89
|
let t = [];
|
@@ -92,7 +92,7 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
92
92
|
}), l.childrenList = t;
|
93
93
|
}), e = e.filter((l) => l.pid == ""), e;
|
94
94
|
}
|
95
|
-
function
|
95
|
+
function $(e, { node: l, data: t }) {
|
96
96
|
t.expanded && (l.expanded = !0);
|
97
97
|
let a = "tree-file-node-icon";
|
98
98
|
l.childNodes && l.childNodes.length > 0 && (a = "tree-folder-node-icon");
|
@@ -123,41 +123,41 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
123
123
|
)
|
124
124
|
), e("span", { class: "node-text-box" }, d);
|
125
125
|
}
|
126
|
-
function
|
126
|
+
function H(e, l) {
|
127
127
|
return e ? l.name.indexOf(e) !== -1 || l.id.indexOf(e) !== -1 : !0;
|
128
128
|
}
|
129
|
-
function
|
130
|
-
i.value.filter(v.value), v.value ||
|
129
|
+
function J() {
|
130
|
+
i.value.filter(v.value), v.value || de(w.value[0].id, !1);
|
131
131
|
}
|
132
|
-
function
|
132
|
+
function de(e, l) {
|
133
133
|
var t = i.value.store.nodesMap;
|
134
134
|
for (let a in t)
|
135
135
|
e === a ? t[a].expanded = !0 : t[a].expanded = l;
|
136
136
|
}
|
137
|
-
function
|
137
|
+
function G(e) {
|
138
138
|
n.multiple || (i.value.setCheckedNodes([e]), V.value = e.id), u.value = i.value.getCheckedNodes();
|
139
139
|
}
|
140
|
-
function
|
140
|
+
function Q(e, l) {
|
141
141
|
u.value.splice(l, 1), V.value = "", i.value.setCheckedNodes(u.value);
|
142
142
|
}
|
143
|
-
function
|
143
|
+
function q() {
|
144
144
|
u.value = [], V.value = "", i.value && i.value.setCheckedNodes(u.value);
|
145
145
|
}
|
146
|
-
function de() {
|
147
|
-
p.value = !1, C("onCancel", "");
|
148
|
-
}
|
149
146
|
function ie() {
|
147
|
+
p.value = !1, M.value && C("onCancel", ""), M.value = !0;
|
148
|
+
}
|
149
|
+
function re() {
|
150
150
|
if (u.value.length == 0)
|
151
|
-
return
|
151
|
+
return oe.closeAll(), oe({
|
152
152
|
message: "请选择数据",
|
153
153
|
duration: 1e3,
|
154
154
|
type: "warning",
|
155
155
|
offset: document.documentElement.clientHeight / 3
|
156
156
|
}), !1;
|
157
|
-
let e =
|
158
|
-
|
157
|
+
let e = W(u.value);
|
158
|
+
X(e), C("onSelect", e), M.value = !1, p.value = !1;
|
159
159
|
}
|
160
|
-
function
|
160
|
+
function W(e) {
|
161
161
|
let l = [];
|
162
162
|
return e.forEach((t) => {
|
163
163
|
let a = {
|
@@ -174,7 +174,7 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
174
174
|
l.push(a);
|
175
175
|
}), l;
|
176
176
|
}
|
177
|
-
function
|
177
|
+
function X(e) {
|
178
178
|
let l = {};
|
179
179
|
Object.keys(e[0]).forEach((a) => {
|
180
180
|
l[a] = [];
|
@@ -192,7 +192,7 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
192
192
|
}
|
193
193
|
});
|
194
194
|
}
|
195
|
-
function
|
195
|
+
function Y() {
|
196
196
|
if (N.value = "", C("update:modelValue", ""), n.returnValue) {
|
197
197
|
let e = n.returnValue.split("|");
|
198
198
|
e && e.length > 0 && e.forEach((l) => {
|
@@ -200,79 +200,79 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
200
200
|
t && t.length > 1 && (B.sync[t[0]] = "");
|
201
201
|
});
|
202
202
|
}
|
203
|
-
|
203
|
+
q(), C("onClear", "");
|
204
204
|
}
|
205
|
-
|
206
|
-
m.value = n.modelValue, n.notDialog && A(), n.defaultText && !D.value &&
|
205
|
+
me(() => {
|
206
|
+
m.value = n.modelValue, n.notDialog && A(), n.defaultText && !D.value && U(), n.multiple || (V.value = m.value);
|
207
207
|
});
|
208
|
-
function
|
209
|
-
m.value = e, D.value = !1, n.defaultText && !D.value &&
|
208
|
+
function ue(e) {
|
209
|
+
m.value = e, D.value = !1, n.defaultText && !D.value && U();
|
210
210
|
}
|
211
211
|
return L({
|
212
212
|
/** 获取选中的数据 */
|
213
|
-
clear:
|
214
|
-
setValue:
|
215
|
-
getSelectData: () =>
|
213
|
+
clear: Y,
|
214
|
+
setValue: ue,
|
215
|
+
getSelectData: () => W(u.value),
|
216
216
|
openDialogEvent: A
|
217
217
|
}), (e, l) => {
|
218
|
-
const t = y("el-input"), a = y("el-tree"), d = y("CircleCloseFilled"), c = y("el-icon"), I = y("el-button"),
|
219
|
-
return e.notDialog ? (g(), b("div",
|
220
|
-
o("div",
|
221
|
-
o("div",
|
222
|
-
o("div",
|
223
|
-
|
218
|
+
const t = y("el-input"), a = y("el-tree"), d = y("CircleCloseFilled"), c = y("el-icon"), I = y("el-button"), ce = y("CircleClose"), fe = y("el-dialog");
|
219
|
+
return e.notDialog ? (g(), b("div", Ne, [
|
220
|
+
o("div", Ve, [
|
221
|
+
o("div", Te, [
|
222
|
+
o("div", Ie, [
|
223
|
+
Se,
|
224
224
|
r(t, {
|
225
225
|
modelValue: _(v),
|
226
226
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => j(v) ? v.value = s : v = s),
|
227
227
|
"suffix-icon": "Search",
|
228
|
-
onInput:
|
228
|
+
onInput: J,
|
229
229
|
placeholder: "请输入单位名称查询"
|
230
230
|
}, null, 8, ["modelValue"])
|
231
231
|
]),
|
232
|
-
o("div",
|
232
|
+
o("div", Ee, [
|
233
233
|
r(a, {
|
234
234
|
ref_key: "orgTree",
|
235
235
|
ref: i,
|
236
236
|
data: _(w),
|
237
237
|
"node-key": "id",
|
238
|
-
props:
|
238
|
+
props: P,
|
239
239
|
"expand-on-click-node": !1,
|
240
240
|
"show-checkbox": n.multiple,
|
241
241
|
"check-strictly": !0,
|
242
242
|
"highlight-current": !0,
|
243
243
|
accordion: !1,
|
244
244
|
"check-on-click-node": !0,
|
245
|
-
"filter-node-method":
|
245
|
+
"filter-node-method": H,
|
246
246
|
indent: 26,
|
247
|
-
onCheck:
|
248
|
-
"render-content":
|
247
|
+
onCheck: G,
|
248
|
+
"render-content": $,
|
249
249
|
"default-expanded-keys": _(T),
|
250
250
|
"icon-class": "el-icon-arrow-right"
|
251
251
|
}, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
|
252
252
|
])
|
253
253
|
]),
|
254
|
-
o("div",
|
254
|
+
o("div", Oe, [
|
255
255
|
o("div", { class: "selected-box" }, [
|
256
|
-
|
256
|
+
Be,
|
257
257
|
o("div", { title: "删除全部" }, [
|
258
258
|
o("i", {
|
259
|
-
onClick:
|
259
|
+
onClick: q,
|
260
260
|
class: "delete-btn"
|
261
261
|
})
|
262
262
|
])
|
263
263
|
]),
|
264
264
|
o("div", null, [
|
265
|
-
o("div",
|
265
|
+
o("div", De, [
|
266
266
|
o("ul", null, [
|
267
|
-
(g(!0), b(
|
267
|
+
(g(!0), b(ee, null, le(_(u), (s, S) => (g(), b("li", {
|
268
268
|
key: S + "s"
|
269
269
|
}, [
|
270
270
|
o("span", {
|
271
271
|
class: "org-name",
|
272
272
|
title: s.orgName + "(" + s.id + ")"
|
273
|
-
}, E(s.orgName) + "(" + E(s.id) + ") ", 9,
|
273
|
+
}, E(s.orgName) + "(" + E(s.id) + ") ", 9, we),
|
274
274
|
r(c, {
|
275
|
-
onClick: (
|
275
|
+
onClick: (pe) => Q(s, S),
|
276
276
|
title: "移除",
|
277
277
|
color: "#909399",
|
278
278
|
size: "16"
|
@@ -288,14 +288,14 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
288
288
|
])
|
289
289
|
])
|
290
290
|
])
|
291
|
-
])) : (g(), b("div",
|
291
|
+
])) : (g(), b("div", Ae, [
|
292
292
|
e.$slots.func ? (g(), b("div", {
|
293
293
|
key: 0,
|
294
294
|
class: "slot-box",
|
295
|
-
onClick:
|
295
|
+
onClick: ne
|
296
296
|
}, [
|
297
|
-
|
298
|
-
])) : (g(),
|
297
|
+
ye(e.$slots, "func", {}, void 0, !0)
|
298
|
+
])) : (g(), te(t, {
|
299
299
|
key: 1,
|
300
300
|
modelValue: N.value,
|
301
301
|
"onUpdate:modelValue": l[1] || (l[1] = (s) => N.value = s),
|
@@ -309,91 +309,91 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
309
309
|
onClick: A
|
310
310
|
}, {
|
311
311
|
default: k(() => [
|
312
|
-
|
312
|
+
z(E(e.buttonText), 1)
|
313
313
|
]),
|
314
314
|
_: 1
|
315
315
|
}, 8, ["disabled"]),
|
316
|
-
N.value && e.isClear ? (g(),
|
316
|
+
N.value && e.isClear ? (g(), te(c, {
|
317
317
|
key: 0,
|
318
318
|
class: "close",
|
319
|
-
style:
|
320
|
-
onClick:
|
319
|
+
style: ke({ right: n.buttonText.length * n.fontFize + 25 + "px" }),
|
320
|
+
onClick: Y
|
321
321
|
}, {
|
322
322
|
default: k(() => [
|
323
|
-
r(
|
323
|
+
r(ce, { color: "#868484" })
|
324
324
|
]),
|
325
325
|
_: 1
|
326
|
-
}, 8, ["style"])) :
|
326
|
+
}, 8, ["style"])) : xe("", !0)
|
327
327
|
]),
|
328
328
|
_: 1
|
329
329
|
}, 8, ["modelValue", "disabled", "readonly"])),
|
330
|
-
r(
|
330
|
+
r(fe, {
|
331
331
|
title: n.title,
|
332
332
|
modelValue: _(p),
|
333
333
|
"onUpdate:modelValue": l[4] || (l[4] = (s) => j(p) ? p.value = s : p = s),
|
334
334
|
"append-to-body": !0,
|
335
335
|
"close-on-click-modal": !1,
|
336
336
|
"close-on-press-escape": !1,
|
337
|
-
onClose:
|
337
|
+
onClose: ie,
|
338
338
|
width: 1e3
|
339
339
|
}, {
|
340
340
|
default: k(() => [
|
341
|
-
o("div",
|
342
|
-
o("div",
|
343
|
-
o("div",
|
344
|
-
|
341
|
+
o("div", je, [
|
342
|
+
o("div", Ke, [
|
343
|
+
o("div", Le, [
|
344
|
+
Me,
|
345
345
|
r(t, {
|
346
346
|
modelValue: _(v),
|
347
347
|
"onUpdate:modelValue": l[2] || (l[2] = (s) => j(v) ? v.value = s : v = s),
|
348
348
|
"suffix-icon": "Search",
|
349
|
-
onInput:
|
349
|
+
onInput: J,
|
350
350
|
placeholder: "请输入单位名称查询"
|
351
351
|
}, null, 8, ["modelValue"])
|
352
352
|
]),
|
353
|
-
o("div",
|
353
|
+
o("div", qe, [
|
354
354
|
r(a, {
|
355
355
|
ref_key: "orgTree",
|
356
356
|
ref: i,
|
357
357
|
data: _(w),
|
358
358
|
"node-key": "id",
|
359
|
-
props:
|
359
|
+
props: P,
|
360
360
|
"expand-on-click-node": !1,
|
361
361
|
"show-checkbox": n.multiple,
|
362
362
|
"check-strictly": !0,
|
363
363
|
"highlight-current": !0,
|
364
364
|
accordion: !1,
|
365
365
|
"check-on-click-node": !0,
|
366
|
-
"filter-node-method":
|
366
|
+
"filter-node-method": H,
|
367
367
|
indent: 26,
|
368
|
-
onCheck:
|
369
|
-
"render-content":
|
368
|
+
onCheck: G,
|
369
|
+
"render-content": $,
|
370
370
|
"default-expanded-keys": _(T),
|
371
371
|
"icon-class": "el-icon-arrow-right"
|
372
372
|
}, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
|
373
373
|
])
|
374
374
|
]),
|
375
|
-
o("div",
|
375
|
+
o("div", ze, [
|
376
376
|
o("div", { class: "selected-box" }, [
|
377
|
-
|
377
|
+
Fe,
|
378
378
|
o("div", { title: "删除全部" }, [
|
379
379
|
o("i", {
|
380
|
-
onClick:
|
380
|
+
onClick: q,
|
381
381
|
class: "delete-btn"
|
382
382
|
})
|
383
383
|
])
|
384
384
|
]),
|
385
385
|
o("div", null, [
|
386
|
-
o("div",
|
386
|
+
o("div", Pe, [
|
387
387
|
o("ul", null, [
|
388
|
-
(g(!0), b(
|
388
|
+
(g(!0), b(ee, null, le(_(u), (s, S) => (g(), b("li", {
|
389
389
|
key: S + "s"
|
390
390
|
}, [
|
391
391
|
o("span", {
|
392
392
|
class: "org-name",
|
393
393
|
title: s.orgName + "(" + s.id + ")"
|
394
|
-
}, E(s.orgName) + "(" + E(s.id) + ") ", 9,
|
394
|
+
}, E(s.orgName) + "(" + E(s.id) + ") ", 9, Re),
|
395
395
|
r(c, {
|
396
|
-
onClick: (
|
396
|
+
onClick: (pe) => Q(s, S),
|
397
397
|
title: "移除",
|
398
398
|
color: "#909399",
|
399
399
|
size: "16"
|
@@ -409,21 +409,21 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
409
409
|
])
|
410
410
|
])
|
411
411
|
]),
|
412
|
-
o("div",
|
412
|
+
o("div", Ue, [
|
413
413
|
r(I, {
|
414
414
|
onClick: l[3] || (l[3] = (s) => j(p) ? p.value = !1 : p = !1)
|
415
415
|
}, {
|
416
416
|
default: k(() => [
|
417
|
-
|
417
|
+
z("取消")
|
418
418
|
]),
|
419
419
|
_: 1
|
420
420
|
}),
|
421
421
|
r(I, {
|
422
422
|
type: "primary",
|
423
|
-
onClick:
|
423
|
+
onClick: re
|
424
424
|
}, {
|
425
425
|
default: k(() => [
|
426
|
-
|
426
|
+
z("确认")
|
427
427
|
]),
|
428
428
|
_: 1
|
429
429
|
})
|
@@ -435,12 +435,12 @@ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
|
|
435
435
|
};
|
436
436
|
}
|
437
437
|
});
|
438
|
-
const
|
438
|
+
const He = (h, L) => {
|
439
439
|
const O = h.__vccOpts || h;
|
440
440
|
for (const [n, B] of L)
|
441
441
|
O[n] = B;
|
442
442
|
return O;
|
443
|
-
},
|
443
|
+
}, Qe = /* @__PURE__ */ He($e, [["__scopeId", "data-v-016ae89d"]]);
|
444
444
|
export {
|
445
|
-
|
445
|
+
Qe as ksoSelOrg
|
446
446
|
};
|