iking-web-ui-pro 0.2.43 → 0.2.45
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/{IkApprovalProcess → IKApprovalProcess}/ik.index.es.js +74 -78
- package/dist/{IkApprovalProcess → IKApprovalProcess}/ik.index.umd.js +1 -1
- package/dist/{IkApprovalProcess → IKApprovalProcess}/style.css +1 -1
- package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.es.js +2 -3
- package/dist/{IkApprovalProcessDetail → IKApprovalProcessDetail}/ik.index.umd.js +2 -2
- package/dist/IKApprovalProcessDetail/style.css +1 -0
- package/dist/{IkCalendar → IKCalendar}/ik.index.es.js +356 -355
- package/dist/{IkCalendar → IKCalendar}/ik.index.umd.js +1 -1
- package/dist/{IkCalendar → IKCalendar}/style.css +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +0 -1
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +110 -109
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IkDescription/ik.index.es.js +0 -1
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +0 -1
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +153 -152
- package/dist/IkPageFull/ik.index.umd.js +2 -2
- package/dist/IkPickerUser/ik.index.es.js +118 -117
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +0 -1
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkTinymce/ik.index.es.js +3 -3
- package/dist/IkTinymce/ik.index.umd.js +1 -1
- package/dist/IkTinymce/style.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +2 -3
- package/dist/IkUploadFile/ik.index.umd.js +2 -2
- 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 +8642 -8647
- package/dist/index.umd.js +68 -68
- package/dist/src/components/IkApprovalProcess/index.d.ts +0 -9
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +0 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IkApprovalProcessDetail/style.css +0 -1
|
@@ -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,19 @@ 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
|
+
rootDepartmentId: (V = Te.local.getItem("now_shop")) == null ? void 0 : V.storeId,
|
|
1527
1528
|
parentDepartmentId: o || "",
|
|
1528
1529
|
name: k || "",
|
|
1529
1530
|
rootDepartmentOnly: c.rootDepartmentOnly,
|
|
1530
1531
|
dataScopeOnly: c.dataScopeOnly
|
|
1531
1532
|
}, r = {
|
|
1532
|
-
method:
|
|
1533
|
+
method: F,
|
|
1533
1534
|
url: p,
|
|
1534
1535
|
headers: {
|
|
1535
1536
|
"Content-Type": "application/json;charset=UTF-8",
|
|
@@ -1550,24 +1551,24 @@ const Ka = {
|
|
|
1550
1551
|
};
|
|
1551
1552
|
const {
|
|
1552
1553
|
departments: v,
|
|
1553
|
-
roles:
|
|
1554
|
-
posts:
|
|
1555
|
-
users:
|
|
1554
|
+
roles: N,
|
|
1555
|
+
posts: W,
|
|
1556
|
+
users: H,
|
|
1556
1557
|
rootOrganization: f,
|
|
1557
1558
|
rootDepartment: oe
|
|
1558
1559
|
} = i, C = f || oe;
|
|
1559
1560
|
return e.value.length === 0 && (e.value[0] = c.org ? {
|
|
1560
1561
|
...c.org,
|
|
1561
1562
|
id: c.elementId,
|
|
1562
|
-
elementType: (
|
|
1563
|
+
elementType: (j = (L = c.org) == null ? void 0 : L.elementType) == null ? void 0 : j.toLocaleUpperCase()
|
|
1563
1564
|
} : {
|
|
1564
1565
|
...C,
|
|
1565
1566
|
id: C.elementId
|
|
1566
1567
|
}), {
|
|
1567
1568
|
groupList: ae.cloneDeep(v),
|
|
1568
|
-
roleList: ae.cloneDeep(
|
|
1569
|
-
postList: ae.cloneDeep(
|
|
1570
|
-
userList: ae.cloneDeep(
|
|
1569
|
+
roleList: ae.cloneDeep(N),
|
|
1570
|
+
postList: ae.cloneDeep(W),
|
|
1571
|
+
userList: ae.cloneDeep(H),
|
|
1571
1572
|
rootOrganization: f,
|
|
1572
1573
|
rootDepartment: oe
|
|
1573
1574
|
};
|
|
@@ -1602,7 +1603,7 @@ const Ka = {
|
|
|
1602
1603
|
mt((s) => ({
|
|
1603
1604
|
"775d0d08": Ae.value
|
|
1604
1605
|
}));
|
|
1605
|
-
const l = t, A = O(""), o = O(""), k = O([]), p = O([]),
|
|
1606
|
+
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
1607
|
he(
|
|
1607
1608
|
() => l.api,
|
|
1608
1609
|
() => {
|
|
@@ -1621,14 +1622,14 @@ const Ka = {
|
|
|
1621
1622
|
post: "POST",
|
|
1622
1623
|
group: "DEPT",
|
|
1623
1624
|
...l.typeOption
|
|
1624
|
-
})), h = O([]), i = en(kt(l, "api"), l), v = i.handData,
|
|
1625
|
+
})), h = O([]), i = en(kt(l, "api"), l), v = i.handData, N = i.bannerList;
|
|
1625
1626
|
l.immediate && v(o.value, A.value);
|
|
1626
|
-
const
|
|
1627
|
+
const W = (s) => (s.forEach((y) => {
|
|
1627
1628
|
var S, I;
|
|
1628
1629
|
y.disabled = ((I = (S = l.modelValue) == null ? void 0 : S.find(
|
|
1629
1630
|
(G) => G[r.value.id] === y[r.value.id]
|
|
1630
1631
|
)) == null ? void 0 : I.disabled) || !1;
|
|
1631
|
-
}), s),
|
|
1632
|
+
}), s), H = async () => {
|
|
1632
1633
|
var s, y, S, I, G, be, qe, ot;
|
|
1633
1634
|
w.value = !0;
|
|
1634
1635
|
try {
|
|
@@ -1637,7 +1638,7 @@ const Ka = {
|
|
|
1637
1638
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1638
1639
|
), p.value = (be = l.groupList) == null ? void 0 : be.filter(
|
|
1639
1640
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1640
|
-
),
|
|
1641
|
+
), F.value = (qe = l.roleList) == null ? void 0 : qe.filter(
|
|
1641
1642
|
(ke) => ke[r.value.name].includes(A.value)
|
|
1642
1643
|
), b.value = (ot = l.postList) == null ? void 0 : ot.filter(
|
|
1643
1644
|
(ke) => ke[r.value.name].includes(A.value)
|
|
@@ -1646,7 +1647,7 @@ const Ka = {
|
|
|
1646
1647
|
}
|
|
1647
1648
|
const pe = await v(o.value, A.value);
|
|
1648
1649
|
try {
|
|
1649
|
-
k.value =
|
|
1650
|
+
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
1651
|
} catch (ke) {
|
|
1651
1652
|
w.value = !1, console.info("error: ", ke);
|
|
1652
1653
|
}
|
|
@@ -1670,7 +1671,7 @@ const Ka = {
|
|
|
1670
1671
|
}), oe = it({
|
|
1671
1672
|
indeterminate: !1,
|
|
1672
1673
|
checkAll: 0
|
|
1673
|
-
}), C = (s) => f.group.has(s) || f.user.has(s) || f.role.has(s) || f.post.has(s), V = zt.debounce(
|
|
1674
|
+
}), 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
1675
|
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
1676
|
return h.value = [...y, ...I, ...S, ...s], {
|
|
1676
1677
|
list: [...y, ...S, ...I, ...s],
|
|
@@ -1691,7 +1692,7 @@ const Ka = {
|
|
|
1691
1692
|
len: s.length
|
|
1692
1693
|
}
|
|
1693
1694
|
};
|
|
1694
|
-
}),
|
|
1695
|
+
}), j = M(() => {
|
|
1695
1696
|
const s = l.chooseType.map((S) => S.toLocaleLowerCase());
|
|
1696
1697
|
let y = [...s];
|
|
1697
1698
|
return s.includes("dep") && (y = [...y, "dept"]), s.includes("dep_user") && (y = [...y, "user"]), y;
|
|
@@ -1709,7 +1710,7 @@ const Ka = {
|
|
|
1709
1710
|
async (s) => {
|
|
1710
1711
|
var y;
|
|
1711
1712
|
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
|
|
1713
|
+
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
1714
|
const S = ee(!0);
|
|
1714
1715
|
for (const G of S)
|
|
1715
1716
|
C(G[r.value.id]) && f.trans.push(G[r.value.id]);
|
|
@@ -1816,9 +1817,9 @@ const Ka = {
|
|
|
1816
1817
|
}
|
|
1817
1818
|
);
|
|
1818
1819
|
const Qe = (s) => {
|
|
1819
|
-
o.value = s == null ? void 0 : s.elementId,
|
|
1820
|
-
},
|
|
1821
|
-
!y && !l.topLink || y !==
|
|
1820
|
+
o.value = s == null ? void 0 : s.elementId, H(), N.value.push(s);
|
|
1821
|
+
}, Ie = M(() => N.value.length), Xe = (s, y) => {
|
|
1822
|
+
!y && !l.topLink || y !== Ie.value - 1 && (o.value = s == null ? void 0 : s.elementId, H(), N.value.splice(y + 1));
|
|
1822
1823
|
}, u = M(
|
|
1823
1824
|
() => l.chooseType.includes("role") && l.chooseType.length === 1
|
|
1824
1825
|
), R = M(
|
|
@@ -1826,7 +1827,7 @@ const Ka = {
|
|
|
1826
1827
|
), T = O(l.tabs[0]), x = O(l.tabs[0]);
|
|
1827
1828
|
ut(() => (x.value = u.value ? l.tabs[1] : R.value ? l.tabs[2] : T.value, x.value));
|
|
1828
1829
|
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,
|
|
1830
|
+
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
1831
|
}, Z = () => {
|
|
1831
1832
|
var s;
|
|
1832
1833
|
z(
|
|
@@ -1843,7 +1844,7 @@ const Ka = {
|
|
|
1843
1844
|
};
|
|
1844
1845
|
c({ handClear: $, handRomeve: Re, handDelete: de });
|
|
1845
1846
|
const Y = M(() => {
|
|
1846
|
-
const s =
|
|
1847
|
+
const s = j.value;
|
|
1847
1848
|
return !!((s.includes("post") || s.includes("role")) && s.length > 1);
|
|
1848
1849
|
}), Q = M(() => [
|
|
1849
1850
|
{ name: "group", label: "组织架构" },
|
|
@@ -1853,7 +1854,7 @@ const Ka = {
|
|
|
1853
1854
|
() => `${typeof l.height == "string" ? Number.parseInt(l.height) : l.height}px`
|
|
1854
1855
|
), Be = () => {
|
|
1855
1856
|
l.multiple || (f.post.clear(), f.role.clear(), f.user.clear(), f.group.clear(), f.single = "");
|
|
1856
|
-
},
|
|
1857
|
+
}, Ue = M(() => L.value.groups.list.concat(L.value.user.list)), Ve = (s, y) => {
|
|
1857
1858
|
l.multiple || (f.single = "");
|
|
1858
1859
|
const S = l.multiple ? s : [s];
|
|
1859
1860
|
if (!S.length) {
|
|
@@ -1921,7 +1922,7 @@ const Ka = {
|
|
|
1921
1922
|
footer: P(() => [
|
|
1922
1923
|
d("span", pn, [
|
|
1923
1924
|
m(B(Ke), {
|
|
1924
|
-
onClick:
|
|
1925
|
+
onClick: De(J, ["stop"])
|
|
1925
1926
|
}, {
|
|
1926
1927
|
default: P(() => [
|
|
1927
1928
|
le("取消")
|
|
@@ -1931,7 +1932,7 @@ const Ka = {
|
|
|
1931
1932
|
}),
|
|
1932
1933
|
m(B(Ke), {
|
|
1933
1934
|
type: "primary",
|
|
1934
|
-
onClick:
|
|
1935
|
+
onClick: De(Z, ["stop"])
|
|
1935
1936
|
}, {
|
|
1936
1937
|
default: P(() => [
|
|
1937
1938
|
le(" 确定 ")
|
|
@@ -1982,11 +1983,11 @@ const Ka = {
|
|
|
1982
1983
|
}, 8, ["modelValue"])) : _("v-if", !0)
|
|
1983
1984
|
]),
|
|
1984
1985
|
_(" 过滤 "),
|
|
1985
|
-
x.value === B(
|
|
1986
|
+
x.value === B(ze).group ? (n(), g(
|
|
1986
1987
|
K,
|
|
1987
1988
|
{ key: 0 },
|
|
1988
1989
|
[
|
|
1989
|
-
|
|
1990
|
+
Ie.value ? (n(), g("div", ln, [
|
|
1990
1991
|
_(" 面包屑 全选 "),
|
|
1991
1992
|
m(B(Bt), {
|
|
1992
1993
|
separator: ">",
|
|
@@ -1996,9 +1997,9 @@ const Ka = {
|
|
|
1996
1997
|
(n(!0), g(
|
|
1997
1998
|
K,
|
|
1998
1999
|
null,
|
|
1999
|
-
ge(B(
|
|
2000
|
+
ge(B(N), (G, be) => (n(), U(B(Pt), {
|
|
2000
2001
|
key: G[r.value.id],
|
|
2001
|
-
onClick:
|
|
2002
|
+
onClick: De((qe) => Xe(G, be), ["stop"])
|
|
2002
2003
|
}, {
|
|
2003
2004
|
default: P(() => [
|
|
2004
2005
|
le(
|
|
@@ -2024,23 +2025,23 @@ const Ka = {
|
|
|
2024
2025
|
)) : _("v-if", !0),
|
|
2025
2026
|
_(" 左侧列表 "),
|
|
2026
2027
|
_(" 组织架构 "),
|
|
2027
|
-
x.value === B(
|
|
2028
|
+
x.value === B(ze).group ? Ce((n(), U(fa, {
|
|
2028
2029
|
key: 1,
|
|
2029
2030
|
fixPropOpt: r.value,
|
|
2030
2031
|
fixTypeOpt: a.value,
|
|
2031
2032
|
list: D.value,
|
|
2032
2033
|
max: s.max,
|
|
2033
2034
|
multiple: s.multiple,
|
|
2034
|
-
"hand-list":
|
|
2035
|
+
"hand-list": Ue.value,
|
|
2035
2036
|
imageBaseUrl: l.imageBaseUrl,
|
|
2036
2037
|
emptyText: l.emptyText,
|
|
2037
2038
|
children: l.children,
|
|
2038
|
-
"choose-type":
|
|
2039
|
+
"choose-type": j.value,
|
|
2039
2040
|
onHandChild: Qe,
|
|
2040
|
-
onChange:
|
|
2041
|
+
onChange: Ve
|
|
2041
2042
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "children", "choose-type"])), [
|
|
2042
2043
|
[B(Ze), w.value]
|
|
2043
|
-
]) : x.value === B(
|
|
2044
|
+
]) : x.value === B(ze).role ? (n(), g(
|
|
2044
2045
|
K,
|
|
2045
2046
|
{ key: 2 },
|
|
2046
2047
|
[
|
|
@@ -2048,13 +2049,13 @@ const Ka = {
|
|
|
2048
2049
|
Ce(m(qa, {
|
|
2049
2050
|
fixPropOpt: r.value,
|
|
2050
2051
|
fixTypeOpt: a.value,
|
|
2051
|
-
list:
|
|
2052
|
+
list: F.value,
|
|
2052
2053
|
max: s.max,
|
|
2053
2054
|
multiple: s.multiple,
|
|
2054
2055
|
"hand-list": Pe.value,
|
|
2055
2056
|
imageBaseUrl: l.imageBaseUrl,
|
|
2056
2057
|
emptyText: l.emptyText,
|
|
2057
|
-
"choose-type":
|
|
2058
|
+
"choose-type": j.value,
|
|
2058
2059
|
onChange: Oe
|
|
2059
2060
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2060
2061
|
[B(Ze), w.value]
|
|
@@ -2062,7 +2063,7 @@ const Ka = {
|
|
|
2062
2063
|
],
|
|
2063
2064
|
64
|
|
2064
2065
|
/* STABLE_FRAGMENT */
|
|
2065
|
-
)) : x.value === B(
|
|
2066
|
+
)) : x.value === B(ze).post ? (n(), g(
|
|
2066
2067
|
K,
|
|
2067
2068
|
{ key: 3 },
|
|
2068
2069
|
[
|
|
@@ -2076,7 +2077,7 @@ const Ka = {
|
|
|
2076
2077
|
"hand-list": ce.value,
|
|
2077
2078
|
imageBaseUrl: l.imageBaseUrl,
|
|
2078
2079
|
emptyText: l.emptyText,
|
|
2079
|
-
"choose-type":
|
|
2080
|
+
"choose-type": j.value,
|
|
2080
2081
|
onChange: we
|
|
2081
2082
|
}, null, 8, ["fixPropOpt", "fixTypeOpt", "list", "max", "multiple", "hand-list", "imageBaseUrl", "emptyText", "choose-type"]), [
|
|
2082
2083
|
[B(Ze), w.value]
|
|
@@ -2094,7 +2095,7 @@ const Ka = {
|
|
|
2094
2095
|
m(B(Ke), {
|
|
2095
2096
|
type: "primary",
|
|
2096
2097
|
link: "",
|
|
2097
|
-
onClick:
|
|
2098
|
+
onClick: De($, ["stop"])
|
|
2098
2099
|
}, {
|
|
2099
2100
|
default: P(() => [
|
|
2100
2101
|
le("清空")
|
|
@@ -2128,7 +2129,7 @@ const Ka = {
|
|
|
2128
2129
|
]),
|
|
2129
2130
|
Ce(m(hl, {
|
|
2130
2131
|
class: "close",
|
|
2131
|
-
onClick:
|
|
2132
|
+
onClick: De((be) => Re(G), ["stop"])
|
|
2132
2133
|
}, null, 8, ["onClick"]), [
|
|
2133
2134
|
[_t, !(G != null && G.readonly)]
|
|
2134
2135
|
])
|
|
@@ -2215,11 +2216,11 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2215
2216
|
}),
|
|
2216
2217
|
emits: /* @__PURE__ */ Ee(["sort"], ["update:modelValue"]),
|
|
2217
2218
|
setup(t, { emit: c }) {
|
|
2218
|
-
const e = t, l = c, A = Je(t, "modelValue"), { t: o, dialog: k, path: p, user:
|
|
2219
|
+
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
2220
|
const V = D.value.length && D.value.length !== e.list.length;
|
|
2220
2221
|
return !V && D.value.length && (h.value = !0), !!V;
|
|
2221
2222
|
}), v = (V) => {
|
|
2222
|
-
var
|
|
2223
|
+
var j;
|
|
2223
2224
|
const L = ae.cloneDeep(r.value);
|
|
2224
2225
|
L == null || L.forEach((E) => {
|
|
2225
2226
|
var ie;
|
|
@@ -2235,23 +2236,23 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2235
2236
|
const q = a.get(E);
|
|
2236
2237
|
q && (q.show = !0, r.value.push(q));
|
|
2237
2238
|
}
|
|
2238
|
-
}), (
|
|
2239
|
-
},
|
|
2239
|
+
}), (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));
|
|
2240
|
+
}, N = (V) => {
|
|
2240
2241
|
if (V)
|
|
2241
2242
|
D.value = e.list.map((L) => L.key);
|
|
2242
2243
|
else {
|
|
2243
|
-
const L = e.list.find((
|
|
2244
|
+
const L = e.list.find((j) => !j.key || j.label === "操作");
|
|
2244
2245
|
D.value = L ? [L.key] : [];
|
|
2245
2246
|
}
|
|
2246
2247
|
v();
|
|
2247
|
-
},
|
|
2248
|
-
const V =
|
|
2248
|
+
}, W = () => {
|
|
2249
|
+
const V = Te.local.getItem(b.value);
|
|
2249
2250
|
try {
|
|
2250
2251
|
const L = ae.cloneDeep(e == null ? void 0 : e.list);
|
|
2251
|
-
if ((!V || !(V != null && V.length)) &&
|
|
2252
|
+
if ((!V || !(V != null && V.length)) && Te.local.setItem(
|
|
2252
2253
|
b.value,
|
|
2253
|
-
L.map(({ show:
|
|
2254
|
-
show:
|
|
2254
|
+
L.map(({ show: j, type: E, key: ie, label: z, width: q, minWidth: ee, align: de }) => ({
|
|
2255
|
+
show: j,
|
|
2255
2256
|
key: ie,
|
|
2256
2257
|
type: E,
|
|
2257
2258
|
label: z,
|
|
@@ -2260,36 +2261,36 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2260
2261
|
align: de
|
|
2261
2262
|
}))
|
|
2262
2263
|
), w.value = [
|
|
2263
|
-
...(L == null ? void 0 : L.map((
|
|
2264
|
-
...
|
|
2265
|
-
show:
|
|
2264
|
+
...(L == null ? void 0 : L.map((j) => (a.set(j.key, j), {
|
|
2265
|
+
...j,
|
|
2266
|
+
show: j.show || !1
|
|
2266
2267
|
}))) || []
|
|
2267
2268
|
], V) {
|
|
2268
|
-
const
|
|
2269
|
-
D.value = [...
|
|
2269
|
+
const j = V.filter((E) => E.show).map((E) => E.key);
|
|
2270
|
+
D.value = [...j];
|
|
2270
2271
|
} else {
|
|
2271
|
-
const
|
|
2272
|
-
D.value =
|
|
2272
|
+
const j = w.value.filter((E) => E.show);
|
|
2273
|
+
D.value = j.map((E) => E.key);
|
|
2273
2274
|
}
|
|
2274
2275
|
v(!0);
|
|
2275
2276
|
} catch (L) {
|
|
2276
2277
|
console.info("error: ", L);
|
|
2277
2278
|
}
|
|
2278
2279
|
};
|
|
2279
|
-
|
|
2280
|
-
|
|
2280
|
+
W(), he(() => e.list, () => {
|
|
2281
|
+
W();
|
|
2281
2282
|
}, { deep: !0 });
|
|
2282
|
-
const
|
|
2283
|
-
|
|
2283
|
+
const H = O(!1), f = () => {
|
|
2284
|
+
H.value = !0;
|
|
2284
2285
|
}, oe = (V) => {
|
|
2285
2286
|
r.value = V;
|
|
2286
2287
|
}, C = () => {
|
|
2287
|
-
|
|
2288
|
+
H.value = !1, Te.local.setItem(
|
|
2288
2289
|
b.value,
|
|
2289
|
-
r.value.map(({ show: V, key: L, label:
|
|
2290
|
+
r.value.map(({ show: V, key: L, label: j, value: E, width: ie, minWidth: z, align: q }) => ({
|
|
2290
2291
|
show: V,
|
|
2291
2292
|
key: L,
|
|
2292
|
-
label:
|
|
2293
|
+
label: j,
|
|
2293
2294
|
value: E,
|
|
2294
2295
|
width: ie,
|
|
2295
2296
|
minWidth: z,
|
|
@@ -2298,12 +2299,12 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2298
2299
|
), l("sort", ae.cloneDeep(r.value)), A.value = ae.cloneDeep(r.value);
|
|
2299
2300
|
};
|
|
2300
2301
|
return (V, L) => {
|
|
2301
|
-
const
|
|
2302
|
+
const j = ne("el-button"), E = ne("el-checkbox"), ie = ne("el-checkbox-group"), z = ne("el-dialog"), q = et("role");
|
|
2302
2303
|
return n(), g(
|
|
2303
2304
|
K,
|
|
2304
2305
|
null,
|
|
2305
2306
|
[
|
|
2306
|
-
t.btnType === "button" ? Ce((n(), U(
|
|
2307
|
+
t.btnType === "button" ? Ce((n(), U(j, te({ key: 0 }, V.$attrs, {
|
|
2307
2308
|
circle: t.circle,
|
|
2308
2309
|
type: t.type,
|
|
2309
2310
|
style: { minWidth: t.circle ? "40px" : "", minHeight: t.circle ? "40px" : "" },
|
|
@@ -2345,20 +2346,20 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2345
2346
|
[q, V.$props.role]
|
|
2346
2347
|
]) : _("v-if", !0),
|
|
2347
2348
|
m(z, {
|
|
2348
|
-
modelValue:
|
|
2349
|
-
"onUpdate:modelValue": L[3] || (L[3] = (ee) =>
|
|
2349
|
+
modelValue: H.value,
|
|
2350
|
+
"onUpdate:modelValue": L[3] || (L[3] = (ee) => H.value = ee),
|
|
2350
2351
|
draggable: "",
|
|
2351
2352
|
width: t.inline ? B(k).l : B(k).sl,
|
|
2352
2353
|
"close-on-click-modal": !1,
|
|
2353
2354
|
"close-on-press-escape": !1,
|
|
2354
2355
|
title: "显示字段",
|
|
2355
2356
|
"append-to-body": "",
|
|
2356
|
-
onOpen:
|
|
2357
|
+
onOpen: W
|
|
2357
2358
|
}, {
|
|
2358
2359
|
footer: P(() => [
|
|
2359
2360
|
d("div", mn, [
|
|
2360
|
-
m(
|
|
2361
|
-
onClick: L[2] || (L[2] = (ee) =>
|
|
2361
|
+
m(j, {
|
|
2362
|
+
onClick: L[2] || (L[2] = (ee) => H.value = !1)
|
|
2362
2363
|
}, {
|
|
2363
2364
|
default: P(() => [
|
|
2364
2365
|
le(
|
|
@@ -2371,7 +2372,7 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2371
2372
|
_: 1
|
|
2372
2373
|
/* STABLE */
|
|
2373
2374
|
}),
|
|
2374
|
-
m(
|
|
2375
|
+
m(j, {
|
|
2375
2376
|
type: "primary",
|
|
2376
2377
|
disabled: r.value.length < 2,
|
|
2377
2378
|
onClick: C
|
|
@@ -2406,7 +2407,7 @@ const fn = Me(hn), vn = (t) => (Ne("data-v-b5ed17ed"), t = t(), He(), t), gn = /
|
|
|
2406
2407
|
"onUpdate:modelValue": L[0] || (L[0] = (ee) => h.value = ee),
|
|
2407
2408
|
class: "single-line",
|
|
2408
2409
|
indeterminate: i.value,
|
|
2409
|
-
onChange:
|
|
2410
|
+
onChange: N
|
|
2410
2411
|
}, {
|
|
2411
2412
|
default: P(() => [
|
|
2412
2413
|
le(" 全选 ")
|
|
@@ -2647,7 +2648,7 @@ const bn = /* @__PURE__ */ se(An, [["__scopeId", "data-v-b5ed17ed"]]), kn = Me(b
|
|
|
2647
2648
|
}
|
|
2648
2649
|
})), k = O(!1), p = () => {
|
|
2649
2650
|
k.value = !0;
|
|
2650
|
-
},
|
|
2651
|
+
}, F = (b) => {
|
|
2651
2652
|
k.value = !1;
|
|
2652
2653
|
const w = e.list[b.oldIndex];
|
|
2653
2654
|
l("change", A.value, {
|
|
@@ -2671,7 +2672,7 @@ const bn = /* @__PURE__ */ se(An, [["__scopeId", "data-v-b5ed17ed"]]), kn = Me(b
|
|
|
2671
2672
|
"force-fallback": o.value.ghostClass,
|
|
2672
2673
|
"item-key": "order",
|
|
2673
2674
|
onStart: p,
|
|
2674
|
-
onEnd:
|
|
2675
|
+
onEnd: F
|
|
2675
2676
|
}, {
|
|
2676
2677
|
item: P(({ element: r }) => [
|
|
2677
2678
|
m(
|
|
@@ -2783,14 +2784,14 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2783
2784
|
}), x && c("search", p.value);
|
|
2784
2785
|
}
|
|
2785
2786
|
});
|
|
2786
|
-
const
|
|
2787
|
+
const F = () => {
|
|
2787
2788
|
k.value = [], t.list.forEach((u) => {
|
|
2788
2789
|
var R, T;
|
|
2789
2790
|
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
2791
|
});
|
|
2791
2792
|
};
|
|
2792
|
-
|
|
2793
|
-
|
|
2793
|
+
F(), he(() => t.list, () => {
|
|
2794
|
+
F();
|
|
2794
2795
|
});
|
|
2795
2796
|
const b = M(() => k.value.map((u) => t.list.find((R) => R.key === u))), w = () => {
|
|
2796
2797
|
var u;
|
|
@@ -2834,7 +2835,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2834
2835
|
onBlur: () => a()
|
|
2835
2836
|
}, Z, {
|
|
2836
2837
|
placeholder: (Z == null ? void 0 : Z.placeholder) || $ || `请输入${Y || ""}`
|
|
2837
|
-
}), null),
|
|
2838
|
+
}), null), N = ({
|
|
2838
2839
|
key: u,
|
|
2839
2840
|
placeholder: R,
|
|
2840
2841
|
max: T,
|
|
@@ -2856,7 +2857,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2856
2857
|
onChange: () => a()
|
|
2857
2858
|
}, Q, {
|
|
2858
2859
|
placeholder: (Q == null ? void 0 : Q.placeholder) || R || `请输入${Y || ""}`
|
|
2859
|
-
}), null),
|
|
2860
|
+
}), null), W = ({
|
|
2860
2861
|
key: u,
|
|
2861
2862
|
placeholder: R,
|
|
2862
2863
|
disabled: T,
|
|
@@ -2881,7 +2882,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2881
2882
|
label: Q.label,
|
|
2882
2883
|
value: Q.value
|
|
2883
2884
|
}, null))]
|
|
2884
|
-
}),
|
|
2885
|
+
}), H = ({
|
|
2885
2886
|
key: u,
|
|
2886
2887
|
disabled: R,
|
|
2887
2888
|
options: T,
|
|
@@ -2944,8 +2945,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2944
2945
|
popperclass: Q,
|
|
2945
2946
|
rangeSeparator: Ae = "-",
|
|
2946
2947
|
defaultValue: Be,
|
|
2947
|
-
defaultTime:
|
|
2948
|
-
valueFormat:
|
|
2948
|
+
defaultTime: Ue,
|
|
2949
|
+
valueFormat: Ve,
|
|
2949
2950
|
disabledDate: Pe = () => !1,
|
|
2950
2951
|
formProp: Oe = {}
|
|
2951
2952
|
}) => {
|
|
@@ -2981,8 +2982,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2981
2982
|
format: ce,
|
|
2982
2983
|
popperClass: Q,
|
|
2983
2984
|
defaultValue: Be,
|
|
2984
|
-
defaultTime:
|
|
2985
|
-
valueFormat:
|
|
2985
|
+
defaultTime: Ue,
|
|
2986
|
+
valueFormat: Ve,
|
|
2986
2987
|
disabledDate: Pe
|
|
2987
2988
|
}, Oe, {
|
|
2988
2989
|
placeholder: (Oe == null ? void 0 : Oe.placeholder) || Y || "请选择日期"
|
|
@@ -2999,8 +3000,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
2999
3000
|
expandOnClickNode: Q = !1,
|
|
3000
3001
|
placeholder: Ae = "全部",
|
|
3001
3002
|
checkOnClickNode: Be = !1,
|
|
3002
|
-
showCheckbox:
|
|
3003
|
-
checkStrictly:
|
|
3003
|
+
showCheckbox: Ue = !1,
|
|
3004
|
+
checkStrictly: Ve = !0,
|
|
3004
3005
|
defaultCheckedKeys: Pe = [],
|
|
3005
3006
|
currentNodeKey: Oe = "",
|
|
3006
3007
|
accordion: ce = !1,
|
|
@@ -3021,8 +3022,8 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3021
3022
|
defaultExpandAll: Y,
|
|
3022
3023
|
expandOnClickNode: Q,
|
|
3023
3024
|
checkOnClickNode: Be,
|
|
3024
|
-
showCheckbox:
|
|
3025
|
-
checkStrictly:
|
|
3025
|
+
showCheckbox: Ue,
|
|
3026
|
+
checkStrictly: Ve,
|
|
3026
3027
|
defaultCheckedKeys: Pe,
|
|
3027
3028
|
currentNodeKey: Oe,
|
|
3028
3029
|
accordion: ce
|
|
@@ -3059,7 +3060,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3059
3060
|
value: Q.value
|
|
3060
3061
|
}, null))]
|
|
3061
3062
|
})
|
|
3062
|
-
}),
|
|
3063
|
+
}), j = "", E = "iking", ie = O(null), z = O([]), q = O(!1), ee = O(""), de = /* @__PURE__ */ new Map(), Re = (u) => {
|
|
3063
3064
|
q.value = !0, z.value = de.has(u) ? de.get(u) : p.value[u], ee.value = u;
|
|
3064
3065
|
}, me = () => {
|
|
3065
3066
|
de.set(ee.value, []), ee.value = "", a();
|
|
@@ -3086,7 +3087,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3086
3087
|
onClick: () => Re(u),
|
|
3087
3088
|
onClear: () => me(),
|
|
3088
3089
|
placeholder: (Y == null ? void 0 : Y.placeholder) || R || `点击选择${label || "人员"}`
|
|
3089
|
-
}), null),
|
|
3090
|
+
}), null), Ie = (u) => {
|
|
3090
3091
|
switch (u.type) {
|
|
3091
3092
|
case "":
|
|
3092
3093
|
case void 0:
|
|
@@ -3095,17 +3096,17 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3095
3096
|
return v(u);
|
|
3096
3097
|
case _e.number:
|
|
3097
3098
|
case "el-input-number":
|
|
3098
|
-
return
|
|
3099
|
+
return N(u);
|
|
3099
3100
|
case _e.select:
|
|
3100
3101
|
case "el-select":
|
|
3101
|
-
return
|
|
3102
|
+
return W(u);
|
|
3102
3103
|
case _e.checkbox:
|
|
3103
3104
|
case "el-checkbox":
|
|
3104
3105
|
return f(u);
|
|
3105
3106
|
case _e.radio:
|
|
3106
3107
|
case "el-radio-group":
|
|
3107
3108
|
case "el-radio":
|
|
3108
|
-
return
|
|
3109
|
+
return H(u);
|
|
3109
3110
|
case _e.date:
|
|
3110
3111
|
case "el-date-picker":
|
|
3111
3112
|
return C(u);
|
|
@@ -3150,7 +3151,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3150
3151
|
}, [m(dt, {
|
|
3151
3152
|
label: x.type === "select-input" ? "" : x.label,
|
|
3152
3153
|
prop: x.key
|
|
3153
|
-
}, yt(Z =
|
|
3154
|
+
}, yt(Z = Ie(x)) ? Z : {
|
|
3154
3155
|
default: () => [Z]
|
|
3155
3156
|
}), m(xe, {
|
|
3156
3157
|
name: "icon-sousuo1",
|
|
@@ -3172,7 +3173,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3172
3173
|
) : m(dt, {
|
|
3173
3174
|
label: x.type === "select-input" ? "" : x.label,
|
|
3174
3175
|
prop: x.key
|
|
3175
|
-
}, yt(J =
|
|
3176
|
+
}, yt(J = Ie(x)) ? J : {
|
|
3176
3177
|
default: () => [J]
|
|
3177
3178
|
})]
|
|
3178
3179
|
}));
|
|
@@ -3203,7 +3204,7 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3203
3204
|
"append-to-body": !0,
|
|
3204
3205
|
api: {
|
|
3205
3206
|
methods: "post",
|
|
3206
|
-
url: `${
|
|
3207
|
+
url: `${j}/server/component/pick/mix`,
|
|
3207
3208
|
headers: {
|
|
3208
3209
|
"Content-Type": "application/json;charset=UTF-8",
|
|
3209
3210
|
Authorization: E
|
|
@@ -3293,14 +3294,14 @@ const Cn = /* @__PURE__ */ ue({
|
|
|
3293
3294
|
emits: ["update:modelValue"],
|
|
3294
3295
|
setup(t) {
|
|
3295
3296
|
mt((b) => ({
|
|
3296
|
-
"59e2b6b4":
|
|
3297
|
+
"59e2b6b4": F
|
|
3297
3298
|
}));
|
|
3298
3299
|
const c = t, e = Je(t, "modelValue"), l = O(c.defaultShow), A = () => {
|
|
3299
3300
|
l.value = !l.value;
|
|
3300
3301
|
}, o = M(() => c.fields.filter((b) => !b.onlyForm)), k = M(() => {
|
|
3301
3302
|
var b;
|
|
3302
3303
|
return (b = c.fields) == null ? void 0 : b.filter((w) => w.search);
|
|
3303
|
-
}), p = M(() => k.value.length),
|
|
3304
|
+
}), p = M(() => k.value.length), F = `${c.headerHeight}px`;
|
|
3304
3305
|
return (b, w) => {
|
|
3305
3306
|
const D = ne("el-card");
|
|
3306
3307
|
return n(), g(
|
|
@@ -3562,7 +3563,7 @@ const In = /* @__PURE__ */ se(Tn, [["__scopeId", "data-v-659625f1"]]), bt = {
|
|
|
3562
3563
|
page: A.value,
|
|
3563
3564
|
rows: k.value
|
|
3564
3565
|
});
|
|
3565
|
-
},
|
|
3566
|
+
}, F = (b) => {
|
|
3566
3567
|
l("currentChange", b), e == null || e.search({
|
|
3567
3568
|
page: A.value,
|
|
3568
3569
|
rows: k.value
|
|
@@ -3582,7 +3583,7 @@ const In = /* @__PURE__ */ se(Tn, [["__scopeId", "data-v-659625f1"]]), bt = {
|
|
|
3582
3583
|
"page-sizes": o,
|
|
3583
3584
|
class: "ik-pagin-action",
|
|
3584
3585
|
onSizeChange: p,
|
|
3585
|
-
onCurrentChange:
|
|
3586
|
+
onCurrentChange: F
|
|
3586
3587
|
}), {
|
|
3587
3588
|
default: P(() => [
|
|
3588
3589
|
d("span", Un, [
|
|
@@ -3614,23 +3615,23 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3614
3615
|
rows: 15
|
|
3615
3616
|
}), p = M(() => {
|
|
3616
3617
|
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 ?
|
|
3618
|
+
return i.forEach((v, N) => {
|
|
3619
|
+
v.__index = a === 1 ? N + 1 : (a - 1) * h + N + 1;
|
|
3619
3620
|
}), i;
|
|
3620
|
-
}),
|
|
3621
|
+
}), F = (a) => {
|
|
3621
3622
|
k.value = a, A("page-change", a), l.search();
|
|
3622
3623
|
}, b = O([]), w = (a) => {
|
|
3623
3624
|
b.value = a, A("selection-change", a);
|
|
3624
3625
|
}, D = O();
|
|
3625
3626
|
return c({ table: D }), (a, h) => {
|
|
3626
|
-
var
|
|
3627
|
-
const i = ne("el-table-column"), v = ne("el-table"),
|
|
3627
|
+
var W, H, f;
|
|
3628
|
+
const i = ne("el-table-column"), v = ne("el-table"), N = et("loading");
|
|
3628
3629
|
return n(), g(
|
|
3629
3630
|
K,
|
|
3630
3631
|
null,
|
|
3631
3632
|
[
|
|
3632
3633
|
_(" 自定义表格 "),
|
|
3633
|
-
(
|
|
3634
|
+
(W = a.$slots) != null && W.table ? ve(a.$slots, "table", { key: 0 }, void 0, !0) : (n(), g(
|
|
3634
3635
|
K,
|
|
3635
3636
|
{ key: 1 },
|
|
3636
3637
|
[
|
|
@@ -3664,7 +3665,7 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3664
3665
|
_: 3
|
|
3665
3666
|
/* FORWARDED */
|
|
3666
3667
|
}, 16, ["data"])), [
|
|
3667
|
-
[
|
|
3668
|
+
[N, a.loading]
|
|
3668
3669
|
])
|
|
3669
3670
|
]),
|
|
3670
3671
|
_: 3
|
|
@@ -3677,9 +3678,9 @@ const Dn = /* @__PURE__ */ se($n, [["__scopeId", "data-v-e7b4fc6e"]]), zn = /* @
|
|
|
3677
3678
|
_(" 分页 "),
|
|
3678
3679
|
a.total ? (n(), U(Dn, {
|
|
3679
3680
|
key: 2,
|
|
3680
|
-
current: ((f = (
|
|
3681
|
+
current: ((f = (H = a.$attrs) == null ? void 0 : H.page) == null ? void 0 : f.page) || 1,
|
|
3681
3682
|
total: a.total,
|
|
3682
|
-
search:
|
|
3683
|
+
search: F
|
|
3683
3684
|
}, null, 8, ["current", "total"])) : _("v-if", !0)
|
|
3684
3685
|
],
|
|
3685
3686
|
64
|
|
@@ -3715,7 +3716,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3715
3716
|
...o.value,
|
|
3716
3717
|
...C
|
|
3717
3718
|
};
|
|
3718
|
-
},
|
|
3719
|
+
}, F = (C) => {
|
|
3719
3720
|
var L;
|
|
3720
3721
|
k();
|
|
3721
3722
|
const V = (C == null ? void 0 : C.type) === "click" ? {} : C;
|
|
@@ -3727,8 +3728,8 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3727
3728
|
});
|
|
3728
3729
|
}, b = O([]), w = (C) => {
|
|
3729
3730
|
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
|
-
|
|
3731
|
+
}, 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) => {
|
|
3732
|
+
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
3733
|
}, oe = M(() => l.fields.find((C) => C.isEdit));
|
|
3733
3734
|
return c({
|
|
3734
3735
|
table: h,
|
|
@@ -3739,7 +3740,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3739
3740
|
dialog: v,
|
|
3740
3741
|
handAdd: f
|
|
3741
3742
|
}), (C, V) => {
|
|
3742
|
-
const L = ne("el-button"),
|
|
3743
|
+
const L = ne("el-button"), j = ne("IkNumberDuration"), E = ne("el-table-column"), ie = et("role");
|
|
3743
3744
|
return n(), g(
|
|
3744
3745
|
K,
|
|
3745
3746
|
null,
|
|
@@ -3752,7 +3753,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3752
3753
|
modelValue: r.value,
|
|
3753
3754
|
"onUpdate:modelValue": V[1] || (V[1] = (z) => r.value = z),
|
|
3754
3755
|
loading: C.loading,
|
|
3755
|
-
search:
|
|
3756
|
+
search: F,
|
|
3756
3757
|
"tab-id": C.tabId
|
|
3757
3758
|
}), {
|
|
3758
3759
|
headerLeft: P(() => [
|
|
@@ -3789,7 +3790,7 @@ const En = /* @__PURE__ */ se(zn, [["__scopeId", "data-v-7e61d7f1"]]), Mn = { cl
|
|
|
3789
3790
|
d("p", Mn, [
|
|
3790
3791
|
le(" 已选 "),
|
|
3791
3792
|
d("span", null, [
|
|
3792
|
-
m(
|
|
3793
|
+
m(j, { value: D.value }, null, 8, ["value"])
|
|
3793
3794
|
]),
|
|
3794
3795
|
le(" 条 ")
|
|
3795
3796
|
]),
|