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
f1cf92b4
Commit
f1cf92b4
authored
Aug 05, 2024
by
每天都要敲代码
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://gitlab.91isoft.com:10022/hikvision/web-project
parents
0119137d
14766c58
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
224 additions
and
690 deletions
+224
-690
DataMenu.vue
src/components/DataMenu.vue
+1
-1
TransferStatusControl.vue
src/components/Remote/TransferStatusControl.vue
+185
-11
screenDisplay.vue
src/components/screenDisplay.vue
+0
-667
TransControlPage.vue
src/views/RemotePage/TransControlPage.vue
+14
-11
AnalysisManage.vue
src/views/Scheduling/AnalysisManage.vue
+3
-0
AnnualParam.vue
src/views/Scheduling/AnnualParam.vue
+3
-0
ConfigBoiler.vue
src/views/Scheduling/ConfigBoiler.vue
+3
-0
EnergyManage.vue
src/views/Scheduling/EnergyManage.vue
+3
-0
InstantHeat.vue
src/views/Scheduling/InstantHeat.vue
+3
-0
Phenomenon.vue
src/views/Scheduling/Phenomenon.vue
+3
-0
WeatherManage.vue
src/views/Scheduling/WeatherManage.vue
+3
-0
WindManage.vue
src/views/Scheduling/WindManage.vue
+3
-0
No files found.
src/components/DataMenu.vue
View file @
f1cf92b4
...
...
@@ -26,7 +26,7 @@
<
script
lang=
"ts"
setup
>
import
{
reactive
,
ref
}
from
'vue'
import
MyMenu
from
'./MyMenu.vue'
;
import
{
toRaw
}
from
'
@vue/reactivity
'
import
{
toRaw
}
from
'
vue
'
const
props
=
defineProps
([
'meun'
]);
const
emit
=
defineEmits
([
'subEvent'
,
'openM'
,
'closeM'
]);
...
...
src/components/Remote/TransferStatusControl.vue
View file @
f1cf92b4
<
template
>
状态
<el-table>
<el-card
class=
"remoteTitle"
>
<div
class=
"card-content"
>
<div
class=
"demo-button"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"ReadStatus"
>
读取全部
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"WriteStatus"
disabled=
"false"
>
写入全部
</el-button>
</div>
<div
class=
"demo-image"
>
<div
class=
"block"
>
<span
class=
"demonstration"
>
读写成功
</span>
<el-icon><CircleCheckFilled
color=
"rgb(0,255,0)"
/></el-icon>
</div>
<div
class=
"block"
>
<span
class=
"demonstration"
>
通讯异常
</span>
<el-icon><Connection
/></el-icon>
</div>
<div
class=
"block"
>
<span
class=
"demonstration"
>
读写失败
</span>
<el-icon><Failed
color=
"rgb(255,0,0)"
/></el-icon>
</div>
</div>
</div>
</el-card>
<el-table
ref=
"tableRef"
v-model:checked=
"selectedRows"
show-header=
"true"
:height=
"tableHeight"
:cell-style=
"setCellStyle"
border
highlight-current-row
:header-cell-style=
"setHeaderCellStyle"
:data=
"visibleData"
v-loading=
"isLoading"
element-loading-text=
"数据加载中......"
row-class-name=
"fixed-row-height"
element-loading-background=
"rgba(0, 0, 0, 0.8)"
>
<el-table-column
type=
"selection"
width=
"55"
/>
<el-table-column
prop=
"rowIndex"
label=
"序号"
width=
"45px"
fixed
/>
<el-table-column
prop=
"transferId"
label=
"机组编号"
v-if=
"false"
width=
"80px"
fixed
/>
<el-table-column
prop=
"transferName"
label=
"换热机组"
width=
"150px"
fixed
/>
<el-table-column
prop=
"jDValue"
label=
"华为控制模式"
width=
"80px"
/>
<el-table-column
prop=
"gainMode"
label=
"增益模式"
width=
"80px"
/>
<el-table-column
prop=
"weatherMode"
label=
"气象仪模式"
width=
"80px"
/>
<el-table-column
prop=
"curveMode"
label=
"曲线对应模式"
width=
"80px"
/>
<el-table-column
prop=
"criclePump1"
label=
"1#循环泵启停"
width=
"80px"
/>
<el-table-column
prop=
"criclePump2"
label=
"2#循环泵启停"
width=
"80px"
/>
<el-table-column
prop=
"Pump3"
label=
"3#循环泵启停"
width=
"80px"
/>
<el-table-column
prop=
"Pump4"
label=
"4#循环泵启停"
width=
"80px"
/>
<el-table-column
prop=
"ReplenishingPump"
label=
"补水泵启停"
width=
"80px"
/>
<el-table-column
prop=
"SecPump1"
label=
"1#二级泵启停"
width=
"80px"
/>
<el-table-column
prop=
"Evc1AutoOrManual"
label=
"1#电动调节阀手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"Evc2AutoOrManual"
label=
"2#电动调节阀手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"Evc3AutoOrManual"
label=
"3#电动调节阀手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"Evc4AutoOrManual"
label=
"4#电动调节阀手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"CriclePump1AutoOrManual"
label=
"一号循环泵 手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"CriclePump2AutoOrManual"
label=
"二号循环泵 手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"CriclePump3AutoOrManual"
label=
"三号循环泵 手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"CriclePump4AutoOrManual"
label=
"四号循环泵 手动/自动切换"
width=
"100px"
/>
<el-table-column
prop=
"SecCriclePumpAutoOrManual"
label=
"二级泵 手动/自动切换"
width=
"100px"
/>
<el-table-column
fixed=
"right"
label=
"操作"
width=
"100"
>
<template
#
default
>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"ReadStatus"
>
读取
</el-button>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"WriteStatus"
>
写入
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-card
style=
"height: 50px; padding: 0;"
>
<el-progress
:text-inside=
"true"
:stroke-width=
"16"
status=
"success"
:percentage=
"progress"
/>
</el-card>
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
watch
}
from
'vue'
;
import
http
from
'../../api/http'
;
import
store
from
"../../store/index"
;
import
{
ref
,
reactive
,
onMounted
,
onUnmounted
,
watch
,
toRefs
}
from
'vue'
;
import
http
from
'../../api/http'
;
import
store
from
"../../store/index"
;
const
props
=
defineProps
([
'activeRadio'
]);
console
.
log
(
"1actionValue:"
+
props
.
activeRadio
);
const
enterpriseId
=
store
.
getters
.
getEnterpriseId
();
const
props
=
defineProps
([
'activeRadio'
]);
const
tableRef
=
ref
(
null
);
const
selectedRows
=
ref
([]);
const
isLoading
=
ref
(
true
);
const
visibleData
=
ref
([]);
const
tableHeight
=
ref
(
500
);
const
progress
=
ref
(
0
);
const
state
=
reactive
({
fits
:
[
'Success'
,
'fale'
,
'cover'
,
'none'
,
'scale-down'
],
url
:
'https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg'
,
})
const
{
fits
,
url
}
=
toRefs
(
state
);
//监听修改actionValue状态
watch
(()
=>
props
.
activeRadio
,
(
oldValue
,
newValue
)
=>
{
...
...
@@ -18,8 +100,100 @@
initData
();
},{
deep
:
true
});
function
initData
(){
function
setContentHeight
()
{
tableHeight
.
value
=
window
.
innerHeight
-
300
;
}
async
function
initData
(){
isLoading
.
value
=
true
;
var
type
=
0
;
if
(
enterpriseId
===
"9BCA54BC-8F27-4849-8D7D-50C5099E1949"
.
toLowerCase
()){
type
=
1
;
}
var
result
=
await
http
.
post
(
'/api/remote/GetTransferStatus'
,{
"SupplyType"
:
type
,
"DeviceId"
:
props
.
activeRadio
});
console
.
log
(
result
);
visibleData
.
value
=
result
.
data
;
isLoading
.
value
=
false
;
}
initData
();
</
script
>
\ No newline at end of file
async
function
ReadStatus
(){
if
(
selectedRows
){
selectedRows
.
value
.
forEach
(
item
=>
{
ReadStation
(
item
);
})
}
}
async
function
WriteStatus
(){
}
async
function
ReadStation
(
value
){
var
result
=
await
http
.
post
(
''
,
value
);
var
jobj
=
result
.
data
;
console
.
log
(
jobj
);
}
onMounted
(()
=>
{
setContentHeight
();
window
.
addEventListener
(
'resize'
,
setContentHeight
);
})
onUnmounted
(()
=>
{
window
.
removeEventListener
(
'resize'
,
setContentHeight
);
})
function
setCellStyle
({
row
,
column
,
rowIndex
,
columnIndex
})
{
let
css_color
=
{};
css_color
[
'padding-left'
]
=
'0px'
;
css_color
[
'padding-right'
]
=
'0px'
;
css_color
[
'borderColor'
]
=
'#97d5fd'
;
css_color
[
'padding'
]
=
'0px'
;
return
css_color
;
}
function
setHeaderCellStyle
({
row
,
column
,
rowIndex
,
columnIndex
})
{
let
css_color
;
var
backcolor
=
'd9f1ff'
;
css_color
=
{
'background-color'
:
'#'
+
backcolor
,
'padding-left'
:
'0px'
,
'padding-right'
:
'0px'
,
'borderColor'
:
'#97d5fd'
,
'color'
:
'#000'
,
'text-align'
:
'center'
,
'vertical-align'
:
'top'
};
var
backcolor
=
'd9f1ff'
;
css_color
=
{
'background-color'
:
'#'
+
backcolor
,
'padding-left'
:
'0px'
,
'padding-right'
:
'0px'
,
'borderColor'
:
'#97d5fd'
,
'color'
:
'#000'
,
'text-align'
:
'center'
,
'vertical-align'
:
'top'
};
return
css_color
;
}
</
script
>
<
style
scoped
>
.remoteTitle
{
width
:
100%
;
}
.card-content
{
display
:
flex
;
justify-content
:
space-between
;
}
.demo-image
{
width
:
70%
;
display
:
right
;
flex
:
9
;
}
.demo-image
.block
{
padding
:
1px
0
;
text-align
:
center
;
border-right
:
solid
1px
var
(
--el-border-color
);
display
:
inline-block
;
width
:
80px
;
box-sizing
:
border-box
;
vertical-align
:
top
;
}
.demo-image
.block
:last-child
{
border-right
:
none
;
}
.demo-image
.demonstration
{
display
:
block
;
color
:
var
(
--el-text-color-secondary
);
font-size
:
12px
;
margin-bottom
:
0px
;
}
</
style
>
\ No newline at end of file
src/components/screenDisplay.vue
View file @
f1cf92b4
This diff is collapsed.
Click to expand it.
src/views/RemotePage/TransControlPage.vue
View file @
f1cf92b4
<
template
>
<el-card
class=
"card-contianer"
>
<label>
{{
radioTitle
}}
:
</label>
<el-radio-group
v-model=
"activeRadio"
style=
"margin-left: 50px;"
>
<el-radio
v-for=
"(option, index) in options"
:key=
"index"
:label=
"option.value"
>
{{
option
.
lable
}}
</el-radio>
</el-radio-group>
<div>
</div>
<label>
{{
radioTitle
}}
:
</label>
<el-radio-group
v-model=
"activeRadio"
style=
"margin-left: 50px;"
>
<el-radio
v-for=
"(option, index) in options"
:key=
"index"
:label=
"option.value"
>
{{
option
.
lable
}}
</el-radio>
</el-radio-group>
</el-card>
<el-tabs
:tab-position=
"tabPosition"
style=
"height: 100%"
class=
"demo-tabs"
>
<el-tab-pane
label=
"换热站状态"
v-if=
"isTransferStatus"
>
...
...
@@ -182,7 +185,7 @@
.card-contianer {
display: flex;
width:
auto
;
width:
100%
;
height: 50px;
align-items: center;
vertical-align: middle;
...
...
src/views/Scheduling/AnalysisManage.vue
0 → 100644
View file @
f1cf92b4
<
template
>
生产与结算数据分析表
</
template
>
\ No newline at end of file
src/views/Scheduling/AnnualParam.vue
0 → 100644
View file @
f1cf92b4
<
template
>
年度参数管理
</
template
>
\ No newline at end of file
src/views/Scheduling/ConfigBoiler.vue
0 → 100644
View file @
f1cf92b4
<
template
>
锅炉参数配置
</
template
>
\ No newline at end of file
src/views/Scheduling/EnergyManage.vue
0 → 100644
View file @
f1cf92b4
<
template
>
能源消耗
</
template
>
\ No newline at end of file
src/views/Scheduling/InstantHeat.vue
0 → 100644
View file @
f1cf92b4
<
template
>
瞬时热量对比配置
</
template
>
\ No newline at end of file
src/views/Scheduling/Phenomenon.vue
0 → 100644
View file @
f1cf92b4
<
template
>
天气工况
</
template
>
\ No newline at end of file
src/views/Scheduling/WeatherManage.vue
0 → 100644
View file @
f1cf92b4
<
template
>
气象干预
</
template
>
\ No newline at end of file
src/views/Scheduling/WindManage.vue
0 → 100644
View file @
f1cf92b4
<
template
>
风力配置管理
</
template
>
\ No newline at end of file
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