iking-web-ui-pro 0.2.42 → 0.2.44
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/dist/IKPreviewFile/ik.index.es.js +352 -353
- package/dist/IKPreviewFile/ik.index.umd.js +44 -44
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +111 -109
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IkApprovalProcess/ik.index.es.js +167 -158
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +359 -360
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +44 -44
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkCalendar/ik.index.es.js +355 -353
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkDescription/ik.index.es.js +299 -300
- package/dist/IkDescription/ik.index.umd.js +44 -44
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -308
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +13 -19
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPageFull/ik.index.es.js +154 -152
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPickerUser/ik.index.es.js +119 -117
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +343 -344
- package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +8803 -8741
- package/dist/IkTinymce/ik.index.umd.js +38 -38
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +333 -334
- package/dist/IkUploadFile/ik.index.umd.js +46 -46
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +387 -387
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +12395 -12385
- package/dist/index.umd.js +109 -109
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IkOnlyOffice/style.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as ue, openBlock as n, createElementBlock as g, createElementVNode as d, inject as
|
|
1
|
+
import { defineComponent as ue, openBlock as n, createElementBlock as g, createElementVNode as d, inject as $e, computed as M, resolveComponent as ne, normalizeClass as re, normalizeStyle as ye, createCommentVNode as _, createBlock as U, withCtx as P, createTextVNode as le, toDisplayString as X, ref as O, Fragment as K, unref as B, renderList as ge, createVNode as m, pushScopeId as Ne, popScopeId as He, useCssVars as mt, watch as he, toRef as kt, reactive as it, nextTick as rt, watchEffect as ut, withModifiers as De, withDirectives as Ce, vShow as _t, mergeModels as Ee, useModel as Je, resolveDirective as et, mergeProps as te, createSlots as xt, Transition as At, renderSlot as ve, isVNode as Ot, getCurrentInstance as wt } from "vue";
|
|
2
2
|
import { ElCheckbox as Se, ElCheckboxGroup as Fe, ElRadioGroup as We, ElRadio as Ge, ElDialog as Ct, ElButton as Ke, ElInput as je, ElBreadcrumb as Bt, ElBreadcrumbItem as Pt, vLoading as Ze, ElCol as Lt, ElFormItem as dt, ElCard as St, ElForm as Tt, ElRow as It, ElInputNumber as Ut, ElSelect as ct, ElOption as pt, ElRadioButton as Vt, ElDatePicker as ht, ElTreeSelect as $t } from "element-plus";
|
|
3
|
-
import { ikColor as Dt,
|
|
3
|
+
import { ikColor as Dt, ikStore as Te, _ as ae, ikEvent as zt } from "iking-utils-pro";
|
|
4
4
|
import Et from "axios";
|
|
5
5
|
import Mt from "vuedraggable";
|
|
6
6
|
const Me = (t, c) => {
|
|
@@ -89,12 +89,12 @@ const se = (t, c) => {
|
|
|
89
89
|
"flv",
|
|
90
90
|
"tls"
|
|
91
91
|
], Ht = (t) => {
|
|
92
|
-
const c =
|
|
92
|
+
const c = $e("loadUrl"), e = M(() => t.loadUrl || t.fileUrl || (c == null ? void 0 : c.value)), l = $e("uploadUrl"), A = M(() => t.action || t.uploadUrl || (l == null ? void 0 : l.value)), o = $e("token"), k = M(() => t.token || (o == null ? void 0 : o.value)), p = $e("onlyofficeConfig"), F = M(() => t.onlyofficeConfig || (p == null ? void 0 : p.value)), b = $e("userInfo"), w = M(() => t.userInfo || (b == null ? void 0 : b.value)), D = [...ft, ...ft.map((r) => r.toLocaleUpperCase())];
|
|
93
93
|
return {
|
|
94
94
|
cLoadUrl: e,
|
|
95
95
|
cUploadUrl: A,
|
|
96
96
|
cToken: k,
|
|
97
|
-
cOnlyofficeConfig:
|
|
97
|
+
cOnlyofficeConfig: F,
|
|
98
98
|
cUserInfo: w,
|
|
99
99
|
cOnlyofficePreviewType: D
|
|
100
100
|
};
|
|
@@ -168,7 +168,7 @@ const se = (t, c) => {
|
|
|
168
168
|
return e.value.width && (k.width = k.height = typeof e.value.width == "number" ? `${e.value.width}px` : e.value.width), k;
|
|
169
169
|
});
|
|
170
170
|
return (o, k) => {
|
|
171
|
-
const p = ne("el-tooltip"),
|
|
171
|
+
const p = ne("el-tooltip"), F = ne("el-button");
|
|
172
172
|
return e.value.tableIconType === "icon" || !e.value.tableIconType ? (n(), g("span", Wt, [
|
|
173
173
|
e.value.notip || !e.value.title ? (n(), g(
|
|
174
174
|
"i",
|
|
@@ -284,7 +284,7 @@ const se = (t, c) => {
|
|
|
284
284
|
_: 1
|
|
285
285
|
/* STABLE */
|
|
286
286
|
}, 8, ["content"]))
|
|
287
|
-
])) : (n(), U(
|
|
287
|
+
])) : (n(), U(F, {
|
|
288
288
|
key: 1,
|
|
289
289
|
type: ["warning", "error"].includes(e.value.type) ? "danger" : ""
|
|
290
290
|
}, {
|
|
@@ -642,12 +642,12 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
642
642
|
var h, i;
|
|
643
643
|
return ((h = e.handList) == null ? void 0 : h.length) === ((i = e.list) == null ? void 0 : i.length);
|
|
644
644
|
}), A = M(() => {
|
|
645
|
-
var v,
|
|
646
|
-
const h = (v = e.handList) == null ? void 0 : v.length, i = (
|
|
647
|
-
return e.multiple ? o.value = e.handList.map((f) => f[e.fixPropOpt.id]) : k.value = (
|
|
645
|
+
var v, N, W, H;
|
|
646
|
+
const h = (v = e.handList) == null ? void 0 : v.length, i = (N = e.list) == null ? void 0 : N.length;
|
|
647
|
+
return e.multiple ? o.value = e.handList.map((f) => f[e.fixPropOpt.id]) : k.value = (H = (W = e.handList) == null ? void 0 : W[0]) == null ? void 0 : H[e.fixPropOpt.id], h > 0 && h < i;
|
|
648
648
|
}), o = O(
|
|
649
649
|
e.handList.map((h) => h[e.fixPropOpt.id])
|
|
650
|
-
), k = O((a = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : a[e.fixPropOpt.id]), p = c,
|
|
650
|
+
), k = O((a = (r = e.handList) == null ? void 0 : r[0]) == null ? void 0 : a[e.fixPropOpt.id]), p = c, F = (h) => {
|
|
651
651
|
const i = h ? e.list.map((v) => {
|
|
652
652
|
if (e.chooseType.includes(v[e.fixPropOpt.type].toLowerCase()) && v.available !== !1)
|
|
653
653
|
return v[e.fixPropOpt.id];
|
|
@@ -671,7 +671,7 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
671
671
|
modelValue: l.value,
|
|
672
672
|
"onUpdate:modelValue": i[0] || (i[0] = (v) => l.value = v),
|
|
673
673
|
indeterminate: A.value,
|
|
674
|
-
onChange:
|
|
674
|
+
onChange: F
|
|
675
675
|
}, {
|
|
676
676
|
default: P(() => [
|
|
677
677
|
le("全选")
|
|
@@ -691,7 +691,7 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
691
691
|
K,
|
|
692
692
|
null,
|
|
693
693
|
ge(h.list, (v) => {
|
|
694
|
-
var
|
|
694
|
+
var N;
|
|
695
695
|
return n(), g("li", {
|
|
696
696
|
key: v[e.fixPropOpt.id]
|
|
697
697
|
}, [
|
|
@@ -762,15 +762,15 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
762
762
|
v[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (n(), g("span", {
|
|
763
763
|
key: 2,
|
|
764
764
|
class: re(["nextLevel", {
|
|
765
|
-
"is-disabled": (
|
|
766
|
-
(
|
|
765
|
+
"is-disabled": (N = o.value) == null ? void 0 : N.find(
|
|
766
|
+
(W) => W === v[e.fixPropOpt.id]
|
|
767
767
|
)
|
|
768
768
|
}]),
|
|
769
|
-
onClick: (
|
|
770
|
-
var
|
|
769
|
+
onClick: (W) => {
|
|
770
|
+
var H;
|
|
771
771
|
return D(
|
|
772
772
|
v,
|
|
773
|
-
(
|
|
773
|
+
(H = o.value) == null ? void 0 : H.find((f) => f === v[e.fixPropOpt.id])
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
776
|
}, " 下级", 10, Zl)) : _("v-if", !0)
|
|
@@ -794,7 +794,7 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
794
794
|
K,
|
|
795
795
|
null,
|
|
796
796
|
ge(h.list, (v) => {
|
|
797
|
-
var
|
|
797
|
+
var N;
|
|
798
798
|
return n(), g("li", {
|
|
799
799
|
class: "w-full",
|
|
800
800
|
key: v[e.fixPropOpt.id]
|
|
@@ -863,15 +863,15 @@ const fe = /* @__PURE__ */ se(El, [["__scopeId", "data-v-8031ce9b"]]), tt = "dat
|
|
|
863
863
|
v[e.fixPropOpt.type] === e.fixTypeOpt.group && e.children ? (n(), g("span", {
|
|
864
864
|
key: 2,
|
|
865
865
|
class: re(["nextLevel", {
|
|
866
|
-
"is-disabled": (
|
|
867
|
-
(
|
|
866
|
+
"is-disabled": (N = o.value) == null ? void 0 : N.find(
|
|
867
|
+
(W) => W === v[e.fixPropOpt.id]
|
|
868
868
|
)
|
|
869
869
|
}]),
|
|
870
|
-
onClick: (
|
|
871
|
-
var
|
|
870
|
+
onClick: (W) => {
|
|
871
|
+
var H;
|
|
872
872
|
return D(
|
|
873
873
|
v,
|
|
874
|
-
(
|
|
874
|
+
(H = o.value) == null ? void 0 : H.find((f) => f === v[e.fixPropOpt.id])
|
|
875
875
|
);
|
|
876
876
|
}
|
|
877
877
|
}, " 下级", 10, da)) : _("v-if", !0)
|
|
@@ -944,12 +944,12 @@ const fa = /* @__PURE__ */ se(ha, [["__scopeId", "data-v-8c34a55d"]]), nt = (t)
|
|
|
944
944
|
var a, h;
|
|
945
945
|
return ((a = e.handList) == null ? void 0 : a.length) === ((h = e.list) == null ? void 0 : h.length);
|
|
946
946
|
}), A = M(() => {
|
|
947
|
-
var i, v,
|
|
947
|
+
var i, v, N, W;
|
|
948
948
|
const a = (i = e.handList) == null ? void 0 : i.length, h = (v = e.list) == null ? void 0 : v.length;
|
|
949
|
-
return e.multiple ? o.value = e.handList.map((
|
|
949
|
+
return e.multiple ? o.value = e.handList.map((H) => H[e.fixPropOpt.id]) : k.value = (W = (N = e.handList) == null ? void 0 : N[0]) == null ? void 0 : W[e.fixPropOpt.id], a > 0 && a < h;
|
|
950
950
|
}), o = O(
|
|
951
951
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
952
|
-
), k = O((r = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : r[e.fixPropOpt.id]), p = c,
|
|
952
|
+
), k = O((r = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : r[e.fixPropOpt.id]), p = c, F = (a) => {
|
|
953
953
|
const h = a ? e.list.map((i) => i[e.fixPropOpt.id]) : [];
|
|
954
954
|
p("change", h, a ? e.list : []);
|
|
955
955
|
}, b = (a) => {
|
|
@@ -968,7 +968,7 @@ const fa = /* @__PURE__ */ se(ha, [["__scopeId", "data-v-8c34a55d"]]), nt = (t)
|
|
|
968
968
|
modelValue: l.value,
|
|
969
969
|
"onUpdate:modelValue": h[0] || (h[0] = (i) => l.value = i),
|
|
970
970
|
indeterminate: A.value,
|
|
971
|
-
onChange:
|
|
971
|
+
onChange: F
|
|
972
972
|
}, {
|
|
973
973
|
default: P(() => [
|
|
974
974
|
le("全选")
|
|
@@ -1164,12 +1164,12 @@ const Ta = /* @__PURE__ */ se(Sa, [["__scopeId", "data-v-e03f0d36"]]), st = (t)
|
|
|
1164
1164
|
var a, h;
|
|
1165
1165
|
return ((a = e.handList) == null ? void 0 : a.length) === ((h = e.list) == null ? void 0 : h.length);
|
|
1166
1166
|
}), A = M(() => {
|
|
1167
|
-
var i, v,
|
|
1167
|
+
var i, v, N, W;
|
|
1168
1168
|
const a = (i = e.handList) == null ? void 0 : i.length, h = (v = e.list) == null ? void 0 : v.length;
|
|
1169
|
-
return e.multiple ? o.value = e.handList.map((
|
|
1169
|
+
return e.multiple ? o.value = e.handList.map((H) => H[e.fixPropOpt.id]) : k.value = (W = (N = e.handList) == null ? void 0 : N[0]) == null ? void 0 : W[e.fixPropOpt.id], a > 0 && a < h;
|
|
1170
1170
|
}), o = O(
|
|
1171
1171
|
e.handList.map((a) => a[e.fixPropOpt.id])
|
|
1172
|
-
), k = O((r = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : r[e.fixPropOpt.id]), p = c,
|
|
1172
|
+
), k = O((r = (D = e.handList) == null ? void 0 : D[0]) == null ? void 0 : r[e.fixPropOpt.id]), p = c, F = (a) => {
|
|
1173
1173
|
const h = a ? e.list.map((i) => i[e.fixPropOpt.id]) : [];
|
|
1174
1174
|
p("change", h, a ? e.list : []);
|
|
1175
1175
|
}, b = (a) => {
|
|
@@ -1188,7 +1188,7 @@ const Ta = /* @__PURE__ */ se(Sa, [["__scopeId", "data-v-e03f0d36"]]), st = (t)
|
|
|
1188
1188
|
modelValue: l.value,
|
|
1189
1189
|
"onUpdate:modelValue": h[0] || (h[0] = (i) => l.value = i),
|
|
1190
1190
|
indeterminate: A.value,
|
|
1191
|
-
onChange:
|
|
1191
|
+
onChange: F
|
|
1192
1192
|
}, {
|
|
1193
1193
|
default: P(() => [
|
|
1194
1194
|
le("全选")
|
|
@@ -1332,7 +1332,7 @@ const Ta = /* @__PURE__ */ se(Sa, [["__scopeId", "data-v-e03f0d36"]]), st = (t)
|
|
|
1332
1332
|
}
|
|
1333
1333
|
});
|
|
1334
1334
|
const qa = /* @__PURE__ */ se(Xa, [["__scopeId", "data-v-be3b3e45"]]);
|
|
1335
|
-
var
|
|
1335
|
+
var ze = /* @__PURE__ */ ((t) => (t.group = "group", t.role = "role", t.post = "post", t))(ze || {});
|
|
1336
1336
|
const Ka = {
|
|
1337
1337
|
// 是否允许选择子集
|
|
1338
1338
|
children: {
|
|
@@ -1507,7 +1507,7 @@ const Ka = {
|
|
|
1507
1507
|
const c = window.location.search;
|
|
1508
1508
|
return new URLSearchParams(c).get(t);
|
|
1509
1509
|
}, Za = (t) => {
|
|
1510
|
-
const c =
|
|
1510
|
+
const c = Te.local.getItem("x_domain");
|
|
1511
1511
|
c && (t["X-DOMAIN"] = c);
|
|
1512
1512
|
}, Ja = (t) => {
|
|
1513
1513
|
var e;
|
|
@@ -1518,18 +1518,20 @@ const Ka = {
|
|
|
1518
1518
|
c === "APPLICATION" && (t["X-APP"] = l);
|
|
1519
1519
|
} else
|
|
1520
1520
|
Za(t);
|
|
1521
|
-
(e =
|
|
1521
|
+
(e = Te.local.getItem("tenant")) == null || e.code;
|
|
1522
1522
|
}, en = (t, c) => {
|
|
1523
1523
|
const e = O([]), l = async (o, k) => {
|
|
1524
|
-
var V, L;
|
|
1525
|
-
const { url: p, methods:
|
|
1524
|
+
var V, L, j;
|
|
1525
|
+
const { url: p, methods: F, headers: b, param: w } = t.value || {}, D = {
|
|
1526
1526
|
...w || {},
|
|
1527
|
+
// 额外参数
|
|
1528
|
+
rootDepartmentId: ((V = Te.local.getItem("now_shop")) == null ? void 0 : V.id) || "",
|
|
1527
1529
|
parentDepartmentId: o || "",
|
|
1528
1530
|
name: k || "",
|
|
1529
1531
|
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1530
1532
|
dataScopeOnly: c.dataScopeOnly
|
|
1531
1533
|
}, r = {
|
|
1532
|
-
method:
|
|
1534
|
+
method: F,
|
|
1533
1535
|
url: p,
|
|
1534
1536
|
headers: {
|
|
1535
1537
|
"Content-Type": "application/json;charset=UTF-8",
|
|
@@ -1550,24 +1552,24 @@ const Ka = {
|
|
|
1550
1552
|
};
|
|
1551
1553
|
const {
|
|
1552
1554
|
departments: v,
|
|
1553
|
-
roles:
|
|
1554
|
-
posts:
|
|
1555
|
-
users:
|
|
1555
|
+
roles: N,
|
|
1556
|
+
posts: W,
|
|
1557
|
+
users: H,
|
|
1556
1558
|
rootOrganization: f,
|
|
1557
1559
|
rootDepartment: oe
|
|
1558
1560
|
} = i, C = f || oe;
|
|
1559
1561
|
return e.value.length === 0 && (e.value[0] = c.org ? {
|
|
1560
1562
|
...c.org,
|
|
1561
1563
|
id: c.elementId,
|
|
1562
|
-
elementType: (
|
|
1564
|
+
elementType: (j = (L = c.org) == null ? void 0 : L.elementType) == null ? void 0 : j.toLocaleUpperCase()
|
|
1563
1565
|
} : {
|
|
1564
1566
|
...C,
|
|
1565
1567
|
id: C.elementId
|
|
1566
1568
|
}), {
|
|
1567
1569
|
groupList: ae.cloneDeep(v),
|
|
1568
|
-
roleList: ae.cloneDeep(
|
|
1569
|
-
postList: ae.cloneDeep(
|
|
1570
|
-
userList: ae.cloneDeep(
|
|
1570
|
+
roleList: ae.cloneDeep(N),
|
|
1571
|
+
postList: ae.cloneDeep(W),
|
|
1572
|
+
userList: ae.cloneDeep(H),
|
|
1571
1573
|
rootOrganization: f,
|
|
1572
1574
|
rootDepartment: oe
|
|
1573
1575
|
};
|
|
@@ -1602,7 +1604,7 @@ const Ka = {
|
|
|
1602
1604
|
mt((s) => ({
|
|
1603
1605
|
"775d0d08": Ae.value
|
|
1604
1606
|
}));
|
|
1605
|
-
const l = t, A = O(""), o = O(""), k = O([]), p = O([]),
|
|
1607
|
+
const l = t, A = O(""), o = O(""), k = O([]), p = O([]), F = O([]), b = O([]), w = O(!1), D = M(() => j.value.includes("user") ? p.value.concat(k.value) : p.value);
|
|
1606
1608
|
he(
|
|
1607
1609
|
() => l.api,
|
|
1608
1610
|
() => {
|
|
@@ -1621,14 +1623,14 @@ const Ka = {
|
|
|
1621
1623
|
post: "POST",
|
|
1622
1624
|
group: "DEPT",
|
|
1623
1625
|
...l.typeOption
|
|
1624
|
-
})), h = O([]), i = en(kt(l, "api"), l), v = i.handData,
|
|
1626
|
+
})), h = O([]), i = en(kt(l, "api"), l), v = i.handData, N = i.bannerList;
|
|
1625
1627
|
l.immediate && v(o.value, A.value);
|
|
1626
|
-
const
|
|
1628
|
+
const W = (s) => (s.forEach((y) => {
|
|
1627
1629
|
var S, I;
|
|
1628
1630
|
y.disabled = ((I = (S = l.modelValue) == null ? void 0 : S.find(
|
|
1629
1631
|
(G) => G[r.value.id] === y[r.value.id]
|
|
1630
1632
|
)) == null ? void 0 : I.disabled) || !1;
|
|
1631
|
-
}), s),
|
|
1633
|
+
}), s), H = async () => {
|
|
1632
1634
|
var s, y, S, I, G, be, qe, ot;
|
|
1633
1635
|
w.value = !0;
|
|
1634
1636
|
try {
|
|
@@ -1637,7 +1639,7 @@ const Ka = {
|
|
|
1637
1639
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1638
1640
|
), p.value = (be = l.groupList) == null ? void 0 : be.filter(
|
|
1639
1641
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1640
|
-
),
|
|
1642
|
+
), F.value = (qe = l.roleList) == null ? void 0 : qe.filter(
|
|
1641
1643
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1642
1644
|
), b.value = (ot = l.postList) == null ? void 0 : ot.filter(
|
|
1643
1645
|
(ke) => ke[r.value.name].includes(A.value)
|
|
@@ -1646,7 +1648,7 @@ const Ka = {
|
|
|
1646
1648
|
}
|
|
1647
1649
|
const pe = await v(o.value, A.value);
|
|
1648
1650
|
try {
|
|
1649
|
-
k.value =
|
|
1651
|
+
k.value = W((pe == null ? void 0 : pe.userList) || []), p.value = W((pe == null ? void 0 : pe.groupList) || []), F.value = W((pe == null ? void 0 : pe.roleList) || []), b.value = W((pe == null ? void 0 : pe.postList) || []);
|
|
1650
1652
|
} catch (ke) {
|
|
1651
1653
|
w.value = !1, console.info("error: ", ke);
|
|
1652
1654
|
}
|
|
@@ -1670,7 +1672,7 @@ const Ka = {
|
|
|
1670
1672
|
}), oe = it({
|
|
1671
1673
|
indeterminate: !1,
|
|
1672
1674
|
checkAll: 0
|
|
1673
|
-
}), C = (s) => f.group.has(s) || f.user.has(s) || f.role.has(s) || f.post.has(s), V = zt.debounce(
|
|
1675
|
+
}), C = (s) => f.group.has(s) || f.user.has(s) || f.role.has(s) || f.post.has(s), V = zt.debounce(H, 300), L = M(() => {
|
|
1674
1676
|
const s = Array.from(f.group.values()), y = Array.from(f.role.values()), S = Array.from(f.user.values()), I = Array.from(f.post.values());
|
|
1675
1677
|
return h.value = [...y, ...I, ...S, ...s], {
|
|
1676
1678
|
list: [...y, ...S, ...I, ...s],
|
|
@@ -1691,7 +1693,7 @@ const Ka = {
|
|
|
1691
1693
|
len: s.length
|
|
1692
1694
|
}
|
|
1693
1695
|
};
|
|
1694
|
-
}),
|
|
1696
|
+
}), j = M(() => {
|
|
1695
1697
|
const s = l.chooseType.map((S) => S.toLocaleLowerCase());
|
|
1696
1698
|
let y = [...s];
|
|
1697
1699
|
return s.includes("dep") && (y = [...y, "dept"]), s.includes("dep_user") && (y = [...y, "user"]), y;
|
|
@@ -1709,7 +1711,7 @@ const Ka = {
|
|
|
1709
1711
|
async (s) => {
|
|
1710
1712
|
var y;
|
|
1711
1713
|
if (q.value = s, s) {
|
|
1712
|
-
o.value = ((y = l.org) == null ? void 0 : y.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await
|
|
1714
|
+
o.value = ((y = l.org) == null ? void 0 : y.elementId) || l.orgPid, !l.userList.length && !l.groupList.length && !l.roleList.length && !l.postList.length ? await H() : (k.value = l.userList, p.value = l.groupList, F.value = l.roleList, b.value = l.postList), f.trans = [], oe.checkAll = 0, oe.indeterminate = !1;
|
|
1713
1715
|
const S = ee(!0);
|
|
1714
1716
|
for (const G of S)
|
|
1715
1717
|
C(G[r.value.id]) && f.trans.push(G[r.value.id]);
|
|
@@ -1816,9 +1818,9 @@ const Ka = {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
);
|
|
1818
1820
|
const Qe = (s) => {
|
|
1819
|
-
o.value = s == null ? void 0 : s.elementId,
|
|
1820
|
-
},
|
|
1821
|
-
!y && !l.topLink || y !==
|
|
1821
|
+
o.value = s == null ? void 0 : s.elementId, H(), N.value.push(s);
|
|
1822
|
+
}, Ie = M(() => N.value.length), Xe = (s, y) => {
|
|
1823
|
+
!y && !l.topLink || y !== Ie.value - 1 && (o.value = s == null ? void 0 : s.elementId, H(), N.value.splice(y + 1));
|
|
1822
1824
|
}, u = M(
|
|
1823
1825
|
() => l.chooseType.includes("role") && l.chooseType.length === 1
|
|
1824
1826
|
), R = M(
|
|
@@ -1826,7 +1828,7 @@ const Ka = {
|
|
|
1826
1828
|
), T = O(l.tabs[0]), x = O(l.tabs[0]);
|
|
1827
1829
|
ut(() => (x.value = u.value ? l.tabs[1] : R.value ? l.tabs[2] : T.value, x.value));
|
|
1828
1830
|
const $ = () => {
|
|
1829
|
-
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), f.trans = [], Pe.value = [], ce.value = [], T.value = l.tabs[0], x.value = l.tabs[0], A.value = "", o.value = l.orgPid,
|
|
1831
|
+
f.user.clear(), f.role.clear(), f.post.clear(), f.group.clear(), f.trans = [], Pe.value = [], ce.value = [], T.value = l.tabs[0], x.value = l.tabs[0], A.value = "", o.value = l.orgPid, N.value.splice(1, N.value.length), f.single = "", h.value = [];
|
|
1830
1832
|
}, Z = () => {
|
|
1831
1833
|
var s;
|
|
1832
1834
|
z(
|
|
@@ -1843,7 +1845,7 @@ const Ka = {
|
|
|
1843
1845
|
};
|
|
1844
1846
|
c({ handClear: $, handRomeve: Re, handDelete: de });
|
|
1845
1847
|
const Y = M(() => {
|
|
1846
|
-
const s =
|
|
1848
|
+
const s = j.value;
|
|
1847
1849
|
return !!((s.includes("post") || s.includes("role")) && s.length > 1);
|
|
1848
1850
|
}), Q = M(() => [
|
|
1849
1851
|
{ name: "group", label: "组织架构" },
|
|
@@ -1853,7 +1855,7 @@ const Ka = {
|
|
|
1853
1855
|
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1854
1856
|
), Be = () => {
|
|
1855
1857
|
l.multiple || (f.post.clear(), f.role.clear(), f.user.clear(), f.group.clear(), f.single = "");
|
|
1856
|
-
},
|
|
1858
|
+
}, Ue = M(() => L.value.groups.list.concat(L.value.user.list)), Ve = (s, y) => {
|
|
1857
1859
|
l.multiple || (f.single = "");
|
|
1858
1860
|
const S = l.multiple ? s : [s];
|
|
1859
1861
|
if (!S.length) {
|
|
@@ -1921,7 +1923,7 @@ const Ka = {
|
|
|
1921
1923
|
footer: P(() => [
|
|
1922
1924
|
d("span", pn, [
|
|
1923
1925
|
m(B(Ke), {
|
|
1924
|
-
onClick:
|
|
1926
|
+
onClick: De(J, ["stop"])
|
|
1925
1927
|
}, {
|
|
1926
1928
|
default: P(() => [
|
|
1927
1929
|
le("取消")
|
|
@@ -1931,7 +1933,7 @@ const Ka = {
|
|
|
1931
1933
|
}),
|
|
1932
1934
|
m(B(Ke), {
|
|
1933
1935
|
type: "primary",
|
|
1934
|
-
onClick:
|
|
1936
|
+
onClick: De(Z, ["stop"])
|
|
1935
1937
|
}, {
|
|
1936
1938
|
default: P(() => [
|
|
1937
1939
|
le(" 确定 ")
|
|
@@ -1982,11 +1984,11 @@ const Ka = {
|
|
|
1982
1984
|
}, 8, ["modelValue"])) : _("v-if", !0)
|
|
1983
1985
|
]),
|
|
1984
1986
|
_(" 过滤 "),
|
|
1985
|
-
x.value === B(
|
|
1987
|
+
x.value === B(ze).group ? (n(), g(
|
|
1986
1988
|
K,
|
|
1987
1989
|
{ key: 0 },
|
|
1988
1990
|
[
|
|
1989
|
-
|
|
1991
|
+
Ie.value ? (n(), g("div", ln, [
|
|
1990
1992
|
_(" 面包屑 全选 "),
|
|
1991
1993
|
m(B(Bt), {
|
|
1992
1994
|
separator: ">",
|
|
@@ -1996,9 +1998,9 @@ const Ka = {
|
|
|
1996
1998
|
(n(!0), g(
|
|
1997
1999
|
K,
|
|
1998
2000
|
null,
|
|
1999
|
-
ge(B(
|
|
2001
|
+
ge(B(N), (G, be) => (n(), U(B(Pt), {
|
|
2000
2002
|
key: G[r.value.id],
|
|
2001
|
-
onClick:
|
|
2003
|
+
onClick: De((qe) => Xe(G, be), ["stop"])
|
|
2002
2004
|
}, {
|
|
2003
2005
|
default: P(() => [
|
|
2004
2006
|
le(
|
|
@@ -2024,23 +2026,23 @@ const Ka = {
|
|
|
2024
2026
|
)) : _("v-if", !0),
|
|
2025
2027
|
_(" 左侧列表 "),
|
|
2026
2028
|
_(" 组织架构 "),
|
|
2027
|
-
x.value === B(
|
|
2029
|
+
x.value === B(ze).group ? Ce((n(), U(fa, {
|
|
2028
2030
|
key: 1,
|
|
2029
2031
|
fixPropOpt: r.value,
|
|
2030
2032
|
fixTypeOpt: a.value,
|
|
2031
2033
|
list: D.value,
|
|
2032
2034
|
max: s.max,
|
|
2033
2035
|
multiple: s.multiple,
|
|
2034
|
-
"hand-list":
|
|
2036
|
+
"hand-list": Ue.value,
|
|
2035
2037
|
imageBaseUrl: l.imageBaseUrl,
|
|
2036
2038
|
emptyText: l.emptyText,
|
|
2037
2039
|
children: l.children,
|
|
2038
|
-
"choose-type":
|
|
2040
|
+
"choose-type": j.value,
|
|
2039
2041
|
onHandChild: Qe,
|
|
2040
|
-
onChange:
|
|
2042
|
+
onChange: Ve
|
|
2041
2043
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2042
2044
|
[B(Ze), w.value]
|
|
2043
|
-
]) : x.value === B(
|
|
2045
|
+
]) : x.value === B(ze).role ? (n(), g(
|
|
2044
2046
|
K,
|
|
2045
2047
|
{ key: 2 },
|
|
2046
2048
|
[
|
|
@@ -2048,13 +2050,13 @@ const Ka = {
|
|
|
2048
2050
|
Ce(m(qa, {
|
|
2049
2051
|
fixPropOpt: r.value,
|
|
2050
2052
|
fixTypeOpt: a.value,
|
|
2051
|
-
list:
|
|
2053
|
+
list: F.value,
|
|
2052
2054
|
max: s.max,
|
|
2053
2055
|
multiple: s.multiple,
|
|
2054
2056
|
"hand-list": Pe.value,
|
|
2055
2057
|
imageBaseUrl: l.imageBaseUrl,
|
|
2056
2058
|
emptyText: l.emptyText,
|
|
2057
|
-
"choose-type":
|
|
2059
|
+
"choose-type": j.value,
|
|
2058
2060
|
onChange: Oe
|
|
2059
2061
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2060
2062
|
[B(Ze), w.value]
|
|
@@ -2062,7 +2064,7 @@ const Ka = {
|
|
|
2062
2064
|
],
|
|
2063
2065
|
64
|
|
2064
2066
|
/* STABLE_FRAGMENT */
|
|
2065
|
-
)) : x.value === B(
|
|
2067
|
+
)) : x.value === B(ze).post ? (n(), g(
|
|
2066
2068
|
K,
|
|
2067
2069
|
{ key: 3 },
|
|
2068
2070
|
[
|
|
@@ -2076,7 +2078,7 @@ const Ka = {
|
|
|
2076
2078
|
"hand-list": ce.value,
|
|
2077
2079
|
imageBaseUrl: l.imageBaseUrl,
|
|
2078
2080
|
emptyText: l.emptyText,
|
|
2079
|
-
"choose-type":
|
|
2081
|
+
"choose-type": j.value,
|
|
2080
2082
|
onChange: we
|
|
2081
2083
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2082
2084
|
[B(Ze), w.value]
|
|
@@ -2094,7 +2096,7 @@ const Ka = {
|
|
|
2094
2096
|
m(B(Ke), {
|
|
2095
2097
|
type: "primary",
|
|
2096
2098
|
link: "",
|
|
2097
|
-
onClick:
|
|
2099
|
+
onClick: De($, ["stop"])
|
|
2098
2100
|
}, {
|
|
2099
2101
|
default: P(() => [
|
|
2100
2102
|
le("清空")
|
|
@@ -2128,7 +2130,7 @@ const Ka = {
|
|
|
2128
2130
|
]),
|
|
2129
2131
|
Ce(m(hl, {
|
|
2130
2132
|
class: "close",
|
|
2131
|
-
onClick:
|
|
2133
|
+
onClick: De((be) => Re(G), ["stop"])
|
|
2132
2134
|
}, null, 8, ["onClick"]), [
|
|
2133
2135
|
[_t, !(G != null && G.readonly)]
|
|
2134
2136
|
])
|
|
@@ -2215,11 +2217,11 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2215
2217
|
}),
|
|
2216
2218
|
emits: /* @__PURE__ */ Ee(["sort"], ["update:modelValue"]),
|
|
2217
2219
|
setup(t, { emit: c }) {
|
|
2218
|
-
const e = t, l = c, A = Je(t, "modelValue"), { t: o, dialog: k, path: p, user:
|
|
2220
|
+
const e = t, l = c, A = Je(t, "modelValue"), { t: o, dialog: k, path: p, user: F } = e.config, b = M(() => `${F == null ? void 0 : F.id}_${p}${e.tab !== "" ? `_${e.tab}` : ""}`), w = O([]), D = O([]), r = O([]), a = /* @__PURE__ */ new Map(), h = O(!1), i = M(() => {
|
|
2219
2221
|
const V = D.value.length && D.value.length !== e.list.length;
|
|
2220
2222
|
return !V && D.value.length && (h.value = !0), !!V;
|
|
2221
2223
|
}), v = (V) => {
|
|
2222
|
-
var
|
|
2224
|
+
var j;
|
|
2223
2225
|
const L = ae.cloneDeep(r.value);
|
|
2224
2226
|
L == null || L.forEach((E) => {
|
|
2225
2227
|
var ie;
|
|
@@ -2235,23 +2237,23 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2235
2237
|
const q = a.get(E);
|
|
2236
2238
|
q && (q.show = !0, r.value.push(q));
|
|
2237
2239
|
}
|
|
2238
|
-
}), (
|
|
2239
|
-
},
|
|
2240
|
+
}), (j = r.value) != null && j.length || (r.value = ae.cloneDeep(e.list)), V === !0 && (l("sort", ae.cloneDeep(r.value)), A.value = ae.cloneDeep(r.value));
|
|
2241
|
+
}, N = (V) => {
|
|
2240
2242
|
if (V)
|
|
2241
2243
|
D.value = e.list.map((L) => L.key);
|
|
2242
2244
|
else {
|
|
2243
|
-
const L = e.list.find((
|
|
2245
|
+
const L = e.list.find((j) => !j.key || j.label === "操作");
|
|
2244
2246
|
D.value = L ? [L.key] : [];
|
|
2245
2247
|
}
|
|
2246
2248
|
v();
|
|
2247
|
-
},
|
|
2248
|
-
const V =
|
|
2249
|
+
}, W = () => {
|
|
2250
|
+
const V = Te.local.getItem(b.value);
|
|
2249
2251
|
try {
|
|
2250
2252
|
const L = ae.cloneDeep(e == null ? void 0 : e.list);
|
|
2251
|
-
if ((!V || !(V != null && V.length)) &&
|
|
2253
|
+
if ((!V || !(V != null && V.length)) && Te.local.setItem(
|
|
2252
2254
|
b.value,
|
|
2253
|
-
L.map(({ show:
|
|
2254
|
-
show:
|
|
2255
|
+
L.map(({ show: j, type: E, key: ie, label: z, width: q, minWidth: ee, align: de }) => ({
|
|
2256
|
+
show: j,
|
|
2255
2257
|
key: ie,
|
|
2256
2258
|
type: E,
|
|
2257
2259
|
label: z,
|
|
@@ -2260,36 +2262,36 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2260
2262
|
align: de
|
|
2261
2263
|
}))
|
|
2262
2264
|
), w.value = [
|
|
2263
|
-
...(L == null ? void 0 : L.map((
|
|
2264
|
-
...
|
|
2265
|
-
show:
|
|
2265
|
+
...(L == null ? void 0 : L.map((j) => (a.set(j.key, j), {
|
|
2266
|
+
...j,
|
|
2267
|
+
show: j.show || !1
|
|
2266
2268
|
}))) || []
|
|
2267
2269
|
], V) {
|
|
2268
|
-
const
|
|
2269
|
-
D.value = [...
|
|
2270
|
+
const j = V.filter((E) => E.show).map((E) => E.key);
|
|
2271
|
+
D.value = [...j];
|
|
2270
2272
|
} else {
|
|
2271
|
-
const
|
|
2272
|
-
D.value =
|
|
2273
|
+
const j = w.value.filter((E) => E.show);
|
|
2274
|
+
D.value = j.map((E) => E.key);
|
|
2273
2275
|
}
|
|
2274
2276
|
v(!0);
|
|
2275
2277
|
} catch (L) {
|
|
2276
2278
|
console.info("error: ", L);
|
|
2277
2279
|
}
|
|
2278
2280
|
};
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
+
W(), he(() => e.list, () => {
|
|
2282
|
+
W();
|
|
2281
2283
|
}, { deep: !0 });
|
|
2282
|
-
const
|
|
2283
|
-
|
|
2284
|
+
const H = O(!1), f = () => {
|
|
2285
|
+
H.value = !0;
|
|
2284
2286
|
}, oe = (V) => {
|
|
2285
2287
|
r.value = V;
|
|
2286
2288
|
}, C = () => {
|
|
2287
|
-
|
|
2289
|
+
H.value = !1, Te.local.setItem(
|
|
2288
2290
|
b.value,
|
|
2289
|
-
r.value.map(({ show: V, key: L, label:
|
|
2291
|
+
r.value.map(({ show: V, key: L, label: j, value: E, width: ie, minWidth: z, align: q }) => ({
|
|
2290
2292
|
show: V,
|
|
2291
2293
|
key: L,
|
|
2292
|
-
label:
|
|
2294
|
+
label: j,
|
|
2293
2295
|
value: E,
|
|
2294
2296
|
width: ie,
|
|
2295
2297
|
minWidth: z,
|
|
@@ -2298,12 +2300,12 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2298
2300
|
), l("sort", ae.cloneDeep(r.value)), A.value = ae.cloneDeep(r.value);
|
|
2299
2301
|
};
|
|
2300
2302
|
return (V, L) => {
|
|
2301
|
-
const
|
|
2303
|
+
const j = ne("el-button"), E = ne("el-checkbox"), ie = ne("el-checkbox-group"), z = ne("el-dialog"), q = et("role");
|
|
2302
2304
|
return n(), g(
|
|
2303
2305
|
K,
|
|
2304
2306
|
null,
|
|
2305
2307
|
[
|
|
2306
|
-
t.btnType === "button" ? Ce((n(), U(
|
|
2308
|
+
t.btnType === "button" ? Ce((n(), U(j, te({ key: 0 }, V.$attrs, {
|
|
2307
2309
|
circle: t.circle,
|
|
2308
2310
|
type: t.type,
|
|
2309
2311
|
style: { minWidth: t.circle ? "40px" : "", minHeight: t.circle ? "40px" : "" },
|
|
@@ -2345,20 +2347,20 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2345
2347
|
[q, V.$props.role]
|
|
2346
2348
|
]) : _("v-if", !0),
|
|
2347
2349
|
m(z, {
|
|
2348
|
-
modelValue:
|
|
2349
|
-
"onUpdate:modelValue": L[3] || (L[3] = (ee) =>
|
|
2350
|
+
modelValue: H.value,
|
|
2351
|
+
"onUpdate:modelValue": L[3] || (L[3] = (ee) => H.value = ee),
|
|
2350
2352
|
draggable: "",
|
|
2351
2353
|
width: t.inline ? B(k).l : B(k).sl,
|
|
2352
2354
|
"close-on-click-modal": !1,
|
|
2353
2355
|
"close-on-press-escape": !1,
|
|
2354
2356
|
title: "显示字段",
|
|
2355
2357
|
"append-to-body": "",
|
|
2356
|
-
onOpen:
|
|
2358
|
+
onOpen: W
|
|
2357
2359
|
}, {
|
|
2358
2360
|
footer: P(() => [
|
|
2359
2361
|
d("div", mn, [
|
|
2360
|
-
m(
|
|
2361
|
-
onClick: L[2] || (L[2] = (ee) =>
|
|
2362
|
+
m(j, {
|
|
2363
|
+
onClick: L[2] || (L[2] = (ee) => H.value = !1)
|
|
2362
2364
|
}, {
|
|
2363
2365
|
default: P(() => [
|
|
2364
2366
|
le(
|
|
@@ -2371,7 +2373,7 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2371
2373
|
_: 1
|
|
2372
2374
|
/* STABLE */
|
|
2373
2375
|
}),
|
|
2374
|
-
m(
|
|
2376
|
+
m(j, {
|
|
2375
2377
|
type: "primary",
|
|
2376
2378
|
disabled: r.value.length < 2,
|
|
2377
2379
|
onClick: C
|
|
@@ -2406,7 +2408,7 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2406
2408
|
"onUpdate:modelValue": L[0] || (L[0] = (ee) => h.value = ee),
|
|
2407
2409
|
class: "single-line",
|
|
2408
2410
|
indeterminate: i.value,
|
|
2409
|
-
onChange:
|
|
2411
|
+
onChange: N
|
|
2410
2412
|
}, {
|
|
2411
2413
|
default: P(() => [
|
|
2412
2414
|
le(" 全选 ")
|
|
@@ -2647,7 +2649,7 @@ const bn = /* @__PURE__ */ se(An, [["__scopeId", "data-v-b5ed17ed"]]), kn = Me(b
|
|
|
2647
2649
|
}
|
|
2648
2650
|
})), k = O(!1), p = () => {
|
|
2649
2651
|
k.value = !0;
|
|
2650
|
-
},
|
|
2652
|
+
}, F = (b) => {
|
|
2651
2653
|
k.value = !1;
|
|
2652
2654
|
const w = e.list[b.oldIndex];
|
|
2653
2655
|
l("change", A.value, {
|
|
@@ -2671,7 +2673,7 @@ const bn = /* @__PURE__ */ se(An, [["__scopeId", "data-v-b5ed17ed"]]), kn = Me(b
|
|
|
2671
2673
|
"force-fallback": o.value.ghostClass,
|
|
2672
2674
|
"item-key": "order",
|
|
2673
2675
|
onStart: p,
|
|
2674
|
-
onEnd:
|
|
2676
|
+
onEnd: F
|
|
2675
2677
|
}, {
|
|
2676
2678
|
item: P(({ element: r }) => [
|
|
2677
2679
|
m(
|
|
@@ -2783,14 +2785,14 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2783
2785
|
}), x && c("search", p.value);
|
|
2784
2786
|
}
|
|
2785
2787
|
});
|
|
2786
|
-
const
|
|
2788
|
+
const F = () => {
|
|
2787
2789
|
k.value = [], t.list.forEach((u) => {
|
|
2788
2790
|
var R, T;
|
|
2789
2791
|
o.value[u.key] = o.value[u.value], A[u.key] = A[u.value], k.value.push(u.key), (R = p.value)[T = u.key] ?? (R[T] = u.value || null);
|
|
2790
2792
|
});
|
|
2791
2793
|
};
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
+
F(), he(() => t.list, () => {
|
|
2795
|
+
F();
|
|
2794
2796
|
});
|
|
2795
2797
|
const b = M(() => k.value.map((u) => t.list.find((R) => R.key === u))), w = () => {
|
|
2796
2798
|
var u;
|
|
@@ -2834,7 +2836,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2834
2836
|
onBlur: () => a()
|
|
2835
2837
|
}, Z, {
|
|
2836
2838
|
placeholder: (Z == null ? void 0 : Z.placeholder) || $ || `请输入${Y || ""}`
|
|
2837
|
-
}), null),
|
|
2839
|
+
}), null), N = ({
|
|
2838
2840
|
key: u,
|
|
2839
2841
|
placeholder: R,
|
|
2840
2842
|
max: T,
|
|
@@ -2856,7 +2858,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2856
2858
|
onChange: () => a()
|
|
2857
2859
|
}, Q, {
|
|
2858
2860
|
placeholder: (Q == null ? void 0 : Q.placeholder) || R || `请输入${Y || ""}`
|
|
2859
|
-
}), null),
|
|
2861
|
+
}), null), W = ({
|
|
2860
2862
|
key: u,
|
|
2861
2863
|
placeholder: R,
|
|
2862
2864
|
disabled: T,
|
|
@@ -2881,7 +2883,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2881
2883
|
label: Q.label,
|
|
2882
2884
|
value: Q.value
|
|
2883
2885
|
}, null))]
|
|
2884
|
-
}),
|
|
2886
|
+
}), H = ({
|
|
2885
2887
|
key: u,
|
|
2886
2888
|
disabled: R,
|
|
2887
2889
|
options: T,
|
|
@@ -2944,8 +2946,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2944
2946
|
popperclass: Q,
|
|
2945
2947
|
rangeSeparator: Ae = "-",
|
|
2946
2948
|
defaultValue: Be,
|
|
2947
|
-
defaultTime:
|
|
2948
|
-
valueFormat:
|
|
2949
|
+
defaultTime: Ue,
|
|
2950
|
+
valueFormat: Ve,
|
|
2949
2951
|
disabledDate: Pe = () => !1,
|
|
2950
2952
|
formProp: Oe = {}
|
|
2951
2953
|
}) => {
|
|
@@ -2981,8 +2983,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2981
2983
|
format: ce,
|
|
2982
2984
|
popperClass: Q,
|
|
2983
2985
|
defaultValue: Be,
|
|
2984
|
-
defaultTime:
|
|
2985
|
-
valueFormat:
|
|
2986
|
+
defaultTime: Ue,
|
|
2987
|
+
valueFormat: Ve,
|
|
2986
2988
|
disabledDate: Pe
|
|
2987
2989
|
}, Oe, {
|
|
2988
2990
|
placeholder: (Oe == null ? void 0 : Oe.placeholder) || Y || "请选择日期"
|
|
@@ -2999,8 +3001,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2999
3001
|
expandOnClickNode: Q = !1,
|
|
3000
3002
|
placeholder: Ae = "全部",
|
|
3001
3003
|
checkOnClickNode: Be = !1,
|
|
3002
|
-
showCheckbox:
|
|
3003
|
-
checkStrictly:
|
|
3004
|
+
showCheckbox: Ue = !1,
|
|
3005
|
+
checkStrictly: Ve = !0,
|
|
3004
3006
|
defaultCheckedKeys: Pe = [],
|
|
3005
3007
|
currentNodeKey: Oe = "",
|
|
3006
3008
|
accordion: ce = !1,
|
|
@@ -3021,8 +3023,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3021
3023
|
defaultExpandAll: Y,
|
|
3022
3024
|
expandOnClickNode: Q,
|
|
3023
3025
|
checkOnClickNode: Be,
|
|
3024
|
-
showCheckbox:
|
|
3025
|
-
checkStrictly:
|
|
3026
|
+
showCheckbox: Ue,
|
|
3027
|
+
checkStrictly: Ve,
|
|
3026
3028
|
defaultCheckedKeys: Pe,
|
|
3027
3029
|
currentNodeKey: Oe,
|
|
3028
3030
|
accordion: ce
|
|
@@ -3059,7 +3061,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3059
3061
|
value: Q.value
|
|
3060
3062
|
}, null))]
|
|
3061
3063
|
})
|
|
3062
|
-
}),
|
|
3064
|
+
}), j = "", E = "iking", ie = O(null), z = O([]), q = O(!1), ee = O(""), de = /* @__PURE__ */ new Map(), Re = (u) => {
|
|
3063
3065
|
q.value = !0, z.value = de.has(u) ? de.get(u) : p.value[u], ee.value = u;
|
|
3064
3066
|
}, me = () => {
|
|
3065
3067
|
de.set(ee.value, []), ee.value = "", a();
|
|
@@ -3086,7 +3088,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3086
3088
|
onClick: () => Re(u),
|
|
3087
3089
|
onClear: () => me(),
|
|
3088
3090
|
placeholder: (Y == null ? void 0 : Y.placeholder) || R || `点击选择${label || "人员"}`
|
|
3089
|
-
}), null),
|
|
3091
|
+
}), null), Ie = (u) => {
|
|
3090
3092
|
switch (u.type) {
|
|
3091
3093
|
case "":
|
|
3092
3094
|
case void 0:
|
|
@@ -3095,17 +3097,17 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3095
3097
|
return v(u);
|
|
3096
3098
|
case _e.number:
|
|
3097
3099
|
case "el-input-number":
|
|
3098
|
-
return
|
|
3100
|
+
return N(u);
|
|
3099
3101
|
case _e.select:
|
|
3100
3102
|
case "el-select":
|
|
3101
|
-
return
|
|
3103
|
+
return W(u);
|
|
3102
3104
|
case _e.checkbox:
|
|
3103
3105
|
case "el-checkbox":
|
|
3104
3106
|
return f(u);
|
|
3105
3107
|
case _e.radio:
|
|
3106
3108
|
case "el-radio-group":
|
|
3107
3109
|
case "el-radio":
|
|
3108
|
-
return
|
|
3110
|
+
return H(u);
|
|
3109
3111
|
case _e.date:
|
|
3110
3112
|
case "el-date-picker":
|
|
3111
3113
|
return C(u);
|
|
@@ -3150,7 +3152,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3150
3152
|
}, [m(dt, {
|
|
3151
3153
|
label: x.type === "select-input" ? "" : x.label,
|
|
3152
3154
|
prop: x.key
|
|
3153
|
-
}, yt(Z =
|
|
3155
|
+
}, yt(Z = Ie(x)) ? Z : {
|
|
3154
3156
|
default: () => [Z]
|
|
3155
3157
|
}), m(xe, {
|
|
3156
3158
|
name: "icon-sousuo1",
|
|
@@ -3172,7 +3174,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3172
3174
|
) : m(dt, {
|
|
3173
3175
|
label: x.type === "select-input" ? "" : x.label,
|
|
3174
3176
|
prop: x.key
|
|
3175
|
-
}, yt(J =
|
|
3177
|
+
}, yt(J = Ie(x)) ? J : {
|
|
3176
3178
|
default: () => [J]
|
|
3177
3179
|
})]
|
|
3178
3180
|
}));
|
|
@@ -3203,7 +3205,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3203
3205
|
"append-to-body": !0,
|
|
3204
3206
|
api: {
|
|
3205
3207
|
methods: "post",
|
|
3206
|
-
url: `${
|
|
3208
|
+
url: `${j}/server/component/pick/mix`,
|
|
3207
3209
|
headers: {
|
|
3208
3210
|
"Content-Type": "application/json;charset=UTF-8",
|
|
3209
3211
|
Authorization: E
|
|
@@ -3293,14 +3295,14 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3293
3295
|
emits: ["update:modelValue"],
|
|
3294
3296
|
setup(t) {
|
|
3295
3297
|
mt((b) => ({
|
|
3296
|
-
"59e2b6b4":
|
|
3298
|
+
"59e2b6b4": F
|
|
3297
3299
|
}));
|
|
3298
3300
|
const c = t, e = Je(t, "modelValue"), l = O(c.defaultShow), A = () => {
|
|
3299
3301
|
l.value = !l.value;
|
|
3300
3302
|
}, o = M(() => c.fields.filter((b) => !b.onlyForm)), k = M(() => {
|
|
3301
3303
|
var b;
|
|
3302
3304
|
return (b = c.fields) == null ? void 0 : b.filter((w) => w.search);
|
|
3303
|
-
}), p = M(() => k.value.length),
|
|
3305
|
+
}), p = M(() => k.value.length), F = `${c.headerHeight}px`;
|
|
3304
3306
|
return (b, w) => {
|
|
3305
3307
|
const D = ne("el-card");
|
|
3306
3308
|
return n(), g(
|
|
@@ -3562,7 +3564,7 @@ const In = /* @__PURE__ */ se(Tn, [["__scopeId", "data-v-659625f1"]]), bt = {
|
|
|
3562
3564
|
page: A.value,
|
|
3563
3565
|
rows: k.value
|
|
3564
3566
|
});
|
|
3565
|
-
},
|
|
3567
|
+
}, F = (b) => {
|
|
3566
3568
|
l("currentChange", b), e == null || e.search({
|
|
3567
3569
|
page: A.value,
|
|
3568
3570
|
rows: k.value
|
|
@@ -3582,7 +3584,7 @@ const In = /* @__PURE__ */ se(Tn, [["__scopeId", "data-v-659625f1"]]), bt = {
|
|
|
3582
3584
|
"page-sizes": o,
|
|
3583
3585
|
class: "ik-pagin-action",
|
|
3584
3586
|
onSizeChange: p,
|
|
3585
|
-
onCurrentChange:
|
|
3587
|
+
onCurrentChange: F
|
|
3586
3588
|
}), {
|
|
3587
3589
|
default: P(() => [
|
|
3588
3590
|
d("span", Un, [
|
|
@@ -3614,23 +3616,23 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3614
3616
|
rows: 15
|
|
3615
3617
|
}), p = M(() => {
|
|
3616
3618
|
const { page: a, rows: h } = (o == null ? void 0 : o.page) || k.value, i = ae.cloneDeep(l.tableData);
|
|
3617
|
-
return i.forEach((v,
|
|
3618
|
-
v.__index = a === 1 ?
|
|
3619
|
+
return i.forEach((v, N) => {
|
|
3620
|
+
v.__index = a === 1 ? N + 1 : (a - 1) * h + N + 1;
|
|
3619
3621
|
}), i;
|
|
3620
|
-
}),
|
|
3622
|
+
}), F = (a) => {
|
|
3621
3623
|
k.value = a, A("page-change", a), l.search();
|
|
3622
3624
|
}, b = O([]), w = (a) => {
|
|
3623
3625
|
b.value = a, A("selection-change", a);
|
|
3624
3626
|
}, D = O();
|
|
3625
3627
|
return c({ table: D }), (a, h) => {
|
|
3626
|
-
var
|
|
3627
|
-
const i = ne("el-table-column"), v = ne("el-table"),
|
|
3628
|
+
var W, H, f;
|
|
3629
|
+
const i = ne("el-table-column"), v = ne("el-table"), N = et("loading");
|
|
3628
3630
|
return n(), g(
|
|
3629
3631
|
K,
|
|
3630
3632
|
null,
|
|
3631
3633
|
[
|
|
3632
3634
|
_(" 自定义表格 "),
|
|
3633
|
-
(
|
|
3635
|
+
(W = a.$slots) != null && W.table ? ve(a.$slots, "table", { key: 0 }, void 0, !0) : (n(), g(
|
|
3634
3636
|
K,
|
|
3635
3637
|
{ key: 1 },
|
|
3636
3638
|
[
|
|
@@ -3664,7 +3666,7 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3664
3666
|
_: 3
|
|
3665
3667
|
/* FORWARDED */
|
|
3666
3668
|
}, 16, ["data"])), [
|
|
3667
|
-
[
|
|
3669
|
+
[N, a.loading]
|
|
3668
3670
|
])
|
|
3669
3671
|
]),
|
|
3670
3672
|
_: 3
|
|
@@ -3677,9 +3679,9 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3677
3679
|
_(" 分页 "),
|
|
3678
3680
|
a.total ? (n(), U(Dn, {
|
|
3679
3681
|
key: 2,
|
|
3680
|
-
current: ((f = (
|
|
3682
|
+
current: ((f = (H = a.$attrs) == null ? void 0 : H.page) == null ? void 0 : f.page) || 1,
|
|
3681
3683
|
total: a.total,
|
|
3682
|
-
search:
|
|
3684
|
+
search: F
|
|
3683
3685
|
}, null, 8, ["current", "total"])) : _("v-if", !0)
|
|
3684
3686
|
],
|
|
3685
3687
|
64
|
|
@@ -3715,7 +3717,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3715
3717
|
...o.value,
|
|
3716
3718
|
...C
|
|
3717
3719
|
};
|
|
3718
|
-
},
|
|
3720
|
+
}, F = (C) => {
|
|
3719
3721
|
var L;
|
|
3720
3722
|
k();
|
|
3721
3723
|
const V = (C == null ? void 0 : C.type) === "click" ? {} : C;
|
|
@@ -3727,8 +3729,8 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3727
3729
|
});
|
|
3728
3730
|
}, b = O([]), w = (C) => {
|
|
3729
3731
|
b.value = C, A("selection-change", C);
|
|
3730
|
-
}, D = M(() => b.value.length || l.chooseLen), r = O(l.fields), a = M(() => "light"), h = O(), i = O(), v = O(),
|
|
3731
|
-
|
|
3732
|
+
}, D = M(() => b.value.length || l.chooseLen), r = O(l.fields), a = M(() => "light"), h = O(), i = O(), v = O(), N = O(!1), W = O(void 0), H = O(l.title || ""), f = (C) => {
|
|
3733
|
+
W.value = C ? { ...C } : null, l.title ? l.title.includes("新增") || l.title.includes("修改") ? H.value = C ? l.title.replace(/新增/g, "修改") : l.title.replace(/修改/g, "新增") : H.value = C ? `修改${l.title}` : `新增${l.title}` : H.value = C ? "修改" : "新增", N.value = !0;
|
|
3732
3734
|
}, oe = M(() => l.fields.find((C) => C.isEdit));
|
|
3733
3735
|
return c({
|
|
3734
3736
|
table: h,
|
|
@@ -3739,7 +3741,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3739
3741
|
dialog: v,
|
|
3740
3742
|
handAdd: f
|
|
3741
3743
|
}), (C, V) => {
|
|
3742
|
-
const L = ne("el-button"),
|
|
3744
|
+
const L = ne("el-button"), j = ne("IkNumberDuration"), E = ne("el-table-column"), ie = et("role");
|
|
3743
3745
|
return n(), g(
|
|
3744
3746
|
K,
|
|
3745
3747
|
null,
|
|
@@ -3752,7 +3754,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3752
3754
|
modelValue: r.value,
|
|
3753
3755
|
"onUpdate:modelValue": V[1] || (V[1] = (z) => r.value = z),
|
|
3754
3756
|
loading: C.loading,
|
|
3755
|
-
search:
|
|
3757
|
+
search: F,
|
|
3756
3758
|
"tab-id": C.tabId
|
|
3757
3759
|
}), {
|
|
3758
3760
|
headerLeft: P(() => [
|
|
@@ -3789,7 +3791,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3789
3791
|
d("p", Mn, [
|
|
3790
3792
|
le(" 已选 "),
|
|
3791
3793
|
d("span", null, [
|
|
3792
|
-
m(
|
|
3794
|
+
m(j, { value: D.value }, null, 8, ["value"])
|
|
3793
3795
|
]),
|
|
3794
3796
|
le(" 条 ")
|
|
3795
3797
|
]),
|