el-plus-crud 0.1.3 → 0.1.4
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.1.4](https://github.com/KDJack/el-plus-crud/compare/v0.1.3...v0.1.4) (2024-01-26)
|
|
6
|
+
|
|
5
7
|
### [0.1.3](https://github.com/KDJack/el-plus-crud/compare/v0.1.2...v0.1.3) (2024-01-26)
|
|
6
8
|
|
|
7
9
|
### [0.1.2](https://github.com/KDJack/el-plus-crud/compare/v0.0.119...v0.1.2) (2024-01-25)
|
package/dist/el-plus-crud.mjs
CHANGED
|
@@ -156,17 +156,17 @@ var Bl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
156
156
|
Cr.exports;
|
|
157
157
|
(function(M, c) {
|
|
158
158
|
(function() {
|
|
159
|
-
var l, d = "4.17.21", p = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", m = "Invalid `variable` option passed into `_.template`", N = "__lodash_hash_undefined__", g = 500, a = "__lodash_placeholder__", D = 1, Y = 2, b = 4, K = 1, A = 2, V = 1,
|
|
159
|
+
var l, d = "4.17.21", p = 200, f = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", m = "Invalid `variable` option passed into `_.template`", N = "__lodash_hash_undefined__", g = 500, a = "__lodash_placeholder__", D = 1, Y = 2, b = 4, K = 1, A = 2, V = 1, x = 2, P = 4, k = 8, B = 16, W = 32, me = 64, ee = 128, ue = 256, Je = 512, L = 30, $ = "...", q = 800, Me = 16, Ne = 1, Le = 2, we = 3, z = 1 / 0, w = 9007199254740991, J = 17976931348623157e292, te = 0 / 0, ce = 4294967295, _e = ce - 1, H = ce >>> 1, se = [
|
|
160
160
|
["ary", ee],
|
|
161
161
|
["bind", V],
|
|
162
|
-
["bindKey",
|
|
162
|
+
["bindKey", x],
|
|
163
163
|
["curry", k],
|
|
164
164
|
["curryRight", B],
|
|
165
165
|
["flip", Je],
|
|
166
166
|
["partial", W],
|
|
167
167
|
["partialRight", me],
|
|
168
168
|
["rearg", ue]
|
|
169
|
-
], Z = "[object Arguments]", Se = "[object Array]", be = "[object AsyncFunction]", at = "[object Boolean]", ct = "[object Date]", yn = "[object DOMException]", mn = "[object Error]", $t = "[object Function]", dn = "[object GeneratorFunction]", Lt = "[object Map]", sn = "[object Number]", ol = "[object Null]", ke = "[object Object]", gn = "[object Promise]", On = "[object Proxy]", Sn = "[object RegExp]", kt = "[object Set]", kn = "[object String]", qn = "[object Symbol]",
|
|
169
|
+
], Z = "[object Arguments]", Se = "[object Array]", be = "[object AsyncFunction]", at = "[object Boolean]", ct = "[object Date]", yn = "[object DOMException]", mn = "[object Error]", $t = "[object Function]", dn = "[object GeneratorFunction]", Lt = "[object Map]", sn = "[object Number]", ol = "[object Null]", ke = "[object Object]", gn = "[object Promise]", On = "[object Proxy]", Sn = "[object RegExp]", kt = "[object Set]", kn = "[object String]", qn = "[object Symbol]", E = "[object Undefined]", ne = "[object WeakMap]", oe = "[object WeakSet]", De = "[object ArrayBuffer]", Be = "[object DataView]", tt = "[object Float32Array]", Ae = "[object Float64Array]", rt = "[object Int8Array]", pt = "[object Int16Array]", st = "[object Int32Array]", Nt = "[object Uint8Array]", ut = "[object Uint8ClampedArray]", dt = "[object Uint16Array]", Yt = "[object Uint32Array]", Ft = /\b__p \+= '';/g, Jt = /\b(__p \+=) '' \+/g, yt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Bt = /&(?:amp|lt|gt|quot|#39);/g, wt = /[&<>"']/g, Dn = RegExp(Bt.source), Or = RegExp(wt.source), Rl = /<%-([\s\S]+?)%>/g, Sr = /<%([\s\S]+?)%>/g, no = /<%=([\s\S]+?)%>/g, Oa = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Sa = /^\w*$/, ka = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, kr = /[\\^$.*+?()[\]{}|]/g, Ba = RegExp(kr.source), Br = /^\s+/, Pa = /\s/, Ua = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Va = /\{\n\/\* \[wrapped with (.+)\] \*/, Qa = /,? & /, Fa = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ra = /[()=,{}\[\]\/\s]/, Wa = /\\(\\)?/g, Ga = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, lo = /\w*$/, Za = /^[-+]0x[0-9a-f]+$/i, Ka = /^0b[01]+$/i, Ha = /^\[object .+?Constructor\]$/, qa = /^0o[0-7]+$/i, $a = /^(?:0|[1-9]\d*)$/, Ja = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Wl = /($^)/, Xa = /['\n\r\u2028\u2029\\]/g, Gl = "\\ud800-\\udfff", ec = "\\u0300-\\u036f", tc = "\\ufe20-\\ufe2f", nc = "\\u20d0-\\u20ff", ro = ec + tc + nc, uo = "\\u2700-\\u27bf", oo = "a-z\\xdf-\\xf6\\xf8-\\xff", lc = "\\xac\\xb1\\xd7\\xf7", rc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", uc = "\\u2000-\\u206f", oc = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", so = "A-Z\\xc0-\\xd6\\xd8-\\xde", io = "\\ufe0e\\ufe0f", ao = lc + rc + uc + oc, Pr = "['’]", sc = "[" + Gl + "]", co = "[" + ao + "]", Zl = "[" + ro + "]", fo = "\\d+", ic = "[" + uo + "]", Mo = "[" + oo + "]", go = "[^" + Gl + ao + fo + uo + oo + so + "]", Ur = "\\ud83c[\\udffb-\\udfff]", ac = "(?:" + Zl + "|" + Ur + ")", po = "[^" + Gl + "]", Vr = "(?:\\ud83c[\\udde6-\\uddff]){2}", Qr = "[\\ud800-\\udbff][\\udc00-\\udfff]", sl = "[" + so + "]", No = "\\u200d", jo = "(?:" + Mo + "|" + go + ")", cc = "(?:" + sl + "|" + go + ")", zo = "(?:" + Pr + "(?:d|ll|m|re|s|t|ve))?", yo = "(?:" + Pr + "(?:D|LL|M|RE|S|T|VE))?", mo = ac + "?", Do = "[" + io + "]?", fc = "(?:" + No + "(?:" + [po, Vr, Qr].join("|") + ")" + Do + mo + ")*", Mc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", dc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", _o = Do + mo + fc, gc = "(?:" + [ic, Vr, Qr].join("|") + ")" + _o, pc = "(?:" + [po + Zl + "?", Zl, Vr, Qr, sc].join("|") + ")", Nc = RegExp(Pr, "g"), jc = RegExp(Zl, "g"), Fr = RegExp(Ur + "(?=" + Ur + ")|" + pc + _o, "g"), zc = RegExp([
|
|
170
170
|
sl + "?" + Mo + "+" + zo + "(?=" + [co, sl, "$"].join("|") + ")",
|
|
171
171
|
cc + "+" + yo + "(?=" + [co, sl + jo, "$"].join("|") + ")",
|
|
172
172
|
sl + "?" + jo + "+" + zo,
|
|
@@ -1148,7 +1148,7 @@ Cr.exports;
|
|
|
1148
1148
|
return ye(e) ? r : Pn(r, n(e));
|
|
1149
1149
|
}
|
|
1150
1150
|
function xt(e) {
|
|
1151
|
-
return e == null ? e === l ?
|
|
1151
|
+
return e == null ? e === l ? E : ol : Jn && Jn in nt(e) ? CM(e) : ZM(e);
|
|
1152
1152
|
}
|
|
1153
1153
|
function au(e, t) {
|
|
1154
1154
|
return e > t;
|
|
@@ -1811,7 +1811,7 @@ Cr.exports;
|
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
function zr(e, t, n, r, u, i, j, y, I, O) {
|
|
1814
|
-
var S = t & ee, U = t & V, X = t &
|
|
1814
|
+
var S = t & ee, U = t & V, X = t & x, ie = t & (k | B), ge = t & Je, Ye = X ? l : Cl(e);
|
|
1815
1815
|
function pe() {
|
|
1816
1816
|
for (var xe = arguments.length, Pe = T(xe), Kt = xe; Kt--; )
|
|
1817
1817
|
Pe[Kt] = arguments[Kt];
|
|
@@ -1896,7 +1896,7 @@ Cr.exports;
|
|
|
1896
1896
|
}
|
|
1897
1897
|
function Es(e, t, n, r, u, i, j, y, I, O) {
|
|
1898
1898
|
var S = t & k, U = S ? j : l, X = S ? l : j, ie = S ? i : l, ge = S ? l : i;
|
|
1899
|
-
t |= S ? W : me, t &= ~(S ? me : W), t & P || (t &= ~(V |
|
|
1899
|
+
t |= S ? W : me, t &= ~(S ? me : W), t & P || (t &= ~(V | x));
|
|
1900
1900
|
var Ye = [
|
|
1901
1901
|
e,
|
|
1902
1902
|
t,
|
|
@@ -1931,7 +1931,7 @@ Cr.exports;
|
|
|
1931
1931
|
};
|
|
1932
1932
|
}
|
|
1933
1933
|
function In(e, t, n, r, u, i, j, y) {
|
|
1934
|
-
var I = t &
|
|
1934
|
+
var I = t & x;
|
|
1935
1935
|
if (!I && typeof e != "function")
|
|
1936
1936
|
throw new tn(s);
|
|
1937
1937
|
var O = r ? r.length : 0;
|
|
@@ -2283,7 +2283,7 @@ Cr.exports;
|
|
|
2283
2283
|
return t;
|
|
2284
2284
|
}
|
|
2285
2285
|
function WM(e, t) {
|
|
2286
|
-
var n = e[1], r = t[1], u = n | r, i = u < (V |
|
|
2286
|
+
var n = e[1], r = t[1], u = n | r, i = u < (V | x | ee), j = r == ee && n == k || r == ee && n == ue && e[7].length <= t[8] || r == (ee | ue) && t[7].length <= t[8] && n == k;
|
|
2287
2287
|
if (!(i || j))
|
|
2288
2288
|
return e;
|
|
2289
2289
|
r & V && (e[2] = t[2], u |= n & V ? 0 : P);
|
|
@@ -2851,7 +2851,7 @@ Cr.exports;
|
|
|
2851
2851
|
}
|
|
2852
2852
|
return In(e, r, t, n, u);
|
|
2853
2853
|
}), si = Te(function(e, t, n) {
|
|
2854
|
-
var r = V |
|
|
2854
|
+
var r = V | x;
|
|
2855
2855
|
if (n.length) {
|
|
2856
2856
|
var u = Un(n, zl(si));
|
|
2857
2857
|
r |= W;
|
|
@@ -3811,7 +3811,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3811
3811
|
var r = n.name + "";
|
|
3812
3812
|
qe.call(gl, r) || (gl[r] = []), gl[r].push({ name: t, func: n });
|
|
3813
3813
|
}
|
|
3814
|
-
}), gl[zr(l,
|
|
3814
|
+
}), gl[zr(l, x).name] = [{
|
|
3815
3815
|
name: "wrapper",
|
|
3816
3816
|
func: l
|
|
3817
3817
|
}], Ee.prototype.clone = Df, Ee.prototype.reverse = _f, Ee.prototype.value = hf, o.prototype.at = Jd, o.prototype.chain = Xd, o.prototype.commit = eg, o.prototype.next = tg, o.prototype.plant = lg, o.prototype.reverse = rg, o.prototype.toJSON = o.prototype.valueOf = o.prototype.value = ug, o.prototype.first = o.prototype.head, vl && (o.prototype[vl] = ng), o;
|
|
@@ -3885,11 +3885,11 @@ const mj = {
|
|
|
3885
3885
|
title: (b = l.desc) == null ? void 0 : b.confirm
|
|
3886
3886
|
}, {
|
|
3887
3887
|
reference: G(() => {
|
|
3888
|
-
var
|
|
3888
|
+
var x;
|
|
3889
3889
|
return [
|
|
3890
3890
|
je(a, ae({
|
|
3891
3891
|
loading: d.value,
|
|
3892
|
-
size: ((
|
|
3892
|
+
size: ((x = l.desc) == null ? void 0 : x.size) || "default"
|
|
3893
3893
|
}, f.value), {
|
|
3894
3894
|
default: G(() => [
|
|
3895
3895
|
$e(N.$slots, "default", {}, () => {
|
|
@@ -3916,9 +3916,9 @@ const mj = {
|
|
|
3916
3916
|
}), {
|
|
3917
3917
|
default: G(() => [
|
|
3918
3918
|
$e(N.$slots, "default", {}, () => {
|
|
3919
|
-
var
|
|
3919
|
+
var x;
|
|
3920
3920
|
return [
|
|
3921
|
-
(
|
|
3921
|
+
(x = l.desc) != null && x.label ? (v(), Q(ve, { key: 0 }, [
|
|
3922
3922
|
Xe(Ke(m.value), 1)
|
|
3923
3923
|
], 64)) : re("", !0)
|
|
3924
3924
|
];
|
|
@@ -4185,8 +4185,8 @@ const Fl = /* @__PURE__ */ et(Sj, [["__scopeId", "data-v-8471727c"]]), kj = /* @
|
|
|
4185
4185
|
class: "el-plus-form-btn-group",
|
|
4186
4186
|
style: ht({ "justify-content": f.value })
|
|
4187
4187
|
}, [
|
|
4188
|
-
(v(!0), Q(ve, null, Ue(d.value, (V,
|
|
4189
|
-
key:
|
|
4188
|
+
(v(!0), Q(ve, null, Ue(d.value, (V, x) => (v(), Q(ve, {
|
|
4189
|
+
key: x + (V.label || V.title || "")
|
|
4190
4190
|
}, [
|
|
4191
4191
|
V.elType === "upload" ? (v(), R(Fl, {
|
|
4192
4192
|
key: 0,
|
|
@@ -4219,8 +4219,8 @@ const Fl = /* @__PURE__ */ et(Sj, [["__scopeId", "data-v-8471727c"]]), kj = /* @
|
|
|
4219
4219
|
dropdown: G(() => [
|
|
4220
4220
|
je(K, null, {
|
|
4221
4221
|
default: G(() => [
|
|
4222
|
-
(v(!0), Q(ve, null, Ue(p.value, (V,
|
|
4223
|
-
key:
|
|
4222
|
+
(v(!0), Q(ve, null, Ue(p.value, (V, x) => (v(), R(b, ae({
|
|
4223
|
+
key: x + (V.label || V.title)
|
|
4224
4224
|
}, Ve(s.value(V))), {
|
|
4225
4225
|
default: G(() => [
|
|
4226
4226
|
Xe(Ke(V.label || V.title), 1)
|
|
@@ -4970,7 +4970,7 @@ const Uz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4970
4970
|
function V(ee) {
|
|
4971
4971
|
ee && (s.value.blur(), a.value = !0);
|
|
4972
4972
|
}
|
|
4973
|
-
function
|
|
4973
|
+
function x() {
|
|
4974
4974
|
A.splice(0, A.length), me();
|
|
4975
4975
|
}
|
|
4976
4976
|
function P(ee) {
|
|
@@ -5019,7 +5019,7 @@ const Uz = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5019
5019
|
loading: ee.loading,
|
|
5020
5020
|
modelValue: m,
|
|
5021
5021
|
onVisibleChange: V,
|
|
5022
|
-
onClear:
|
|
5022
|
+
onClear: x
|
|
5023
5023
|
}, Ve(d.value)), {
|
|
5024
5024
|
default: G(() => [
|
|
5025
5025
|
(v(!0), Q(ve, null, Ue(N, (we) => (v(), R(Je, ae({
|
|
@@ -5133,11 +5133,11 @@ const ta = /* @__PURE__ */ et($z, [["__scopeId", "data-v-0f3279d4"]]), Jz = /* @
|
|
|
5133
5133
|
async function V(H) {
|
|
5134
5134
|
K.splice(0, K.length, ...await L(H));
|
|
5135
5135
|
}
|
|
5136
|
-
const
|
|
5136
|
+
const x = _([]), P = _([]), k = _([]), B = _(), W = Ie(() => {
|
|
5137
5137
|
var Z, Se;
|
|
5138
5138
|
const H = [];
|
|
5139
5139
|
let se = St.cloneDeep(l[((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.deptListKey) || ""]);
|
|
5140
|
-
return
|
|
5140
|
+
return x.value && x.value.length > 0 && x.value.map((be) => {
|
|
5141
5141
|
se = se[be].children || [];
|
|
5142
5142
|
}), se.map((be) => H.push({ type: 2, label: be.name, value: be.id })), k.value.map((be) => H.push({ type: 1, label: be.nickname, value: be.userId })), Ot(() => {
|
|
5143
5143
|
setTimeout(() => {
|
|
@@ -5181,11 +5181,11 @@ const ta = /* @__PURE__ */ et($z, [["__scopeId", "data-v-0f3279d4"]]), Jz = /* @
|
|
|
5181
5181
|
}
|
|
5182
5182
|
async function $(H, se) {
|
|
5183
5183
|
var Z, Se;
|
|
5184
|
-
k.value = (await ((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.getUserList({ deptId: H.value, size: 999 }))).records,
|
|
5184
|
+
k.value = (await ((Se = (Z = d.form) == null ? void 0 : Z.linkUser) == null ? void 0 : Se.getUserList({ deptId: H.value, size: 999 }))).records, x.value.push(se), P.value.push(H);
|
|
5185
5185
|
}
|
|
5186
5186
|
async function q(H) {
|
|
5187
5187
|
var se, Z;
|
|
5188
|
-
k.value = H >= 0 ? (await ((Z = (se = d.form) == null ? void 0 : se.linkUser) == null ? void 0 : Z.getUserList({ deptId: P.value[H].value, size: 999 }))).records : [],
|
|
5188
|
+
k.value = H >= 0 ? (await ((Z = (se = d.form) == null ? void 0 : se.linkUser) == null ? void 0 : Z.getUserList({ deptId: P.value[H].value, size: 999 }))).records : [], x.value.splice(H + 1), P.value.splice(H + 1);
|
|
5189
5189
|
}
|
|
5190
5190
|
function Me(H) {
|
|
5191
5191
|
return p.desc.onlyUser ? H.type === 1 : !0;
|
|
@@ -5530,10 +5530,10 @@ const My = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5530
5530
|
}
|
|
5531
5531
|
const Y = Ie(() => {
|
|
5532
5532
|
var ue, Je, L, $;
|
|
5533
|
-
let { min: A = 0, max: V = 999999999, precision:
|
|
5533
|
+
let { min: A = 0, max: V = 999999999, precision: x = 0, controlsPosition: P = "right" } = ((Je = (ue = l.form) == null ? void 0 : ue.leng) == null ? void 0 : Je.nbinput) || {}, k = ((L = d.desc) == null ? void 0 : L.attrs) || d.desc;
|
|
5534
5534
|
($ = d.desc) != null && $.attrs && typeof d.desc.attrs == "function" && (k = d.desc.attrs(d.formData || {}));
|
|
5535
5535
|
const { min: B, max: W, precision: me, controlsPosition: ee } = k || {};
|
|
5536
|
-
return B != null && B !== "" && (A = B), W != null && W !== "" && (V = W), me != null && me !== "" && (
|
|
5536
|
+
return B != null && B !== "" && (A = B), W != null && W !== "" && (V = W), me != null && me !== "" && (x = me), ee != null && ee !== "" && (P = ee), A > V ? A = V : V < A && (V = A), { min: A, max: V, precision: x, controlsPosition: P };
|
|
5537
5537
|
});
|
|
5538
5538
|
f.value !== void 0 && f.value !== null && (f.value < Y.value.min ? f.value = Y.value.min : f.value > Y.value.max && (f.value = Y.value.max));
|
|
5539
5539
|
const b = N.value.change;
|
|
@@ -5541,16 +5541,16 @@ const My = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5541
5541
|
K(A, V);
|
|
5542
5542
|
} : N.value.change = K;
|
|
5543
5543
|
function K(A, V) {
|
|
5544
|
-
var
|
|
5545
|
-
g.value = !0, A !== V && (A < Y.value.min ? (zn.warning(`${((
|
|
5544
|
+
var x, P;
|
|
5545
|
+
g.value = !0, A !== V && (A < Y.value.min ? (zn.warning(`${((x = d.desc) == null ? void 0 : x.label) || ""}最少不能低于${Y.value.min}`), Ot(() => {
|
|
5546
5546
|
f.value = Y.value.min, b && b();
|
|
5547
5547
|
})) : A > Y.value.max ? (zn.warning(`${((P = d.desc) == null ? void 0 : P.label) || ""}最多不能大于${Y.value.max}`), Ot(() => {
|
|
5548
5548
|
f.value = Y.value.max, b && b();
|
|
5549
5549
|
})) : b && b());
|
|
5550
5550
|
}
|
|
5551
5551
|
return (A, V) => {
|
|
5552
|
-
const
|
|
5553
|
-
return m.value ? (v(), R(
|
|
5552
|
+
const x = F("el-input-number");
|
|
5553
|
+
return m.value ? (v(), R(x, ae({
|
|
5554
5554
|
key: 0,
|
|
5555
5555
|
class: "ElPlusFormNumber-panel"
|
|
5556
5556
|
}, s.value, { disabled: A.disabled }, Ve(N.value), {
|
|
@@ -5658,8 +5658,8 @@ const ra = /* @__PURE__ */ et(gy, [["__scopeId", "data-v-b3c8209f"]]), py = /* @
|
|
|
5658
5658
|
"onUpdate:modelValue": b[0] || (b[0] = (V) => a.value = V)
|
|
5659
5659
|
}, Ve(N.value)), null, 16, ["class", "style", "disabled", "modelValue"])) : re("", !0),
|
|
5660
5660
|
Ce("div", zy, [
|
|
5661
|
-
(v(!0), Q(ve, null, Ue(g, (V,
|
|
5662
|
-
key:
|
|
5661
|
+
(v(!0), Q(ve, null, Ue(g, (V, x) => (v(), R(A, {
|
|
5662
|
+
key: x,
|
|
5663
5663
|
type: "info",
|
|
5664
5664
|
onClick: (P) => D(V.label)
|
|
5665
5665
|
}, {
|
|
@@ -5792,9 +5792,9 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
|
|
|
5792
5792
|
const Y = Ie(() => {
|
|
5793
5793
|
var V;
|
|
5794
5794
|
const A = {};
|
|
5795
|
-
return (V = p.desc) != null && V.on && Object.keys(p.desc.on).map((
|
|
5796
|
-
A[
|
|
5797
|
-
p.desc.on[
|
|
5795
|
+
return (V = p.desc) != null && V.on && Object.keys(p.desc.on).map((x) => {
|
|
5796
|
+
A[x] = () => {
|
|
5797
|
+
p.desc.on[x](
|
|
5798
5798
|
p.formData || {},
|
|
5799
5799
|
N.find((P) => P.value === s.value),
|
|
5800
5800
|
p.rowIndex
|
|
@@ -5806,7 +5806,7 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
|
|
|
5806
5806
|
const b = Ie(() => (A) => p.desc.optionTip(A));
|
|
5807
5807
|
async function K(A) {
|
|
5808
5808
|
if (g.value !== A && (g.value = A, N.splice(0, N.length, ...await p.desc.remote(A)), A === "" && p.desc.defaultItem)) {
|
|
5809
|
-
const V = N.findIndex((
|
|
5809
|
+
const V = N.findIndex((x) => x.value === p.desc.defaultItem.value);
|
|
5810
5810
|
V >= 0 && N.splice(V, 1), N.unshift(p.desc.defaultItem);
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
@@ -5827,17 +5827,17 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
|
|
|
5827
5827
|
), Qe(
|
|
5828
5828
|
() => s.value,
|
|
5829
5829
|
(A) => {
|
|
5830
|
-
var V,
|
|
5830
|
+
var V, x;
|
|
5831
5831
|
m.value.allowCreate && A && Array.isArray(A) && A.some((P) => {
|
|
5832
5832
|
var k, B;
|
|
5833
5833
|
return typeof P == "string" && P.length > (((B = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : B.input) || 20);
|
|
5834
|
-
}) && (zn.warning("最大长度为: " + (((
|
|
5834
|
+
}) && (zn.warning("最大长度为: " + (((x = (V = l.form) == null ? void 0 : V.leng) == null ? void 0 : x.input) || 20)), s.value = A.filter((P) => {
|
|
5835
5835
|
var k, B;
|
|
5836
5836
|
return typeof P != "string" || P.length <= (((B = (k = l.form) == null ? void 0 : k.leng) == null ? void 0 : B.input) || 20);
|
|
5837
5837
|
}));
|
|
5838
5838
|
}
|
|
5839
5839
|
), (A, V) => {
|
|
5840
|
-
const
|
|
5840
|
+
const x = F("el-option"), P = F("el-select");
|
|
5841
5841
|
return D.value ? (v(), R(P, ae({
|
|
5842
5842
|
key: 0,
|
|
5843
5843
|
class: ["el-plus-form-select", A.desc.class],
|
|
@@ -5850,7 +5850,7 @@ const ia = /* @__PURE__ */ et(Iy, [["__scopeId", "data-v-10abb7a1"]]), Yy = /* @
|
|
|
5850
5850
|
}, Ve(Y.value)), {
|
|
5851
5851
|
default: G(() => [
|
|
5852
5852
|
(v(!0), Q(ve, null, Ue(N, (k, B) => (v(), Q(ve, { key: B }, [
|
|
5853
|
-
k ? (v(), R(
|
|
5853
|
+
k ? (v(), R(x, Ql(ae({ key: 0 }, k)), {
|
|
5854
5854
|
default: G(() => [
|
|
5855
5855
|
Ce("div", wy, [
|
|
5856
5856
|
Ce("span", null, Ke(k.label || k.l), 1),
|
|
@@ -6408,7 +6408,7 @@ const ya = /* @__PURE__ */ et(u2, [["__scopeId", "data-v-0181f621"]]), o2 = /* @
|
|
|
6408
6408
|
maxSize: p.desc.maxSize || (p.desc.upType === "file" ? (q = l.upload) == null ? void 0 : q.maxFSize : (Me = l.upload) == null ? void 0 : Me.maxISize),
|
|
6409
6409
|
beforeUpload: K,
|
|
6410
6410
|
onRemove: k,
|
|
6411
|
-
onSuccess:
|
|
6411
|
+
onSuccess: x,
|
|
6412
6412
|
onExceed: me,
|
|
6413
6413
|
onPreview: W,
|
|
6414
6414
|
...Oe()
|
|
@@ -6449,7 +6449,7 @@ const ya = /* @__PURE__ */ et(u2, [["__scopeId", "data-v-0181f621"]]), o2 = /* @
|
|
|
6449
6449
|
}
|
|
6450
6450
|
return q;
|
|
6451
6451
|
}
|
|
6452
|
-
async function
|
|
6452
|
+
async function x(L, $) {
|
|
6453
6453
|
var q, Me, Ne, Le, we, z;
|
|
6454
6454
|
if (L && Object.keys(L).length > 0) {
|
|
6455
6455
|
const w = Zn(((Me = (q = l.upload) == null ? void 0 : q.actionMap) == null ? void 0 : Me.objectUrlKey) || [], L);
|
|
@@ -6773,7 +6773,7 @@ const um = ["innerHTML"], om = {
|
|
|
6773
6773
|
q();
|
|
6774
6774
|
}, 50);
|
|
6775
6775
|
}), z;
|
|
6776
|
-
}),
|
|
6776
|
+
}), x = Ie(() => {
|
|
6777
6777
|
const z = [];
|
|
6778
6778
|
if (f.formDesc) {
|
|
6779
6779
|
P();
|
|
@@ -7029,7 +7029,7 @@ const um = ["innerHTML"], om = {
|
|
|
7029
7029
|
onSubmit: ij(L, ["prevent"])
|
|
7030
7030
|
}, A.value), {
|
|
7031
7031
|
default: G(() => [
|
|
7032
|
-
(v(!0), Q(ve, null, Ue(
|
|
7032
|
+
(v(!0), Q(ve, null, Ue(x.value, (H, se) => (v(), R(ce, {
|
|
7033
7033
|
gutter: 10,
|
|
7034
7034
|
key: se,
|
|
7035
7035
|
style: ht({ marginRight: z.isTable ? "20px" : 0 })
|
|
@@ -7155,7 +7155,7 @@ const im = {
|
|
|
7155
7155
|
l("update:show", k);
|
|
7156
7156
|
}
|
|
7157
7157
|
}), s = _(null), { width: m, top: N, modal: g, appendToBody: a, showClose: D, draggable: Y, closeOnClickModal: b, destroyOnClose: K, ...A } = Object.assign({ width: "700px", draggable: !0, top: "15vh", closeOnClickModal: !1, showCancel: !0, destroyOnClose: !0 }, Oe()), V = { width: m, top: N, modal: g, appendToBody: a, showClose: D, draggable: Y, closeOnClickModal: b };
|
|
7158
|
-
function
|
|
7158
|
+
function x(k) {
|
|
7159
7159
|
d.success ? d.success(k) : d.tableRef && (zn.success(typeof d.successTip == "function" ? d.successTip() : d.successTip), d.tableRef.reload(), f.value = !1, setTimeout(() => {
|
|
7160
7160
|
k.callBack();
|
|
7161
7161
|
}, 200));
|
|
@@ -7187,7 +7187,7 @@ const im = {
|
|
|
7187
7187
|
modelValue: p.value,
|
|
7188
7188
|
"onUpdate:modelValue": B[0] || (B[0] = (me) => p.value = me)
|
|
7189
7189
|
}, A, {
|
|
7190
|
-
success:
|
|
7190
|
+
success: x,
|
|
7191
7191
|
onCancel: B[1] || (B[1] = (me) => f.value = !1)
|
|
7192
7192
|
}), {
|
|
7193
7193
|
top: G(() => [
|
|
@@ -7232,7 +7232,7 @@ const im = {
|
|
|
7232
7232
|
p.formGroup.group.map((B, W) => {
|
|
7233
7233
|
B.fid = B.fid || `${V + W}`, B._vif = g.value(B.vif);
|
|
7234
7234
|
});
|
|
7235
|
-
const
|
|
7235
|
+
const x = p.formGroup.group.filter((B, W) => (B._vif && s.value.push(W), B._vif)), P = St.cloneDeep(p.formGroup), k = p.formGroup.column || 1;
|
|
7236
7236
|
return delete P.group, delete P.column, P.beforeValidate = async (B) => {
|
|
7237
7237
|
if (p.formGroup.beforeValidate) {
|
|
7238
7238
|
const W = p.formGroup.beforeValidate(B);
|
|
@@ -7240,12 +7240,12 @@ const im = {
|
|
|
7240
7240
|
return !1;
|
|
7241
7241
|
}
|
|
7242
7242
|
return await Promise.all(f.value.map((W) => W.validate()));
|
|
7243
|
-
}, P.groupFormDesc = {},
|
|
7243
|
+
}, P.groupFormDesc = {}, x.map((B) => {
|
|
7244
7244
|
Object.assign(P.groupFormDesc, B.formDesc);
|
|
7245
|
-
}), P.disabledTab = p.disabledTab,
|
|
7245
|
+
}), P.disabledTab = p.disabledTab, x.map((B, W) => {
|
|
7246
7246
|
A.push({
|
|
7247
7247
|
title: B.title,
|
|
7248
|
-
formProps: Object.assign({ column: B.column || k }, W ===
|
|
7248
|
+
formProps: Object.assign({ column: B.column || k }, W === x.length - 1 ? P : { showBtns: !1 }, B || {})
|
|
7249
7249
|
});
|
|
7250
7250
|
}), A;
|
|
7251
7251
|
}), g = Ie(() => (A) => typeof A == "function" ? A(p.modelValue) : typeof A == "boolean" ? A : !0);
|
|
@@ -7272,25 +7272,25 @@ const im = {
|
|
|
7272
7272
|
}), A;
|
|
7273
7273
|
}
|
|
7274
7274
|
return c({ validate: Y, getData: K, clearValid: b }), (A, V) => (v(), Q("div", cm, [
|
|
7275
|
-
(v(!0), Q(ve, null, Ue(N.value, (
|
|
7275
|
+
(v(!0), Q(ve, null, Ue(N.value, (x, P) => {
|
|
7276
7276
|
var k;
|
|
7277
7277
|
return v(), Q(ve, {
|
|
7278
|
-
key: P + ((k =
|
|
7278
|
+
key: P + ((k = x.formProps) == null ? void 0 : k.fid)
|
|
7279
7279
|
}, [
|
|
7280
7280
|
qt()["top" + s.value[P]] ? $e(A.$slots, "top" + s.value[P], { key: 0 }) : re("", !0),
|
|
7281
7281
|
$e(A.$slots, "title" + s.value[P], {}, () => [
|
|
7282
|
-
|
|
7282
|
+
x.title ? (v(), Q("div", fm, Ke(x.title), 1)) : re("", !0)
|
|
7283
7283
|
]),
|
|
7284
7284
|
je(to, ae({
|
|
7285
7285
|
modelValue: m.value,
|
|
7286
7286
|
"onUpdate:modelValue": V[0] || (V[0] = (B) => m.value = B)
|
|
7287
|
-
},
|
|
7287
|
+
}, x.formProps, {
|
|
7288
7288
|
isGroupForm: "",
|
|
7289
7289
|
ref_for: !0,
|
|
7290
7290
|
ref: a,
|
|
7291
7291
|
onReset: (B) => {
|
|
7292
7292
|
var W;
|
|
7293
|
-
return D(((W =
|
|
7293
|
+
return D(((W = x.formProps) == null ? void 0 : W.fid) || "");
|
|
7294
7294
|
}
|
|
7295
7295
|
}), {
|
|
7296
7296
|
default: G(() => [
|
|
@@ -7347,7 +7347,7 @@ const gm = { class: "el-plus-table-edit-column" }, pm = { class: "dialog-footer"
|
|
|
7347
7347
|
const P = localStorage.getItem(l.storagePrefix + "hideColumnsList_" + d.tbName);
|
|
7348
7348
|
P != null && P.length > 0 && (g.value = P.split("__")), s.value = D(d.column), K(d.column), N.value = m.value.filter((k) => g.value.indexOf(k) < 0);
|
|
7349
7349
|
}
|
|
7350
|
-
function
|
|
7350
|
+
function x() {
|
|
7351
7351
|
f.value.setCheckedKeys(N.value), p.value = !1;
|
|
7352
7352
|
}
|
|
7353
7353
|
return xn(() => {
|
|
@@ -7400,7 +7400,7 @@ const gm = { class: "el-plus-table-edit-column" }, pm = { class: "dialog-footer"
|
|
|
7400
7400
|
Ce("div", pm, [
|
|
7401
7401
|
je(B, {
|
|
7402
7402
|
size: P.size,
|
|
7403
|
-
onClick:
|
|
7403
|
+
onClick: x
|
|
7404
7404
|
}, {
|
|
7405
7405
|
default: G(() => [
|
|
7406
7406
|
Xe(" 取 消 ")
|
|
@@ -7450,14 +7450,14 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7450
7450
|
emits: ["query"],
|
|
7451
7451
|
setup(M, { expose: c, emit: l }) {
|
|
7452
7452
|
const d = He("defaultConf"), p = l, f = M, s = _(), m = _(), N = Ie(() => {
|
|
7453
|
-
const
|
|
7453
|
+
const x = [];
|
|
7454
7454
|
return f.toolbar && f.toolbar.btns && f.toolbar.btns.map((P) => {
|
|
7455
|
-
|
|
7456
|
-
}),
|
|
7455
|
+
x.push({ ...Wj(P), size: P.size || f.size });
|
|
7456
|
+
}), x;
|
|
7457
7457
|
}), g = Ie(() => {
|
|
7458
7458
|
var P;
|
|
7459
|
-
const
|
|
7460
|
-
return
|
|
7459
|
+
const x = (P = f.toolbar) == null ? void 0 : P.formConfig;
|
|
7460
|
+
return x != null && x.formDesc && Object.values(x == null ? void 0 : x.formDesc).map((k) => {
|
|
7461
7461
|
if (k.width)
|
|
7462
7462
|
return;
|
|
7463
7463
|
let B = 300;
|
|
@@ -7469,7 +7469,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7469
7469
|
break;
|
|
7470
7470
|
}
|
|
7471
7471
|
k.width = B + "px";
|
|
7472
|
-
}),
|
|
7472
|
+
}), x;
|
|
7473
7473
|
}), a = Ie(() => {
|
|
7474
7474
|
var P;
|
|
7475
7475
|
return ((P = f.toolbar) == null ? void 0 : P.export) || null;
|
|
@@ -7477,7 +7477,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7477
7477
|
function D() {
|
|
7478
7478
|
p("query");
|
|
7479
7479
|
}
|
|
7480
|
-
async function Y({ callBack:
|
|
7480
|
+
async function Y({ callBack: x }) {
|
|
7481
7481
|
var P, k, B, W, me;
|
|
7482
7482
|
if (a.value) {
|
|
7483
7483
|
const ee = new XMLHttpRequest();
|
|
@@ -7496,7 +7496,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7496
7496
|
}
|
|
7497
7497
|
ue = $;
|
|
7498
7498
|
} finally {
|
|
7499
|
-
|
|
7499
|
+
x && x();
|
|
7500
7500
|
}
|
|
7501
7501
|
else
|
|
7502
7502
|
!a.value.noQuery && Je === "get" && (ue += (ue.indexOf("?") >= 0 ? "&" : "?") + Zj(L));
|
|
@@ -7509,41 +7509,41 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7509
7509
|
if (this.status == 200) {
|
|
7510
7510
|
const Le = document.createElement("a");
|
|
7511
7511
|
Le.href = window.URL.createObjectURL(this.response), Le.download = (((q = ($ = f.toolbar) == null ? void 0 : $.export) == null ? void 0 : q.name) || (/* @__PURE__ */ new Date()).getTime()) + (((Ne = (Me = f.toolbar) == null ? void 0 : Me.export) == null ? void 0 : Ne.suffix) || ".xlsx"), Le.click(), window.URL.revokeObjectURL(ue), setTimeout(() => {
|
|
7512
|
-
|
|
7512
|
+
x && x();
|
|
7513
7513
|
}, 1e3);
|
|
7514
7514
|
}
|
|
7515
7515
|
}, ee.onerror = function($) {
|
|
7516
7516
|
var Me, Ne, Le, we;
|
|
7517
7517
|
const q = document.createElement("a");
|
|
7518
7518
|
q.href = ue, q.download = (((Ne = (Me = f.toolbar) == null ? void 0 : Me.export) == null ? void 0 : Ne.name) || (/* @__PURE__ */ new Date()).getTime()) + (((we = (Le = f.toolbar) == null ? void 0 : Le.export) == null ? void 0 : we.suffix) || ".xlsx"), q.click(), setTimeout(() => {
|
|
7519
|
-
|
|
7519
|
+
x && x();
|
|
7520
7520
|
}, 1e3);
|
|
7521
7521
|
}, Je === "post" ? (ee.setRequestHeader("content-type", "application/json; charset=UTF-8"), ee.send(JSON.stringify(L))) : ee.send();
|
|
7522
7522
|
}
|
|
7523
7523
|
}
|
|
7524
7524
|
function b() {
|
|
7525
|
-
var
|
|
7526
|
-
(
|
|
7525
|
+
var x;
|
|
7526
|
+
(x = s.value) == null || x.submit();
|
|
7527
7527
|
}
|
|
7528
7528
|
function K() {
|
|
7529
7529
|
s.value.clear(), Ot(() => {
|
|
7530
|
-
var
|
|
7531
|
-
(
|
|
7530
|
+
var x;
|
|
7531
|
+
(x = s.value) == null || x.submit();
|
|
7532
7532
|
});
|
|
7533
7533
|
}
|
|
7534
|
-
function A(
|
|
7535
|
-
if (
|
|
7536
|
-
return typeof
|
|
7537
|
-
if (
|
|
7534
|
+
function A(x) {
|
|
7535
|
+
if (x != null && x.vif)
|
|
7536
|
+
return typeof x.vif == "function" ? x.vif(x) : !!x.vif;
|
|
7537
|
+
if (x != null && x.auth)
|
|
7538
7538
|
if (!d.auth)
|
|
7539
7539
|
console.warn("使用auth属性,请在crud注册时传入auth校验方法~");
|
|
7540
7540
|
else
|
|
7541
|
-
return d.auth(
|
|
7541
|
+
return d.auth(x.auth);
|
|
7542
7542
|
return !0;
|
|
7543
7543
|
}
|
|
7544
7544
|
function V() {
|
|
7545
|
-
var
|
|
7546
|
-
f.tbName ? (
|
|
7545
|
+
var x, P;
|
|
7546
|
+
f.tbName ? (x = m.value) == null || x.initCol() : (P = f.column) == null || P.map((k) => {
|
|
7547
7547
|
k.vif !== void 0 && k.vif !== null ? typeof k.vif == "function" ? k._vif = k.vif(k) : k._vif = !!k.vif : k._vif = !0, k.auth && (d.auth ? k._vif = d.auth(k.auth) : console.warn("使用auth属性,请在crud注册时传入auth校验方法~"));
|
|
7548
7548
|
});
|
|
7549
7549
|
}
|
|
@@ -7554,9 +7554,9 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7554
7554
|
}, 200);
|
|
7555
7555
|
});
|
|
7556
7556
|
}), c({ getData: () => {
|
|
7557
|
-
var
|
|
7558
|
-
return (
|
|
7559
|
-
}, initCol: V }), (
|
|
7557
|
+
var x;
|
|
7558
|
+
return (x = s.value) == null ? void 0 : x.getData();
|
|
7559
|
+
}, initCol: V }), (x, P) => {
|
|
7560
7560
|
const k = F("ElPlusForm"), B = F("el-form");
|
|
7561
7561
|
return v(), Q("div", jm, [
|
|
7562
7562
|
f.toolbar && Object.keys(f.toolbar || {}).length ? (v(), R(B, {
|
|
@@ -7585,25 +7585,25 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7585
7585
|
key: 0,
|
|
7586
7586
|
type: "primary",
|
|
7587
7587
|
icon: "ele-Search",
|
|
7588
|
-
loading:
|
|
7589
|
-
desc: { label: "查询", on: { click: b }, size:
|
|
7588
|
+
loading: x.loading,
|
|
7589
|
+
desc: { label: "查询", on: { click: b }, size: x.size }
|
|
7590
7590
|
}, null, 8, ["loading", "desc"])) : re("", !0),
|
|
7591
7591
|
Object.keys(((me = g.value) == null ? void 0 : me.formDesc) || {}).length ? (v(), R(Ln, {
|
|
7592
7592
|
key: 1,
|
|
7593
|
-
desc: { label: "重置", on: { click: K }, size:
|
|
7593
|
+
desc: { label: "重置", on: { click: K }, size: x.size }
|
|
7594
7594
|
}, null, 8, ["desc"])) : re("", !0),
|
|
7595
|
-
|
|
7595
|
+
x.tbName ? (v(), R(ki, {
|
|
7596
7596
|
key: 2,
|
|
7597
7597
|
ref_key: "settingColumnRef",
|
|
7598
7598
|
ref: m,
|
|
7599
|
-
tbName:
|
|
7600
|
-
column:
|
|
7601
|
-
size:
|
|
7599
|
+
tbName: x.tbName,
|
|
7600
|
+
column: x.column || [],
|
|
7601
|
+
size: x.size
|
|
7602
7602
|
}, null, 8, ["tbName", "column", "size"])) : re("", !0),
|
|
7603
7603
|
A(a.value) && a.value ? (v(), R(Ln, {
|
|
7604
7604
|
key: 3,
|
|
7605
7605
|
type: "primary",
|
|
7606
|
-
desc: { label: "导出Excel", size:
|
|
7606
|
+
desc: { label: "导出Excel", size: x.size, disabled: (ee = a.value) == null ? void 0 : ee.disabled, mask: !0, on: { click: Y } }
|
|
7607
7607
|
}, null, 8, ["desc"])) : re("", !0),
|
|
7608
7608
|
(v(!0), Q(ve, null, Ue(N.value, (ue, Je) => (v(), Q(ve, { key: Je }, [
|
|
7609
7609
|
A(ue) ? (v(), Q(ve, { key: 0 }, [
|
|
@@ -7611,11 +7611,11 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7611
7611
|
ue.elType === "upload" ? (v(), R(Fl, {
|
|
7612
7612
|
key: 0,
|
|
7613
7613
|
desc: ue,
|
|
7614
|
-
loading:
|
|
7614
|
+
loading: x.loading
|
|
7615
7615
|
}, null, 8, ["desc", "loading"])) : (v(), R(Ln, {
|
|
7616
7616
|
key: 1,
|
|
7617
7617
|
desc: ue,
|
|
7618
|
-
loading:
|
|
7618
|
+
loading: x.loading
|
|
7619
7619
|
}, null, 8, ["desc", "loading"]))
|
|
7620
7620
|
], 64))
|
|
7621
7621
|
], 64)) : re("", !0)
|
|
@@ -7636,11 +7636,11 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7636
7636
|
W.elType === "upload" ? (v(), R(Fl, {
|
|
7637
7637
|
key: 0,
|
|
7638
7638
|
desc: W,
|
|
7639
|
-
loading:
|
|
7639
|
+
loading: x.loading
|
|
7640
7640
|
}, null, 8, ["desc", "loading"])) : (v(), R(Ln, {
|
|
7641
7641
|
key: 1,
|
|
7642
7642
|
desc: W,
|
|
7643
|
-
loading:
|
|
7643
|
+
loading: x.loading
|
|
7644
7644
|
}, null, 8, ["desc", "loading"]))
|
|
7645
7645
|
], 64))
|
|
7646
7646
|
], 64))), 128))
|
|
@@ -7648,15 +7648,15 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7648
7648
|
], 4))
|
|
7649
7649
|
]),
|
|
7650
7650
|
_: 1
|
|
7651
|
-
}, 8, ["style"])) :
|
|
7651
|
+
}, 8, ["style"])) : x.tbName ? (v(), Q("div", Dm, [
|
|
7652
7652
|
Ce("div", _m, [
|
|
7653
|
-
|
|
7653
|
+
x.tbName ? (v(), R(ki, {
|
|
7654
7654
|
key: 0,
|
|
7655
7655
|
ref_key: "settingColumnRef",
|
|
7656
7656
|
ref: m,
|
|
7657
|
-
tbName:
|
|
7658
|
-
column:
|
|
7659
|
-
size:
|
|
7657
|
+
tbName: x.tbName,
|
|
7658
|
+
column: x.column || [],
|
|
7659
|
+
size: x.size,
|
|
7660
7660
|
showText: !0
|
|
7661
7661
|
}, null, 8, ["tbName", "column", "size"])) : re("", !0)
|
|
7662
7662
|
])
|
|
@@ -7665,7 +7665,7 @@ const ki = /* @__PURE__ */ et(Nm, [["__scopeId", "data-v-ed199511"]]), jm = { cl
|
|
|
7665
7665
|
};
|
|
7666
7666
|
}
|
|
7667
7667
|
});
|
|
7668
|
-
const vm = /* @__PURE__ */ et(hm, [["__scopeId", "data-v-
|
|
7668
|
+
const vm = /* @__PURE__ */ et(hm, [["__scopeId", "data-v-b1ccbea0"]]), Im = /* @__PURE__ */ fe({
|
|
7669
7669
|
__name: "columnItem",
|
|
7670
7670
|
props: {
|
|
7671
7671
|
modelValue: {},
|
|
@@ -7836,10 +7836,10 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7836
7836
|
emits: ["getUrlConsumerIds", "selection", "select", "selectAll", "update:modelValue", "tabChange", "queryChange", "expandChange", "inited"],
|
|
7837
7837
|
setup(M, { expose: c, emit: l }) {
|
|
7838
7838
|
var ol, ke, gn, On, Sn, kt, kn, qn;
|
|
7839
|
-
const d = He("defaultConf"), p = He("format"), f = l, s = M, m = _([]), N = _(null), g = _(), a = _({}), D = _(((On = (ol = s.tableConfig) == null ? void 0 : ol.tabConf) == null ? void 0 : On.tabs[((gn = (ke = s.tableConfig) == null ? void 0 : ke.tabConf) == null ? void 0 : gn.default) || 0].value) ?? ""), Y = Ie(() => (
|
|
7839
|
+
const d = He("defaultConf"), p = He("format"), f = l, s = M, m = _([]), N = _(null), g = _(), a = _({}), D = _(((On = (ol = s.tableConfig) == null ? void 0 : ol.tabConf) == null ? void 0 : On.tabs[((gn = (ke = s.tableConfig) == null ? void 0 : ke.tabConf) == null ? void 0 : gn.default) || 0].value) ?? ""), Y = Ie(() => (E) => E.key ? a.value[E.key] || 0 : ""), b = Ie(() => (E, ne) => {
|
|
7840
7840
|
var oe, De, Be, tt;
|
|
7841
|
-
return typeof ((De = (oe = s.tableConfig) == null ? void 0 : oe.tableAttr) == null ? void 0 : De.selectable) == "function" ? (tt = (Be = s.tableConfig) == null ? void 0 : Be.tableAttr) == null ? void 0 : tt.selectable(
|
|
7842
|
-
}), K = _(), A = _(!1), V = _(!!((kt = (Sn = s.tableConfig) == null ? void 0 : Sn.tabConf) != null && kt.fetch)),
|
|
7841
|
+
return typeof ((De = (oe = s.tableConfig) == null ? void 0 : oe.tableAttr) == null ? void 0 : De.selectable) == "function" ? (tt = (Be = s.tableConfig) == null ? void 0 : Be.tableAttr) == null ? void 0 : tt.selectable(E, ne) : !0;
|
|
7842
|
+
}), K = _(), A = _(!1), V = _(!!((kt = (Sn = s.tableConfig) == null ? void 0 : Sn.tabConf) != null && kt.fetch)), x = _(!1), P = d.size || "default", k = Ie(() => s.loading || A.value);
|
|
7843
7843
|
let B = Mt({});
|
|
7844
7844
|
const W = _(s.modelValue || []), me = Mt([]), ee = _(0), ue = Mt(St.cloneDeep(s.selectList) || []), Je = Mt([]), L = Mt({
|
|
7845
7845
|
current: !s.isDialog && B.current ? parseInt(B.current) : 1,
|
|
@@ -7847,7 +7847,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7847
7847
|
size: !s.isDialog && B.size ? parseInt(B.size) : s.pageSize
|
|
7848
7848
|
}), $ = ((qn = (kn = s.tableConfig) == null ? void 0 : kn.explan) == null ? void 0 : qn.treeProps) || { children: "children", hasChildren: "hasChildren" }, q = Ie(() => {
|
|
7849
7849
|
var De, Be, tt;
|
|
7850
|
-
const
|
|
7850
|
+
const E = Vi((De = s.tableConfig) == null ? void 0 : De.column, d, ((Be = s.tableConfig) == null ? void 0 : Be.tbName) || "", s.headerAlign, s.isDialog ? "auto" : s.colMinWidth), ne = Le(E);
|
|
7851
7851
|
m.value = [];
|
|
7852
7852
|
const oe = ne.map((Ae, rt) => {
|
|
7853
7853
|
var pt;
|
|
@@ -7871,72 +7871,72 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7871
7871
|
let st = pt;
|
|
7872
7872
|
if (s.type === "selection" && (st -= 1), s.isIndex && (st -= 1), qt().firstColumn && (st -= 1), m.value.includes(st))
|
|
7873
7873
|
return { rowspan: Ae["rowSpan_" + st] ?? 1, colspan: Ae["colSpan_" + st] ?? 1 };
|
|
7874
|
-
}),
|
|
7874
|
+
}), E;
|
|
7875
7875
|
});
|
|
7876
|
-
function Me(
|
|
7877
|
-
return
|
|
7876
|
+
function Me(E, ne) {
|
|
7877
|
+
return E && (ne != null && ne.length) ? ne.reduce((oe, De) => oe += E[De] || "", "") : "";
|
|
7878
7878
|
}
|
|
7879
7879
|
const Ne = Ie(() => {
|
|
7880
7880
|
var ne, oe, De, Be, tt, Ae, rt;
|
|
7881
|
-
const
|
|
7881
|
+
const E = [];
|
|
7882
7882
|
if ((ne = s.tableConfig.summaryConf) != null && ne.vif) {
|
|
7883
7883
|
if (typeof ((oe = s.tableConfig.summaryConf) == null ? void 0 : oe.vif) == "boolean") {
|
|
7884
7884
|
if (!((De = s.tableConfig.summaryConf) != null && De.vif))
|
|
7885
|
-
return
|
|
7885
|
+
return E;
|
|
7886
7886
|
} else if (!((Be = s.tableConfig.summaryConf) != null && Be.vif()))
|
|
7887
|
-
return
|
|
7887
|
+
return E;
|
|
7888
7888
|
}
|
|
7889
7889
|
if ((tt = s.tableConfig.summaryConf) != null && tt.prop) {
|
|
7890
7890
|
const pt = s.tableConfig.summaryConf.prop.split(","), st = ((rt = (Ae = s.tableConfig.summaryConf) == null ? void 0 : Ae.label) == null ? void 0 : rt.split(",")) || [];
|
|
7891
7891
|
pt.map((Nt, ut) => {
|
|
7892
7892
|
var Yt, Ft;
|
|
7893
7893
|
let dt = "";
|
|
7894
|
-
(Yt = s.tableConfig.summaryConf) != null && Yt.sumFn ? dt = (Ft = s.tableConfig.summaryConf) == null ? void 0 : Ft.sumFn(W.value, ue) : dt = p.yuan(W.value.reduce((Jt, yt) => Jt += yt[Nt], 0)),
|
|
7894
|
+
(Yt = s.tableConfig.summaryConf) != null && Yt.sumFn ? dt = (Ft = s.tableConfig.summaryConf) == null ? void 0 : Ft.sumFn(W.value, ue) : dt = p.yuan(W.value.reduce((Jt, yt) => Jt += yt[Nt], 0)), E.push({ label: st[ut], value: dt });
|
|
7895
7895
|
});
|
|
7896
7896
|
}
|
|
7897
|
-
return
|
|
7897
|
+
return E;
|
|
7898
7898
|
});
|
|
7899
|
-
function Le(
|
|
7899
|
+
function Le(E) {
|
|
7900
7900
|
const ne = [];
|
|
7901
|
-
return
|
|
7901
|
+
return E == null || E.map((oe) => {
|
|
7902
7902
|
var De;
|
|
7903
7903
|
(De = oe.children) != null && De.length ? ne.push(...Le(oe.children)) : oe.__vif && ne.push(oe);
|
|
7904
7904
|
}), ne;
|
|
7905
7905
|
}
|
|
7906
|
-
async function we(
|
|
7907
|
-
dn(!0), await f("tabChange",
|
|
7906
|
+
async function we(E) {
|
|
7907
|
+
dn(!0), await f("tabChange", E, sn), Ot(() => {
|
|
7908
7908
|
sn();
|
|
7909
7909
|
});
|
|
7910
7910
|
}
|
|
7911
|
-
async function z(
|
|
7911
|
+
async function z(E, ne, oe) {
|
|
7912
7912
|
var Be, tt;
|
|
7913
7913
|
const De = await Z();
|
|
7914
|
-
De[((tt = (Be = s.tableConfig) == null ? void 0 : Be.explan) == null ? void 0 : tt.idName) || "parentId"] =
|
|
7914
|
+
De[((tt = (Be = s.tableConfig) == null ? void 0 : Be.explan) == null ? void 0 : tt.idName) || "parentId"] = E.id, s.tableConfig.fetch && s.tableConfig.fetch(De).then((Ae) => {
|
|
7915
7915
|
var rt, pt;
|
|
7916
7916
|
oe(Ae == null ? void 0 : Ae[((pt = (rt = s.tableConfig) == null ? void 0 : rt.fetchMap) == null ? void 0 : pt.list) || "records"]);
|
|
7917
7917
|
});
|
|
7918
7918
|
}
|
|
7919
|
-
function w(
|
|
7920
|
-
return me.length >
|
|
7919
|
+
function w(E) {
|
|
7920
|
+
return me.length > E.rowIndex ? me[E.rowIndex * 1] : "";
|
|
7921
7921
|
}
|
|
7922
|
-
function J(
|
|
7923
|
-
_e(ne, !
|
|
7922
|
+
function J(E, ne) {
|
|
7923
|
+
_e(ne, !E.some((oe) => oe[s.rowKey] === ne[s.rowKey])), f("select", E, ne), f("selection", St.cloneDeep(ue));
|
|
7924
7924
|
}
|
|
7925
|
-
function te(
|
|
7926
|
-
const ne = !(
|
|
7927
|
-
(ne ? W.value :
|
|
7925
|
+
function te(E) {
|
|
7926
|
+
const ne = !(E && E.length > 0);
|
|
7927
|
+
(ne ? W.value : E).map((oe) => {
|
|
7928
7928
|
_e(oe, ne);
|
|
7929
|
-
}), f("selectAll",
|
|
7929
|
+
}), f("selectAll", E, ne), f("selection", St.cloneDeep(ue));
|
|
7930
7930
|
}
|
|
7931
|
-
function ce(
|
|
7932
|
-
f("expandChange",
|
|
7931
|
+
function ce(E, ne) {
|
|
7932
|
+
f("expandChange", E, ne);
|
|
7933
7933
|
}
|
|
7934
|
-
function _e(
|
|
7935
|
-
const oe = ue.findIndex((De) => De[s.rowKey] ===
|
|
7936
|
-
ne ? oe >= 0 && ue.splice(oe, 1) : oe < 0 && ue.push(
|
|
7934
|
+
function _e(E, ne = !1) {
|
|
7935
|
+
const oe = ue.findIndex((De) => De[s.rowKey] === E[s.rowKey]);
|
|
7936
|
+
ne ? oe >= 0 && ue.splice(oe, 1) : oe < 0 && ue.push(E);
|
|
7937
7937
|
}
|
|
7938
|
-
function H(
|
|
7939
|
-
|
|
7938
|
+
function H(E, ne = !1) {
|
|
7939
|
+
E && E.length && E.map((oe) => {
|
|
7940
7940
|
_e(
|
|
7941
7941
|
ue.find((De) => De[s.rowKey] === oe[s.rowKey]),
|
|
7942
7942
|
!ne
|
|
@@ -7948,7 +7948,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7948
7948
|
}
|
|
7949
7949
|
async function Z() {
|
|
7950
7950
|
var ne, oe, De, Be, tt, Ae, rt;
|
|
7951
|
-
let
|
|
7951
|
+
let E = {
|
|
7952
7952
|
// 封装查询条件
|
|
7953
7953
|
// ...route.query,
|
|
7954
7954
|
// ...topQueryData.value,
|
|
@@ -7956,35 +7956,35 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7956
7956
|
...typeof s.tableConfig.queryMap == "function" ? await s.tableConfig.queryMap() : s.tableConfig.queryMap,
|
|
7957
7957
|
t_: (/* @__PURE__ */ new Date()).getTime()
|
|
7958
7958
|
};
|
|
7959
|
-
return s.isPager && (
|
|
7959
|
+
return s.isPager && (E.current = L.current, E.size = L.size), (ne = s.tableConfig) != null && ne.tabConf && ((De = (oe = s.tableConfig) == null ? void 0 : oe.tabConf) != null && De.prop) && (E[(Be = s.tableConfig) == null ? void 0 : Be.tabConf.prop] = D.value), E = Se(E), s.isDialog, (rt = (Ae = (tt = s.tableConfig) == null ? void 0 : tt.toolbar) == null ? void 0 : Ae.export) != null && rt.isAuth, E;
|
|
7960
7960
|
}
|
|
7961
|
-
function Se(
|
|
7962
|
-
if (!
|
|
7961
|
+
function Se(E) {
|
|
7962
|
+
if (!E)
|
|
7963
7963
|
return {};
|
|
7964
7964
|
const ne = {};
|
|
7965
|
-
return Object.keys(
|
|
7966
|
-
|
|
7965
|
+
return Object.keys(E).map((oe) => {
|
|
7966
|
+
E[oe] !== void 0 && E[oe] !== null && E[oe] !== "" && (ne[oe] = E[oe]);
|
|
7967
7967
|
}), ne;
|
|
7968
7968
|
}
|
|
7969
|
-
function be(
|
|
7970
|
-
L.current = 1, L.size =
|
|
7969
|
+
function be(E) {
|
|
7970
|
+
L.current = 1, L.size = E, yn(!0);
|
|
7971
7971
|
}
|
|
7972
|
-
function at(
|
|
7973
|
-
L.current !==
|
|
7972
|
+
function at(E) {
|
|
7973
|
+
L.current !== E && (L.current = E, yn(!1));
|
|
7974
7974
|
}
|
|
7975
|
-
function ct(
|
|
7975
|
+
function ct(E, ne) {
|
|
7976
7976
|
let oe = [];
|
|
7977
|
-
|
|
7977
|
+
E && E.length > 0 && E.map((De, Be) => {
|
|
7978
7978
|
Je.push([...ne, Be]), oe = De[$.children], oe && oe.length > 0 && ct(oe, [Be]);
|
|
7979
7979
|
});
|
|
7980
7980
|
}
|
|
7981
|
-
async function yn(
|
|
7981
|
+
async function yn(E) {
|
|
7982
7982
|
var oe, De, Be, tt, Ae, rt, pt, st, Nt, ut, dt, Yt, Ft, Jt, yt, Bt;
|
|
7983
7983
|
if (!s.tableConfig.fetch)
|
|
7984
7984
|
return ee.value = 2, !1;
|
|
7985
7985
|
if (ee.value === 1 || A.value)
|
|
7986
7986
|
return !1;
|
|
7987
|
-
ee.value = 1, A.value = !0,
|
|
7987
|
+
ee.value = 1, A.value = !0, E && (L.current = 1);
|
|
7988
7988
|
let ne = await Z();
|
|
7989
7989
|
(Be = (De = (oe = s.tableConfig) == null ? void 0 : oe.toolbar) == null ? void 0 : De.formConfig) != null && Be.beforeRequest && (ne = ((rt = (Ae = (tt = s.tableConfig) == null ? void 0 : tt.toolbar) == null ? void 0 : Ae.formConfig) == null ? void 0 : rt.beforeRequest(JSON.parse(JSON.stringify(ne)))) || ne);
|
|
7990
7990
|
try {
|
|
@@ -7998,7 +7998,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
7998
7998
|
Rl.tempId = Rl[s.rowKey] || `${Or + Sr}`;
|
|
7999
7999
|
});
|
|
8000
8000
|
}
|
|
8001
|
-
W.value = Dn, s.type === "expand" && (Je.splice(0, Je.length), ct(W.value, [])),
|
|
8001
|
+
W.value = Dn, s.type === "expand" && (Je.splice(0, Je.length), ct(W.value, [])), x.value = !1, mn(), Ot(() => {
|
|
8002
8002
|
$t();
|
|
8003
8003
|
});
|
|
8004
8004
|
} catch (Dn) {
|
|
@@ -8017,63 +8017,63 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8017
8017
|
{ leading: !0, trailing: !1 }
|
|
8018
8018
|
);
|
|
8019
8019
|
function $t() {
|
|
8020
|
-
W.value && W.value.length > 0 && s.type === "selection" && W.value.map((
|
|
8020
|
+
W.value && W.value.length > 0 && s.type === "selection" && W.value.map((E) => {
|
|
8021
8021
|
g.value.toggleRowSelection(
|
|
8022
|
-
|
|
8023
|
-
ue.some((ne) => ne[s.rowKey] ===
|
|
8022
|
+
E,
|
|
8023
|
+
ue.some((ne) => ne[s.rowKey] === E[s.rowKey])
|
|
8024
8024
|
);
|
|
8025
8025
|
});
|
|
8026
8026
|
}
|
|
8027
|
-
async function dn(
|
|
8027
|
+
async function dn(E = !1) {
|
|
8028
8028
|
var ne, oe, De, Be;
|
|
8029
|
-
return await yn(!0), !
|
|
8029
|
+
return await yn(!0), !E && ((ne = s.tableConfig) != null && ne.tabConf) && ((oe = s.tableConfig) != null && oe.tabConf.fetch) && (a.value = await ((Be = s.tableConfig) == null ? void 0 : Be.tabConf.fetch(Object.assign({}, await Z(), (De = s.tableConfig) == null ? void 0 : De.tabConf.queryMap))), V.value = !1), W.value;
|
|
8030
8030
|
}
|
|
8031
8031
|
async function Lt() {
|
|
8032
8032
|
var ne, oe, De, Be, tt, Ae;
|
|
8033
|
-
let
|
|
8034
|
-
(De = (oe = (ne = s.tableConfig) == null ? void 0 : ne.toolbar) == null ? void 0 : oe.formConfig) != null && De.beforeRequest && (
|
|
8033
|
+
let E = await Z();
|
|
8034
|
+
(De = (oe = (ne = s.tableConfig) == null ? void 0 : ne.toolbar) == null ? void 0 : oe.formConfig) != null && De.beforeRequest && (E = ((Ae = (tt = (Be = s.tableConfig) == null ? void 0 : Be.toolbar) == null ? void 0 : tt.formConfig) == null ? void 0 : Ae.beforeRequest(JSON.parse(JSON.stringify(E)))) || E), E && f("queryChange", E), dn();
|
|
8035
8035
|
}
|
|
8036
8036
|
function sn() {
|
|
8037
|
-
var
|
|
8038
|
-
(
|
|
8037
|
+
var E;
|
|
8038
|
+
(E = K.value) == null || E.initCol();
|
|
8039
8039
|
}
|
|
8040
8040
|
return Qe(
|
|
8041
8041
|
() => s.modelValue,
|
|
8042
|
-
(
|
|
8042
|
+
(E) => {
|
|
8043
8043
|
var ne, oe;
|
|
8044
|
-
s.tableConfig.fetch || (
|
|
8044
|
+
s.tableConfig.fetch || (E == null ? void 0 : E.length) !== ((ne = W.value) == null ? void 0 : ne.length) && (ee.value = 2, (oe = W.value) == null || oe.splice(0, W.value.length, ...E || []));
|
|
8045
8045
|
}
|
|
8046
8046
|
// { deep: true }
|
|
8047
8047
|
), Qe(
|
|
8048
8048
|
() => s.selectList,
|
|
8049
|
-
(
|
|
8050
|
-
ue.splice(0, ue.length, ...
|
|
8049
|
+
(E) => {
|
|
8050
|
+
ue.splice(0, ue.length, ...E), $t();
|
|
8051
8051
|
},
|
|
8052
8052
|
{ deep: !0 }
|
|
8053
8053
|
), s.isDIYMain && aj("reloadTable", dn), xn(() => {
|
|
8054
|
-
var
|
|
8055
|
-
Object.keys(((ne = (
|
|
8056
|
-
}), c({ reload: dn, tableData: W, changeSelect: H, resetSelect: se, initCol: sn }), (
|
|
8054
|
+
var E, ne, oe;
|
|
8055
|
+
Object.keys(((ne = (E = s.tableConfig) == null ? void 0 : E.toolbar) == null ? void 0 : ne.formConfig) || {}).length || (oe = s.tableConfig) != null && oe.tbName || dn();
|
|
8056
|
+
}), c({ reload: dn, tableData: W, changeSelect: H, resetSelect: se, initCol: sn }), (E, ne) => {
|
|
8057
8057
|
var Nt, ut, dt, Yt, Ft, Jt;
|
|
8058
8058
|
const oe = F("el-icon"), De = F("el-radio-button"), Be = F("el-radio-group"), tt = F("el-table-column"), Ae = F("el-empty"), rt = F("el-table"), pt = F("el-pagination"), st = cj("loading");
|
|
8059
8059
|
return v(), Q("div", Tm, [
|
|
8060
|
-
Object.keys(((Nt =
|
|
8060
|
+
Object.keys(((Nt = E.tableConfig) == null ? void 0 : Nt.toolbar) || {}).length || E.tableConfig.tbName ? (v(), R(vm, {
|
|
8061
8061
|
key: 0,
|
|
8062
8062
|
ref_key: "tableHeaderRef",
|
|
8063
8063
|
ref: K,
|
|
8064
8064
|
modelValue: bt(B),
|
|
8065
8065
|
"onUpdate:modelValue": ne[0] || (ne[0] = (yt) => fj(B) ? B.value = yt : B = yt),
|
|
8066
|
-
tbName:
|
|
8067
|
-
column: ((ut =
|
|
8066
|
+
tbName: E.tableConfig.tbName,
|
|
8067
|
+
column: ((ut = E.tableConfig) == null ? void 0 : ut.column) || [],
|
|
8068
8068
|
size: bt(P),
|
|
8069
|
-
isShowRefresh:
|
|
8069
|
+
isShowRefresh: E.isShowRefresh,
|
|
8070
8070
|
loading: k.value,
|
|
8071
|
-
toolbar:
|
|
8072
|
-
isDialog:
|
|
8071
|
+
toolbar: E.tableConfig.toolbar,
|
|
8072
|
+
isDialog: E.isDialog,
|
|
8073
8073
|
onQuery: Lt,
|
|
8074
8074
|
queryDataFn: Z
|
|
8075
8075
|
}, null, 8, ["modelValue", "tbName", "column", "size", "isShowRefresh", "loading", "toolbar", "isDialog"])) : re("", !0),
|
|
8076
|
-
|
|
8076
|
+
E.tableConfig.tabConf ? (v(), Q("div", bm, [
|
|
8077
8077
|
je(Be, {
|
|
8078
8078
|
modelValue: D.value,
|
|
8079
8079
|
"onUpdate:modelValue": ne[1] || (ne[1] = (yt) => D.value = yt),
|
|
@@ -8083,7 +8083,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8083
8083
|
default: G(() => {
|
|
8084
8084
|
var yt;
|
|
8085
8085
|
return [
|
|
8086
|
-
(v(!0), Q(ve, null, Ue((yt =
|
|
8086
|
+
(v(!0), Q(ve, null, Ue((yt = E.tableConfig.tabConf) == null ? void 0 : yt.tabs, (Bt, wt) => (v(), R(De, {
|
|
8087
8087
|
key: wt,
|
|
8088
8088
|
label: Bt.value,
|
|
8089
8089
|
loading: !0
|
|
@@ -8109,9 +8109,9 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8109
8109
|
_: 1
|
|
8110
8110
|
}, 8, ["modelValue"])
|
|
8111
8111
|
])) : re("", !0),
|
|
8112
|
-
qt().default ? $e(
|
|
8112
|
+
qt().default ? $e(E.$slots, "default", { key: 2 }) : re("", !0),
|
|
8113
8113
|
Mj((v(), Q("div", Lm, [
|
|
8114
|
-
|
|
8114
|
+
E.isDIYMain ? $e(E.$slots, "main", {
|
|
8115
8115
|
key: 0,
|
|
8116
8116
|
tableData: W.value
|
|
8117
8117
|
}) : (v(), R(rt, ae({
|
|
@@ -8120,11 +8120,11 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8120
8120
|
ref: g,
|
|
8121
8121
|
style: { width: "100%" },
|
|
8122
8122
|
height: "100%",
|
|
8123
|
-
maxHeight:
|
|
8124
|
-
},
|
|
8125
|
-
class: { "big-h-bar": (Yt = (dt =
|
|
8123
|
+
maxHeight: E.tableConfig.maxHeight || "auto"
|
|
8124
|
+
}, E.tableConfig.tableAttr, {
|
|
8125
|
+
class: { "big-h-bar": (Yt = (dt = E.tableConfig) == null ? void 0 : dt.tableAttr) == null ? void 0 : Yt.bigHBar, "big-v-bar": (Ft = E.tableConfig.tableAttr) == null ? void 0 : Ft.bigVBar },
|
|
8126
8126
|
data: W.value,
|
|
8127
|
-
"row-key":
|
|
8127
|
+
"row-key": E.type !== "expand" && E.isTempId ? "tempId" : E.rowKey,
|
|
8128
8128
|
lazy: "",
|
|
8129
8129
|
load: z,
|
|
8130
8130
|
size: bt(P),
|
|
@@ -8136,7 +8136,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8136
8136
|
"span-method": N.value
|
|
8137
8137
|
}), En({
|
|
8138
8138
|
default: G(() => [
|
|
8139
|
-
|
|
8139
|
+
E.type === "selection" ? (v(), R(tt, {
|
|
8140
8140
|
key: 0,
|
|
8141
8141
|
type: "selection",
|
|
8142
8142
|
width: "55px",
|
|
@@ -8144,14 +8144,14 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8144
8144
|
"header-align": "center",
|
|
8145
8145
|
align: "center"
|
|
8146
8146
|
}, null, 8, ["selectable"])) : re("", !0),
|
|
8147
|
-
|
|
8147
|
+
E.isIndex ? (v(), R(tt, {
|
|
8148
8148
|
key: 1,
|
|
8149
8149
|
type: "index",
|
|
8150
8150
|
width: "60",
|
|
8151
8151
|
label: "序号",
|
|
8152
|
-
headerAlign:
|
|
8152
|
+
headerAlign: E.headerAlign
|
|
8153
8153
|
}, null, 8, ["headerAlign"])) : re("", !0),
|
|
8154
|
-
qt().firstColumn ? $e(
|
|
8154
|
+
qt().firstColumn ? $e(E.$slots, "firstColumn", { key: 2 }) : re("", !0),
|
|
8155
8155
|
(v(!0), Q(ve, null, Ue(q.value, (yt, Bt) => (v(), R(Am, {
|
|
8156
8156
|
key: Bt,
|
|
8157
8157
|
item: yt,
|
|
@@ -8163,21 +8163,21 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8163
8163
|
!k.value && ee.value === 2 ? {
|
|
8164
8164
|
name: "empty",
|
|
8165
8165
|
fn: G(() => [
|
|
8166
|
-
|
|
8166
|
+
E.isEmptyImg ? (v(), R(Ae, {
|
|
8167
8167
|
key: 0,
|
|
8168
|
-
description:
|
|
8169
|
-
}, null, 8, ["description"])) : (v(), Q("span", xm, Ke(
|
|
8168
|
+
description: E.nullText
|
|
8169
|
+
}, null, 8, ["description"])) : (v(), Q("span", xm, Ke(E.nullText), 1))
|
|
8170
8170
|
]),
|
|
8171
8171
|
key: "0"
|
|
8172
8172
|
} : void 0,
|
|
8173
|
-
(Jt =
|
|
8173
|
+
(Jt = E.tableConfig.summaryConf) != null && Jt.prop ? {
|
|
8174
8174
|
name: "append",
|
|
8175
8175
|
fn: G(() => {
|
|
8176
8176
|
var yt;
|
|
8177
8177
|
return [
|
|
8178
8178
|
Ne.value && Ne.value.length > 0 ? (v(), Q("div", {
|
|
8179
8179
|
key: 0,
|
|
8180
|
-
style: ht((yt =
|
|
8180
|
+
style: ht((yt = E.tableConfig.summaryConf) == null ? void 0 : yt.hstyle),
|
|
8181
8181
|
class: "summary-row"
|
|
8182
8182
|
}, [
|
|
8183
8183
|
(v(!0), Q(ve, null, Ue(Ne.value, (Bt, wt) => (v(), Q("div", {
|
|
@@ -8196,7 +8196,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8196
8196
|
])), [
|
|
8197
8197
|
[st, k.value]
|
|
8198
8198
|
]),
|
|
8199
|
-
|
|
8199
|
+
E.isPager || E.tableConfig.statistic ? (v(), Q("div", Em, [
|
|
8200
8200
|
je(pt, {
|
|
8201
8201
|
class: "page-info",
|
|
8202
8202
|
small: "",
|
|
@@ -8209,7 +8209,7 @@ const Ym = /* @__PURE__ */ et(Im, [["__scopeId", "data-v-2c8bae46"]]), wm = {
|
|
|
8209
8209
|
total: L.total
|
|
8210
8210
|
}, null, 8, ["current-page", "page-size", "total"])
|
|
8211
8211
|
])) : re("", !0),
|
|
8212
|
-
$e(
|
|
8212
|
+
$e(E.$slots, "bottom")
|
|
8213
8213
|
]);
|
|
8214
8214
|
};
|
|
8215
8215
|
}
|