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((y, x) => {
32738
- const E = getGridParams$1(t);
32739
- if (E == null)
32740
- x("导出失败");
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 k = getExportParamByGridParam(t);
32743
- if (k.data = n, E.columns && (k.exportColumns = getExportColumnsByStore(E.columns)), k.exportData = {
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
- k.functionCode = o;
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 && (k.uuid = i);
32758
- const O = getGridSystemCode(E);
32759
- k.systemCode = O, localStorage.setItem(i, "start"), k.async = l, k.pageCode = f, k.isPermission = p, window.$vueApp.config.globalProperties.$http.post(
32760
- window.$vueApp.config.globalProperties.baseURL + "/dsc/commons/export-list-data",
32761
- k
32762
- ).then((B) => {
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 (B.indexOf("~~") >= 0)
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(B) + "&_t=" + (/* @__PURE__ */ new Date()).getTime(),
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(B, k, e);
32778
+ getFileUuid(H, O, e);
32776
32779
  }
32777
- }).then((B) => {
32778
- y(B);
32779
- }).catch((B) => {
32780
- localStorage.setItem(i, "error"), x(B);
32780
+ }).then((H) => {
32781
+ x(H);
32782
+ }).catch((H) => {
32783
+ localStorage.setItem(i, "error"), E(H);
32781
32784
  });
32782
32785
  }
32783
32786
  });