| | |
| | | }, |
| | | uRole(state) { |
| | | return state.uRole; |
| | | }, |
| | | permits(state) { |
| | | return state.permits; |
| | | } |
| | | }, |
| | | mutations: { |
| | |
| | | <div slot="box-tools" class="box-tools"> |
| | | <el-button type="danger" size="mini" @click="powerRemarksDialog=true">数据异常备注</el-button> |
| | | <el-button type="warning" size="mini" @click="alarmSourceManageDialog=true">告警来源设置</el-button> |
| | | <el-button type="success" size="mini" @click="remarksDialog=true">异常备注</el-button> |
| | | </div> |
| | | <flex-layout> |
| | | <div class="flex-page-content"> |
| | |
| | | :modal-append-to-body="false"> |
| | | <alarm-source-manage v-if="alarmSourceManageDialog" :id="powerInfo.powerDeviceId"></alarm-source-manage> |
| | | </el-dialog> |
| | | <power-remarks :visible.sync="powerRemarksDialog" v-if="powerRemarksDialog" :num="info.num"></power-remarks> |
| | | <power-remarks :visible.sync="powerRemarksDialog" v-if="powerRemarksDialog" :num="powerInfo.num"></power-remarks> |
| | | <!-- 异常备注 --> |
| | | <el-dialog |
| | | title="异常备注" |
| | | width="auto" |
| | | :visible.sync="remarksDialog" |
| | | :close-on-click-modal="false" |
| | | top="0" |
| | | class="dialog-center" |
| | | :modal-append-to-body="false"> |
| | | <error-remarks v-if="remarksDialog" :info="powerInfo" :visible.sync="remarksDialog" @success="searchPowerInfo"></error-remarks> |
| | | </el-dialog> |
| | | </content-box> |
| | | </template> |
| | | <script> |
| | |
| | | import createWs from "@/assets/js/websocket"; |
| | | import AlarmSourceManage from "@/views/dataTest/components/alarmSourceManage.vue"; |
| | | import PowerRemarks from "@/views/dataMager/components/powerRemarks.vue"; |
| | | import ErrorRemarks from "@/views/dataMager/components/errorRemarks.vue"; |
| | | const WSMixin = createWs("RealTime"); |
| | | |
| | | export default { |
| | | components: { |
| | | ErrorRemarks, |
| | | PowerRemarks, |
| | | AlarmSourceManage, |
| | | ContentBox, |
| | |
| | | return { |
| | | alarmSourceManageDialog: false, |
| | | powerRemarksDialog: false, |
| | | remarksDialog: false, |
| | | timer: new Timeout(), |
| | | acTabs: "analog", |
| | | info: getPowerInfo(), |
| | | socket: "", |
| | | isOpen: false, |
| | | powerInfo: { |
| | | num: 0, |
| | | powerDeviceId: 0, |
| | | stationId: 0, |
| | | stationName: "", |
| | |
| | | stationName3: "", |
| | | stationName4: " ", |
| | | stationName5: "", |
| | | exceptionCause: "", |
| | | exceptionCauseAnalysis: "" |
| | | }, |
| | | }; |
| | | }, |
| | |
| | | }) |
| | | .then((res) => { |
| | | res = res.data; |
| | | console.log(res); |
| | | if (res.code && res.data.list.length) { |
| | | this.powerInfo = res.data.list[0]; |
| | | } else { |
| | | this.powerInfo = { |
| | | num: 0, |
| | | powerDeviceId: 0, |
| | | stationId: 0, |
| | | stationName: "", |
| | |
| | | stationName3: "", |
| | | stationName4: " ", |
| | | stationName5: "", |
| | | exceptionCause: "", |
| | | exceptionCauseAnalysis: "" |
| | | }; |
| | | } |
| | | // 启动查询 |
| | |
| | | } |
| | | } |
| | | }, |
| | | searchPowerInfo() { |
| | | // 获取电源信息 |
| | | let powerDeviceId = this.$route.params.powerDeviceId; |
| | | if (powerDeviceId) { |
| | | this.getPowerInfo(powerDeviceId); |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | fullStationName() { |
| | |
| | | box-sizing: border-box; |
| | | } |
| | | .box-tools { |
| | | width: 220px; |
| | | width: 320px; |
| | | } |
| | | </style> |
| | |
| | | this.$router.push("/dataMager/battGroupMager"); |
| | | break; |
| | | case 3: |
| | | this.$router.push("/dataMager/battGroupMager"); |
| | | this.$router.push("/reportStatistics/eleAssess"); |
| | | break; |
| | | } |
| | | } |
| | |
| | | upDatePageParamAllList |
| | | } from "@/views/pageSetting/js/api"; |
| | | import ThreeInterfaceManage from "@/views/pageSetting/components/threeInterfaceManage"; |
| | | import {isHasPermit} from "@/assets/js/tools"; |
| | | |
| | | export default { |
| | | name: "realTimeSetting", |
| | |
| | | ContentBox |
| | | }, |
| | | data() { |
| | | let isSystemAdmin = sessionStorage.getItem("userPowerGroup"); |
| | | let permits = this.$store.getters["user/permits"]; |
| | | let isSystemAdmin = isHasPermit("permit_edit_permit", permits); |
| | | return { |
| | | isSystemAdmin: Number(isSystemAdmin) == 100001? true : false, |
| | | isSystemAdmin, |
| | | status: { |
| | | props: { |
| | | key: "id", |