单站监控 站点首页、故障告警页面新增工单按钮 点击跳转到工单列表页面

This commit is contained in:
白菜
2025-07-10 21:10:04 +08:00
parent 0336e67ac5
commit 28cf2d1946
2 changed files with 24 additions and 3 deletions

View File

@ -45,6 +45,14 @@
prop="alarmContent"
label="告警内容">
</el-table-column>
<el-table-column
label="工单"
>
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.ticketNo" @click="toTicket">已生成工单工单号{{scope.row.ticketNo}}</el-button>
<el-button type="primary" size="mini" v-else @click="toTicket">生成工单</el-button>
</template>
</el-table-column>
</el-table>
</div>
</el-card>
@ -92,6 +100,9 @@ export default {
}
},
methods:{
toTicket(){
this.$router.push({path:'/ticket'})
},
init(){
this.loading = true
getDzjkHomeView(this.siteId).then(response => {