提交 a747db58 authored 作者: 刘旭's avatar 刘旭

添加按钮

上级 9fddc7ef
......@@ -19,6 +19,7 @@
</el-col>
<el-col :span="4" style="text-align: center;">
<el-button type="primary" @click="onConfirm">筛选</el-button>
<el-button type="primary" @click="handleManual">手动同步</el-button>
</el-col>
</el-row>
</el-form>
......@@ -73,6 +74,7 @@
import { ref, reactive, onMounted } from 'vue'
import { store } from '@/store'
import { ElMessage, ElMessageBox } from 'element-plus';
import { getManual } from '@/services/api/systemApi/synchronization/synchronizationAPI'
import { getSMonitoring, deleteSMonitoring } from '@/services/api/systemApi/synchronousMonitoring'
const loading = ref(true)
......@@ -163,6 +165,13 @@ const handleDelete = (id: number) => {
}).catch(() => { return false })
}
const handleManual = async () => {
const res: any = await getManual()
if (res.code === 200) {
ElMessage({ type: 'success', message: '手动同步成功' })
}
};
// 监控数据
const initSMonitoring = (
pageNo?: number,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论