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
71843e84
Commit
71843e84
authored
Aug 09, 2024
by
xuke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
输入格式整改
parent
4b0e0076
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
190 deletions
+37
-190
ConfigBoilerPage.vue
src/views/SchedulingPage/ConfigBoilerPage.vue
+26
-181
EnergyManagePage.vue
src/views/SchedulingPage/EnergyManagePage.vue
+8
-7
InstantHeatPage.vue
src/views/SchedulingPage/InstantHeatPage.vue
+3
-2
No files found.
src/views/SchedulingPage/ConfigBoilerPage.vue
View file @
71843e84
This diff is collapsed.
Click to expand it.
src/views/SchedulingPage/EnergyManagePage.vue
View file @
71843e84
...
@@ -7,6 +7,7 @@ import { postEnergyManage, postEnergyDel, postEnergyUpdate } from "@/api/schedul
...
@@ -7,6 +7,7 @@ import { postEnergyManage, postEnergyDel, postEnergyUpdate } from "@/api/schedul
import
http
from
'../../api/http'
import
http
from
'../../api/http'
import
loading
from
'element-plus'
import
loading
from
'element-plus'
import
store
from
'../../store'
import
store
from
'../../store'
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
{
proxy
}
=
getCurrentInstance
()
const
{
proxy
}
=
getCurrentInstance
()
const
tableData
=
ref
([{}])
const
tableData
=
ref
([{}])
const
formEnergy
=
ref
({
const
formEnergy
=
ref
({
...
@@ -15,7 +16,7 @@ const formEnergy = ref({
...
@@ -15,7 +16,7 @@ const formEnergy = ref({
"energyType"
:
""
,
"energyType"
:
""
,
"record"
:
""
,
"record"
:
""
,
"recordDate"
:
""
,
"recordDate"
:
""
,
"energyName"
:
''
"energyName"
:
''
})
})
const
energyForm
=
ref
()
const
energyForm
=
ref
()
const
dialogVisible
=
ref
(
false
)
const
dialogVisible
=
ref
(
false
)
...
@@ -138,11 +139,11 @@ const handleDelete = async (row) => {
...
@@ -138,11 +139,11 @@ const handleDelete = async (row) => {
type
:
'warning'
,
type
:
'warning'
,
confirmButtonClass
:
'ExitConfirmButton'
confirmButtonClass
:
'ExitConfirmButton'
})
})
const
res
=
await
http
.
get
(
"api/energy/Delete"
,{
params
:{
EnergyId
:
row
.
energyId
}
},
false
)
const
res
=
await
http
.
get
(
"api/energy/Delete"
,
{
params
:
{
EnergyId
:
row
.
energyId
}
},
false
)
if
(
res
.
success
)
{
if
(
res
.
success
)
{
ElMessage
.
success
(
"删除成功"
)
ElMessage
.
success
(
"删除成功"
)
getEnergyData
()
getEnergyData
()
}
else
{
}
else
{
ElMessage
.
error
(
"删除失败"
)
ElMessage
.
error
(
"删除失败"
)
}
}
}
}
...
@@ -174,7 +175,7 @@ const handleEdit = (val) => {
...
@@ -174,7 +175,7 @@ const handleEdit = (val) => {
dialogVisible
.
value
=
true
dialogVisible
.
value
=
true
nextTick
(()
=>
{
nextTick
(()
=>
{
Object
.
assign
(
formEnergy
.
value
,
{
...
val
})
Object
.
assign
(
formEnergy
.
value
,
{
...
val
})
console
.
log
(
"val:"
,
val
);
console
.
log
(
"val:"
,
val
);
// var newArr = []
// var newArr = []
// formEnergy.supplyId.map((item)=> {
// formEnergy.supplyId.map((item)=> {
// newArr.push(item[item.length-1])
// newArr.push(item[item.length-1])
...
@@ -220,7 +221,7 @@ const onSubmit = () => {
...
@@ -220,7 +221,7 @@ const onSubmit = () => {
}
}
})
})
}
}
const
props
=
{
multiple
:
false
,
emitPath
:
false
,
checkStrictly
:
true
}
const
props
=
{
multiple
:
false
,
emitPath
:
false
,
checkStrictly
:
true
}
const
enterpriseId
=
ref
();
const
enterpriseId
=
ref
();
let
supplyIdOptions
=
reactive
([])
let
supplyIdOptions
=
reactive
([])
getEnterprise
();
getEnterprise
();
...
@@ -400,7 +401,7 @@ onMounted(() => {
...
@@ -400,7 +401,7 @@ onMounted(() => {
<tr>
<tr>
<td
style=
"text-align: left;"
>
<td
style=
"text-align: left;"
>
<el-form-item
prop=
"record"
style=
"margin: 0;padding: 0;width: 100%;"
>
<el-form-item
prop=
"record"
style=
"margin: 0;padding: 0;width: 100%;"
>
<el-input
v-model=
"formEnergy.record"
placeholder=
"请输入能源用度"
/>
<el-input
v-
float-number
v-
model=
"formEnergy.record"
placeholder=
"请输入能源用度"
/>
</el-form-item>
</el-form-item>
</td>
</td>
</tr>
</tr>
...
...
src/views/SchedulingPage/InstantHeatPage.vue
View file @
71843e84
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.diffPercentage"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<table
cellpadding=
"0"
cellspacing=
"0"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<tr>
<td
style=
"text-align: left"
>
<td
style=
"text-align: left"
>
<el-input
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
<el-input
v-float-number
style=
"width: 80%"
v-model=
"List.tempRegulation"
></el-input>
</td>
</td>
</tr>
</tr>
</table>
</table>
...
@@ -93,6 +93,7 @@ import { postInstantHeat, postInstantHeatUpdate } from "@/api/scheduling"
...
@@ -93,6 +93,7 @@ import { postInstantHeat, postInstantHeatUpdate } from "@/api/scheduling"
import
{
toRaw
}
from
"@vue/reactivity"
;
import
{
toRaw
}
from
"@vue/reactivity"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
}
from
"element-plus"
;
import
http
from
"../../api/http"
;
import
http
from
"../../api/http"
;
import
{
vFloatNumber
}
from
"@/utils/directives.js"
;
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
...
...
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