云上隐藏pcs开关机按钮

This commit is contained in:
白菜
2025-12-18 16:26:57 +08:00
parent c4c79aaa64
commit 9a8247f833
2 changed files with 14 additions and 14 deletions

View File

@ -31,12 +31,12 @@
<div>数据更新时间{{ pcsItem.dataUpdateTime }}</div> <div>数据更新时间{{ pcsItem.dataUpdateTime }}</div>
</div> </div>
<div class="alarm"> <div class="alarm">
<pcs-switch style="margin-right:10px;" <!-- <pcs-switch style="margin-right:10px;"-->
:round="true" <!-- :round="true"-->
size="small" <!-- size="small"-->
type="danger" <!-- type="danger"-->
:data="pcsItem" <!-- :data="pcsItem"-->
@updateSuccess="init"/> <!-- @updateSuccess="init"/>-->
<el-button type="primary" round size="small" style="margin-right:20px;" <el-button type="primary" round size="small" style="margin-right:20px;"
@click="pointDetail(pcsItem,'point')"> @click="pointDetail(pcsItem,'point')">
详细 详细
@ -196,11 +196,11 @@ import RealTimeBaseInfo from "./../RealTimeBaseInfo.vue";
import getQuerySiteId from "@/mixins/ems/getQuerySiteId"; import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
import {getPcsDetailInfo, getRunningHeadInfo} from "@/api/ems/dzjk"; import {getPcsDetailInfo, getRunningHeadInfo} from "@/api/ems/dzjk";
import intervalUpdate from "@/mixins/ems/intervalUpdate"; import intervalUpdate from "@/mixins/ems/intervalUpdate";
import PcsSwitch from "@/views/ems/site/sblb/PcsSwitch.vue"; // import PcsSwitch from "@/views/ems/site/sblb/PcsSwitch.vue";
export default { export default {
name: "DzjkSbjkPcs", name: "DzjkSbjkPcs",
components: {RealTimeBaseInfo, pointChart, PointTable, PcsSwitch}, components: {RealTimeBaseInfo, pointChart, PointTable},
mixins: [getQuerySiteId, intervalUpdate], mixins: [getQuerySiteId, intervalUpdate],
data() { data() {
return { return {

View File

@ -84,10 +84,10 @@
label="在线状态"> label="在线状态">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ $store.state.ems.deviceStatusOptions[scope.row.deviceStatus] }}</span> <span>{{ $store.state.ems.deviceStatusOptions[scope.row.deviceStatus] }}</span>
<pcs-switch v-if="scope.row.deviceCategory === 'PCS' && ![null,'',undefined].includes(scope.row.deviceStatus)" <!-- <pcs-switch v-if="scope.row.deviceCategory === 'PCS' && ![null,'',undefined].includes(scope.row.deviceStatus)"-->
style="margin-left:5px;" <!-- style="margin-left:5px;"-->
:data="{siteId:scope.row.siteId,deviceStatus:scope.row.deviceStatus,deviceId:scope.row.deviceId,deviceName:scope.row.deviceName}" <!-- :data="{siteId:scope.row.siteId,deviceStatus:scope.row.deviceStatus,deviceId:scope.row.deviceId,deviceName:scope.row.deviceName}"-->
@updateSuccess="getData"/> <!-- @updateSuccess="getData"/>-->
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@ -180,11 +180,11 @@ import {getAllDeviceCategory} from '@/api/ems/search'
import PointTable from './PointTable.vue' import PointTable from './PointTable.vue'
import AddDevice from "./AddDevice.vue"; import AddDevice from "./AddDevice.vue";
import PointUpload from "./PointUpload.vue"; import PointUpload from "./PointUpload.vue";
import PcsSwitch from "./PcsSwitch.vue"; // import PcsSwitch from "./PcsSwitch.vue";
export default { export default {
name: "Sblb", name: "Sblb",
components: {AddDevice, PointTable, PointUpload, PcsSwitch}, components: {AddDevice, PointTable, PointUpload},
data() { data() {
return { return {
loading: false, loading: false,