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
489feba1
Commit
489feba1
authored
Aug 07, 2024
by
xuke
Browse files
Options
Browse Files
Download
Plain Diff
能源消耗接口-第二次提交
parents
ce5c1425
4ac876ed
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
408 additions
and
293 deletions
+408
-293
scheduling.js
src/api/scheduling.js
+81
-2
AnnualParamPage.vue
src/views/SchedulingPage/AnnualParamPage.vue
+1
-0
PhenomenonPage.vue
src/views/SchedulingPage/PhenomenonPage.vue
+79
-2
WindManagePage.vue
src/views/SchedulingPage/WindManagePage.vue
+247
-289
No files found.
src/api/scheduling.js
View file @
489feba1
import
http
from
'./http'
import
http
from
'./http'
//能源消耗-获取
//能源消耗-获取
export
const
postEnergyManage
=
params
=>
{
export
const
postEnergyManage
=
params
=>
{
<<<<<<<
HEAD
return
http
.
post
(
`/api/energy/getData`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`/api/energy/getData`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
=======
return
http
.
post
(
`/api/energy/getData`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
// 能源消耗-删除
// 能源消耗-删除
// export const postEnergyDel = EnergyId => {
// export const postEnergyDel = EnergyId => {
...
@@ -27,27 +33,46 @@ export const postEnergyUpdate = params => {
...
@@ -27,27 +33,46 @@ export const postEnergyUpdate = params => {
// 瞬时热量-获取列表
// 瞬时热量-获取列表
export
const
postInstantHeat
=
params
=>
{
export
const
postInstantHeat
=
params
=>
{
<<<<<<<
HEAD
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Get`
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
=======
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Get`
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Get`
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
// 瞬时热量-新增修改
// 瞬时热量-新增修改
export
const
postInstantHeatUpdate
=
params
=>
{
export
const
postInstantHeatUpdate
=
params
=>
{
<<<<<<<
HEAD
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Update`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Update`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
=======
return
http
.
post
(
`api/Scheduling/BizInstantaneousHeat/Update`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
// 参数设置
// 参数设置
export
const
postConfigBoilerUpdate
=
params
=>
{
export
const
postConfigBoilerUpdate
=
params
=>
{
<<<<<<<
HEAD
return
http
.
post
(
`api/configboiler/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
=======
return
http
.
post
(
`api/configboiler/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`api/configboiler/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
export
const
postSecAbsTUc
=
params
=>
{
export
const
postSecAbsTUc
=
params
=>
{
<<<<<<<
HEAD
return
http
.
post
(
`/api/analysis/external/SecAbsTUc`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`/api/analysis/external/SecAbsTUc`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
...
@@ -57,8 +82,18 @@ export const postEnergyManageSave = params => {
...
@@ -57,8 +82,18 @@ export const postEnergyManageSave = params => {
return
http
.
post
(
`/api/energy/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
return
http
.
post
(
`/api/energy/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
})
})
=======
return
http
.
post
(
`/api/analysis/external/SecAbsTUc`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
}
}
export
const
postEnergyManageSave
=
params
=>
{
return
http
.
post
(
`/api/energy/Save`
,
params
).
then
(
res
=>
res
).
catch
(
function
(
error
)
{
console
.
log
(
error
);
})
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
export
const
getWeatherMagData
=
()
=>
{
// 获取气象干预数据
export
const
getWeatherMagData
=
()
=>
{
// 获取气象干预数据
...
@@ -70,11 +105,19 @@ export const alterWeatherMagData = params => { // 添加或修改气象干预数
...
@@ -70,11 +105,19 @@ export const alterWeatherMagData = params => { // 添加或修改气象干预数
}
}
export
const
getTransfer
=
param
=>
{
// 获取换热站列表
export
const
getTransfer
=
param
=>
{
// 获取换热站列表
<<<<<<<
HEAD
return
http
.
post
(
`/api/cusweather/getTransferIds?id=
${
param
}
`
,
param
)
return
http
.
post
(
`/api/cusweather/getTransferIds?id=
${
param
}
`
,
param
)
}
}
export
const
getAnnualParam
=
()
=>
{
// 获取年度参数列表
export
const
getAnnualParam
=
()
=>
{
// 获取年度参数列表
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Get'
)
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Get'
)
=======
return
http
.
post
(
`/api/cusweather/getTransferIds?id=
${
param
}
`
,
param
)
}
export
const
getAnnualParam
=
()
=>
{
// 获取年度参数列表
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Get'
)
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
export
const
alterAnnualParam
=
params
=>
{
// 修改年度参数
export
const
alterAnnualParam
=
params
=>
{
// 修改年度参数
...
@@ -82,6 +125,18 @@ export const alterAnnualParam = params => { // 修改年度参数
...
@@ -82,6 +125,18 @@ export const alterAnnualParam = params => { // 修改年度参数
}
}
export
const
addAnnualParam
=
params
=>
{
// 新增年度参数
export
const
addAnnualParam
=
params
=>
{
// 新增年度参数
<<<<<<<
HEAD
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Add'
,
params
)
}
export
const
deleteAnnualParam
=
params
=>
{
// 删除年度参数
// console.log("地址:",`/api/Scheduling/BizHeatSet/Delete?Id=${params}`)
return
http
.
post
(
`/api/Scheduling/BizHeatSet/Delete?Id=
${
params
}
`
)
}
export
const
getPhenomenon
=
()
=>
{
// 获取数据列表————天气工况
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Get'
)
=======
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Add'
,
params
)
return
http
.
post
(
'/api/Scheduling/BizHeatSet/Add'
,
params
)
}
}
...
@@ -92,12 +147,36 @@ export const deleteAnnualParam = params => { // 删除年度参数
...
@@ -92,12 +147,36 @@ export const deleteAnnualParam = params => { // 删除年度参数
export
const
getPhenomenon
=
()
=>
{
// 获取数据列表————天气工况
export
const
getPhenomenon
=
()
=>
{
// 获取数据列表————天气工况
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Get'
)
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Get'
)
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
}
export
const
addPhenomenon
=
params
=>
{
// 新增数据————天气工况
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Add'
,
params
)
}
export
const
alterPhenomenon
=
params
=>
{
// 修改数据————天气工况
export
const
alterPhenomenon
=
params
=>
{
// 修改数据————天气工况
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Update'
,
params
)
return
http
.
post
(
'/api/Scheduling/WeatherCondition/Update'
,
params
)
}
}
export
const
deletePhenomenon
=
params
=>
{
// 删除数据————天气工况
export
const
deletePhenomenon
=
params
=>
{
// 删除数据————天气工况
<<<<<<<
HEAD
return
http
.
post
(
`/api/Scheduling/WeatherCondition/Delete?Id=
${
params
}
`
)
=======
return
http
.
post
(
`/api/Scheduling/WeatherCondition/Delete?Id=
${
params
}
`
)
return
http
.
post
(
`/api/Scheduling/WeatherCondition/Delete?Id=
${
params
}
`
)
>>>>>>>
4
ac876ed216e6184e11a156638cd9a19a43ddb02
}
export
const
getWind
=
()
=>
{
// 获取数据列表————风力配置
return
http
.
post
(
'/api/Scheduling/WindConfiguration/Get'
)
}
export
const
addWind
=
params
=>
{
// 新增数据————风力配置
return
http
.
post
(
'/api/Scheduling/WindConfiguration/Add'
,
params
)
}
export
const
alterWind
=
params
=>
{
// 修改数据————风力配置
return
http
.
post
(
'/api/Scheduling/WindConfiguration/Update'
,
params
)
}
export
const
deleteWind
=
params
=>
{
// 删除数据————风力配置
return
http
.
post
(
`/api/Scheduling/WindConfiguration/Delete?Id=
${
params
}
`
)
}
}
src/views/SchedulingPage/AnnualParamPage.vue
View file @
489feba1
...
@@ -16,6 +16,7 @@ const reviseWindowOpen = ref(false)
...
@@ -16,6 +16,7 @@ const reviseWindowOpen = ref(false)
const
addWindowOpen
=
ref
(
false
)
const
addWindowOpen
=
ref
(
false
)
const
reviseForm
=
ref
({})
const
reviseForm
=
ref
({})
const
addForm
=
ref
({
const
addForm
=
ref
({
supplyId
:
"00000000-0000-0000-0000-000000000000"
,
energyType
:
''
,
energyType
:
''
,
year
:
''
,
year
:
''
,
standard
:
''
,
standard
:
''
,
...
...
src/views/SchedulingPage/PhenomenonPage.vue
View file @
489feba1
<
script
setup
>
<
script
setup
>
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
onMounted
,
ref
}
from
"vue"
;
import
{
ElMessageBox
}
from
"element-plus"
;
import
{
ElMessageBox
}
from
"element-plus"
;
import
{
getPhenomenon
,
alterPhenomenon
,
deletePhenomenon
}
from
"@/api/scheduling.js"
import
{
getPhenomenon
,
a
ddPhenomenon
,
a
lterPhenomenon
,
deletePhenomenon
}
from
"@/api/scheduling.js"
const
data
=
ref
()
const
data
=
ref
()
const
searchKey
=
ref
(
''
)
// 查询参数
const
searchKey
=
ref
(
''
)
// 查询参数
const
reviseWindowOpen
=
ref
(
false
)
const
reviseWindowOpen
=
ref
(
false
)
const
addWindowOpen
=
ref
(
false
)
const
reviseForm
=
ref
({})
// 修改表单
const
reviseForm
=
ref
({})
// 修改表单
const
addForm
=
ref
({})
// 新增表单
const
tableHeaderClass
=
data
=>
{
// 表头样式
const
tableHeaderClass
=
data
=>
{
// 表头样式
return
'table-header-class'
return
'table-header-class'
}
}
...
@@ -14,6 +16,9 @@ const tableBodyClass = data => { // 表体样式
...
@@ -14,6 +16,9 @@ const tableBodyClass = data => { // 表体样式
return
'table-body-class'
return
'table-body-class'
}
}
function
add
(){
addWindowOpen
.
value
=
true
}
// 新增按钮单击事件
function
revise
(
val
){
function
revise
(
val
){
reviseForm
.
value
=
{...
val
}
reviseForm
.
value
=
{...
val
}
reviseWindowOpen
.
value
=
true
reviseWindowOpen
.
value
=
true
...
@@ -36,6 +41,8 @@ function omit(val){
...
@@ -36,6 +41,8 @@ function omit(val){
}
// 删除按钮单击事件
}
// 删除按钮单击事件
function
handleClose
(){
function
handleClose
(){
reviseWindowOpen
.
value
=
false
reviseWindowOpen
.
value
=
false
addWindowOpen
.
value
=
false
resetInput
()
}
// 关闭弹窗
}
// 关闭弹窗
function
onReviseSubmit
(){
function
onReviseSubmit
(){
alterPhenomenon
(
reviseForm
.
value
).
then
(
res
=>
{
alterPhenomenon
(
reviseForm
.
value
).
then
(
res
=>
{
...
@@ -43,7 +50,20 @@ function onReviseSubmit(){
...
@@ -43,7 +50,20 @@ function onReviseSubmit(){
reviseWindowOpen
.
value
=
false
reviseWindowOpen
.
value
=
false
})
})
}
// 修改表单提交
}
// 修改表单提交
function
onAddSubmit
(){
addPhenomenon
(
addForm
.
value
).
then
(
res
=>
{
handleClose
()
getData
()
})
}
// 新增表单提交
function
resetInput
(){
addForm
.
value
=
{
phenomenonName
:
''
,
phenomenonType
:
''
,
phenomenonTemp
:
''
,
phenomenonDesc
:
''
}
}
// 清空新增表单输入框
onMounted
(()
=>
{
onMounted
(()
=>
{
getData
()
getData
()
...
@@ -65,6 +85,7 @@ function getData(){
...
@@ -65,6 +85,7 @@ function getData(){
</el-col>
</el-col>
</el-row>
</el-row>
<el-button
type=
"primary"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"add"
class=
"add-search-btn"
>
新增
</el-button>
</div>
</div>
<div
class=
"table-wrapper"
>
<div
class=
"table-wrapper"
>
<el-table
<el-table
...
@@ -105,6 +126,16 @@ function getData(){
...
@@ -105,6 +126,16 @@ function getData(){
</el-select>
</el-select>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
类型:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"reviseForm.phenomenonType"
style=
"width: 370px"
>
<el-option
value=
"1"
label=
"1"
/>
<el-option
value=
"2"
label=
"2"
/>
<el-option
value=
"3"
label=
"3"
/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-col
:span=
"16"
col-value
>
...
@@ -125,6 +156,52 @@ function getData(){
...
@@ -125,6 +156,52 @@ function getData(){
</div>
</div>
</
template
>
</
template
>
</el-dialog>
<!-- 修改弹窗 -->
</el-dialog>
<!-- 修改弹窗 -->
<el-dialog
title=
"天气工况设置新增"
v-model=
"addWindowOpen"
width=
"700px"
:before-close=
"handleClose"
>
<
template
#
default
>
<el-row
first
>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
名称:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"addForm.phenomenonName"
style=
"width: 370px"
>
<el-option
value=
"晴天"
label=
"晴天"
/>
<el-option
value=
"多云"
label=
"多云"
/>
<el-option
value=
"阴天"
label=
"阴天"
/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
class=
"energy-type-class"
>
类型:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-select
placeholder=
""
size=
"small"
v-model=
"addForm.phenomenonType"
style=
"width: 370px"
>
<el-option
value=
"1"
label=
"1"
/>
<el-option
value=
"2"
label=
"2"
/>
<el-option
value=
"3"
label=
"3"
/>
</el-select>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
对应温度:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.phenomenonTemp"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"8"
col-label
>
描述:
</el-col>
<el-col
:span=
"16"
col-value
>
<el-input
v-model=
"addForm.phenomenonDesc"
placeholder=
""
style=
"width: 370px"
/>
</el-col>
</el-row>
</
template
>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"onAddSubmit"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"handleClose"
>
关闭
</el-button>
</div>
</
template
>
</el-dialog>
<!-- 新增弹窗 -->
</div>
</div>
</div>
</div>
</template>
</template>
...
...
src/views/SchedulingPage/WindManagePage.vue
View file @
489feba1
This diff is collapsed.
Click to expand it.
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