Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
E
energyai_vue
Project
Project
Details
Activity
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
葛齐林
energyai_vue
Commits
9a41b040
Commit
9a41b040
authored
May 06, 2021
by
co_dengxiongwen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面调整
parent
66e964ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
11 deletions
+30
-11
page.vue
src/pages/kb/power/page.vue
+4
-3
add-or-update.vue
src/pages/sys/point/add-or-update.vue
+24
-7
index.vue
src/pages/sys/point/index.vue
+2
-1
No files found.
src/pages/kb/power/page.vue
View file @
9a41b040
...
@@ -46,9 +46,10 @@
...
@@ -46,9 +46,10 @@
v-model=
"formData.status"
v-model=
"formData.status"
clearable
clearable
>
>
<el-option
label=
"在线"
value=
"1"
></el-option>
<el-option
label=
"运行"
value=
"1"
></el-option>
<el-option
label=
"离线"
value=
"2"
></el-option>
<el-option
label=
"停止"
value=
"2"
></el-option>
<el-option
label=
"故障"
value=
"3"
></el-option>
<el-option
label=
"离线"
value=
"3"
></el-option>
<el-option
label=
"故障"
value=
"4"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
...
src/pages/sys/point/add-or-update.vue
View file @
9a41b040
...
@@ -48,6 +48,9 @@
...
@@ -48,6 +48,9 @@
el-form-item(label='所属区域:' prop='region')
el-form-item(label='所属区域:' prop='region')
el-select(v-model="dataForm.region" placeholder="请选择所属区域" )
el-select(v-model="dataForm.region" placeholder="请选择所属区域" )
el-option(v-for="(item,index) in regionList" :key="index" :label="item.name" :value="item.id" :code="item.id")
el-option(v-for="(item,index) in regionList" :key="index" :label="item.name" :value="item.id" :code="item.id")
el-form-item(label='人工模式:' prop='modeTypes')
el-checkbox-group(v-model="dataForm.modeTypes" placeholder="请选择人工模式" clearable)
el-checkbox(v-for="(item, index) in modeList" :key="index" :label="item.id")
{{
item
.
name
}}
el-form-item(label='部署位置:' prop='deployLocation')
el-form-item(label='部署位置:' prop='deployLocation')
el-input(v-model='dataForm.deployLocation' placeholder='请填写部署位置')
el-input(v-model='dataForm.deployLocation' placeholder='请填写部署位置')
el-row( class='info-block' style="margin-top: 20px;")
el-row( class='info-block' style="margin-top: 20px;")
...
@@ -107,6 +110,11 @@ export default {
...
@@ -107,6 +110,11 @@ export default {
{
id
:
2
,
name
:
'办公区域'
},
{
id
:
2
,
name
:
'办公区域'
},
{
id
:
3
,
name
:
'屋顶'
}
{
id
:
3
,
name
:
'屋顶'
}
],
],
modeList
:
[
{
id
:
'1'
,
name
:
'供暖模式'
},
{
id
:
'2'
,
name
:
'机械通风'
},
{
id
:
'3'
,
name
:
'自然通风'
}
],
icon
:
{},
icon
:
{},
list
:
[],
list
:
[],
typeList
:
[],
typeList
:
[],
...
@@ -119,6 +127,7 @@ export default {
...
@@ -119,6 +127,7 @@ export default {
name
:
''
,
name
:
''
,
code
:
''
,
code
:
''
,
type
:
''
,
type
:
''
,
modeTypes
:
[],
equipmentModel
:
''
,
equipmentModel
:
''
,
maxPower
:
''
,
maxPower
:
''
,
installDate
:
null
,
installDate
:
null
,
...
@@ -296,12 +305,13 @@ export default {
...
@@ -296,12 +305,13 @@ export default {
})
})
})
})
//点击事件
//点击事件
this
.
mapDialog
.
on
(
'click'
,
function
(
evt
)
{
this
.
mapDialog
.
on
(
'click'
,
function
(
evt
)
{
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
evt
.
pixel
,
function
(
let
feature
=
evt
.
map
.
forEachFeatureAtPixel
(
feature
evt
.
pixel
,
)
{
function
(
feature
)
{
return
feature
return
feature
})
}
)
if
(
feature
)
{
if
(
feature
)
{
for
(
let
i
in
that
.
list
)
{
for
(
let
i
in
that
.
list
)
{
if
(
feature
.
getId
()
===
that
.
list
[
i
].
id
)
{
if
(
feature
.
getId
()
===
that
.
list
[
i
].
id
)
{
...
@@ -331,8 +341,12 @@ export default {
...
@@ -331,8 +341,12 @@ export default {
this
.
visible
=
true
this
.
visible
=
true
if
(
bean
)
{
if
(
bean
)
{
this
.
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
bean
))
this
.
dataForm
=
JSON
.
parse
(
JSON
.
stringify
(
bean
))
if
(
this
.
dataForm
.
modeTypes
)
{
console
.
log
(
'111111:'
)
this
.
dataForm
.
modeTypes
=
this
.
dataForm
.
modeTypes
.
split
(
','
)
}
}
}
console
.
log
(
'dataForm:'
,
this
.
dataForm
)
this
.
dataForm
.
operatorName
=
this
.
info
.
name
this
.
dataForm
.
operatorName
=
this
.
info
.
name
this
.
initResourceTypeDicList
()
this
.
initResourceTypeDicList
()
this
.
initBrandDicList
()
this
.
initBrandDicList
()
...
@@ -484,6 +498,9 @@ export default {
...
@@ -484,6 +498,9 @@ export default {
this
.
$emit
(
'addNotify'
,
message
)
this
.
$emit
(
'addNotify'
,
message
)
return
return
}
}
if
(
this
.
dataForm
.
modeTypes
)
{
this
.
dataForm
.
modeTypes
=
this
.
dataForm
.
modeTypes
.
join
(
','
)
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$emit
(
'refreshBean'
,
this
.
dataForm
)
this
.
$emit
(
'refreshBean'
,
this
.
dataForm
)
this
.
$emit
(
'refreshdatalist'
,
this
.
dataForm
)
this
.
$emit
(
'refreshdatalist'
,
this
.
dataForm
)
...
...
src/pages/sys/point/index.vue
View file @
9a41b040
...
@@ -737,6 +737,7 @@ export default {
...
@@ -737,6 +737,7 @@ export default {
tierId
:
this
.
checkedData
.
tierId
,
tierId
:
this
.
checkedData
.
tierId
,
tierName
:
this
.
checkedData
.
tierName
,
tierName
:
this
.
checkedData
.
tierName
,
type
:
item
.
id
,
type
:
item
.
id
,
modeTypes
:
''
,
equipmentModel
:
''
,
equipmentModel
:
''
,
maxPower
:
''
,
maxPower
:
''
,
installDate
:
null
,
installDate
:
null
,
...
@@ -1150,7 +1151,7 @@ export default {
...
@@ -1150,7 +1151,7 @@ export default {
return
false
return
false
}
}
})
})
// console.log(this.l
ist)
console
.
log
(
'paramList:'
,
paramL
ist
)
this
.
submitlDisabled
=
true
this
.
submitlDisabled
=
true
if
(
flag
)
{
if
(
flag
)
{
this
.
$http
({
this
.
$http
({
...
...
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