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

添加筛选字段

上级 a747db58
...@@ -27,14 +27,13 @@ ...@@ -27,14 +27,13 @@
<el-table :data="monitoringData" v-loading="loading" border stripe @filter-change="filterChange"> <el-table :data="monitoringData" v-loading="loading" border stripe @filter-change="filterChange">
<el-table-column prop="status" label="同步状态" :filters="[ <el-table-column prop="status" label="同步状态" :filters="[
{ text: '未同步', value: '0' }, { text: '未同步', value: '0' },
{ text: '同步中', value: '1' },
{ text: '同步失败', value: '2' }, { text: '同步失败', value: '2' },
]" :filter-multiple="false" filter-placement="bottom-end" align="center" width="135px"> ]" :filter-multiple="false" filter-placement="bottom-end" align="center" width="135px">
<template #default="scope"> <template #default="scope">
<el-tag :type="scope.row.status === 0 ? 'info' : 'danger'" disable-transitions>{{ scope.row.status <el-tag type="info" v-show="scope.row.status === 0">未同步</el-tag>
=== 0 ? <el-tag type="parmary" v-show="scope.row.status === 1">同步中</el-tag>
"未同步" : <el-tag type="danger" v-show="scope.row.status === 2">同步失败</el-tag>
"同步失败"
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="dataId" label="数据内码" align="center" /> <el-table-column prop="dataId" label="数据内码" align="center" />
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论