Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
海康威视
web-project
Commits
da404ade
Commit
da404ade
authored
Aug 07, 2024
by
王亚晖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改换热站寄存器远程控制界面
parent
609b1ac9
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1143 additions
and
224 deletions
+1143
-224
NightControl.vue
src/components/Remote/NightControl.vue
+843
-4
TransferRegControl.vue
src/components/Remote/TransferRegControl.vue
+258
-216
index.js
src/router/index.js
+4
-1
TransControlPage.vue
src/views/RemotePage/TransControlPage.vue
+38
-3
No files found.
src/components/Remote/NightControl.vue
View file @
da404ade
This diff is collapsed.
Click to expand it.
src/components/Remote/TransferRegControl.vue
View file @
da404ade
This diff is collapsed.
Click to expand it.
src/router/index.js
View file @
da404ade
...
...
@@ -7,6 +7,7 @@ import store from '@/store'
//import nProgress from 'nprogress'
import
screenDisplay
from
'@/views/Gis/screenDisplay.vue'
import
iframe
from
'@/views/iframe.vue'
//import remote from './remote'
// 定义路由规则
const
routes
=
[
...
...
@@ -31,7 +32,9 @@ const routes = [
path
:
'/Home'
,
name
:
"Home"
,
component
:
HomePage
,
children
:
[{
children
:
[
// ...remote,//远程控制
{
path
:
'/RealSupply'
,
name
:
'RealSupplyPage'
,
component
:
()
=>
import
(
'@/views/RealPage/RealSupplyPage.vue'
),
...
...
src/views/RemotePage/TransControlPage.vue
View file @
da404ade
<
template
>
<el-card
class=
"card-contianer"
>
<div>
</div>
<label>
{{
radioTitle
}}
:
</label>
<el-radio-group
v-model=
"activeRadio"
style=
"margin-left: 50px;"
>
<el-radio
...
...
@@ -53,12 +50,24 @@
<NightFrequency
:activeRadio=
"activeRadio"
/>
</el-tab-pane>
</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
>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
watch
}
from
'vue'
;
import
http
from
'../../api/http'
;
import
store
from
"../../store/index"
;
import
{
useRoute
,
useRouter
}
from
'vue-router'
;
import
TransferStatusControl
from
'../../components/Remote/TransferStatusControl.vue'
;
import
TransferRegControl
from
'../../components/Remote/TransferRegControl.vue'
;
import
HolidayControl
from
'../../components/Remote/HolidayControl.vue'
;
...
...
@@ -90,6 +99,32 @@
const
isOutdoorTempControl
=
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
(){
initRadioList
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment