dfs-page-config 0.4.59 → 0.4.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dfs-page-config.js +38 -20
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -28683,40 +28683,43 @@ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["re
|
|
|
28683
28683
|
if (pe.validate)
|
|
28684
28684
|
ae.value.validate((kt) => {
|
|
28685
28685
|
if (kt) {
|
|
28686
|
-
|
|
28686
|
+
const jt = $e(Ue);
|
|
28687
|
+
if (jt === !1)
|
|
28687
28688
|
return;
|
|
28688
|
-
Et(Dt);
|
|
28689
|
+
Et(Dt, jt);
|
|
28689
28690
|
}
|
|
28690
28691
|
});
|
|
28691
28692
|
else {
|
|
28692
|
-
|
|
28693
|
+
const kt = $e(Ue);
|
|
28694
|
+
if (kt === !1)
|
|
28693
28695
|
return;
|
|
28694
|
-
Et(Dt);
|
|
28696
|
+
Et(Dt, kt);
|
|
28695
28697
|
}
|
|
28696
28698
|
}
|
|
28697
28699
|
function $e(Dt) {
|
|
28698
28700
|
if (pe.submitBefore) {
|
|
28699
28701
|
let Ue = {};
|
|
28700
|
-
|
|
28701
|
-
|
|
28702
|
+
pe.relation && (Ue = getRelationComp(ie, k.pageKey, pe.relation));
|
|
28703
|
+
const kt = pe.submitBefore({ relation: Ue, formData: pe.formData, row: pe.row, triggerButton: Dt });
|
|
28704
|
+
return kt === !1 ? !1 : kt;
|
|
28702
28705
|
}
|
|
28703
28706
|
return !0;
|
|
28704
28707
|
}
|
|
28705
|
-
function Et(Dt) {
|
|
28708
|
+
function Et(Dt, Ue) {
|
|
28706
28709
|
ie.commit("setLoading", !0);
|
|
28707
|
-
let
|
|
28710
|
+
let kt = pe.method == "GET" ? "params" : "data";
|
|
28708
28711
|
service({
|
|
28709
28712
|
url: ie.state._BASE_URL + pe.url,
|
|
28710
|
-
[
|
|
28713
|
+
[kt]: typeof Ue == "object" ? Ue : pe.formData || {},
|
|
28711
28714
|
method: pe.method || "POST"
|
|
28712
|
-
}).then((
|
|
28715
|
+
}).then((jt) => {
|
|
28713
28716
|
if (pe.submitAfter) {
|
|
28714
|
-
let
|
|
28715
|
-
pe.relation && (
|
|
28717
|
+
let tr = {};
|
|
28718
|
+
pe.relation && (tr = getRelationComp(ie, k.pageKey, pe.relation)), pe.submitAfter({ res: jt, relation: tr, formData: pe.formData, row: pe.row });
|
|
28716
28719
|
}
|
|
28717
28720
|
Dt({ ..._e.formData });
|
|
28718
|
-
}).catch((
|
|
28719
|
-
console.log(
|
|
28721
|
+
}).catch((jt) => {
|
|
28722
|
+
console.log(jt);
|
|
28720
28723
|
}).finally(() => {
|
|
28721
28724
|
ie.commit("setLoading", !1);
|
|
28722
28725
|
});
|
|
@@ -28733,7 +28736,7 @@ const __unplugin_components_0$2 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["re
|
|
|
28733
28736
|
remoteMethod: Oe
|
|
28734
28737
|
};
|
|
28735
28738
|
}
|
|
28736
|
-
}),
|
|
28739
|
+
}), Form_vue_vue_type_style_index_0_scoped_0c9aa8ab_lang = "", _hoisted_1$g = {
|
|
28737
28740
|
key: 0,
|
|
28738
28741
|
class: "mask"
|
|
28739
28742
|
};
|
|
@@ -29054,7 +29057,7 @@ function _sfc_render$h(k, L, ie, ae, pe, _e) {
|
|
|
29054
29057
|
_: 3
|
|
29055
29058
|
}, 8, ["class", "model", "size", "inline", "label-width", "style"]);
|
|
29056
29059
|
}
|
|
29057
|
-
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-
|
|
29060
|
+
const Form = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$h], ["__scopeId", "data-v-0c9aa8ab"]]), _sfc_main$h = defineComponent({
|
|
29058
29061
|
name: "Upload",
|
|
29059
29062
|
props: {
|
|
29060
29063
|
url: String,
|
|
@@ -101428,7 +101431,7 @@ const CellItemEdit = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_r
|
|
|
101428
101431
|
Ue.prop && (Ie[Ue.prop] = Ue.value ?? null);
|
|
101429
101432
|
});
|
|
101430
101433
|
}
|
|
101431
|
-
}), setTimeout(() => {
|
|
101434
|
+
}), Oe && setTimeout(() => {
|
|
101432
101435
|
Object.keys(Oe).forEach((Et) => {
|
|
101433
101436
|
Ie[Et] = Oe[Et];
|
|
101434
101437
|
}), Oe = null;
|
|
@@ -101649,10 +101652,25 @@ const __unplugin_components_0 = { name: "ep-warning-filled", render: render$1 },
|
|
|
101649
101652
|
});
|
|
101650
101653
|
let ae = {};
|
|
101651
101654
|
function pe(xe) {
|
|
101655
|
+
ae = {};
|
|
101652
101656
|
const Oe = getTargetComp(L, k.pageKey, ie.option.target);
|
|
101653
|
-
Oe.currentRow = xe,
|
|
101654
|
-
|
|
101655
|
-
|
|
101657
|
+
if (Oe.currentRow = xe, Oe.beforeOpen && Oe.beforeOpen({ component: Oe }) === !1)
|
|
101658
|
+
return;
|
|
101659
|
+
let Ie = null;
|
|
101660
|
+
Oe.children && Oe.children.forEach((Ne) => {
|
|
101661
|
+
if (Ne.type === "Form" && (xe && (Ne.row = xe), ae = Ne, Oe.beforeOpen)) {
|
|
101662
|
+
const $e = Ne.formData;
|
|
101663
|
+
Ie = JSON.parse(JSON.stringify($e));
|
|
101664
|
+
const Et = Ne.elementGroup;
|
|
101665
|
+
Et && Et.length && Et.forEach((qe) => {
|
|
101666
|
+
qe.prop && ($e[qe.prop] = qe.value ?? null);
|
|
101667
|
+
}), Ie && setTimeout(() => {
|
|
101668
|
+
Object.keys(Ie).forEach((qe) => {
|
|
101669
|
+
$e[qe] = Ie[qe];
|
|
101670
|
+
}), Ie = null;
|
|
101671
|
+
});
|
|
101672
|
+
}
|
|
101673
|
+
}), ie.component = Oe, ie.dialog = !0;
|
|
101656
101674
|
}
|
|
101657
101675
|
function _e() {
|
|
101658
101676
|
ie.component.beforeClose && ie.component.beforeClose({ component: ie.component }) === !1 || (ie.dialog = !1, ae.reset && ae.reset());
|