kso-sel-org 1.0.14 → 1.0.15

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 CHANGED
@@ -1,267 +1,166 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-v-e419fb90] .org-list-box{display:flex;padding:10px;box-sizing:border-box;justify-content:space-between}[data-v-e419fb90] .org-list-box .left-tree-box{width:50%;overflow:hidden;border:1px solid #ebeef5}[data-v-e419fb90] .org-list-box .left-tree-box .search-box{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center}[data-v-e419fb90] .org-list-box .left-tree-box .search-box label{font-weight:700;color:#303133;white-space:nowrap}[data-v-e419fb90] .org-list-box .left-tree-box .search-box .el-input{width:100%;margin-left:10px}[data-v-e419fb90] .org-list-box .right-selected-list{width:48%;border:1px solid #ebeef5}[data-v-e419fb90] .org-list-box .right-selected-list .selected-box{display:flex;height:52px;padding:5px 12px;background:#f0f2f5;box-sizing:border-box;align-items:center;justify-content:space-between}[data-v-e419fb90] .org-list-box .right-selected-list .selected-box span{font-weight:700;color:#303133}[data-v-e419fb90] .org-list-box .right-selected-list .selected-box .delete-btn{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%}[data-v-e419fb90] .org-list-box .right-selected-list .el-icon svg{width:1.5em;height:1.5em}[data-v-e419fb90] .org-list-box .tree-content-box{height:420px;padding:5px 15px;overflow:auto;box-sizing:border-box}[data-v-e419fb90] .org-list-box ul li{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}[data-v-e419fb90] .org-list-box ul .org-name{width:92%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-v-e419fb90] .org-list-box ul .el-icon{cursor:pointer}[data-v-e419fb90] .org-list-box .org-del .img-box{margin:7px 0 0;cursor:pointer}[data-v-e419fb90] .org-list-box .flow-modal-title{width:100%;height:40px;line-height:40px;color:#fff;text-indent:1em;background:#2b5fda}.selector-footer[data-v-e419fb90]{display:flex;padding:10px;border-top:solid 1px #dcdfe6;justify-content:flex-end}[data-v-e419fb90] .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-e419fb90] .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-e419fb90] .el-input{height:32px}[data-v-e419fb90] .node-text-box{display:flex;align-items:center}[data-v-e419fb90] .node-text-box .el-radio{margin-right:5px}[data-v-e419fb90] .node-text-box .el-radio .el-radio__label{display:none}[data-v-e419fb90] .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f5ff}[data-v-e419fb90] .el-input__icon{color:#a8abb2}[data-v-e419fb90]::-webkit-scrollbar{width:5px}[data-v-e419fb90]::-webkit-scrollbar-thumb{background:#b7c7dd;border-radius:3px}[data-v-e419fb90]::-webkit-scrollbar-track{background:#ededed;border-radius:3px}.close[data-v-e419fb90]{position:absolute;right:55px;display:none;padding:2px;cursor:pointer;border-radius:50%}.org-selector:hover .close[data-v-e419fb90]{display:block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { defineComponent as q, useAttrs as ne, inject as P, ref as c, watch as R, onMounted as ae, resolveComponent as f, openBlock as k, createElementBlock as I, createVNode as a, unref as _, renderSlot as ue, createBlock as M, isRef as U, withCtx as m, createCommentVNode as re, createTextVNode as v, toDisplayString as de, createElementVNode as ie } from "vue";
3
- import { CircleCloseFilled as se } from "@element-plus/icons-vue";
4
- const ce = {
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".org-list-box[data-v-d7df037a]{display:flex;padding:10px;box-sizing:border-box;justify-content:space-between}.org-list-box .left-tree-box[data-v-d7df037a]{width:50%;overflow:hidden;border:1px solid #ebeef5}.org-list-box .left-tree-box .search-box[data-v-d7df037a]{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-d7df037a]{font-weight:700;color:#303133;white-space:nowrap}.org-list-box .left-tree-box .search-box .el-input[data-v-d7df037a]{width:100%;margin-left:10px}.org-list-box .right-selected-list[data-v-d7df037a]{width:48%;border:1px solid #ebeef5}.org-list-box .right-selected-list .selected-box[data-v-d7df037a]{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-d7df037a]{font-weight:700;color:#303133}.org-list-box .right-selected-list .selected-box .delete-btn[data-v-d7df037a]{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-d7df037a]{width:1.5em;height:1.5em}.org-list-box .tree-content-box[data-v-d7df037a]{height:420px;padding:5px 15px;overflow:auto;box-sizing:border-box}.org-list-box ul li[data-v-d7df037a]{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-d7df037a]{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.org-list-box ul .el-icon[data-v-d7df037a]{cursor:pointer}.org-list-box .org-del .img-box[data-v-d7df037a]{margin:7px 0 0;cursor:pointer}.org-list-box .flow-modal-title[data-v-d7df037a]{width:100%;height:40px;line-height:40px;color:#fff;text-indent:1em;background:#2b5fda}.selector-footer[data-v-d7df037a]{display:flex;padding:10px;border-top:solid 1px #dcdfe6;justify-content:flex-end}[data-v-d7df037a] .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-d7df037a] .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-d7df037a] .el-input{height:32px}[data-v-d7df037a] .node-text-box{display:flex;align-items:center}[data-v-d7df037a] .node-text-box .el-radio{margin-right:5px}[data-v-d7df037a] .node-text-box .el-radio .el-radio__label{display:none}[data-v-d7df037a] .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content{background-color:#f0f5ff}[data-v-d7df037a] .el-input__icon{color:#a8abb2}[data-v-d7df037a]::-webkit-scrollbar{width:5px}[data-v-d7df037a]::-webkit-scrollbar-thumb{background:#b7c7dd;border-radius:3px}[data-v-d7df037a]::-webkit-scrollbar-track{background:#ededed;border-radius:3px}.close[data-v-d7df037a]{position:absolute;display:none;padding:2px;cursor:pointer;border-radius:50%}.org-selector:hover .close[data-v-d7df037a]{display:block}")),document.head.appendChild(e)}}catch(d){console.error("vite-plugin-css-injected-by-js",d)}})();
2
+ import { defineComponent as pe, mergeModels as Y, useAttrs as ve, useModel as he, inject as ge, ref as f, onMounted as _e, resolveComponent as y, openBlock as g, createElementBlock as b, createElementVNode as o, createVNode as r, unref as _, isRef as j, Fragment as Z, renderList as ee, toDisplayString as E, withCtx as k, renderSlot as me, createBlock as le, createTextVNode as q, normalizeStyle as ye, createCommentVNode as ke, pushScopeId as xe, popScopeId as be } from "vue";
3
+ import { ElMessage as te } from "element-plus";
4
+ const K = (h) => (xe("data-v-d7df037a"), h = h(), be(), h), Ce = {
5
5
  key: 0,
6
6
  class: "org-selector"
7
- }, fe = {
7
+ }, Ne = { class: "org-list-box" }, Ve = { class: "left-tree-box" }, Te = { class: "search-box" }, Ie = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), Se = { class: "tree-content-box" }, Ee = { class: "right-selected-list" }, Oe = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), Be = { class: "tree-content-box" }, De = ["title"], we = {
8
8
  key: 1,
9
9
  class: "org-selector"
10
- }, pe = {
11
- class: "selector-footer"
12
- }, ve = /* @__PURE__ */ q({
10
+ }, Ae = { class: "org-list-box" }, je = { class: "left-tree-box" }, Ke = { class: "search-box" }, Le = /* @__PURE__ */ K(() => /* @__PURE__ */ o("label", null, "单位列表", -1)), Me = { class: "tree-content-box" }, qe = { class: "right-selected-list" }, ze = /* @__PURE__ */ K(() => /* @__PURE__ */ o("span", null, "已选单位", -1)), Fe = { class: "tree-content-box" }, Pe = ["title"], Re = { class: "selector-footer" }, Ue = /* @__PURE__ */ pe({
13
11
  __name: "index",
14
- props: {
15
- notDialog: {
16
- type: Boolean
17
- },
18
- modelValue: {
19
- default: ""
20
- },
21
- rootOrgId: {
22
- default: ""
23
- },
24
- orgType: {
25
- default: ""
26
- },
27
- inputText: {
28
- default: ""
29
- },
30
- returnValue: {
31
- default: ""
32
- },
33
- readonly: {
34
- type: Boolean,
35
- default: !0
36
- },
37
- isClear: {
38
- type: Boolean,
39
- default: !0
40
- },
41
- disabled: {
42
- type: Boolean,
43
- default: !1
44
- },
45
- buttonText: {
46
- default: "选择"
47
- },
48
- multiple: {
49
- type: Boolean,
50
- default: !0
51
- },
52
- bindEvent: {
53
- type: Boolean,
54
- default: !0
55
- },
56
- defaultText: {
57
- type: Boolean,
58
- default: !1
59
- },
60
- expandKeys: {
61
- default: () => []
62
- },
63
- reqParams: {
64
- default: void 0
65
- }
66
- },
67
- emits: ["onCancel", "onSelect", "update:modelValue", "onClear"],
68
- setup(C, {
69
- expose: T,
70
- emit: b
71
- }) {
72
- const o = C;
73
- let N = ne();
74
- const y = b, S = P("req"), {
75
- warningMsgBox: z
76
- } = P("msgBox"), $ = {
12
+ props: /* @__PURE__ */ Y({
13
+ notDialog: { type: Boolean },
14
+ title: { default: "单位选择" },
15
+ modelValue: { default: "" },
16
+ rootOrgId: { default: "" },
17
+ orgType: { default: "" },
18
+ inputText: { default: "" },
19
+ returnValue: { default: "" },
20
+ separator: { default: "," },
21
+ readonly: { type: Boolean, default: !0 },
22
+ isClear: { type: Boolean, default: !0 },
23
+ disabled: { type: Boolean, default: !1 },
24
+ buttonText: { default: "选择" },
25
+ multiple: { type: Boolean, default: !0 },
26
+ bindEvent: { type: Boolean, default: !0 },
27
+ defaultText: { type: Boolean, default: !1 },
28
+ expandKeys: { default: () => [] },
29
+ reqParams: { default: void 0 },
30
+ fontFize: { default: 15 }
31
+ }, {
32
+ inputText: { type: String },
33
+ inputTextModifiers: {}
34
+ }),
35
+ emits: /* @__PURE__ */ Y(["onCancel", "onSelect", "update:modelValue", "onClear"], ["update:inputText"]),
36
+ setup(h, { expose: L, emit: O }) {
37
+ const n = h;
38
+ let B = ve();
39
+ const C = O, N = he(h, "inputText"), z = ge("req"), F = {
77
40
  children: "childrenList",
78
41
  label: "orgName"
79
- }, r = c(null);
80
- let i = c(""), j = c(!1), p = c(!1), B = c(!1), g = c(""), V = c(""), d = c([]), D = c([]), h = c([]);
81
- R(() => o.modelValue, () => {
82
- g.value = o.modelValue, o.defaultText && !B.value && F();
83
- }), R(() => o.inputText, (e) => {
84
- i.value = e;
85
- });
86
- const A = /* @__PURE__ */ q({
87
- render() {
88
- return a("div", {
89
- class: "org-list-box"
90
- }, [a("div", {
91
- class: "left-tree-box"
92
- }, [a("div", {
93
- class: "search-box"
94
- }, [a("label", null, [v("单位列表")]), a(f("el-input"), {
95
- modelValue: V.value,
96
- "onUpdate:modelValue": (e) => V.value = e,
97
- "suffix-icon": f("Search"),
98
- onInput: X,
99
- placeholder: "请输入单位名称查询"
100
- }, null)]), a("div", {
101
- class: "tree-content-box"
102
- }, [a(f("el-tree"), {
103
- ref: (e) => r.value = e,
104
- data: D.value,
105
- "node-key": "id",
106
- props: $,
107
- "expand-on-click-node": !1,
108
- "show-checkbox": o.multiple,
109
- "check-strictly": !0,
110
- "highlight-current": !0,
111
- accordion: !0,
112
- "check-on-click-node": !0,
113
- "filter-node-method": W,
114
- indent: 26,
115
- onCheck: Z,
116
- "render-content": Q,
117
- "default-expanded-keys": o.expandKeys,
118
- "icon-class": "el-icon-arrow-right"
119
- }, null)])]), a("div", {
120
- class: "right-selected-list"
121
- }, [a("div", {
122
- class: "selected-box"
123
- }, [a("span", null, [v("已选单位")]), a("div", {
124
- title: "删除全部"
125
- }, [a("i", {
126
- onClick: K,
127
- class: "delete-btn"
128
- }, null)])]), a("div", null, [a("div", {
129
- class: "tree-content-box"
130
- }, [a("ul", null, [d.value.map((e, l) => a("li", {
131
- title: e.orgName + "(" + e.id + ")"
132
- }, [a("span", {
133
- class: "org-name"
134
- }, [e.orgName, v("("), e.id, v(")")]), a(f("el-icon"), {
135
- onClick: () => ee(e, l),
136
- color: "#909399",
137
- size: "16"
138
- }, {
139
- default: () => [a(se, null, null)]
140
- })]))])])])])]);
42
+ }, i = f();
43
+ let P = f(!1), p = f(!1), D = f(!1), V = f(""), v = f(""), u = f([]), w = f([]), x = f([]);
44
+ const T = f([]), m = f("");
45
+ function A() {
46
+ if (n.modelValue)
47
+ m.value = n.modelValue, x.value = m.value.split(","), T.value = x.value;
48
+ else {
49
+ m.value = "";
50
+ const e = JSON.parse(localStorage.getItem("userInfo"));
51
+ T.value = [e.orgId], x.value = [];
141
52
  }
142
- });
143
- function E() {
144
- if (o.modelValue ? h.value = o.modelValue.split(",") : h.value = [], p.value = !0, j.value && r.value) {
145
- r.value.setCheckedKeys(h.value), d.value = r.value.getCheckedNodes();
53
+ if (p.value = !0, P.value && i.value) {
54
+ i.value.setCheckedKeys(x.value), u.value = i.value.getCheckedNodes();
146
55
  return;
147
56
  }
148
- H();
57
+ ne();
149
58
  }
150
- function G() {
151
- o.bindEvent && E();
59
+ function oe() {
60
+ n.bindEvent && A();
152
61
  }
153
- function H() {
62
+ function ne() {
154
63
  let e = {
155
- pid: o.rootOrgId,
156
- orgType: o.orgType
64
+ pid: n.rootOrgId,
65
+ orgType: n.orgType
157
66
  };
158
- o.reqParams && (e = Object.assign(e, o.reqParams)), S.post({
159
- url: getKsoRoot("/sys/org/list-by-condition"),
160
- params: e
161
- }).then(({
162
- data: l
163
- }) => {
164
- o.rootOrgId && l.forEach((n) => {
165
- n.id == o.rootOrgId && (n.pid = "");
67
+ n.reqParams && (e = Object.assign(e, n.reqParams)), z.post({ url: getKsoRoot("/sys/org/list-by-condition"), params: e }).then(({ data: l }) => {
68
+ n.rootOrgId && l.forEach((a) => {
69
+ a.id == n.rootOrgId && (a.pid = "");
166
70
  });
167
- let t = J(l);
168
- t && t.length > 0 && t.forEach((n) => {
169
- n.expanded = !0;
170
- }), D.value = t, r.value.setCheckedKeys(h.value), j.value = !0;
71
+ let t = ae(l);
72
+ T.value.length < 1 && t && t.length > 0 && t.forEach((a) => {
73
+ a.expanded = !0;
74
+ }), w.value = t, i.value.setCheckedKeys(x.value), P.value = !0;
171
75
  });
172
76
  }
173
- function F() {
174
- if (!o.modelValue)
77
+ function R() {
78
+ if (!m.value)
175
79
  return;
176
- B.value = !0;
177
- let e = {
178
- ids: o.modelValue
179
- };
180
- S.post({
181
- url: getKsoRoot("/sys/org/find-by-ids"),
182
- params: e
183
- }).then(({
184
- data: l
185
- }) => {
186
- if (l && l.length > 0) {
187
- let t = [];
188
- l.forEach((n) => {
189
- t.push(n.orgName);
190
- }), i.value = t.join(",");
191
- }
80
+ D.value = !0;
81
+ let e = { ids: m.value };
82
+ z.post({ url: getKsoRoot("/sys/org/find-by-ids"), params: e }).then(({ data: l }) => {
83
+ l && l.length > 0 && (W(l), C("onSelect", l));
192
84
  });
193
85
  }
194
- function J(e) {
86
+ function ae(e) {
195
87
  return e.forEach((l) => {
196
- l.name = l.orgName, h.value.length > 0 && h.value.includes(l.id) && d.value.push(l);
88
+ l.name = l.orgName, x.value.length > 0 && x.value.includes(l.id) && u.value.push(l);
197
89
  let t = [];
198
- e.forEach((n) => {
199
- n.pid == l.id && t.push(n);
90
+ e.forEach((a) => {
91
+ a.pid == l.id && t.push(a);
200
92
  }), l.childrenList = t;
201
93
  }), e = e.filter((l) => l.pid == ""), e;
202
94
  }
203
- function Q(e, {
204
- node: l,
205
- data: t
206
- }) {
95
+ function U(e, { node: l, data: t }) {
207
96
  t.expanded && (l.expanded = !0);
208
- let n = "tree-file-node-icon";
209
- l.childNodes && l.childNodes.length > 0 && (n = "tree-folder-node-icon");
210
- let u = [];
211
- if (!o.multiple) {
212
- let s = "";
213
- t.id === g.value && (s = t.id), u.push(e(f("el-radio"), {
214
- modelValue: s,
215
- label: t.id,
216
- size: "large"
217
- }));
97
+ let a = "tree-file-node-icon";
98
+ l.childNodes && l.childNodes.length > 0 && (a = "tree-folder-node-icon");
99
+ let d = [];
100
+ if (!n.multiple) {
101
+ let c = "";
102
+ t.id === V.value && (c = t.id), d.push(
103
+ e(y("el-radio"), {
104
+ modelValue: c,
105
+ label: t.id
106
+ })
107
+ );
218
108
  }
219
- return u.push(e("i", {
220
- class: n,
221
- style: {
222
- marginRight: "5px"
223
- }
224
- })), u.push(e("span", {
225
- attrs: {
226
- title: t.name
227
- }
228
- }, t.name)), e("span", {
229
- class: "node-text-box"
230
- }, u);
109
+ return d.push(
110
+ e("i", {
111
+ class: a,
112
+ style: {
113
+ marginRight: "5px"
114
+ }
115
+ })
116
+ ), d.push(
117
+ e(
118
+ "span",
119
+ {
120
+ title: t.name
121
+ },
122
+ t.name
123
+ )
124
+ ), e("span", { class: "node-text-box" }, d);
231
125
  }
232
- function W(e, l) {
126
+ function $(e, l) {
233
127
  return e ? l.name.indexOf(e) !== -1 || l.id.indexOf(e) !== -1 : !0;
234
128
  }
235
- function X() {
236
- r.value.filter(V.value), V.value || Y(D.value[0].id, !1);
129
+ function H() {
130
+ i.value.filter(v.value), v.value || se(w.value[0].id, !1);
237
131
  }
238
- function Y(e, l) {
239
- var t = r.value.store.nodesMap;
240
- for (let n in t)
241
- e === n ? t[n].expanded = !0 : t[n].expanded = l;
132
+ function se(e, l) {
133
+ var t = i.value.store.nodesMap;
134
+ for (let a in t)
135
+ e === a ? t[a].expanded = !0 : t[a].expanded = l;
242
136
  }
243
- function Z(e) {
244
- o.multiple || (r.value.setCheckedNodes([e]), g.value = e.id), d.value = r.value.getCheckedNodes();
137
+ function J(e) {
138
+ n.multiple || (i.value.setCheckedNodes([e]), V.value = e.id), u.value = i.value.getCheckedNodes();
245
139
  }
246
- function ee(e, l) {
247
- d.value.splice(l, 1), g.value = "", r.value.setCheckedNodes(d.value);
140
+ function G(e, l) {
141
+ u.value.splice(l, 1), V.value = "", i.value.setCheckedNodes(u.value);
248
142
  }
249
- function K() {
250
- d.value = [], g.value = "", r.value && r.value.setCheckedNodes(d.value);
143
+ function M() {
144
+ u.value = [], V.value = "", i.value && i.value.setCheckedNodes(u.value);
251
145
  }
252
- function w() {
253
- p.value = !1, y("onCancel", "");
146
+ function de() {
147
+ p.value = !1, C("onCancel", "");
254
148
  }
255
- function le() {
256
- if (d.value.length == 0)
257
- return z("请选择数据"), !1;
258
- let e = L(d.value);
259
- te(e), p.value = !1, y("onSelect", e);
149
+ function ie() {
150
+ if (u.value.length == 0)
151
+ return te.closeAll(), te({
152
+ message: "请选择数据",
153
+ duration: 1e3,
154
+ type: "warning",
155
+ offset: document.documentElement.clientHeight / 3
156
+ }), !1;
157
+ let e = Q(u.value);
158
+ W(e), p.value = !1, C("onSelect", e);
260
159
  }
261
- function L(e) {
160
+ function Q(e) {
262
161
  let l = [];
263
162
  return e.forEach((t) => {
264
- let n = {
163
+ let a = {
265
164
  id: t.id,
266
165
  orgName: t.orgName,
267
166
  orgType: t.orgType,
@@ -272,104 +171,276 @@ const ce = {
272
171
  cityId: t.cityId,
273
172
  cityName: t.cityName
274
173
  };
275
- l.push(n);
174
+ l.push(a);
276
175
  }), l;
277
176
  }
278
- function te(e) {
177
+ function W(e) {
279
178
  let l = {};
280
- Object.keys(e[0]).forEach((n) => {
281
- l[n] = [];
282
- }), e.forEach((n) => {
283
- var u;
284
- for (let s in n)
285
- (u = l[s]) == null || u.push(n[s]);
286
- }), i.value = l.orgName.join(","), y("update:modelValue", l.id.join(","));
287
- let t = o.returnValue.split("|");
288
- t && t.length > 0 && t.forEach((n) => {
289
- let u = n.split(":");
290
- if (u && u.length > 1) {
291
- let s = l[u[1]], O = s ? s.join(",") : "";
292
- N.sync[u[0]] = O;
179
+ Object.keys(e[0]).forEach((a) => {
180
+ l[a] = [];
181
+ }), e.forEach((a) => {
182
+ var d;
183
+ for (let c in a)
184
+ (d = l[c]) == null || d.push(a[c]);
185
+ }), N.value = l.orgName.join(n.separator), C("update:modelValue", l.id.join(","));
186
+ let t = n.returnValue.split("|");
187
+ t && t.length > 0 && t.forEach((a) => {
188
+ let d = a.split(":");
189
+ if (d && d.length > 1) {
190
+ let c = l[d[1]], I = c ? c.join(",") : "";
191
+ B.sync[d[0]] = I;
293
192
  }
294
193
  });
295
194
  }
296
- function oe() {
297
- if (i.value = "", y("update:modelValue", ""), o.returnValue) {
298
- let e = o.returnValue.split("|");
195
+ function X() {
196
+ if (N.value = "", C("update:modelValue", ""), n.returnValue) {
197
+ let e = n.returnValue.split("|");
299
198
  e && e.length > 0 && e.forEach((l) => {
300
199
  let t = l.split(":");
301
- t && t.length > 1 && (N.sync[t[0]] = "");
200
+ t && t.length > 1 && (B.sync[t[0]] = "");
302
201
  });
303
202
  }
304
- K(), y("onClear", "");
203
+ M(), C("onClear", "");
305
204
  }
306
- return ae(() => {
307
- o.notDialog && E(), o.defaultText && !B.value ? F() : i.value = o.inputText, o.multiple || (g.value = o.modelValue);
308
- }), T({
205
+ _e(() => {
206
+ m.value = n.modelValue, n.notDialog && A(), n.defaultText && !D.value && R(), n.multiple || (V.value = m.value);
207
+ });
208
+ function re(e) {
209
+ m.value = e, D.value = !1, n.defaultText && !D.value && R();
210
+ }
211
+ return L({
309
212
  /** 获取选中的数据 */
310
- getSelectData: () => L(d.value),
311
- openDialogEvent: E
213
+ clear: X,
214
+ setValue: re,
215
+ getSelectData: () => Q(u.value),
216
+ openDialogEvent: A
312
217
  }), (e, l) => {
313
- const t = f("CircleClose"), n = f("el-icon"), u = f("el-button"), s = f("el-input"), O = f("el-dialog");
314
- return e.notDialog ? (k(), I("div", ce, [a(_(A))])) : (k(), I("div", fe, [e.$slots.func ? (k(), I("div", {
315
- key: 0,
316
- class: "slot-box",
317
- onClick: G
318
- }, [ue(e.$slots, "func", {}, void 0, !0)])) : (k(), M(s, {
319
- key: 1,
320
- modelValue: _(i),
321
- "onUpdate:modelValue": l[0] || (l[0] = (x) => U(i) ? i.value = x : i = x),
322
- disabled: e.disabled,
323
- readonly: e.readonly
324
- }, {
325
- append: m(() => [_(i) && e.isClear ? (k(), M(n, {
218
+ const t = y("el-input"), a = y("el-tree"), d = y("CircleCloseFilled"), c = y("el-icon"), I = y("el-button"), ue = y("CircleClose"), ce = y("el-dialog");
219
+ return e.notDialog ? (g(), b("div", Ce, [
220
+ o("div", Ne, [
221
+ o("div", Ve, [
222
+ o("div", Te, [
223
+ Ie,
224
+ r(t, {
225
+ modelValue: _(v),
226
+ "onUpdate:modelValue": l[0] || (l[0] = (s) => j(v) ? v.value = s : v = s),
227
+ "suffix-icon": "Search",
228
+ onInput: H,
229
+ placeholder: "请输入单位名称查询"
230
+ }, null, 8, ["modelValue"])
231
+ ]),
232
+ o("div", Se, [
233
+ r(a, {
234
+ ref_key: "orgTree",
235
+ ref: i,
236
+ data: _(w),
237
+ "node-key": "id",
238
+ props: F,
239
+ "expand-on-click-node": !1,
240
+ "show-checkbox": n.multiple,
241
+ "check-strictly": !0,
242
+ "highlight-current": !0,
243
+ accordion: !1,
244
+ "check-on-click-node": !0,
245
+ "filter-node-method": $,
246
+ indent: 26,
247
+ onCheck: J,
248
+ "render-content": U,
249
+ "default-expanded-keys": _(T),
250
+ "icon-class": "el-icon-arrow-right"
251
+ }, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
252
+ ])
253
+ ]),
254
+ o("div", Ee, [
255
+ o("div", { class: "selected-box" }, [
256
+ Oe,
257
+ o("div", { title: "删除全部" }, [
258
+ o("i", {
259
+ onClick: M,
260
+ class: "delete-btn"
261
+ })
262
+ ])
263
+ ]),
264
+ o("div", null, [
265
+ o("div", Be, [
266
+ o("ul", null, [
267
+ (g(!0), b(Z, null, ee(_(u), (s, S) => (g(), b("li", {
268
+ key: S + "s"
269
+ }, [
270
+ o("span", {
271
+ class: "org-name",
272
+ title: s.orgName + "(" + s.id + ")"
273
+ }, E(s.orgName) + "(" + E(s.id) + ") ", 9, De),
274
+ r(c, {
275
+ onClick: (fe) => G(s, S),
276
+ title: "移除",
277
+ color: "#909399",
278
+ size: "16"
279
+ }, {
280
+ default: k(() => [
281
+ r(d)
282
+ ]),
283
+ _: 2
284
+ }, 1032, ["onClick"])
285
+ ]))), 128))
286
+ ])
287
+ ])
288
+ ])
289
+ ])
290
+ ])
291
+ ])) : (g(), b("div", we, [
292
+ e.$slots.func ? (g(), b("div", {
326
293
  key: 0,
327
- class: "close",
294
+ class: "slot-box",
328
295
  onClick: oe
329
- }, {
330
- default: m(() => [a(t, {
331
- color: "#868484"
332
- })]),
333
- _: 1
334
- })) : re("", !0), a(u, {
335
- type: "primary",
296
+ }, [
297
+ me(e.$slots, "func", {}, void 0, !0)
298
+ ])) : (g(), le(t, {
299
+ key: 1,
300
+ modelValue: N.value,
301
+ "onUpdate:modelValue": l[1] || (l[1] = (s) => N.value = s),
336
302
  disabled: e.disabled,
337
- onClick: E
338
- }, {
339
- default: m(() => [v(de(e.buttonText), 1)]),
340
- _: 1
341
- }, 8, ["disabled"])]),
342
- _: 1
343
- }, 8, ["modelValue", "disabled", "readonly"])), a(O, {
344
- title: "单位选择",
345
- modelValue: _(p),
346
- "onUpdate:modelValue": l[1] || (l[1] = (x) => U(p) ? p.value = x : p = x),
347
- onClose: w,
348
- width: 1e3
349
- }, {
350
- default: m(() => [a(_(A)), ie("div", pe, [a(u, {
351
- onClick: w
303
+ readonly: e.readonly
352
304
  }, {
353
- default: m(() => [v("取消")]),
305
+ append: k(() => [
306
+ r(I, {
307
+ type: "primary",
308
+ disabled: e.disabled,
309
+ onClick: A
310
+ }, {
311
+ default: k(() => [
312
+ q(E(e.buttonText), 1)
313
+ ]),
314
+ _: 1
315
+ }, 8, ["disabled"]),
316
+ N.value && e.isClear ? (g(), le(c, {
317
+ key: 0,
318
+ class: "close",
319
+ style: ye({ right: n.buttonText.length * n.fontFize + 25 + "px" }),
320
+ onClick: X
321
+ }, {
322
+ default: k(() => [
323
+ r(ue, { color: "#868484" })
324
+ ]),
325
+ _: 1
326
+ }, 8, ["style"])) : ke("", !0)
327
+ ]),
354
328
  _: 1
355
- }), a(u, {
356
- type: "primary",
357
- onClick: le
329
+ }, 8, ["modelValue", "disabled", "readonly"])),
330
+ r(ce, {
331
+ title: n.title,
332
+ modelValue: _(p),
333
+ "onUpdate:modelValue": l[4] || (l[4] = (s) => j(p) ? p.value = s : p = s),
334
+ "append-to-body": !0,
335
+ "close-on-click-modal": !1,
336
+ "close-on-press-escape": !1,
337
+ onClose: de,
338
+ width: 1e3
358
339
  }, {
359
- default: m(() => [v("确认")]),
340
+ default: k(() => [
341
+ o("div", Ae, [
342
+ o("div", je, [
343
+ o("div", Ke, [
344
+ Le,
345
+ r(t, {
346
+ modelValue: _(v),
347
+ "onUpdate:modelValue": l[2] || (l[2] = (s) => j(v) ? v.value = s : v = s),
348
+ "suffix-icon": "Search",
349
+ onInput: H,
350
+ placeholder: "请输入单位名称查询"
351
+ }, null, 8, ["modelValue"])
352
+ ]),
353
+ o("div", Me, [
354
+ r(a, {
355
+ ref_key: "orgTree",
356
+ ref: i,
357
+ data: _(w),
358
+ "node-key": "id",
359
+ props: F,
360
+ "expand-on-click-node": !1,
361
+ "show-checkbox": n.multiple,
362
+ "check-strictly": !0,
363
+ "highlight-current": !0,
364
+ accordion: !1,
365
+ "check-on-click-node": !0,
366
+ "filter-node-method": $,
367
+ indent: 26,
368
+ onCheck: J,
369
+ "render-content": U,
370
+ "default-expanded-keys": _(T),
371
+ "icon-class": "el-icon-arrow-right"
372
+ }, null, 8, ["data", "show-checkbox", "default-expanded-keys"])
373
+ ])
374
+ ]),
375
+ o("div", qe, [
376
+ o("div", { class: "selected-box" }, [
377
+ ze,
378
+ o("div", { title: "删除全部" }, [
379
+ o("i", {
380
+ onClick: M,
381
+ class: "delete-btn"
382
+ })
383
+ ])
384
+ ]),
385
+ o("div", null, [
386
+ o("div", Fe, [
387
+ o("ul", null, [
388
+ (g(!0), b(Z, null, ee(_(u), (s, S) => (g(), b("li", {
389
+ key: S + "s"
390
+ }, [
391
+ o("span", {
392
+ class: "org-name",
393
+ title: s.orgName + "(" + s.id + ")"
394
+ }, E(s.orgName) + "(" + E(s.id) + ") ", 9, Pe),
395
+ r(c, {
396
+ onClick: (fe) => G(s, S),
397
+ title: "移除",
398
+ color: "#909399",
399
+ size: "16"
400
+ }, {
401
+ default: k(() => [
402
+ r(d)
403
+ ]),
404
+ _: 2
405
+ }, 1032, ["onClick"])
406
+ ]))), 128))
407
+ ])
408
+ ])
409
+ ])
410
+ ])
411
+ ]),
412
+ o("div", Re, [
413
+ r(I, {
414
+ onClick: l[3] || (l[3] = (s) => j(p) ? p.value = !1 : p = !1)
415
+ }, {
416
+ default: k(() => [
417
+ q("取消")
418
+ ]),
419
+ _: 1
420
+ }),
421
+ r(I, {
422
+ type: "primary",
423
+ onClick: ie
424
+ }, {
425
+ default: k(() => [
426
+ q("确认")
427
+ ]),
428
+ _: 1
429
+ })
430
+ ])
431
+ ]),
360
432
  _: 1
361
- })])]),
362
- _: 1
363
- }, 8, ["modelValue"])]));
433
+ }, 8, ["title", "modelValue"])
434
+ ]));
364
435
  };
365
436
  }
366
437
  });
367
- const ge = (C, T) => {
368
- const b = C.__vccOpts || C;
369
- for (const [o, N] of T)
370
- b[o] = N;
371
- return b;
372
- }, ye = /* @__PURE__ */ ge(ve, [["__scopeId", "data-v-e419fb90"]]);
438
+ const $e = (h, L) => {
439
+ const O = h.__vccOpts || h;
440
+ for (const [n, B] of L)
441
+ O[n] = B;
442
+ return O;
443
+ }, Ge = /* @__PURE__ */ $e(Ue, [["__scopeId", "data-v-d7df037a"]]);
373
444
  export {
374
- ye as ksoSelOrg
445
+ Ge as ksoSelOrg
375
446
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kso-sel-org",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,52 +1,80 @@
1
1
  declare function openDialogEvent(): void;
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- /** 没有对话框 */
4
- notDialog?: boolean | undefined;
5
- /** 默认选中code值 */
6
- modelValue: string;
7
- /** 根机构ID(根机构ID,如果不设置,则返回所有机构树,传入则只显示该机构下的所有单位树) */
8
- rootOrgId?: string | undefined;
9
- /** 单位类型(如果不设置,则返回所有单位类型,否则传值(01:隶属局单位,02:直属局单位,03:总署单位))*/
10
- orgType?: string | undefined;
11
- /** 文本框显示内容 */
12
- inputText?: string | undefined;
13
- /** 返回内容处理 */
14
- returnValue?: string | undefined;
15
- /** 是否只读 */
16
- readonly?: boolean | undefined;
17
- /** 是否清除 */
18
- isClear?: boolean | undefined;
19
- /** 是否禁用 */
20
- disabled?: boolean | undefined;
21
- /** 按钮文本内容 */
22
- buttonText?: string | undefined;
23
- /** 开启复选 */
24
- multiple?: boolean | undefined;
25
- /** 事件绑定 */
26
- bindEvent?: boolean | undefined;
27
- /** 根据传进来的code查对应的name,覆盖inputText值 */
28
- defaultText?: boolean | undefined;
29
- /** 需展开的节点 */
30
- expandKeys?: any[] | undefined;
31
- /** 扩展查询参数 */
32
- reqParams?: object | undefined;
33
- }>, {
34
- modelValue: string;
35
- rootOrgId: string;
36
- orgType: string;
37
- inputText: string;
38
- returnValue: string;
39
- readonly: boolean;
40
- isClear: boolean;
41
- disabled: boolean;
42
- buttonText: string;
43
- multiple: boolean;
44
- bindEvent: boolean;
45
- defaultText: boolean;
46
- expandKeys: () => never[];
47
- reqParams: undefined;
48
- }>, {
2
+ declare function clearAction(): void;
3
+ declare function setValue(orgId: any): void;
4
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
+ inputText: import("vue").PropType<any>;
6
+ notDialog: {
7
+ type: import("vue").PropType<boolean>;
8
+ };
9
+ title: {
10
+ type: import("vue").PropType<string>;
11
+ default: string;
12
+ };
13
+ modelValue: {
14
+ type: import("vue").PropType<string>;
15
+ required: true;
16
+ default: string;
17
+ };
18
+ rootOrgId: {
19
+ type: import("vue").PropType<string>;
20
+ default: string;
21
+ };
22
+ orgType: {
23
+ type: import("vue").PropType<string>;
24
+ default: string;
25
+ };
26
+ returnValue: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
30
+ separator: {
31
+ type: import("vue").PropType<string>;
32
+ default: string;
33
+ };
34
+ readonly: {
35
+ type: import("vue").PropType<boolean>;
36
+ default: boolean;
37
+ };
38
+ isClear: {
39
+ type: import("vue").PropType<boolean>;
40
+ default: boolean;
41
+ };
42
+ disabled: {
43
+ type: import("vue").PropType<boolean>;
44
+ default: boolean;
45
+ };
46
+ buttonText: {
47
+ type: import("vue").PropType<string>;
48
+ default: string;
49
+ };
50
+ multiple: {
51
+ type: import("vue").PropType<boolean>;
52
+ default: boolean;
53
+ };
54
+ bindEvent: {
55
+ type: import("vue").PropType<boolean>;
56
+ default: boolean;
57
+ };
58
+ defaultText: {
59
+ type: import("vue").PropType<boolean>;
60
+ default: boolean;
61
+ };
62
+ expandKeys: {
63
+ type: import("vue").PropType<string[]>;
64
+ default: () => never[];
65
+ };
66
+ reqParams: {
67
+ type: import("vue").PropType<object>;
68
+ default: undefined;
69
+ };
70
+ fontFize: {
71
+ type: import("vue").PropType<number>;
72
+ default: number;
73
+ };
74
+ }, {
49
75
  /** 获取选中的数据 */
76
+ clear: typeof clearAction;
77
+ setValue: typeof setValue;
50
78
  getSelectData: () => object[];
51
79
  openDialogEvent: typeof openDialogEvent;
52
80
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -54,61 +82,88 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
54
82
  onSelect: (...args: any[]) => void;
55
83
  "update:modelValue": (...args: any[]) => void;
56
84
  onClear: (...args: any[]) => void;
57
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
58
- /** 没有对话框 */
59
- notDialog?: boolean | undefined;
60
- /** 默认选中code值 */
61
- modelValue: string;
62
- /** 根机构ID(根机构ID,如果不设置,则返回所有机构树,传入则只显示该机构下的所有单位树) */
63
- rootOrgId?: string | undefined;
64
- /** 单位类型(如果不设置,则返回所有单位类型,否则传值(01:隶属局单位,02:直属局单位,03:总署单位))*/
65
- orgType?: string | undefined;
66
- /** 文本框显示内容 */
67
- inputText?: string | undefined;
68
- /** 返回内容处理 */
69
- returnValue?: string | undefined;
70
- /** 是否只读 */
71
- readonly?: boolean | undefined;
72
- /** 是否清除 */
73
- isClear?: boolean | undefined;
74
- /** 是否禁用 */
75
- disabled?: boolean | undefined;
76
- /** 按钮文本内容 */
77
- buttonText?: string | undefined;
78
- /** 开启复选 */
79
- multiple?: boolean | undefined;
80
- /** 事件绑定 */
81
- bindEvent?: boolean | undefined;
82
- /** 根据传进来的code查对应的name,覆盖inputText值 */
83
- defaultText?: boolean | undefined;
84
- /** 需展开的节点 */
85
- expandKeys?: any[] | undefined;
86
- /** 扩展查询参数 */
87
- reqParams?: object | undefined;
88
- }>, {
89
- modelValue: string;
90
- rootOrgId: string;
91
- orgType: string;
92
- inputText: string;
93
- returnValue: string;
94
- readonly: boolean;
95
- isClear: boolean;
96
- disabled: boolean;
97
- buttonText: string;
98
- multiple: boolean;
99
- bindEvent: boolean;
100
- defaultText: boolean;
101
- expandKeys: () => never[];
102
- reqParams: undefined;
103
- }>>> & {
85
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
86
+ inputText: import("vue").PropType<any>;
87
+ notDialog: {
88
+ type: import("vue").PropType<boolean>;
89
+ };
90
+ title: {
91
+ type: import("vue").PropType<string>;
92
+ default: string;
93
+ };
94
+ modelValue: {
95
+ type: import("vue").PropType<string>;
96
+ required: true;
97
+ default: string;
98
+ };
99
+ rootOrgId: {
100
+ type: import("vue").PropType<string>;
101
+ default: string;
102
+ };
103
+ orgType: {
104
+ type: import("vue").PropType<string>;
105
+ default: string;
106
+ };
107
+ returnValue: {
108
+ type: import("vue").PropType<string>;
109
+ default: string;
110
+ };
111
+ separator: {
112
+ type: import("vue").PropType<string>;
113
+ default: string;
114
+ };
115
+ readonly: {
116
+ type: import("vue").PropType<boolean>;
117
+ default: boolean;
118
+ };
119
+ isClear: {
120
+ type: import("vue").PropType<boolean>;
121
+ default: boolean;
122
+ };
123
+ disabled: {
124
+ type: import("vue").PropType<boolean>;
125
+ default: boolean;
126
+ };
127
+ buttonText: {
128
+ type: import("vue").PropType<string>;
129
+ default: string;
130
+ };
131
+ multiple: {
132
+ type: import("vue").PropType<boolean>;
133
+ default: boolean;
134
+ };
135
+ bindEvent: {
136
+ type: import("vue").PropType<boolean>;
137
+ default: boolean;
138
+ };
139
+ defaultText: {
140
+ type: import("vue").PropType<boolean>;
141
+ default: boolean;
142
+ };
143
+ expandKeys: {
144
+ type: import("vue").PropType<string[]>;
145
+ default: () => never[];
146
+ };
147
+ reqParams: {
148
+ type: import("vue").PropType<object>;
149
+ default: undefined;
150
+ };
151
+ fontFize: {
152
+ type: import("vue").PropType<number>;
153
+ default: number;
154
+ };
155
+ }>> & {
104
156
  onOnCancel?: ((...args: any[]) => any) | undefined;
105
157
  onOnSelect?: ((...args: any[]) => any) | undefined;
106
158
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
107
159
  onOnClear?: ((...args: any[]) => any) | undefined;
108
160
  }, {
161
+ title: string;
109
162
  modelValue: string;
110
- inputText: string;
163
+ rootOrgId: string;
164
+ orgType: string;
111
165
  returnValue: string;
166
+ separator: string;
112
167
  readonly: boolean;
113
168
  isClear: boolean;
114
169
  disabled: boolean;
@@ -116,31 +171,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
116
171
  multiple: boolean;
117
172
  bindEvent: boolean;
118
173
  defaultText: boolean;
119
- expandKeys: any[];
174
+ expandKeys: string[];
120
175
  reqParams: object;
121
- rootOrgId: string;
122
- orgType: string;
176
+ fontFize: number;
123
177
  }, {}>, {
124
178
  func?(_: {}): any;
125
179
  }>;
126
180
  export default _default;
127
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
128
- type __VLS_TypePropsToRuntimeProps<T> = {
129
- [K in keyof T]-?: {} extends Pick<T, K> ? {
130
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
131
- } : {
132
- type: import('vue').PropType<T[K]>;
133
- required: true;
134
- };
135
- };
136
- type __VLS_WithDefaults<P, D> = {
137
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
138
- default: D[K];
139
- }> : P[K];
140
- };
141
- type __VLS_Prettify<T> = {
142
- [K in keyof T]: T[K];
143
- } & {};
144
181
  type __VLS_WithTemplateSlots<T, S> = T & {
145
182
  new (): {
146
183
  $slots: S;