|
@@ -72,6 +72,13 @@
|
|
|
:label="column.label"
|
|
|
>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="操作" fixed="right" header-align="center" align="center" class="right-operation"
|
|
|
+ width="100">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <el-link class="my-el-link mr12 ml12" @click="toPage(row)" type="primary" icon="ele-Tickets"
|
|
|
+ :underline="false" target="_blank">详情</el-link>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
<div class="my-flex my-flex-end" style="margin-top: 20px">
|
|
|
<el-pagination
|
|
@@ -100,6 +107,7 @@ import { PushDto } from "/@/api/admin/AlarmService/alarmQueryDto";
|
|
|
import { PageInputAlarmFilterModel } from "/@/api/admin/reportManagement/alarm/alarmDto";
|
|
|
import { ElMessage, ElTable } from "element-plus";
|
|
|
import { useRoute } from 'vue-router';
|
|
|
+import router from "/@/router";
|
|
|
|
|
|
const route = useRoute();
|
|
|
const alarmHistoryID = ref<string | undefined>(route.query.alarmHistoryID as string);
|
|
@@ -117,6 +125,10 @@ const state = reactive({
|
|
|
},
|
|
|
tableModel: [] as PushDto[],
|
|
|
dynamicColumns: [
|
|
|
+ { prop: 'name', label: '油机号' },
|
|
|
+ { prop: 'gasStation', label: '油站名称' },
|
|
|
+ { prop: 'alarmType', label: '报警类型' },
|
|
|
+ { prop: 'alarmDevice', label: '报警设备' },
|
|
|
{ prop: 'ruleName', label: '规则名称' },
|
|
|
{ prop: 'pushUser', label: '推送用户' },
|
|
|
{ prop: 'content', label: '推送内容' },
|
|
@@ -216,6 +228,10 @@ const onReset = () => {
|
|
|
init();
|
|
|
};
|
|
|
|
|
|
+const toPage = (row: { fuelId: any; }) => {
|
|
|
+ router.push({ path: `/statement/${row.fuelId}` })
|
|
|
+}
|
|
|
+
|
|
|
/** 处理推送逻辑 */
|
|
|
const handlePush = async () => {
|
|
|
// 获取选中的行
|