|
|
@@ -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 + '条数据待发送,请耐心等待.', '排队消息')
|
|
|
}
|
|
|
|