Browse Source

排队条数优化

wuyi 1 year ago
parent
commit
53c541201e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/TaskView.vue

+ 3 - 3
src/views/TaskView.vue

@@ -57,7 +57,7 @@
                                 <ElButton
                                     type="primary"
                                     size="small"
-                                    @click="getToBeSentNum()"
+                                    @click="getToBeSentNum(row)"
                                     v-if="row.status === 'queued'"
                                 >
                                     排队状态
@@ -383,8 +383,8 @@ function taskItemStatusFormatter(row, column, cellValue, index) {
     }
 }
 
-async function getToBeSentNum() {
-    const num = await http.get(`/task/toBeSentNum`)
+async function getToBeSentNum(row) {
+    const num = await http.get(`/task/toBeSentNum/${row.id}`)
     await ElMessageBox.alert('队列中还有' + num + '条数据待发送,请耐心等待.', '排队消息')
 }