设备列表查看电位表格

This commit is contained in:
白菜
2025-09-13 22:41:41 +08:00
parent 4c31eeb837
commit 98e2c4c3be
3 changed files with 136 additions and 2 deletions

View File

@ -50,7 +50,7 @@
<el-table-column
fixed="right"
label="操作"
width="150">
width="260">
<template slot-scope="scope">
<!-- <el-button-->
<!-- @click="toDetail(scope.row.id)"-->
@ -58,6 +58,12 @@
<!-- size="mini">-->
<!-- 查看详情-->
<!-- </el-button>-->
<el-button
@click="pointDetail(scope.row)"
type="primary"
size="mini">
电位列表
</el-button>
<el-button
@click="editDevice(scope.row)"
type="warning"
@ -94,6 +100,7 @@
</div>
</el-dialog>
<add-device ref="addDevice" :mode="mode" :id="editDeviceId" @update="getData" @clear="clearEditDeviceData"/>
<point-table ref="pointTable"/>
</div>
</template>
@ -101,10 +108,11 @@
import {getDeviceInfoList,getDeviceDetailInfo,deleteService} from'@/api/ems/site'
import {getAllSites} from '@/api/ems/zddt'
import {formatNumber} from "@/filters/ems";
import PointTable from './PointTable.vue'
import AddDevice from "./AddDevice.vue";
export default {
name: "Sblb",
components:{AddDevice},
components:{AddDevice,PointTable},
data() {
return {
loading:false,
@ -142,6 +150,10 @@ export default {
}
},
methods:{
// 查看设备电位表格
pointDetail(row){
this.$refs.pointTable.showTable({deviceCategory:row.deviceCategory,siteId:row.siteId})
},
clearEditDeviceData(){
this.mode = '';
this.editDeviceId=''