فهرست منبع

首页待办数据刷新延迟,避免流程流转慢导致显示问题

cfort 2 سال پیش
والد
کامیت
de88dfac06
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      src/views/system/dashboard/components/workbench.vue

+ 7 - 1
src/views/system/dashboard/components/workbench.vue

@@ -76,7 +76,7 @@
             :def-id="activeTab === 'save' ? defId : null"
             :pro-inst-id="activeTab === 'save' ? proInstId : null"
             :title="['wait', 'save'].includes(activeTab) ? FlowName : null"
-            @callback="getData(activeTab)"
+            @callback="updateList"
             @close="visible => (dialogFormVisible = visible)"
         />
         <news-detail
@@ -426,6 +426,12 @@ export default {
                 this.loading = false
             })
         },
+        // 延迟更新列表数据
+        updateList () {
+            setTimeout(() => {
+                this.getData(this.activeTab)
+            }, 1000)
+        },
         // 查询
         search () {
             this.dataList = []