fast-crud-ui3 1.5.14-beta → 1.5.14-beta2
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/lib/fast-crud-ui3.cjs.js +5 -5
- package/lib/fast-crud-ui3.es.js +95 -95
- package/lib/fast-crud-ui3.umd.js +5 -5
- package/package.json +1 -1
package/lib/fast-crud-ui3.es.js
CHANGED
|
@@ -5,9 +5,9 @@ import { ElCheckbox as _a, ElCheckboxGroup as lf, ElInput as zn, ElTableColumn a
|
|
|
5
5
|
import "element-plus/es/components/base/style/index";
|
|
6
6
|
import "element-plus/es/components/checkbox-group/style/index";
|
|
7
7
|
import "element-plus/es/components/checkbox/style/index";
|
|
8
|
-
import { openBlock as w, createElementBlock as L, createBlock as I, withCtx as O, createTextVNode as Q, createCommentVNode as W, createVNode as E, Fragment as
|
|
8
|
+
import { openBlock as w, createElementBlock as L, createBlock as I, withCtx as O, createTextVNode as Q, createCommentVNode as W, createVNode as E, Fragment as xe, renderList as Qe, toDisplayString as ie, defineComponent as he, ref as et, onMounted as Ns, h as me, watch as Ys, computed as Ut, inject as Os, provide as ms, normalizeClass as Ge, nextTick as qt, resolveComponent as Z, createElementVNode as $, renderSlot as H, reactive as wf, render as ti, mergeProps as le, normalizeStyle as $n, resolveDynamicComponent as At, withKeys as kf, withModifiers as Ea, withDirectives as Us, vShow as Cf, normalizeProps as ys, guardReactiveProps as gs } from "vue";
|
|
9
9
|
import "element-plus/es/components/link/style/index";
|
|
10
|
-
import { ElMessage as
|
|
10
|
+
import { ElMessage as Re, ElDialog as Sf, ElButton as Of, version as Ff, dayjs as ni, ElMessageBox as ri } from "element-plus";
|
|
11
11
|
import "element-plus/es/components/select/style/index";
|
|
12
12
|
import "element-plus/es/components/option/style/index";
|
|
13
13
|
import "element-plus/es/components/upload/style/index";
|
|
@@ -123,7 +123,7 @@ function Mf(e, t, r, o, a, i) {
|
|
|
123
123
|
onChange: i.handleChange
|
|
124
124
|
}, {
|
|
125
125
|
default: O(() => [
|
|
126
|
-
(w(!0), L(
|
|
126
|
+
(w(!0), L(xe, null, Qe(r.options, (h) => (w(), I(d, {
|
|
127
127
|
value: h[r.valKey],
|
|
128
128
|
key: h[r.valKey],
|
|
129
129
|
label: h[r.valKey],
|
|
@@ -631,7 +631,7 @@ function Bf() {
|
|
|
631
631
|
}, J(Y);
|
|
632
632
|
}
|
|
633
633
|
var fe = function() {
|
|
634
|
-
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, V = Y.action, U = V === void 0 ? "copy" : V, T = Y.container, re = Y.target,
|
|
634
|
+
var Y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, V = Y.action, U = V === void 0 ? "copy" : V, T = Y.container, re = Y.target, Me = Y.text;
|
|
635
635
|
if (U !== "copy" && U !== "cut")
|
|
636
636
|
throw new Error('Invalid "action" value, use either "copy" or "cut"');
|
|
637
637
|
if (re !== void 0)
|
|
@@ -642,8 +642,8 @@ function Bf() {
|
|
|
642
642
|
throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
|
|
643
643
|
} else
|
|
644
644
|
throw new Error('Invalid "target" value, use a valid Element');
|
|
645
|
-
if (
|
|
646
|
-
return B(
|
|
645
|
+
if (Me)
|
|
646
|
+
return B(Me, {
|
|
647
647
|
container: T
|
|
648
648
|
});
|
|
649
649
|
if (re)
|
|
@@ -728,8 +728,8 @@ function Bf() {
|
|
|
728
728
|
Te(U, Y);
|
|
729
729
|
var V = tt(U);
|
|
730
730
|
function U(T, re) {
|
|
731
|
-
var
|
|
732
|
-
return Ve(this, U),
|
|
731
|
+
var Me;
|
|
732
|
+
return Ve(this, U), Me = V.call(this), Me.resolveOptions(re), Me.listenClick(T), Me;
|
|
733
733
|
}
|
|
734
734
|
return qe(U, [{
|
|
735
735
|
key: "resolveOptions",
|
|
@@ -745,8 +745,8 @@ function Bf() {
|
|
|
745
745
|
key: "listenClick",
|
|
746
746
|
value: function(T) {
|
|
747
747
|
var re = this;
|
|
748
|
-
this.listener = g()(T, "click", function(
|
|
749
|
-
return re.onClick(
|
|
748
|
+
this.listener = g()(T, "click", function(Me) {
|
|
749
|
+
return re.onClick(Me);
|
|
750
750
|
});
|
|
751
751
|
}
|
|
752
752
|
/**
|
|
@@ -756,14 +756,14 @@ function Bf() {
|
|
|
756
756
|
}, {
|
|
757
757
|
key: "onClick",
|
|
758
758
|
value: function(T) {
|
|
759
|
-
var re = T.delegateTarget || T.currentTarget,
|
|
760
|
-
action:
|
|
759
|
+
var re = T.delegateTarget || T.currentTarget, Me = this.action(re) || "copy", Je = ve({
|
|
760
|
+
action: Me,
|
|
761
761
|
container: this.container,
|
|
762
762
|
target: this.target(re),
|
|
763
763
|
text: this.text(re)
|
|
764
764
|
});
|
|
765
765
|
this.emit(Je ? "success" : "error", {
|
|
766
|
-
action:
|
|
766
|
+
action: Me,
|
|
767
767
|
text: Je,
|
|
768
768
|
trigger: re,
|
|
769
769
|
clearSelection: function() {
|
|
@@ -840,10 +840,10 @@ function Bf() {
|
|
|
840
840
|
}, {
|
|
841
841
|
key: "isSupported",
|
|
842
842
|
value: function() {
|
|
843
|
-
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], re = typeof T == "string" ? [T] : T,
|
|
843
|
+
var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], re = typeof T == "string" ? [T] : T, Me = !!document.queryCommandSupported;
|
|
844
844
|
return re.forEach(function(Je) {
|
|
845
|
-
|
|
846
|
-
}),
|
|
845
|
+
Me = Me && !!document.queryCommandSupported(Je);
|
|
846
|
+
}), Me;
|
|
847
847
|
}
|
|
848
848
|
}]), U;
|
|
849
849
|
}(y()), Mt = He;
|
|
@@ -2429,7 +2429,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
2429
2429
|
function re(n) {
|
|
2430
2430
|
return n.match(/\[[\s\S]/) ? n.replace(/^\[|\]$/g, "") : n.replace(/\\/g, "");
|
|
2431
2431
|
}
|
|
2432
|
-
function
|
|
2432
|
+
function Me(n) {
|
|
2433
2433
|
var s = n.match(Mt), l, u;
|
|
2434
2434
|
for (l = 0, u = s.length; l < u; l++)
|
|
2435
2435
|
U[s[l]] ? s[l] = U[s[l]] : s[l] = re(s[l]);
|
|
@@ -2441,7 +2441,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
2441
2441
|
};
|
|
2442
2442
|
}
|
|
2443
2443
|
function Je(n, s) {
|
|
2444
|
-
return n.isValid() ? (s = pn(s, n.localeData()), V[s] = V[s] ||
|
|
2444
|
+
return n.isValid() ? (s = pn(s, n.localeData()), V[s] = V[s] || Me(s), V[s](n)) : n.localeData().invalidDate();
|
|
2445
2445
|
}
|
|
2446
2446
|
function pn(n, s) {
|
|
2447
2447
|
var l = 5;
|
|
@@ -2728,8 +2728,8 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
2728
2728
|
function Ll(n, s) {
|
|
2729
2729
|
return (n % s + s) % s;
|
|
2730
2730
|
}
|
|
2731
|
-
var
|
|
2732
|
-
Array.prototype.indexOf ?
|
|
2731
|
+
var Pe;
|
|
2732
|
+
Array.prototype.indexOf ? Pe = Array.prototype.indexOf : Pe = function(n) {
|
|
2733
2733
|
var s;
|
|
2734
2734
|
for (s = 0; s < this.length; ++s)
|
|
2735
2735
|
if (this[s] === n)
|
|
@@ -2775,7 +2775,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
2775
2775
|
b,
|
|
2776
2776
|
""
|
|
2777
2777
|
).toLocaleLowerCase(), this._longMonthsParse[u] = this.months(b, "").toLocaleLowerCase();
|
|
2778
|
-
return l ? s === "MMM" ? (m =
|
|
2778
|
+
return l ? s === "MMM" ? (m = Pe.call(this._shortMonthsParse, C), m !== -1 ? m : null) : (m = Pe.call(this._longMonthsParse, C), m !== -1 ? m : null) : s === "MMM" ? (m = Pe.call(this._shortMonthsParse, C), m !== -1 ? m : (m = Pe.call(this._longMonthsParse, C), m !== -1 ? m : null)) : (m = Pe.call(this._longMonthsParse, C), m !== -1 ? m : (m = Pe.call(this._shortMonthsParse, C), m !== -1 ? m : null));
|
|
2779
2779
|
}
|
|
2780
2780
|
function Yl(n, s, l) {
|
|
2781
2781
|
var u, m, b;
|
|
@@ -2943,7 +2943,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
2943
2943
|
b,
|
|
2944
2944
|
""
|
|
2945
2945
|
).toLocaleLowerCase(), this._weekdaysParse[u] = this.weekdays(b, "").toLocaleLowerCase();
|
|
2946
|
-
return l ? s === "dddd" ? (m =
|
|
2946
|
+
return l ? s === "dddd" ? (m = Pe.call(this._weekdaysParse, C), m !== -1 ? m : null) : s === "ddd" ? (m = Pe.call(this._shortWeekdaysParse, C), m !== -1 ? m : null) : (m = Pe.call(this._minWeekdaysParse, C), m !== -1 ? m : null) : s === "dddd" ? (m = Pe.call(this._weekdaysParse, C), m !== -1 || (m = Pe.call(this._shortWeekdaysParse, C), m !== -1) ? m : (m = Pe.call(this._minWeekdaysParse, C), m !== -1 ? m : null)) : s === "ddd" ? (m = Pe.call(this._shortWeekdaysParse, C), m !== -1 || (m = Pe.call(this._weekdaysParse, C), m !== -1) ? m : (m = Pe.call(this._minWeekdaysParse, C), m !== -1 ? m : null)) : (m = Pe.call(this._minWeekdaysParse, C), m !== -1 || (m = Pe.call(this._weekdaysParse, C), m !== -1) ? m : (m = Pe.call(this._shortWeekdaysParse, C), m !== -1 ? m : null));
|
|
2947
2947
|
}
|
|
2948
2948
|
function uu(n, s, l) {
|
|
2949
2949
|
var u, m, b;
|
|
@@ -3475,7 +3475,7 @@ Arguments: ` + Array.prototype.slice.call(u).join("") + `
|
|
|
3475
3475
|
function Qu(n) {
|
|
3476
3476
|
var s, l = !1, u, m = Sn.length;
|
|
3477
3477
|
for (s in n)
|
|
3478
|
-
if (f(n, s) && !(
|
|
3478
|
+
if (f(n, s) && !(Pe.call(Sn, s) !== -1 && (n[s] == null || !isNaN(n[s]))))
|
|
3479
3479
|
return !1;
|
|
3480
3480
|
for (u = 0; u < m; ++u)
|
|
3481
3481
|
if (n[Sn[u]]) {
|
|
@@ -4493,7 +4493,7 @@ function Fn(e, t) {
|
|
|
4493
4493
|
try {
|
|
4494
4494
|
z(e, t);
|
|
4495
4495
|
} catch (r) {
|
|
4496
|
-
throw
|
|
4496
|
+
throw Re.error(t), r;
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
4499
4499
|
function tl(e, t) {
|
|
@@ -4508,7 +4508,7 @@ function io(e) {
|
|
|
4508
4508
|
function Fr(e) {
|
|
4509
4509
|
return e + "";
|
|
4510
4510
|
}
|
|
4511
|
-
function
|
|
4511
|
+
function Ee(e, t, r) {
|
|
4512
4512
|
return e ? t : r;
|
|
4513
4513
|
}
|
|
4514
4514
|
function Yn(e, t) {
|
|
@@ -4539,7 +4539,7 @@ function te(e) {
|
|
|
4539
4539
|
function je(e) {
|
|
4540
4540
|
return Object.prototype.toString.call(e) === "[object Array]";
|
|
4541
4541
|
}
|
|
4542
|
-
function
|
|
4542
|
+
function De(e) {
|
|
4543
4543
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
4544
4544
|
}
|
|
4545
4545
|
function Ae(e) {
|
|
@@ -4558,7 +4558,7 @@ function ae(e) {
|
|
|
4558
4558
|
return Object.prototype.toString.call(e) === "[object Undefined]";
|
|
4559
4559
|
}
|
|
4560
4560
|
function nl(e) {
|
|
4561
|
-
return ae(e) || ft(e) || Ae(e) || cn(e) ||
|
|
4561
|
+
return ae(e) || ft(e) || Ae(e) || cn(e) || De(e);
|
|
4562
4562
|
}
|
|
4563
4563
|
function rl(e) {
|
|
4564
4564
|
if (!Ae(e))
|
|
@@ -5363,7 +5363,7 @@ class dl {
|
|
|
5363
5363
|
return this.distinct = !0, this;
|
|
5364
5364
|
}
|
|
5365
5365
|
addOrder(t, r) {
|
|
5366
|
-
if (!(N(t) || !
|
|
5366
|
+
if (!(N(t) || !De(r)))
|
|
5367
5367
|
return this.removeOrder(t), this.orders.push(new Ni(t, r)), this;
|
|
5368
5368
|
}
|
|
5369
5369
|
removeOrder(t) {
|
|
@@ -5572,7 +5572,7 @@ const An = class An {
|
|
|
5572
5572
|
condExtra: U = {},
|
|
5573
5573
|
beforeReset: T = ({ query: be }) => Promise.resolve(),
|
|
5574
5574
|
beforeLoad: re = ({ query: be }) => Promise.resolve(),
|
|
5575
|
-
loadSuccess:
|
|
5575
|
+
loadSuccess: Me = ({ query: be, res: ue }) => Promise.resolve(ue),
|
|
5576
5576
|
// res为数据而非response
|
|
5577
5577
|
loadFail: Je = ({ query: be, error: ue }) => Promise.resolve(),
|
|
5578
5578
|
beforeToInsert: pn = (be) => Promise.resolve(),
|
|
@@ -5719,7 +5719,7 @@ const An = class An {
|
|
|
5719
5719
|
M(this, "exportSuccess");
|
|
5720
5720
|
// 导出成功后
|
|
5721
5721
|
M(this, "exportFail");
|
|
5722
|
-
z(Ae(o), "title必须为字符串"), z(
|
|
5722
|
+
z(Ae(o), "title必须为字符串"), z(De(a) || q(a), "showTitle必须为布尔值或返回布尔值的函数"), z(Ae(r), "id必须为字符串"), z(Ae(i), "module必须为字符串"), z(Ae(d), "baseUrl必须是字符串"), z(De(X) || q(X), "enableDblClickEdit必须为布尔值或返回布尔值的函数"), z(De(x) || q(x), "enableMulti必须为布尔值或返回布尔值的函数"), z(De(B) || q(B), "enableIndex必须为布尔值或返回布尔值的函数"), z(De(J) || q(J), "enableColumnFilter必须为布尔值或返回布尔值的函数"), z(De(fe) || q(fe), "enableFilterCache必须为布尔值或返回布尔值的函数"), z(De(ve) || q(ve), "lazyLoad必须为布尔值或返回布尔值的函数"), z(["inline", "form"].includes(G), "editType必须为inline或form"), z(De(Ve) || q(Ve), "queryable必须为布尔值或返回布尔值的函数"), z(De(pe) || q(pe), "insertable必须为布尔值或返回布尔值的函数"), z(De(qe) || q(qe), "updatable必须为布尔值或返回布尔值的函数"), z(De(Te) || q(Te), "deletable必须为布尔值或返回布尔值的函数"), z(De(de) || q(de), "exportable必须为布尔值或返回布尔值的函数"), z(Ae(tt), "idField必须为字符串"), z(Ae(ht), "createTimeField必须为字符串"), z(Ae(Ft), "sortField必须为字符串"), z(De(Tt), "sortDesc必须为布尔值"), z(je(pt), "moreButtons必须是数组"), z(te(Et), "pagination必须是对象"), z(q(T), "beforeReset必须为函数"), z(q(re), "beforeLoad必须为函数"), z(q(Me), "loadSuccess必须为函数"), z(q(Je), "loadFail必须为函数"), z(q(pn), "beforeToInsert必须为函数"), z(q(Hn), "beforeInsert必须为函数"), z(q(Gn), "insertSuccess必须为函数"), z(q(Kn), "insertFail必须为函数"), z(q(Qn), "beforeToUpdate必须为函数"), z(q(Zn), "beforeUpdate必须为函数"), z(q(Jn), "updateSuccess必须为函数"), z(q(Xn), "updateFail必须为函数"), z(q(er), "beforeDeleteTip必须为函数"), z(q(tr), "beforeDelete必须为函数"), z(q(nr), "deleteSuccess必须为函数"), z(q(mn), "deleteFail必须为函数"), z(q(ze), "beforeCancel必须为函数"), z(q(Mt), "render必须是一个函数"), z(q(Gt), "beforeExport必须是一个函数"), z(q(rr), "exportSuccess必须是一个函数"), z(q(sr), "exportFail必须是一个函数"), z(je(Y), "conds必须是Cond对象(或可转换为Cond对象的json)组成的数组"), z(je(V), "condGroups必须是数组"), z(te(U), "condExtra必须是对象"), this.context = t, this.title = o, this.baseUrl = Fe(d, i), this.id = Fe(r, this.baseUrl), this.pageUrl = Fe(f, this.baseUrl + "/page"), this.listUrl = Fe(h, this.baseUrl + "/list"), this.insertUrl = Fe(y, this.baseUrl + "/insert"), this.batchInsertUrl = Fe(p, this.baseUrl + "/insert/batch"), this.updateUrl = Fe(g, this.baseUrl + "/update"), this.batchUpdateUrl = Fe(v, this.baseUrl + "/update/batch"), this.deleteUrl = Fe(_, this.baseUrl + "/delete"), this.batchDeleteUrl = Fe(S, this.baseUrl + "/delete/batch"), this.uploadUrl = Fe(F, this.baseUrl + "/upload"), this.exportUrl = Fe(k, this.baseUrl + "/export"), this.existsUrl = Fe(P, this.baseUrl + "/exists"), this.enableDblClickEdit = X, this.enableMulti = x, this.enableIndex = B, this.enableColumnFilter = J, this.enableFilterCache = fe, this.lazyLoad = ve, this.editType = G, this.queryable = Ve, this.insertable = pe, this.updatable = qe, this.deletable = Te, this.exportable = de, this.idField = tt, this.createTimeField = ht, this.sortField = Fe(Ft, Fe(ht, tt)), this.sortDesc = Tt, this.moreButtons = pt, Li(this.pagination, Et, !0, !0), Li(this.style, He, !0, !0), this.conds = Y.map((be) => Ue.build(be)), this.condGroups = V, this.condExtra = U, this.beforeReset = T, this.beforeLoad = re, this.loadSuccess = Me, this.loadFail = Je, this.beforeToInsert = pn, this.beforeInsert = Hn, this.insertSuccess = Gn, this.insertFail = Kn, this.beforeToUpdate = Qn, this.beforeUpdate = Zn, this.updateSuccess = Jn, this.updateFail = Xn, this.beforeDeleteTip = er, this.beforeDelete = tr, this.deleteSuccess = nr, this.deleteFail = mn, this.beforeCancel = ze, this.render = Mt, this.beforeExport = Gt, this.exportSuccess = rr, this.exportFail = sr;
|
|
5723
5723
|
}
|
|
5724
5724
|
/**
|
|
5725
5725
|
* 向内置条件组中增加条件
|
|
@@ -5760,7 +5760,7 @@ const An = class An {
|
|
|
5760
5760
|
editRows: f,
|
|
5761
5761
|
res: S
|
|
5762
5762
|
}).then(() => {
|
|
5763
|
-
|
|
5763
|
+
Re.success(`成功新增${h.length}条记录`);
|
|
5764
5764
|
});
|
|
5765
5765
|
}).catch((S) => {
|
|
5766
5766
|
o(S), v.call(a, {
|
|
@@ -5769,7 +5769,7 @@ const An = class An {
|
|
|
5769
5769
|
editRows: f,
|
|
5770
5770
|
error: S
|
|
5771
5771
|
}).then(() => {
|
|
5772
|
-
|
|
5772
|
+
Re.error("新增失败:" + JSON.stringify(S));
|
|
5773
5773
|
});
|
|
5774
5774
|
});
|
|
5775
5775
|
}).catch((h) => {
|
|
@@ -5798,7 +5798,7 @@ const An = class An {
|
|
|
5798
5798
|
editRows: f,
|
|
5799
5799
|
res: S
|
|
5800
5800
|
}).then(() => {
|
|
5801
|
-
|
|
5801
|
+
Re.success(`成功更新${h.length}条记录`);
|
|
5802
5802
|
});
|
|
5803
5803
|
}).catch((S) => {
|
|
5804
5804
|
o(S), v.call(a, {
|
|
@@ -5807,7 +5807,7 @@ const An = class An {
|
|
|
5807
5807
|
editRows: f,
|
|
5808
5808
|
error: S
|
|
5809
5809
|
}).then(() => {
|
|
5810
|
-
|
|
5810
|
+
Re.error("更新失败:" + JSON.stringify(S));
|
|
5811
5811
|
});
|
|
5812
5812
|
});
|
|
5813
5813
|
}).catch((h) => {
|
|
@@ -5862,7 +5862,7 @@ const An = class An {
|
|
|
5862
5862
|
pageQuery: r,
|
|
5863
5863
|
error: g
|
|
5864
5864
|
}).then(() => {
|
|
5865
|
-
|
|
5865
|
+
Re.error("导出失败:" + g.message);
|
|
5866
5866
|
});
|
|
5867
5867
|
});
|
|
5868
5868
|
}
|
|
@@ -6052,7 +6052,7 @@ function P_(e, t, r, o, a, i) {
|
|
|
6052
6052
|
onRemoveTag: t[6] || (t[6] = (h) => e.$emit("removeTag", h))
|
|
6053
6053
|
}), {
|
|
6054
6054
|
default: O(() => [
|
|
6055
|
-
(w(!0), L(
|
|
6055
|
+
(w(!0), L(xe, null, Qe(r.options, (h) => (w(), I(d, {
|
|
6056
6056
|
key: h.value,
|
|
6057
6057
|
label: h[r.labelKey],
|
|
6058
6058
|
value: h[r.valKey],
|
|
@@ -6238,7 +6238,7 @@ function j_(e, t, r, o, a, i) {
|
|
|
6238
6238
|
})
|
|
6239
6239
|
]),
|
|
6240
6240
|
file: O(({ file: _ }) => [
|
|
6241
|
-
i.isPicture ? (w(), L(
|
|
6241
|
+
i.isPicture ? (w(), L(xe, { key: 0 }, [
|
|
6242
6242
|
$("img", {
|
|
6243
6243
|
class: "el-upload-list__item-thumbnail",
|
|
6244
6244
|
src: _.url,
|
|
@@ -6389,7 +6389,7 @@ function V_(e, t, r, o, a, i) {
|
|
|
6389
6389
|
style: $n(i.formStyle)
|
|
6390
6390
|
}, {
|
|
6391
6391
|
default: O(() => [
|
|
6392
|
-
(w(!0), L(
|
|
6392
|
+
(w(!0), L(xe, null, Qe(i.visibleFilters, (h) => (w(), I(d, {
|
|
6393
6393
|
key: h.col,
|
|
6394
6394
|
prop: h.col,
|
|
6395
6395
|
label: h.label + ":",
|
|
@@ -6489,7 +6489,7 @@ const Y_ = {
|
|
|
6489
6489
|
function q_(e, t, r, o, a, i) {
|
|
6490
6490
|
const d = Z("fast-select");
|
|
6491
6491
|
return w(), L("div", U_, [
|
|
6492
|
-
i.activeFilter ? (w(), L(
|
|
6492
|
+
i.activeFilter ? (w(), L(xe, { key: 0 }, [
|
|
6493
6493
|
E(d, {
|
|
6494
6494
|
class: "fc-easy-filter-column",
|
|
6495
6495
|
options: r.filters,
|
|
@@ -6560,11 +6560,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6560
6560
|
query: (e, t) => {
|
|
6561
6561
|
let r = Yi.val;
|
|
6562
6562
|
const { defaultVal: o, ...a } = e.props;
|
|
6563
|
-
return t === "quick" && (r = (ae(o), o)), e.val = r, e.props = a, Oe(e, Yi, !0, !1);
|
|
6563
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, Yi, !0, !1);
|
|
6564
6564
|
},
|
|
6565
6565
|
edit: (e, t) => {
|
|
6566
6566
|
const { defaultVal: r, ...o } = e.props;
|
|
6567
|
-
return e.val =
|
|
6567
|
+
return e.val = Ee(ae(r), Ui.val, r), e.props = o, Oe(e, Ui, !0, !1);
|
|
6568
6568
|
}
|
|
6569
6569
|
}, hl = "YYYY-MM-DD", qi = "YYYY-MM-DD HH:mm:ss", zi = {
|
|
6570
6570
|
component: "el-date-picker",
|
|
@@ -6635,7 +6635,7 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6635
6635
|
query: (e, t) => {
|
|
6636
6636
|
let r = zi.val;
|
|
6637
6637
|
const { defaultVal: o, ...a } = e.props, { type: i = "date" } = a;
|
|
6638
|
-
t === "quick" && (r =
|
|
6638
|
+
t === "quick" && (r = Ee(ae(o), r, o)), (t === "dynamic" || t === "stored") && (a.teleported = !1);
|
|
6639
6639
|
const { valueFormat: d } = a;
|
|
6640
6640
|
return e.props.type === "datetime" && (ae(d) && (a.valueFormat = qi), a.defaultTime = [
|
|
6641
6641
|
new Date(0, 0, 0, 0, 0, 0, 0),
|
|
@@ -6647,7 +6647,7 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6647
6647
|
},
|
|
6648
6648
|
edit: (e, t) => {
|
|
6649
6649
|
const { label: r, props: { defaultVal: o, ...a } } = e, { rules: i = [] } = a;
|
|
6650
|
-
a.hasOwnProperty("required") && a.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
6650
|
+
a.hasOwnProperty("required") && a.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(o), Wi.val, o);
|
|
6651
6651
|
const { valueFormat: d } = a;
|
|
6652
6652
|
return e.props.type === "datetime" && ae(d) && (a.valueFormat = qi), e.props = {
|
|
6653
6653
|
...a,
|
|
@@ -6703,11 +6703,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6703
6703
|
query: (e, t) => {
|
|
6704
6704
|
let r = Bi.val;
|
|
6705
6705
|
const { defaultVal: o, ...a } = e.props;
|
|
6706
|
-
return t === "quick" && (r =
|
|
6706
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, Bi, !0, !1);
|
|
6707
6707
|
},
|
|
6708
6708
|
edit: (e, t, r) => {
|
|
6709
6709
|
const { label: o, props: a } = e, { defaultVal: i, rules: d = [], ...f } = a;
|
|
6710
|
-
f.hasOwnProperty("required") && f.required !== !1 && d.push({ required: !0, message: `${o}不能为空` }), e.val =
|
|
6710
|
+
f.hasOwnProperty("required") && f.required !== !1 && d.push({ required: !0, message: `${o}不能为空` }), e.val = Ee(ae(i), Hi.val, i), e.props = {
|
|
6711
6711
|
...f,
|
|
6712
6712
|
rules: d
|
|
6713
6713
|
};
|
|
@@ -6763,11 +6763,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6763
6763
|
query: (e, t) => {
|
|
6764
6764
|
let r = Gi.val;
|
|
6765
6765
|
const { defaultVal: o, ...a } = e.props;
|
|
6766
|
-
return t === "quick" && (r =
|
|
6766
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, Gi, !0, !1);
|
|
6767
6767
|
},
|
|
6768
6768
|
edit: (e, t, r) => {
|
|
6769
6769
|
const { label: o, props: a } = e, { defaultVal: i, rules: d = [], ...f } = a;
|
|
6770
|
-
f.hasOwnProperty("required") && f.required !== !1 && d.push({ required: !0, message: `${o}不能为空` }), e.val =
|
|
6770
|
+
f.hasOwnProperty("required") && f.required !== !1 && d.push({ required: !0, message: `${o}不能为空` }), e.val = Ee(ae(i), Ki.val, i), e.props = {
|
|
6771
6771
|
...f,
|
|
6772
6772
|
rules: d
|
|
6773
6773
|
};
|
|
@@ -6821,11 +6821,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6821
6821
|
query: (e, t) => {
|
|
6822
6822
|
let r = Qi.val;
|
|
6823
6823
|
const { defaultVal: o, ...a } = e.props;
|
|
6824
|
-
return t === "quick" && (r =
|
|
6824
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, Qi, !0, !1);
|
|
6825
6825
|
},
|
|
6826
6826
|
edit: (e, t) => {
|
|
6827
6827
|
const { label: r, props: o } = e, { defaultVal: a, rules: i = [], ...d } = o;
|
|
6828
|
-
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
6828
|
+
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(a), Zi.val, a), e.props = {
|
|
6829
6829
|
...d,
|
|
6830
6830
|
rules: i
|
|
6831
6831
|
}, Oe(e, Zi, !0, !1);
|
|
@@ -6890,11 +6890,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6890
6890
|
query: (e, t) => {
|
|
6891
6891
|
let r = Ji.val;
|
|
6892
6892
|
const { defaultVal: o, ...a } = e.props;
|
|
6893
|
-
return t === "quick" && (r =
|
|
6893
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, Ji, !0, !1);
|
|
6894
6894
|
},
|
|
6895
6895
|
edit: (e, t) => {
|
|
6896
6896
|
const { label: r, props: o } = e, { defaultVal: a, rules: i = [], ...d } = o;
|
|
6897
|
-
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ type: "number", required: !0, message: `${r}不能为空` }), e.val =
|
|
6897
|
+
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ type: "number", required: !0, message: `${r}不能为空` }), e.val = Ee(ae(a), Xi.val, a), e.props = {
|
|
6898
6898
|
...d,
|
|
6899
6899
|
rules: i
|
|
6900
6900
|
}, Oe(e, Xi, !0, !1);
|
|
@@ -6928,11 +6928,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6928
6928
|
query: (e, t) => {
|
|
6929
6929
|
let r = ea.val;
|
|
6930
6930
|
const { defaultVal: o, ...a } = e.props;
|
|
6931
|
-
return t === "quick" ? r = (ae(o), o) : e.component = "el-input", e.val = r, e.props = a, Oe(e, ea, !0, !1);
|
|
6931
|
+
return t === "quick" ? r = Ee(ae(o), r, o) : (e.component = "el-input", e.props.placeholder = "请输入"), e.val = r, e.props = a, Oe(e, ea, !0, !1);
|
|
6932
6932
|
},
|
|
6933
6933
|
edit: (e, t) => {
|
|
6934
6934
|
const { label: r, props: o } = e, { defaultVal: a, rules: i = [], ...d } = o;
|
|
6935
|
-
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
6935
|
+
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(a), ta.val, a), e.props = {
|
|
6936
6936
|
...d,
|
|
6937
6937
|
rules: i
|
|
6938
6938
|
}, Oe(e, ta, !0, !1);
|
|
@@ -6961,11 +6961,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6961
6961
|
query: (e, t) => {
|
|
6962
6962
|
const { defaultVal: r, ...o } = e.props;
|
|
6963
6963
|
let a = [], i = "fast-select";
|
|
6964
|
-
return t === "quick" && (a =
|
|
6964
|
+
return t === "quick" && (a = Ee(ae(r), na.val, r), o.quickFilterCheckbox !== !1 && (i = "fast-checkbox-group")), e.val = a, e.component = i, e.props = o, Oe(e, na, !0, !1);
|
|
6965
6965
|
},
|
|
6966
6966
|
edit: (e, t) => {
|
|
6967
6967
|
const { label: r, props: o } = e, { defaultVal: a, rules: i = [], ...d } = o;
|
|
6968
|
-
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
6968
|
+
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(a), ra.val, a), e.props = {
|
|
6969
6969
|
...d,
|
|
6970
6970
|
rules: i
|
|
6971
6971
|
}, Oe(e, ra, !0, !1);
|
|
@@ -6997,7 +6997,7 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
6997
6997
|
query: (e, t) => {
|
|
6998
6998
|
const { defaultVal: r, ...o } = e.props, { activeValue: a = !0, inactiveValue: i = !1, activeText: d = "是", inactiveText: f = "否" } = o;
|
|
6999
6999
|
let h = sa.val;
|
|
7000
|
-
t === "quick" && (h =
|
|
7000
|
+
t === "quick" && (h = Ee(r === i || r === a, r, h));
|
|
7001
7001
|
const y = [
|
|
7002
7002
|
{ label: f, value: i },
|
|
7003
7003
|
{ label: d, value: a }
|
|
@@ -7009,7 +7009,7 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
7009
7009
|
},
|
|
7010
7010
|
edit: (e, t) => {
|
|
7011
7011
|
const { defaultVal: r, ...o } = e.props, { activeValue: a = !0, inactiveValue: i = !1 } = o;
|
|
7012
|
-
return e.val =
|
|
7012
|
+
return e.val = Ee(r === i || r === a, r, i), e.props = o, Oe(e, X_, !0, !1);
|
|
7013
7013
|
}
|
|
7014
7014
|
}, oa = {
|
|
7015
7015
|
component: "el-input",
|
|
@@ -7060,11 +7060,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
7060
7060
|
query: (e, t) => {
|
|
7061
7061
|
let r = oa.val;
|
|
7062
7062
|
const { defaultVal: o, ...a } = e.props;
|
|
7063
|
-
return t === "quick" && (r =
|
|
7063
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = a, Oe(e, oa, !0, !1);
|
|
7064
7064
|
},
|
|
7065
7065
|
edit: (e, t) => {
|
|
7066
7066
|
const { label: r, props: o } = e, { defaultVal: a, rules: i = [], ...d } = o;
|
|
7067
|
-
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
7067
|
+
return d.hasOwnProperty("required") && d.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(a), ia.val, a), e.props = {
|
|
7068
7068
|
...d,
|
|
7069
7069
|
rules: i
|
|
7070
7070
|
}, Oe(e, ia, !0, !1);
|
|
@@ -7096,11 +7096,11 @@ const z_ = /* @__PURE__ */ ge(Y_, [["render", q_], ["__scopeId", "data-v-0b8cdec
|
|
|
7096
7096
|
query: (e, t) => {
|
|
7097
7097
|
let r = aa.val;
|
|
7098
7098
|
const { defaultVal: o, isRange: a, ...i } = e.props;
|
|
7099
|
-
return t === "quick" && (r =
|
|
7099
|
+
return t === "quick" && (r = Ee(ae(o), r, o)), e.val = r, e.props = i, Oe(e, aa, !0, !1);
|
|
7100
7100
|
},
|
|
7101
7101
|
edit: (e, t) => {
|
|
7102
7102
|
const { label: r, props: { defaultVal: o, ...a } } = e, { rules: i = [] } = a;
|
|
7103
|
-
return a.hasOwnProperty("required") && a.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val =
|
|
7103
|
+
return a.hasOwnProperty("required") && a.required !== !1 && i.push({ required: !0, message: `${r}不能为空` }), e.val = Ee(ae(o), la.val, o), e.props = {
|
|
7104
7104
|
...a,
|
|
7105
7105
|
rules: i
|
|
7106
7106
|
}, Oe(e, la, !0, !1);
|
|
@@ -7992,7 +7992,7 @@ function fo(e, t) {
|
|
|
7992
7992
|
if (r === "normal")
|
|
7993
7993
|
return !1;
|
|
7994
7994
|
const { editable: a } = o[t];
|
|
7995
|
-
return
|
|
7995
|
+
return De(a) ? a : q(a) ? a.call(this, { ...e, status: r, config: o, col: t }) : r === "insert" ? a === "insert" : r === "update" ? a === "update" : !1;
|
|
7996
7996
|
}
|
|
7997
7997
|
function N0(e) {
|
|
7998
7998
|
return Object.values(e).map((t) => ({
|
|
@@ -8196,7 +8196,7 @@ const q0 = {
|
|
|
8196
8196
|
const { label: a, filters: i } = e[o];
|
|
8197
8197
|
Fn(!N(a), "请填写组合名"), Fn(a.length <= 10, `组合名长度不得超过10:${a}`), Fn(!N(i), `请为“${a}”配置筛选项`), Fn(i.every((d) => d.isEffective()), `“${a}”存在无效筛选项`);
|
|
8198
8198
|
}
|
|
8199
|
-
Y0(this.tableOption, e),
|
|
8199
|
+
Y0(this.tableOption, e), Re.success("保存成功"), this.$emit("ok");
|
|
8200
8200
|
}
|
|
8201
8201
|
}
|
|
8202
8202
|
}, z0 = { class: "fc-stored-filter-manager" }, W0 = { class: "fc-stored-filter-manager-btns" }, B0 = { class: "fc-stored-filter-item-header" }, H0 = { style: { display: "flex" } }, G0 = { class: "fc-dynamic-filter-list" }, K0 = { class: "fc-dynamic-filter-btns" };
|
|
@@ -8228,7 +8228,7 @@ function Q0(e, t, r, o, a, i) {
|
|
|
8228
8228
|
__: [2]
|
|
8229
8229
|
}, 8, ["onClick"])
|
|
8230
8230
|
]),
|
|
8231
|
-
(w(!0), L(
|
|
8231
|
+
(w(!0), L(xe, null, Qe(a.groups, (F) => (w(), L(xe, null, [
|
|
8232
8232
|
a.hiddenBuildIn === !1 || F.buildIn === !1 ? (w(), I(S, {
|
|
8233
8233
|
key: 0,
|
|
8234
8234
|
class: "fc-stored-filter-item",
|
|
@@ -8274,7 +8274,7 @@ function Q0(e, t, r, o, a, i) {
|
|
|
8274
8274
|
]),
|
|
8275
8275
|
default: O(() => [
|
|
8276
8276
|
$("div", G0, [
|
|
8277
|
-
(w(!0), L(
|
|
8277
|
+
(w(!0), L(xe, null, Qe(F.filters, (k, P) => (w(), I(y, {
|
|
8278
8278
|
class: "fc-stored-filter-item-cond",
|
|
8279
8279
|
"popper-style": "max-width: none; width: auto; z-index: 3000",
|
|
8280
8280
|
key: k.col + "." + P,
|
|
@@ -8319,7 +8319,7 @@ function Q0(e, t, r, o, a, i) {
|
|
|
8319
8319
|
dropdown: O(() => [
|
|
8320
8320
|
E(v, null, {
|
|
8321
8321
|
default: O(() => [
|
|
8322
|
-
(w(!0), L(
|
|
8322
|
+
(w(!0), L(xe, null, Qe(i.colsOption, (k) => (w(), I(g, {
|
|
8323
8323
|
command: k.value
|
|
8324
8324
|
}, {
|
|
8325
8325
|
default: O(() => [
|
|
@@ -8466,7 +8466,7 @@ function tb(e, t, r, o, a, i) {
|
|
|
8466
8466
|
dropdown: O(() => [
|
|
8467
8467
|
E(v, null, {
|
|
8468
8468
|
default: O(() => [
|
|
8469
|
-
(w(!0), L(
|
|
8469
|
+
(w(!0), L(xe, null, Qe(a.storeGroups, (S) => (w(), I(g, {
|
|
8470
8470
|
key: S.label,
|
|
8471
8471
|
style: $n({ color: r.groupLabels.indexOf(S.label) > -1 ? "#3f99f5 !important" : "" }),
|
|
8472
8472
|
disabled: !S.compatible,
|
|
@@ -8867,7 +8867,7 @@ const mb = {
|
|
|
8867
8867
|
function _b(e, t, r, o, a, i) {
|
|
8868
8868
|
const d = Lt, f = Fa;
|
|
8869
8869
|
return w(), L("div", yb, [
|
|
8870
|
-
(w(!0), L(
|
|
8870
|
+
(w(!0), L(xe, null, Qe(r.filters, (h, y) => (w(), I(f, {
|
|
8871
8871
|
"popper-style": "max-width: none; width: auto;",
|
|
8872
8872
|
key: h.col + "." + y
|
|
8873
8873
|
}, {
|
|
@@ -8925,7 +8925,7 @@ function _b(e, t, r, o, a, i) {
|
|
|
8925
8925
|
]),
|
|
8926
8926
|
_: 2
|
|
8927
8927
|
}, 1024))), 128)),
|
|
8928
|
-
r.filters.length > 1 ? (w(), L(
|
|
8928
|
+
r.filters.length > 1 ? (w(), L(xe, { key: 0 }, [
|
|
8929
8929
|
E(d, {
|
|
8930
8930
|
class: "fc-dynamic-filter-clear-btn",
|
|
8931
8931
|
link: "",
|
|
@@ -9016,7 +9016,7 @@ const wb = {
|
|
|
9016
9016
|
this.$emit("ok");
|
|
9017
9017
|
});
|
|
9018
9018
|
}).catch((e) => {
|
|
9019
|
-
console.error(e),
|
|
9019
|
+
console.error(e), Re.warning("表单校验未通过! 请检查输入内容");
|
|
9020
9020
|
});
|
|
9021
9021
|
}
|
|
9022
9022
|
}
|
|
@@ -9032,11 +9032,11 @@ function Ob(e, t, r, o, a, i) {
|
|
|
9032
9032
|
"label-width": r.option.style.formLabelWidth
|
|
9033
9033
|
}, {
|
|
9034
9034
|
default: O(() => [
|
|
9035
|
-
(w(!0), L(
|
|
9035
|
+
(w(!0), L(xe, null, Qe(i.localLayout, (g) => (w(), I(h, {
|
|
9036
9036
|
key: g.col
|
|
9037
9037
|
}, {
|
|
9038
9038
|
default: O(() => [
|
|
9039
|
-
(w(!0), L(
|
|
9039
|
+
(w(!0), L(xe, null, Qe(g, (v, _) => (w(), I(f, {
|
|
9040
9040
|
span: v,
|
|
9041
9041
|
key: _
|
|
9042
9042
|
}, {
|
|
@@ -9173,7 +9173,7 @@ function Tb(e, t, r, o, a, i) {
|
|
|
9173
9173
|
}, 8, ["disabled", "onClick"])) : W("", !0)
|
|
9174
9174
|
]),
|
|
9175
9175
|
default: O(() => [
|
|
9176
|
-
(w(!0), L(
|
|
9176
|
+
(w(!0), L(xe, null, Qe(i.columnProps, (h) => (w(), L(xe, null, [
|
|
9177
9177
|
h.hidden === !1 ? (w(), I(At(h.componentName), le({
|
|
9178
9178
|
key: 0,
|
|
9179
9179
|
ref_for: !0
|
|
@@ -9421,7 +9421,7 @@ const Eb = {
|
|
|
9421
9421
|
*/
|
|
9422
9422
|
buildOrder(e, t) {
|
|
9423
9423
|
if (!N(e)) {
|
|
9424
|
-
if (
|
|
9424
|
+
if (De(t)) {
|
|
9425
9425
|
!N(this.option.sortField) && this.pageQuery.orders.length === 1 && this.pageQuery.orders[0].col === this.option.sortField && this.pageQuery.removeOrder(this.option.sortField), this.pageQuery.addOrder(e, t);
|
|
9426
9426
|
return;
|
|
9427
9427
|
}
|
|
@@ -9462,7 +9462,7 @@ const Eb = {
|
|
|
9462
9462
|
});
|
|
9463
9463
|
}).catch((p) => {
|
|
9464
9464
|
this.option.loadFail.call(d, { query: this.pageQuery, error: p }).then(() => {
|
|
9465
|
-
|
|
9465
|
+
Re.error("加载失败:" + JSON.stringify(p));
|
|
9466
9466
|
}), y(p);
|
|
9467
9467
|
}).finally(() => {
|
|
9468
9468
|
this.loading = !1;
|
|
@@ -9543,7 +9543,7 @@ const Eb = {
|
|
|
9543
9543
|
if (!this.insertable)
|
|
9544
9544
|
return;
|
|
9545
9545
|
if (this.status !== "normal" && this.status !== "insert") {
|
|
9546
|
-
|
|
9546
|
+
Re.warning(`当前表格处于${this.status}状态, 不允许新增`);
|
|
9547
9547
|
return;
|
|
9548
9548
|
}
|
|
9549
9549
|
const { context: t, beforeToInsert: r } = this.option;
|
|
@@ -9563,7 +9563,7 @@ const Eb = {
|
|
|
9563
9563
|
const e = this.enableMulti;
|
|
9564
9564
|
let t = e ? this.checkedRows : N(this.choseRow) ? [] : [this.choseRow];
|
|
9565
9565
|
if (N(t)) {
|
|
9566
|
-
|
|
9566
|
+
Re.warning(`请先${e ? "勾" : "点"}选要删除的行`);
|
|
9567
9567
|
return;
|
|
9568
9568
|
}
|
|
9569
9569
|
const r = t.map((f) => f.row), { context: o, beforeDeleteTip: a, beforeDelete: i } = this.option;
|
|
@@ -9598,7 +9598,7 @@ const Eb = {
|
|
|
9598
9598
|
}).then((h) => {
|
|
9599
9599
|
this.syncRowSelection(), d = { fatRows: h, rows: h.map((y) => y.row) }, i.call(o, d).then((y) => {
|
|
9600
9600
|
if (y.length === 0) {
|
|
9601
|
-
|
|
9601
|
+
Re.warning("无可删除数据");
|
|
9602
9602
|
return;
|
|
9603
9603
|
}
|
|
9604
9604
|
const { deleteUrl: p, batchDeleteUrl: g, deleteSuccess: v, deleteFail: _ } = this.option;
|
|
@@ -9607,11 +9607,11 @@ const Eb = {
|
|
|
9607
9607
|
...d,
|
|
9608
9608
|
res: F
|
|
9609
9609
|
}).then(() => {
|
|
9610
|
-
|
|
9610
|
+
Re.success("删除成功");
|
|
9611
9611
|
});
|
|
9612
9612
|
}).catch((F) => {
|
|
9613
9613
|
_.call(o, { ...d, error: F }).then(() => {
|
|
9614
|
-
|
|
9614
|
+
Re.error("删除失败:" + JSON.stringify(F));
|
|
9615
9615
|
});
|
|
9616
9616
|
});
|
|
9617
9617
|
}).catch(() => {
|
|
@@ -9646,7 +9646,7 @@ const Eb = {
|
|
|
9646
9646
|
title: `数据筛选及排序: ${r}`
|
|
9647
9647
|
}
|
|
9648
9648
|
}).then(({ filter: f, order: h }) => {
|
|
9649
|
-
f.isEffective() && this.dynamicFilters.push(f),
|
|
9649
|
+
f.isEffective() && this.dynamicFilters.push(f), De(h.asc) ? (this.buildOrder(t, h.asc), e.order = h.asc ? "asc" : "desc") : (this.buildOrder(t, h.asc), e.order = ""), this.pageLoad();
|
|
9650
9650
|
}).catch((f) => {
|
|
9651
9651
|
console.log(f);
|
|
9652
9652
|
});
|
|
@@ -9742,7 +9742,7 @@ const Eb = {
|
|
|
9742
9742
|
if (!this.updatable)
|
|
9743
9743
|
return;
|
|
9744
9744
|
if (this.status !== "normal" && this.status !== "update") {
|
|
9745
|
-
|
|
9745
|
+
Re.warning(`当前表格处于${this.status}状态, 不允许更新`);
|
|
9746
9746
|
return;
|
|
9747
9747
|
}
|
|
9748
9748
|
const { context: t, beforeToUpdate: r } = this.option;
|
|
@@ -9757,7 +9757,7 @@ const Eb = {
|
|
|
9757
9757
|
*/
|
|
9758
9758
|
activeBatchEdit() {
|
|
9759
9759
|
if (this.status !== "normal") {
|
|
9760
|
-
|
|
9760
|
+
Re.warning("请先退出编辑状态");
|
|
9761
9761
|
return;
|
|
9762
9762
|
}
|
|
9763
9763
|
const { context: e, beforeToUpdate: t } = this.option;
|
|
@@ -9841,11 +9841,11 @@ const Eb = {
|
|
|
9841
9841
|
const e = this.enableMulti;
|
|
9842
9842
|
let t = e ? this.checkedRows : N(this.choseRow) ? [] : [this.choseRow];
|
|
9843
9843
|
if (N(t)) {
|
|
9844
|
-
|
|
9844
|
+
Re.warning(`请先${e ? "勾" : "点"}选要移除的新建行`);
|
|
9845
9845
|
return;
|
|
9846
9846
|
}
|
|
9847
9847
|
if (t.some((r) => r.status !== "insert")) {
|
|
9848
|
-
|
|
9848
|
+
Re.warning("只能移除新建的行");
|
|
9849
9849
|
return;
|
|
9850
9850
|
}
|
|
9851
9851
|
ri.confirm(`确定移除这${t.length}条记录吗?`, "移除确认", {}).then(() => {
|
|
@@ -9869,7 +9869,7 @@ const Eb = {
|
|
|
9869
9869
|
});
|
|
9870
9870
|
}).catch((e) => {
|
|
9871
9871
|
const t = e[0];
|
|
9872
|
-
|
|
9872
|
+
Re.error(t.message);
|
|
9873
9873
|
});
|
|
9874
9874
|
},
|
|
9875
9875
|
/**
|
|
@@ -9882,7 +9882,7 @@ const Eb = {
|
|
|
9882
9882
|
*/
|
|
9883
9883
|
exportData() {
|
|
9884
9884
|
if (!this.exportable) {
|
|
9885
|
-
|
|
9885
|
+
Re.warning("当前表格不允许导出");
|
|
9886
9886
|
return;
|
|
9887
9887
|
}
|
|
9888
9888
|
this.option._exportData(N0(this.columnConfig), this.pageQuery);
|
|
@@ -9902,9 +9902,9 @@ const Eb = {
|
|
|
9902
9902
|
getBoolVal(e, t = !1) {
|
|
9903
9903
|
if (q(e)) {
|
|
9904
9904
|
const r = this.executeInContext(e);
|
|
9905
|
-
return
|
|
9905
|
+
return De(r) ? r : t;
|
|
9906
9906
|
}
|
|
9907
|
-
return
|
|
9907
|
+
return De(e) ? e : t;
|
|
9908
9908
|
},
|
|
9909
9909
|
// 使用透传的context作为this执行函数,并传递参数scopeParam
|
|
9910
9910
|
executeInContext(e) {
|
|
@@ -10064,7 +10064,7 @@ function Vb(e, t, r, o, a, i) {
|
|
|
10064
10064
|
H(e.$slots, "button", ys(gs(i.scopeParam)), void 0, !0)
|
|
10065
10065
|
]),
|
|
10066
10066
|
$("div", xb, [
|
|
10067
|
-
i.status === "normal" ? (w(), L(
|
|
10067
|
+
i.status === "normal" ? (w(), L(xe, { key: 0 }, [
|
|
10068
10068
|
i.insertable ? (w(), I(h, {
|
|
10069
10069
|
key: 0,
|
|
10070
10070
|
size: r.option.style.size,
|
|
@@ -10090,7 +10090,7 @@ function Vb(e, t, r, o, a, i) {
|
|
|
10090
10090
|
__: [4]
|
|
10091
10091
|
}, 8, ["size", "onClick"])) : W("", !0)
|
|
10092
10092
|
], 64)) : W("", !0),
|
|
10093
|
-
i.updatable && i.status === "update" || i.insertable && i.status === "insert" ? (w(), L(
|
|
10093
|
+
i.updatable && i.status === "update" || i.insertable && i.status === "insert" ? (w(), L(xe, { key: 1 }, [
|
|
10094
10094
|
i.status === "insert" && i.editRows.length > 0 ? (w(), I(h, {
|
|
10095
10095
|
key: 0,
|
|
10096
10096
|
type: "danger",
|
|
@@ -10176,7 +10176,7 @@ function Vb(e, t, r, o, a, i) {
|
|
|
10176
10176
|
_: 1,
|
|
10177
10177
|
__: [11]
|
|
10178
10178
|
}, 8, ["onClick"])) : W("", !0),
|
|
10179
|
-
(w(!0), L(
|
|
10179
|
+
(w(!0), L(xe, null, Qe(i.moreButtons, (G) => (w(), L(xe, null, [
|
|
10180
10180
|
i.getBoolVal(G.showable, !0) ? (w(), I(_, {
|
|
10181
10181
|
key: 0,
|
|
10182
10182
|
disabled: i.getBoolVal(G.disable, !1),
|
|
@@ -10371,7 +10371,7 @@ function kl({ option: e, multiple: t = !1, dialog: r = { width: "70%" } }) {
|
|
|
10371
10371
|
onClick: (f) => {
|
|
10372
10372
|
const h = f.getTableRef(), y = t ? h.getCheckedRows() : h.getChoseRow();
|
|
10373
10373
|
if (N(y)) {
|
|
10374
|
-
|
|
10374
|
+
Re.warning("请选择数据");
|
|
10375
10375
|
return;
|
|
10376
10376
|
}
|
|
10377
10377
|
return Promise.resolve(y);
|
|
@@ -10528,7 +10528,7 @@ function Yb(e, t, r, o, a, i) {
|
|
|
10528
10528
|
onFocus: i.handleFocus
|
|
10529
10529
|
}, {
|
|
10530
10530
|
default: O(() => [
|
|
10531
|
-
(w(!0), L(
|
|
10531
|
+
(w(!0), L(xe, null, Qe(r.options, (h) => (w(), I(d, {
|
|
10532
10532
|
key: h.value,
|
|
10533
10533
|
value: h.value,
|
|
10534
10534
|
label: h.label
|
|
@@ -11663,7 +11663,7 @@ const kw = function(e, t = {}) {
|
|
|
11663
11663
|
ifBlank: io,
|
|
11664
11664
|
isFunction: q,
|
|
11665
11665
|
isObject: te,
|
|
11666
|
-
isBoolean:
|
|
11666
|
+
isBoolean: De,
|
|
11667
11667
|
isNull: ft,
|
|
11668
11668
|
isUndefined: ae,
|
|
11669
11669
|
defaultIfEmpty: Yn,
|