|
|
@@ -199,7 +199,7 @@
|
|
|
:pro-inst-id="activeTab === 'save' ? proInstId : null"
|
|
|
:title="['wait', 'save'].includes(activeTab) ? FlowName : null"
|
|
|
:processName="processName"
|
|
|
- @callback="getData(activeTab)"
|
|
|
+ @callback="updateList"
|
|
|
@close="visible => (dialogFormVisible = visible)"
|
|
|
/>
|
|
|
</div>
|
|
|
@@ -356,8 +356,10 @@
|
|
|
}
|
|
|
// 轮询刷新公告数据和任务数据
|
|
|
this.timer = setInterval(() => {
|
|
|
- // this.getMessage()
|
|
|
- this.getData(this.activeTab)
|
|
|
+ // 仅待办事宜自动更新数据
|
|
|
+ if (this.activeTab === 'wait') {
|
|
|
+ this.getData(this.activeTab)
|
|
|
+ }
|
|
|
}, 30 * 1000)
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
@@ -478,6 +480,12 @@
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
+ // 延迟更新列表数据
|
|
|
+ updateList () {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getData(this.activeTab)
|
|
|
+ }, 750)
|
|
|
+ },
|
|
|
// 查询
|
|
|
search() {
|
|
|
this.dataList = []
|