dfs-page-config 0.5.24 → 0.5.26
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 +29 -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
|
@@ -27423,7 +27423,7 @@ const padding = (k, L) => (new Array(L).join("0") + k).slice(-L), formatDate = (
|
|
|
27423
27423
|
const { url: L, fileName: ie, params: ae, store: pe } = k;
|
|
27424
27424
|
pe.commit("setLoading", !0), axios.defaults.withCredentials = !0, axios.defaults.timeout = 6e4, axios.defaults.responseType = "blob", axios.defaults.headers = getRequestHeaders(L);
|
|
27425
27425
|
let _e = (k.method || "post").toLowerCase();
|
|
27426
|
-
axios[_e](handleProxy(L), ae).then(function(xe) {
|
|
27426
|
+
return axios[_e](handleProxy(L), ae).then(function(xe) {
|
|
27427
27427
|
var ze;
|
|
27428
27428
|
const Oe = (ze = xe.headers["content-disposition"]) == null ? void 0 : ze.split("filename=")[1], Ne = URL.createObjectURL(xe.data);
|
|
27429
27429
|
var Ie = document.createElement("a");
|
|
@@ -29742,27 +29742,36 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29742
29742
|
Dt.gridApi.exportDataAsCsv(jt);
|
|
29743
29743
|
}
|
|
29744
29744
|
function Ie(Ue) {
|
|
29745
|
-
const Dt = getTargetComp(store, k.pageKey, Ue.target);
|
|
29746
|
-
if (!Dt.data.totalNum)
|
|
29747
|
-
return ElMessage.warning(L("无可导出数据,请查询后导出"));
|
|
29748
29745
|
if (Ue.beforeExport) {
|
|
29749
|
-
let
|
|
29750
|
-
if (Ue.relation && (
|
|
29746
|
+
let nr = {};
|
|
29747
|
+
if (Ue.relation && (nr = getRelationComp(store, k.pageKey, Ue.relation)), Ue.beforeExport(nr) === !1)
|
|
29751
29748
|
return;
|
|
29752
29749
|
}
|
|
29753
|
-
|
|
29754
|
-
|
|
29755
|
-
|
|
29756
|
-
|
|
29750
|
+
const Dt = getTargetComp(store, k.pageKey, Ue.target);
|
|
29751
|
+
let jt = null, tr = {};
|
|
29752
|
+
if (Dt.dependencies ? (jt = getTargetComp(store, k.pageKey, Dt.dependencies), tr = { ...getFormData(jt), ...Dt.pageInfo }) : tr = { ...tr, ...Dt.pageInfo }, Dt.exportBySelectionData) {
|
|
29753
|
+
const nr = Dt.exportBySelectionData(Dt.selectedRows);
|
|
29754
|
+
Array.isArray(nr) ? tr = nr : nr && (tr = { ...tr, ...nr });
|
|
29755
|
+
}
|
|
29756
|
+
if (Ue.openDownloadCenter) {
|
|
29757
|
+
let nr = (Ue.method || "post").toUpperCase(), er = nr == "GET" ? "params" : "data";
|
|
29758
|
+
service({
|
|
29759
|
+
url: store.state._BASE_URL + Ue.url,
|
|
29760
|
+
[er]: tr,
|
|
29761
|
+
method: nr
|
|
29762
|
+
}).then((ar) => {
|
|
29763
|
+
store.commit("setUploadDownloadDialogVisible", !0);
|
|
29764
|
+
});
|
|
29765
|
+
} else {
|
|
29766
|
+
const nr = {
|
|
29767
|
+
url: store.state._BASE_URL + Ue.url,
|
|
29768
|
+
fileName: Ue.fileName,
|
|
29769
|
+
method: Ue.method,
|
|
29770
|
+
params: tr,
|
|
29771
|
+
store
|
|
29772
|
+
};
|
|
29773
|
+
downLoadData(nr);
|
|
29757
29774
|
}
|
|
29758
|
-
const nr = {
|
|
29759
|
-
url: store.state._BASE_URL + Ue.url,
|
|
29760
|
-
fileName: Ue.fileName,
|
|
29761
|
-
method: Ue.method,
|
|
29762
|
-
params: tr,
|
|
29763
|
-
store
|
|
29764
|
-
};
|
|
29765
|
-
downLoadData(nr);
|
|
29766
29775
|
}
|
|
29767
29776
|
function ze(Ue) {
|
|
29768
29777
|
if (Ue.showDialogBefore) {
|
|
@@ -29799,7 +29808,7 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29799
29808
|
// exportData
|
|
29800
29809
|
};
|
|
29801
29810
|
}
|
|
29802
|
-
}),
|
|
29811
|
+
}), ButtonGroup_vue_vue_type_style_index_0_scoped_43788b6f_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$g = ["onClick"];
|
|
29803
29812
|
function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
29804
29813
|
const xe = Upload, Oe = ElIcon, Ne = ElButton;
|
|
29805
29814
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29855,7 +29864,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29855
29864
|
renderSlot(k.$slots, "default", {}, void 0, !0)
|
|
29856
29865
|
], 4);
|
|
29857
29866
|
}
|
|
29858
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
29867
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-43788b6f"]]), _sfc_main$g = defineComponent({
|
|
29859
29868
|
props: {
|
|
29860
29869
|
gridApi: {
|
|
29861
29870
|
type: Object,
|