fix:托克逊事件跳转

This commit is contained in:
shijing 2024-12-05 11:23:43 +08:00
parent b429dbc6ea
commit bc583ecb8d
1 changed files with 21 additions and 3 deletions

View File

@ -15,7 +15,7 @@
</el-header>
<el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id" :params="query" fit stripe
@selection-change="handleSelectionChange" @resetQuery="resetQuery">
@selection-change="handleSelectionChange" @resetQuery="resetQuery" @row-click="rowClick">
<el-table-column type="selection" width="55" />
<el-table-column label="发生类型">
<template #default="scope">
@ -52,10 +52,10 @@
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="120px">
<template #default="scope">
<el-link type="primary" @click="table_handle(scope.row)" v-auth="'equipment.update'">处理
<el-link type="primary" @click.stop="table_handle(scope.row)" v-auth="'equipment.update'">处理
</el-link>
<el-divider direction="vertical"></el-divider>
<el-link type="danger" @click="table_del(scope.row)" v-auth="'equipment.delete'">删除
<el-link type="danger" @click.stop="table_del(scope.row)" v-auth="'equipment.delete'">删除
</el-link>
</template>
</el-table-column>
@ -228,6 +228,24 @@ export default {
this.userName = userInfo.username;
},
methods: {
rowClick(row, column, event){
let mgroup_name = row.enm_data.mgroup_name;
let path = '';
if(mgroup_name=='电石渣'){
path = 'enm_slag/report';
}else if(mgroup_name=='原料磨'){
path = 'enm_rm/report';
}else if(mgroup_name=='煤磨'){
path = 'enm_coal/report';
}else if(mgroup_name=='回转窑'){
path = 'enm_kiln/report';
}else if(mgroup_name=='水泥磨'){
path = 'enm_mill/report';
}else if(mgroup_name=='水泥包装'){
path = 'enm_pack/report';
}
this.$router.push({path:path })
},
getSetting() {
this.$API.ecm.event_cate.list.req({ page: 0 }).then((res) => {
let that = this;