mooho-base-admin-plus 2.7.5 → 2.7.6

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,4 @@ 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
@@ -17836,9 +17836,12 @@ const home = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1
17836
17836
  methods: {
17837
17837
  batchDo() {
17838
17838
  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");
17839
+ let r = this.$refs.todoTable.getSelected().map((a) => a.id);
17840
+ 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
17841
  });
17842
+ },
17843
+ onAfterAction() {
17844
+ this.$refs.todoTable.loadData(), this.$refs.doneTable.loadData();
17842
17845
  }
17843
17846
  }
17844
17847
  }, _hoisted_1$19 = { class: "i-layout-page-header" };
@@ -17866,7 +17869,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17866
17869
  }, {
17867
17870
  default: withCtx(() => [
17868
17871
  createVNode$1(f, {
17869
- ref: "table",
17872
+ ref: "todoTable",
17870
17873
  "view-code": "TodoList",
17871
17874
  "select-enable": !0
17872
17875
  }, {
@@ -17903,7 +17906,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17903
17906
  }, {
17904
17907
  default: withCtx(() => [
17905
17908
  createVNode$1(f, {
17906
- ref: "table",
17909
+ ref: "doneTable",
17907
17910
  "view-code": "DoneList"
17908
17911
  }, {
17909
17912
  command: withCtx(({ row: _ }) => [
@@ -17928,7 +17931,7 @@ function _sfc_render$1q(r, a, o, s, l, u) {
17928
17931
  }),
17929
17932
  createVNode$1(y, {
17930
17933
  ref: "taskForm",
17931
- onOnAfterAction: a[0] || (a[0] = (_) => r.$refs.table.loadData())
17934
+ onOnAfterAction: a[0] || (a[0] = (_) => u.onAfterAction())
17932
17935
  }, null, 512)
17933
17936
  ]);
17934
17937
  }
@@ -44122,6 +44125,9 @@ const iHeaderFullscreen = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _
44122
44125
  loadTask() {
44123
44126
  this.taskList = [], this.taskFilter.page = 0, this.loadMore("task");
44124
44127
  },
44128
+ reload() {
44129
+ location.reload();
44130
+ },
44125
44131
  openNotification(r) {
44126
44132
  r.isRead || (this.unreadCount--, r.isRead = !0, notificationApi.read(r.id)), this.$refs.notificationForm.open(r);
44127
44133
  }
@@ -44190,7 +44196,10 @@ function _sfc_render$6(r, a, o, s, l, u) {
44190
44196
  _: 1
44191
44197
  }, 8, ["wide", "badge-props", "class", "onOnLoadMore", "onOnClear"])
44192
44198
  ]),
44193
- createVNode$1(v, { ref: "taskForm" }, null, 512),
44199
+ createVNode$1(v, {
44200
+ ref: "taskForm",
44201
+ onOnAfterAction: a[0] || (a[0] = (y) => u.reload())
44202
+ }, null, 512),
44194
44203
  createVNode$1(g, {
44195
44204
  ref: "notificationForm",
44196
44205
  "view-code": "NotificationView",