agilebuilder-ui 1.0.47 → 1.0.49
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/super-ui.js
CHANGED
|
@@ -32673,7 +32673,8 @@ function exportResultData(e, t, n, o, i, l, f, p, y) {
|
|
|
32673
32673
|
l,
|
|
32674
32674
|
f,
|
|
32675
32675
|
p,
|
|
32676
|
-
y
|
|
32676
|
+
y,
|
|
32677
|
+
o
|
|
32677
32678
|
).then((O) => {
|
|
32678
32679
|
x(O);
|
|
32679
32680
|
}).catch((O) => {
|
|
@@ -32733,17 +32734,17 @@ function getExportParamByGridParam(e) {
|
|
|
32733
32734
|
}
|
|
32734
32735
|
return t;
|
|
32735
32736
|
}
|
|
32736
|
-
function exportListData(e, t, n, o, i, l, f, p) {
|
|
32737
|
-
return new Promise((
|
|
32738
|
-
const
|
|
32739
|
-
if (
|
|
32740
|
-
|
|
32737
|
+
function exportListData(e, t, n, o, i, l, f, p, y) {
|
|
32738
|
+
return new Promise((x, E) => {
|
|
32739
|
+
const k = getGridParams$1(t);
|
|
32740
|
+
if (k == null)
|
|
32741
|
+
E("导出失败");
|
|
32741
32742
|
else {
|
|
32742
|
-
const
|
|
32743
|
-
if (
|
|
32743
|
+
const O = getExportParamByGridParam(t);
|
|
32744
|
+
if (O.data = n, k.columns && (O.exportColumns = getExportColumnsByStore(k.columns)), O.exportData = {
|
|
32744
32745
|
excelName: e
|
|
32745
32746
|
}, !e || e === null || e === "" ? e = "default.xlsx" : e = e + ".xlsx", o)
|
|
32746
|
-
|
|
32747
|
+
O.functionCode = o;
|
|
32747
32748
|
else {
|
|
32748
32749
|
ElMessage({
|
|
32749
32750
|
message: getI18n().t(
|
|
@@ -32754,12 +32755,14 @@ function exportListData(e, t, n, o, i, l, f, p) {
|
|
|
32754
32755
|
});
|
|
32755
32756
|
return;
|
|
32756
32757
|
}
|
|
32757
|
-
i && (
|
|
32758
|
-
const
|
|
32759
|
-
|
|
32760
|
-
|
|
32761
|
-
|
|
32762
|
-
|
|
32758
|
+
i && (O.uuid = i);
|
|
32759
|
+
const B = getGridSystemCode(k);
|
|
32760
|
+
O.systemCode = B, localStorage.setItem(i, "start"), O.async = l, O.pageCode = f, O.isPermission = p;
|
|
32761
|
+
let V = y ? y.backendUrl : null;
|
|
32762
|
+
V || (V = window.$vueApp.config.globalProperties.baseURL), window.$vueApp.config.globalProperties.$http.post(
|
|
32763
|
+
V + "/dsc/commons/export-list-data",
|
|
32764
|
+
O
|
|
32765
|
+
).then((H) => {
|
|
32763
32766
|
if (l)
|
|
32764
32767
|
ElMessage({
|
|
32765
32768
|
message: getI18n().t("imatrixUIMessage.asyncExport"),
|
|
@@ -32767,17 +32770,17 @@ function exportListData(e, t, n, o, i, l, f, p) {
|
|
|
32767
32770
|
showClose: !0
|
|
32768
32771
|
}), localStorage.setItem(i, "ok");
|
|
32769
32772
|
else {
|
|
32770
|
-
if (
|
|
32773
|
+
if (H.indexOf("~~") >= 0)
|
|
32771
32774
|
return localStorage.setItem(i, "ok"), download(
|
|
32772
|
-
window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/downloads?fileName=" + encodeURI(
|
|
32775
|
+
window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/downloads?fileName=" + encodeURI(H) + "&_t=" + (/* @__PURE__ */ new Date()).getTime(),
|
|
32773
32776
|
e
|
|
32774
32777
|
);
|
|
32775
|
-
getFileUuid(
|
|
32778
|
+
getFileUuid(H, O, e);
|
|
32776
32779
|
}
|
|
32777
|
-
}).then((
|
|
32778
|
-
|
|
32779
|
-
}).catch((
|
|
32780
|
-
localStorage.setItem(i, "error"),
|
|
32780
|
+
}).then((H) => {
|
|
32781
|
+
x(H);
|
|
32782
|
+
}).catch((H) => {
|
|
32783
|
+
localStorage.setItem(i, "error"), E(H);
|
|
32781
32784
|
});
|
|
32782
32785
|
}
|
|
32783
32786
|
});
|