agilebuilder-ui 1.1.6 → 1.1.7

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
@@ -7980,10 +7980,11 @@ const RowOperation = _export_sfc$1(_sfc_main$1l, [["render", _sfc_render$Z]]), v
7980
7980
  const e = this.analysisFileSetObj(this.fileSetObj, this.isSql);
7981
7981
  let t = null;
7982
7982
  if (this.fileInfo.showName && this.fileInfo.serverPath ? t = this.fileInfo.serverPath : this.entity && (t = getEntityFieldValue(this.entity, e.serverPath)), t) {
7983
- const n = t.split(",");
7984
- this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload/search-file-names", n).then((o) => {
7985
- this.fileList = [], n.forEach((r) => {
7986
- this.fileList.push({ showName: o[r], serverPath: r });
7983
+ const n = t.split(","), o = window.$vueApp.config.globalProperties.baseURL, r = window.$vueApp.config.globalProperties.baseAPI;
7984
+ let a = o + "/common/fs-upload/search-file-names";
7985
+ isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (a = r + "/api/search-file-names"), this.$http.post(a, n).then((d) => {
7986
+ this.fileList = [], n.forEach((p) => {
7987
+ this.fileList.push({ showName: d[p], serverPath: p });
7987
7988
  }), this.showPreviewMulti = !0;
7988
7989
  });
7989
7990
  }
@@ -26897,10 +26898,11 @@ const _hoisted_1$7 = ["accept"], _hoisted_2$4 = ["accept"], _hoisted_3$4 = ["acc
26897
26898
  e && ($emit(this, "upload-success", { showName: e.name, serverPath: e.serverPath }), this.fileSetObj.multiple && this.fileInfo.showName ? (this.fileInfo.showName = this.fileInfo.showName + "," + e.name, this.fileInfo.serverPath = this.fileInfo.serverPath + "," + e.serverPath) : (this.fileInfo.showName = e.name, this.fileInfo.serverPath = e.serverPath)), this.annexUploadFlag = !1;
26898
26899
  }, preview() {
26899
26900
  this.fileList.length = 0;
26900
- const e = this.fileInfo.serverPath.split(",");
26901
- this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload/search-file-names", e).then((t) => {
26902
- e.forEach((n) => {
26903
- this.fileList.push({ showName: t[n], serverPath: n });
26901
+ const e = this.fileInfo.serverPath.split(","), t = window.$vueApp.config.globalProperties.baseURL, n = window.$vueApp.config.globalProperties.baseAPI;
26902
+ let o = t + "/common/fs-upload/search-file-names";
26903
+ isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (o = n + "/api/search-file-names"), this.$http.post(o, e).then((r) => {
26904
+ e.forEach((a) => {
26905
+ this.fileList.push({ showName: r[a], serverPath: a });
26904
26906
  }), this.showFileList = this.fileList, this.showPreviewMulti = !0;
26905
26907
  });
26906
26908
  }, previewSingle(e) {
@@ -67453,7 +67455,7 @@ const _hoisted_1$1 = { class: "el-upload__text" }, _sfc_main$3 = defineComponent
67453
67455
  r.value = t.action;
67454
67456
  else {
67455
67457
  let p = n + "/common/fs-upload";
67456
- isPlateSys(t.systemCode) && (p = o + "/component/super-form/uploads"), r.value = p;
67458
+ isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (p = o + "/component/super-form/uploads"), r.value = p;
67457
67459
  }
67458
67460
  t.headers && t.headers.Authorization || (t.headers.Authorization = getToken());
67459
67461
  const a = (p) => t.beforeUpload(p), d = (p, _, E) => {
@@ -67474,7 +67476,7 @@ const _hoisted_1$1 = { class: "el-upload__text" }, _sfc_main$3 = defineComponent
67474
67476
  r.value = t.action;
67475
67477
  else {
67476
67478
  let p = n + "/common/fs-upload";
67477
- isPlateSys(t.systemCode) && (p = o + "/component/super-form/uploads"), r.value = p;
67479
+ isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (p = o + "/component/super-form/uploads"), r.value = p;
67478
67480
  }
67479
67481
  t.headers && t.headers.Authorization || (t.headers.Authorization = getToken());
67480
67482
  const a = (p) => t.beforeUpload({ fileObj: p, files: [p], isMobile: !1, pageContext: t.pageContext, configureObj: t.configure }), d = (p, _, E) => {