mooho-base-admin-plus 0.4.7 → 0.4.8

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.
@@ -19121,8 +19121,8 @@ var dynamic = {
19121
19121
  name: url.replace(/\//g, "-"),
19122
19122
  meta: {
19123
19123
  auth: false,
19124
- title: Setting.layout.showNotice ? window.$t("Permission_" + url) : item.name,
19125
- description: Setting.layout.showNotice ? window.$t("Permission_" + url + "_SubName") : item.subName,
19124
+ title: getNameI18n(item),
19125
+ description: getDescI18n(item),
19126
19126
  data: data2,
19127
19127
  cache: true
19128
19128
  },
@@ -19176,8 +19176,8 @@ function buildPermission(pages2, perArry, routes, layout2, parent) {
19176
19176
  name: url.replace(/\//g, "-"),
19177
19177
  meta: {
19178
19178
  auth: false,
19179
- title: Setting.layout.showNotice ? window.$t("Permission_" + url) : item.name,
19180
- description: Setting.layout.showNotice ? window.$t("Permission_" + url + "_SubName") : item.subName,
19179
+ title: getNameI18n(item),
19180
+ description: getDescI18n(item),
19181
19181
  data: data2,
19182
19182
  cache: true
19183
19183
  },
@@ -19221,6 +19221,32 @@ function PermissionDeep(per, perArry) {
19221
19221
  }
19222
19222
  return per;
19223
19223
  }
19224
+ function getNameI18n(item) {
19225
+ if (Setting.layout.showNotice) {
19226
+ let key = "Permission_" + item.url.split("?")[0];
19227
+ let text2 = window.$t(key);
19228
+ if (text2 == key) {
19229
+ return item.name;
19230
+ } else {
19231
+ return text2;
19232
+ }
19233
+ } else {
19234
+ return item.name;
19235
+ }
19236
+ }
19237
+ function getDescI18n(item) {
19238
+ if (Setting.layout.showNotice) {
19239
+ let key = "Permission_" + item.url.split("?")[0] + "_SubName";
19240
+ let text2 = window.$t(key);
19241
+ if (text2 == key) {
19242
+ return item.subName;
19243
+ } else {
19244
+ return text2;
19245
+ }
19246
+ } else {
19247
+ return item.subName;
19248
+ }
19249
+ }
19224
19250
  var router;
19225
19251
  const create$3 = (base2, pages2, layout2, routes) => {
19226
19252
  router = createRouter({
@@ -33020,7 +33046,13 @@ const _sfc_main$w = {
33020
33046
  getNameI18n(column) {
33021
33047
  if (this.layout.showI18n) {
33022
33048
  if (column.code) {
33023
- return this.$t("DataView_" + this.formView.code + "_" + column.code);
33049
+ let key = "DataView_" + this.formView.code + "_" + column.code;
33050
+ let text2 = this.$t(key);
33051
+ if (text2 == key) {
33052
+ return column.name;
33053
+ } else {
33054
+ return text2;
33055
+ }
33024
33056
  }
33025
33057
  } else {
33026
33058
  return column.name;
@@ -36999,7 +37031,13 @@ const _sfc_main$r = {
36999
37031
  getNameI18n(column) {
37000
37032
  if (this.layout.showI18n) {
37001
37033
  if (column.code) {
37002
- return this.$t("DataView_" + this.tableView.code + "_Filter_" + column.code + "_" + column.operator);
37034
+ let key = "DataView_" + this.tableView.code + "_Filter_" + column.code + "_" + column.operator;
37035
+ let text2 = this.$t(key);
37036
+ if (text2 == key) {
37037
+ return column.name;
37038
+ } else {
37039
+ return text2;
37040
+ }
37003
37041
  }
37004
37042
  } else {
37005
37043
  return column.name;
@@ -37317,7 +37355,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37317
37355
  ]);
37318
37356
  }
37319
37357
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37320
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-dea04f24]{display:flex}.image-group .image[data-v-dea04f24]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-dea04f24]{width:75px;height:75px}\n")();
37358
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-1a234aab]{display:flex}.image-group .image[data-v-1a234aab]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-1a234aab]{width:75px;height:75px}\n")();
37321
37359
  var getColumns = (view, item) => {
37322
37360
  let children = view.viewColumns.filter((i2) => {
37323
37361
  return i2.parentCode == item.code;
@@ -38545,7 +38583,13 @@ const _sfc_main$q = {
38545
38583
  if (column) {
38546
38584
  if (this.layout.showI18n) {
38547
38585
  if (column.code) {
38548
- return this.$t("DataView_" + this.tableView.code + "_" + column.code);
38586
+ let key = "DataView_" + this.tableView.code + "_" + column.code;
38587
+ let text2 = this.$t(key);
38588
+ if (text2 == key) {
38589
+ return column.name;
38590
+ } else {
38591
+ return text2;
38592
+ }
38549
38593
  }
38550
38594
  } else {
38551
38595
  return column.name;
@@ -39280,7 +39324,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39280
39324
  ], 2)
39281
39325
  ], 2);
39282
39326
  }
39283
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-dea04f24"]]);
39327
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-1a234aab"]]);
39284
39328
  const _sfc_main$p = {
39285
39329
  mixins: [mixinPage],
39286
39330
  components: { columnSelect, columnEdit },
@@ -47368,20 +47412,30 @@ const _sfc_main$m = {
47368
47412
  }
47369
47413
  },
47370
47414
  getNameI18n(formView2) {
47371
- if (formView2) {
47372
- if (this.layout.showI18n) {
47373
- if (formView2.code) {
47374
- return this.$t("DataView_" + formView2.code);
47415
+ if (this.layout.showI18n) {
47416
+ if (formView2.code) {
47417
+ let key = "DataView_" + formView2.code;
47418
+ let text2 = this.$t(key);
47419
+ if (text2 == key) {
47420
+ return formView2.name;
47421
+ } else {
47422
+ return text2;
47375
47423
  }
47376
- } else {
47377
- return formView2.name;
47378
47424
  }
47425
+ } else {
47426
+ return formView2.name;
47379
47427
  }
47380
47428
  },
47381
47429
  getDescI18n(formView2) {
47382
47430
  if (this.layout.showI18n) {
47383
47431
  if (formView2.code) {
47384
- return this.$t("DataView_" + formView2.code + "_$Desc");
47432
+ let key = "DataView_" + formView2.code + "_$Desc";
47433
+ let text2 = this.$t(key);
47434
+ if (text2 == key) {
47435
+ return formView2.name;
47436
+ } else {
47437
+ return text2;
47438
+ }
47385
47439
  }
47386
47440
  } else {
47387
47441
  return formView2.description;
@@ -47703,7 +47757,13 @@ const _sfc_main$l = {
47703
47757
  getNameI18n(tableView2) {
47704
47758
  if (this.layout.showI18n) {
47705
47759
  if (tableView2.code) {
47706
- return this.$t("DataView_" + tableView2.code);
47760
+ let key = "DataView_" + tableView2.code;
47761
+ let text2 = this.$t(key);
47762
+ if (text2 == key) {
47763
+ return tableView2.name;
47764
+ } else {
47765
+ return text2;
47766
+ }
47707
47767
  }
47708
47768
  } else {
47709
47769
  return tableView2.name;
@@ -47712,7 +47772,13 @@ const _sfc_main$l = {
47712
47772
  getDescI18n(tableView2) {
47713
47773
  if (this.layout.showI18n) {
47714
47774
  if (tableView2.code) {
47715
- return this.$t("DataView_" + tableView2.code + "_$Desc");
47775
+ let key = "DataView_" + tableView2.code + "_$Desc";
47776
+ let text2 = this.$t(key);
47777
+ if (text2 == key) {
47778
+ return tableView2.name;
47779
+ } else {
47780
+ return text2;
47781
+ }
47716
47782
  }
47717
47783
  } else {
47718
47784
  return tableView2.description;