mooho-base-admin-plus 2.7.5 → 2.7.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/history.md CHANGED
@@ -138,3 +138,5 @@ mooho-base-admin-plus@2.7.2 - 修复字典缓存的bug
138
138
  mooho-base-admin-plus@2.7.3 - 修复公式最后一位为)时的bug
139
139
  mooho-base-admin-plus@2.7.4 - 修复全选的bug
140
140
  mooho-base-admin-plus@2.7.5 - 将List组件改为后端分页
141
+ mooho-base-admin-plus@2.7.6 - 修复审批后没有刷新的bug
142
+ mooho-base-admin-plus@2.7.7 - 增加自定义显示格式
@@ -16660,7 +16660,7 @@ const initRouter = (r, a) => {
16660
16660
  }), router.afterEach((o) => {
16661
16661
  Setting.showProgressBar && ViewUIPlus.LoadingBar.finish(), setting.layout.tabs && store.dispatch("admin/page/open", o), window.document.title = window.$app.$t(o.meta.title) + " - " + Setting.info.title, window.scrollTo(0, 0);
16662
16662
  });
16663
- }, router$1 = router, mixinPage = {
16663
+ }, router$1 = router, showFormat = {}, mixinPage = {
16664
16664
  data() {
16665
16665
  return {
16666
16666
  grid4: {
@@ -16725,6 +16725,7 @@ const initRouter = (r, a) => {
16725
16725
  ...mapState("admin/user", ["info"]),
16726
16726
  ...mapState("admin/cache", ["userNames", "enums", "dicts", "caches"]),
16727
16727
  ...mapState("admin/menu", ["userPermissions"]),
16728
+ ...mapState("admin/displayFormat", ["defaultFormat"]),
16728
16729
  rootPath() {
16729
16730
  return "admin".trim() ? "/admin/static/" : "/static/";
16730
16731
  },
@@ -16822,6 +16823,11 @@ const initRouter = (r, a) => {
16822
16823
  let d = this.parseData(r, o);
16823
16824
  if (d == null)
16824
16825
  return null;
16826
+ if (showFormat.customFormat) {
16827
+ let f = showFormat.customFormat(r, a);
16828
+ if (f != null)
16829
+ return f;
16830
+ }
16825
16831
  if (s === "DateTime")
16826
16832
  return (l || "").trim() ? format$4(new Date(d), l) : format$4(new Date(d), "yyyy-MM-dd");
16827
16833
  if (s === "Integer")
@@ -17836,9 +17842,12 @@ const home = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1
17836
17842
  methods: {
17837
17843
  batchDo() {
17838
17844
  this.confirm("Front_Msg_Sure_To_Batch_Do", async () => {
17839
- let r = this.$refs.table.getSelected().map((a) => a.id);
17840
- r.length > 0 ? (await taskApi.batchDo(r), this.success("Front_Msg_Success"), this.$refs.table.loadData()) : this.error("Front_Msg_Please_Select_Task_Item");
17845
+ let r = this.$refs.todoTable.getSelected().map((a) => a.id);
17846
+ r.length > 0 ? (await taskApi.batchDo(r), this.success("Front_Msg_Success"), this.$refs.todoTable.loadData(), this.$refs.doneTable.loadData()) : this.error("Front_Msg_Please_Select_Task_Item");
17841
17847
  });
17848
+ },
17849
+ onAfterAction() {
17850
+ this.$refs.todoTable.loadData(), this.$refs.doneTable.loadData();
17842
17851
  }
17843
17852
  }
17844
17853
  }, _hoisted_1$19 = { class: "i-layout-page-header" };
@@ -17866,7 +17875,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17866
17875
  }, {
17867
17876
  default: withCtx(() => [
17868
17877
  createVNode$1(f, {
17869
- ref: "table",
17878
+ ref: "todoTable",
17870
17879
  "view-code": "TodoList",
17871
17880
  "select-enable": !0
17872
17881
  }, {
@@ -17903,7 +17912,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17903
17912
  }, {
17904
17913
  default: withCtx(() => [
17905
17914
  createVNode$1(f, {
17906
- ref: "table",
17915
+ ref: "doneTable",
17907
17916
  "view-code": "DoneList"
17908
17917
  }, {
17909
17918
  command: withCtx(({ row: _ }) => [
@@ -17928,7 +17937,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17928
17937
  }),
17929
17938
  createVNode$1(y, {
17930
17939
  ref: "taskForm",
17931
- onOnAfterAction: a[0] || (a[0] = (_) => r.$refs.table.loadData())
17940
+ onOnAfterAction: a[0] || (a[0] = (_) => u.onAfterAction())
17932
17941
  }, null, 512)
17933
17942
  ]);
17934
17943
  }
@@ -44122,6 +44131,9 @@ const iHeaderFullscreen = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _
44122
44131
  loadTask() {
44123
44132
  this.taskList = [], this.taskFilter.page = 0, this.loadMore("task");
44124
44133
  },
44134
+ reload() {
44135
+ location.reload();
44136
+ },
44125
44137
  openNotification(r) {
44126
44138
  r.isRead || (this.unreadCount--, r.isRead = !0, notificationApi.read(r.id)), this.$refs.notificationForm.open(r);
44127
44139
  }
@@ -44190,7 +44202,10 @@ function _sfc_render$6(r, a, o, s, l, u) {
44190
44202
  _: 1
44191
44203
  }, 8, ["wide", "badge-props", "class", "onOnLoadMore", "onOnClear"])
44192
44204
  ]),
44193
- createVNode$1(v, { ref: "taskForm" }, null, 512),
44205
+ createVNode$1(v, {
44206
+ ref: "taskForm",
44207
+ onOnAfterAction: a[0] || (a[0] = (y) => u.reload())
44208
+ }, null, 512),
44194
44209
  createVNode$1(g, {
44195
44210
  ref: "notificationForm",
44196
44211
  "view-code": "NotificationView",
@@ -89964,6 +89979,7 @@ export {
89964
89979
  service as request,
89965
89980
  router$1 as router,
89966
89981
  Setting as setting,
89982
+ showFormat,
89967
89983
  store,
89968
89984
  taskApi,
89969
89985
  util$2 as util