mooho-base-admin-plus 0.4.78 → 0.4.80

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.
@@ -15036,7 +15036,9 @@ var dataView = {
15036
15036
  async load({ state }, code) {
15037
15037
  if (!(code in state.dataViews)) {
15038
15038
  let res2 = await dataViewApi.getByCode(code);
15039
- state.dataViews[code] = res2;
15039
+ if (res2 != null && res2.isExist) {
15040
+ state.dataViews[code] = res2;
15041
+ }
15040
15042
  return res2;
15041
15043
  } else {
15042
15044
  return state.dataViews[code];
@@ -20156,7 +20158,9 @@ var viewPage$1 = {
20156
20158
  async load({ state }, id) {
20157
20159
  if (!(id in state.pages)) {
20158
20160
  let res2 = await customPageApi.get(id);
20159
- state.pages[id] = res2;
20161
+ if (res2) {
20162
+ state.pages[id] = res2;
20163
+ }
20160
20164
  return res2;
20161
20165
  } else {
20162
20166
  return state.pages[id];
@@ -20602,7 +20606,7 @@ var mixinPage = {
20602
20606
  },
20603
20607
  getAttachmentUrl(file, name) {
20604
20608
  if (file) {
20605
- return this.apiBaseURL + "api/Attachment/get?file=" + encodeURI(file) + "&name=" + encodeURI(name);
20609
+ return this.apiBaseURL + "api/Attachment/get?file=" + encodeURIComponent(file) + "&name=" + encodeURIComponent(name);
20606
20610
  } else {
20607
20611
  return null;
20608
20612
  }
@@ -20615,7 +20619,7 @@ var mixinPage = {
20615
20619
  },
20616
20620
  getImgUrl(file) {
20617
20621
  if (file) {
20618
- return this.apiBaseURL + "api/Attachment/getImage?file=" + encodeURI(file);
20622
+ return this.apiBaseURL + "api/Attachment/getImage?file=" + encodeURIComponent(file);
20619
20623
  } else {
20620
20624
  return this.rootPath + "images/no-image.png";
20621
20625
  }
@@ -20821,7 +20825,7 @@ var mixinPage = {
20821
20825
  for (let i2 = 0; i2 < setting2.condition.length; i2++) {
20822
20826
  let data2 = this.parseData(model2, setting2.condition[i2].code);
20823
20827
  if (data2 == null) {
20824
- data2 = "";
20828
+ data2 = "null";
20825
20829
  }
20826
20830
  let value = setting2.condition[i2].value;
20827
20831
  if (value == null) {
@@ -31744,6 +31748,8 @@ const _sfc_main$J = {
31744
31748
  async init(viewCode, callback) {
31745
31749
  let view = await this.loadDataView(viewCode);
31746
31750
  if (view == null) {
31751
+ return;
31752
+ } else if (!view.isExist) {
31747
31753
  this.error("Front_Msg_View_Code_Not_Exist|" + viewCode);
31748
31754
  return;
31749
31755
  }
@@ -34069,6 +34075,8 @@ const _sfc_main$w = {
34069
34075
  view = await this.loadDataView(viewCode.split("_")[0]);
34070
34076
  }
34071
34077
  if (view == null) {
34078
+ return;
34079
+ } else if (!view.isExist) {
34072
34080
  if (typeof onFail === "function") {
34073
34081
  onFail();
34074
34082
  } else {
@@ -39259,6 +39267,8 @@ const _sfc_main$q = {
39259
39267
  view = await this.loadDataView(viewCode.split("_")[0]);
39260
39268
  }
39261
39269
  if (view == null) {
39270
+ return;
39271
+ } else if (!view.isExist) {
39262
39272
  if (typeof onFail === "function") {
39263
39273
  onFail();
39264
39274
  } else {