2025-11-20紧急优化内容

This commit is contained in:
白菜
2025-11-26 17:50:06 +08:00
parent 1378947a9e
commit 7fb6d1aa47
17 changed files with 459 additions and 117 deletions

View File

@ -13,12 +13,6 @@
</el-form-item>
</el-form>
<el-button type="primary" @click="addDevice" native-type="button">新增设备</el-button>
<el-button
@click="uploadPointDetail"
type="success"
plain>
上传点位清单
</el-button>
<el-table
class="common-table"
:data="tableData"
@ -59,18 +53,34 @@
width="250">
<template slot-scope="scope">
<el-button
@click="pointDetail(scope.row)"
@click="pointDetail(scope.row,'point')"
type="primary"
size="mini">
点位清单
</el-button>
<el-button
@click="pointDetail(scope.row,'alarmPoint')"
type="primary"
size="mini">
报警点位清单
</el-button>
<br>
<el-button
@click="downloadPointDetail(scope.row)"
style="margin-top:10px;"
type="primary"
plain
size="mini">
下载点位清单
</el-button>
<el-button
@click="uploadPointDetail(scope.row)"
style="margin-top:10px;"
type="success"
plain
size="mini">
上传点位清单
</el-button>
<br>
<el-button
@click="editDevice(scope.row)"
@ -116,13 +126,12 @@
</template>
<script>
import {getDeviceInfoList,getDeviceDetailInfo,deleteService,exportPointList,importPointList} from'@/api/ems/site'
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";
import PointUpload from "./PointUpload.vue";
import {download} from "@/utils/request";
export default {
name: "Sblb",
components:{AddDevice,PointTable,PointUpload},
@ -164,8 +173,8 @@ export default {
},
methods:{
// 查看设备电位表格
pointDetail(row){
this.$refs.pointTable.showTable(row)
pointDetail(row,dataType){
this.$refs.pointTable.showTable(row,dataType)
},
// 下载点位清单
downloadPointDetail({siteId,deviceCategory,deviceName}){