Commit da404ade authored by 王亚晖's avatar 王亚晖

修改换热站寄存器远程控制界面

parent 609b1ac9
This diff is collapsed.
...@@ -7,6 +7,7 @@ import store from '@/store' ...@@ -7,6 +7,7 @@ import store from '@/store'
//import nProgress from 'nprogress' //import nProgress from 'nprogress'
import screenDisplay from '@/views/Gis/screenDisplay.vue' import screenDisplay from '@/views/Gis/screenDisplay.vue'
import iframe from '@/views/iframe.vue' import iframe from '@/views/iframe.vue'
//import remote from './remote'
// 定义路由规则 // 定义路由规则
const routes = [ const routes = [
...@@ -31,7 +32,9 @@ const routes = [ ...@@ -31,7 +32,9 @@ const routes = [
path: '/Home', path: '/Home',
name: "Home", name: "Home",
component: HomePage, component: HomePage,
children: [{ children: [
// ...remote,//远程控制
{
path: '/RealSupply', path: '/RealSupply',
name: 'RealSupplyPage', name: 'RealSupplyPage',
component: () => import('@/views/RealPage/RealSupplyPage.vue'), component: () => import('@/views/RealPage/RealSupplyPage.vue'),
......
<template> <template>
<el-card class="card-contianer"> <el-card class="card-contianer">
<div>
</div>
<label>{{radioTitle}}</label> <label>{{radioTitle}}</label>
<el-radio-group v-model="activeRadio" style="margin-left: 50px;"> <el-radio-group v-model="activeRadio" style="margin-left: 50px;">
<el-radio <el-radio
...@@ -53,12 +50,24 @@ ...@@ -53,12 +50,24 @@
<NightFrequency :activeRadio="activeRadio"/> <NightFrequency :activeRadio="activeRadio"/>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<!-- <el-tabs v-model="activeTab" @tab-click="handleClick" :tab-position="tabPosition" style="height: 100%" class="demo-tabs">
<el-tab-pane
v-for="item in editableTabs"
:key="item.name"
:label="item.title"
:name="item.name"
></el-tab-pane> -->
<!-- <el-tab-pane name="TransferStatusControl" label="换热站状态" v-if="isTransferStatus"></el-tab-pane>
<el-tab-pane name="TransferRegControl" label="远程寄存器" v-if="isTransferRegControl"></el-tab-pane> -->
<!-- </el-tabs> -->
<!-- <router-view /> -->
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { ref, reactive, onMounted, onUnmounted, watch } from 'vue'; import { ref, reactive, onMounted, onUnmounted, watch } from 'vue';
import http from '../../api/http'; import http from '../../api/http';
import store from "../../store/index"; import store from "../../store/index";
import { useRoute, useRouter } from 'vue-router';
import TransferStatusControl from '../../components/Remote/TransferStatusControl.vue'; import TransferStatusControl from '../../components/Remote/TransferStatusControl.vue';
import TransferRegControl from '../../components/Remote/TransferRegControl.vue'; import TransferRegControl from '../../components/Remote/TransferRegControl.vue';
import HolidayControl from '../../components/Remote/HolidayControl.vue'; import HolidayControl from '../../components/Remote/HolidayControl.vue';
...@@ -90,6 +99,32 @@ ...@@ -90,6 +99,32 @@
const isOutdoorTempControl = ref(false); const isOutdoorTempControl = ref(false);
const isNightFrequency = ref(false); const isNightFrequency = ref(false);
// const editableTabs = reactive([
// {
// title: '换热站状态',
// path: '../../components/Remote/TransferStatusControl.vue',
// name: 'TransferStatusControl',
// isActive: false,
// component: TransferStatusControl
// },
// {
// title: '远程寄存器值',
// path: '/Remote/RemoteTransferReg',
// name: 'TransferRegControl',
// isActive: false,
// component: TransferRegControl
// }
// ])
// function handleTabClick(tab) {
// activeTab.value = tab.name
// }
// const handleClick = (tab, event) => {
// console.log(tab.props.name);
// console.log(editableTabs.find(t => t.name === tab.props.name).path);
// router.push(editableTabs.find(t => t.name === tab.props.name).path);
// };
//初始化页面 //初始化页面
function initPage(){ function initPage(){
initRadioList(); initRadioList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment