mooho-base-admin-plus 0.4.41 → 0.4.42

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.
@@ -11901,6 +11901,17 @@ service.interceptors.request.use((config) => {
11901
11901
  service.interceptors.response.use((response) => {
11902
11902
  store.commit("admin/loader/end");
11903
11903
  const dataAxios = response.data;
11904
+ if (dataAxios instanceof Blob) {
11905
+ if (dataAxios.type == "application/json") {
11906
+ dataAxios.text().then((text2) => {
11907
+ const data2 = JSON.parse(text2);
11908
+ errorCreate(data2.message);
11909
+ });
11910
+ throw new Error();
11911
+ } else {
11912
+ return dataAxios;
11913
+ }
11914
+ }
11904
11915
  const code = dataAxios.code;
11905
11916
  if (code == null) {
11906
11917
  return dataAxios;
@@ -11914,7 +11925,6 @@ service.interceptors.response.use((response) => {
11914
11925
  }
11915
11926
  }, (error2) => {
11916
11927
  if (error2 && error2.response && error2.response.status === 401) {
11917
- console.log("1", getRouter());
11918
11928
  if (getRouter().currentRoute.value.path != "/login") {
11919
11929
  getRouter().push("/login?redirect=" + getRouter().options.history.location);
11920
11930
  }
@@ -33468,13 +33478,15 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
33468
33478
  key: 13,
33469
33479
  type: column.controlType.toLowerCase(),
33470
33480
  "model-value": _ctx.parseDateTimeData($data.data, column.code),
33471
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
33472
33481
  readonly: $props.readonly || column.isReadonly,
33473
33482
  placeholder: column.description,
33474
33483
  transfer: true,
33475
33484
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
33476
- onOnChange: ($event) => $options.onDataChange(column)
33477
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
33485
+ onOnChange: (time2) => {
33486
+ _ctx.setData($data.data, column.code, time2);
33487
+ $options.onDataChange(column);
33488
+ }
33489
+ }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
33478
33490
  key: 14,
33479
33491
  type: column.controlType.toLowerCase(),
33480
33492
  "model-value": _ctx.parseDateRangeData($data.data, column.code),
@@ -37351,12 +37363,14 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37351
37363
  size: "small",
37352
37364
  type: column.controlType.toLowerCase(),
37353
37365
  "model-value": $options.parseFilterData($props.data, column),
37354
- "onUpdate:modelValue": ($event) => $options.setFilterData($props.data, column, $event),
37355
37366
  placeholder: column.description,
37356
37367
  transfer: true,
37357
37368
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
37358
- onOnChange: ($event) => $options.onDataChange(column)
37359
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
37369
+ onOnChange: (time2) => {
37370
+ $options.setFilterData($props.data, column, time2);
37371
+ $options.onDataChange(column);
37372
+ }
37373
+ }, null, 8, ["type", "model-value", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
37360
37374
  key: 12,
37361
37375
  size: "small",
37362
37376
  type: "time",
@@ -37436,7 +37450,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37436
37450
  ]);
37437
37451
  }
37438
37452
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37439
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-90dc040a]{display:flex}.image-group .image[data-v-90dc040a]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-90dc040a]{width:75px;height:75px}\n")();
37453
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-4bf48fe0]{display:flex}.image-group .image[data-v-4bf48fe0]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-4bf48fe0]{width:75px;height:75px}\n")();
37440
37454
  var getColumns = (view, item) => {
37441
37455
  let children = view.viewColumns.filter((i2) => {
37442
37456
  return i2.parentCode == item.code;
@@ -38827,7 +38841,6 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
38827
38841
  renderSlot(_ctx.$slots, "filterCommand", {}, void 0, true),
38828
38842
  $data.tableView.exportEnable || $data.tableView.exportPdfEnable || $data.tableView.printEnable || $data.tableView.batchEditEnable ? (openBlock(), createBlock(_component_Dropdown, {
38829
38843
  key: 2,
38830
- style: { "margin-left": "4px" },
38831
38844
  onOnClick: $options.moreClick
38832
38845
  }, {
38833
38846
  list: withCtx(() => [
@@ -39110,13 +39123,15 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39110
39123
  size: "small",
39111
39124
  type: column.controlType.toLowerCase(),
39112
39125
  "model-value": _ctx.parseDateTimeData($options.rowData(row, index2), column.code),
39113
- "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
39114
39126
  readonly: $options.isReadonly($options.rowData(row, index2), column),
39115
39127
  placeholder: column.description,
39116
39128
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth - 8 + "px" }),
39117
39129
  transfer: true,
39118
- onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
39119
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
39130
+ onOnChange: (time2) => {
39131
+ _ctx.setData($options.rowData(row, index2), column.code, time2);
39132
+ $options.onDataChange($options.rowData(row, index2), column);
39133
+ }
39134
+ }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
39120
39135
  key: 12,
39121
39136
  size: "small",
39122
39137
  type: column.controlType.toLowerCase(),
@@ -39434,7 +39449,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39434
39449
  ], 2)
39435
39450
  ], 2);
39436
39451
  }
39437
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-90dc040a"]]);
39452
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-4bf48fe0"]]);
39438
39453
  const _sfc_main$p = {
39439
39454
  mixins: [mixinPage],
39440
39455
  components: { columnSelect, columnEdit },
@@ -46740,13 +46755,15 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
46740
46755
  key: 13,
46741
46756
  type: column.controlType.toLowerCase(),
46742
46757
  "model-value": _ctx.parseData($data.data, column.code),
46743
- "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
46744
46758
  readonly: column.isReadonly,
46745
46759
  placeholder: column.description,
46746
46760
  transfer: true,
46747
46761
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
46748
- onOnChange: ($event) => $options.onDataChange(column)
46749
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
46762
+ onOnChange: (time2) => {
46763
+ _ctx.setData($data.data, column.code, time2);
46764
+ $options.onDataChange(column);
46765
+ }
46766
+ }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
46750
46767
  key: 14,
46751
46768
  type: "time",
46752
46769
  "model-value": _ctx.parseData($data.data, column.code),