Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Nei_Meng_An_Jian_4
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
Nei_Meng_An_Jian_4
Commits
82032d57
Commit
82032d57
authored
Nov 09, 2021
by
liuyuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'2021-11-9'
parent
08902c49
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
370 additions
and
769 deletions
+370
-769
package-lock.json
package-lock.json
+191
-730
BaseLeft.vue
src/components/base/BaseLeft.vue
+5
-1
BaseRight.vue
src/components/base/BaseRight.vue
+2
-3
table.vue
src/components/wkk_environment/table.vue
+83
-17
item.vue
src/components/wkk_item/item.vue
+89
-18
No files found.
package-lock.json
View file @
82032d57
This diff is collapsed.
Click to expand it.
src/components/base/BaseLeft.vue
View file @
82032d57
...
@@ -37,6 +37,10 @@
...
@@ -37,6 +37,10 @@
<div
v-if=
"hidePartBaseInfo"
>
<div
v-if=
"hidePartBaseInfo"
>
<el-row
class=
"text"
>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
尾矿库监测
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(1, 'jyl')"
>
查看
</span></el-col>
</el-row>
<!--
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
降雨量
</el-col>
<el-col
:span=
"12"
>
降雨量
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(1, 'jyl')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(1, 'jyl')"
>
查看
</span></el-col>
</el-row>
</el-row>
...
@@ -69,7 +73,7 @@
...
@@ -69,7 +73,7 @@
<el-row
class=
"text"
>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
内部位移倾斜
</el-col>
<el-col
:span=
"12"
>
内部位移倾斜
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(9, 'nbwyqx')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(9, 'nbwyqx')"
>
查看
</span></el-col>
</el-row>
</el-row>
-->
</div>
</div>
<!--
<el-row
class=
"text"
>
<!--
<el-row
class=
"text"
>
...
...
src/components/base/BaseRight.vue
View file @
82032d57
...
@@ -121,6 +121,7 @@ export default {
...
@@ -121,6 +121,7 @@ export default {
obj
:
item
,
obj
:
item
,
})
})
}
}
console
.
log
(
this
.
listText
,
'
this.listText
'
)
})
})
this
.
$store
.
commit
(
'
SET_deptData
'
,
res
.
content
)
this
.
$store
.
commit
(
'
SET_deptData
'
,
res
.
content
)
...
@@ -177,9 +178,7 @@ export default {
...
@@ -177,9 +178,7 @@ export default {
}
}
}
}
/* for (let i of this.listText) {
i.is = false
} */
},
},
},
},
}
}
...
...
src/components/wkk_environment/table.vue
View file @
82032d57
...
@@ -14,23 +14,44 @@
...
@@ -14,23 +14,44 @@
<el-button
type=
"primary"
@
click=
"core"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"core"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"onVisual"
>
可视化
</el-button>
<el-button
type=
"primary"
@
click=
"onVisual"
>
可视化
</el-button>
</div>
-->
</div>
-->
<el-table
:data=
"tableData"
style=
"width: 100%"
height=
"55vh"
>
<div
class=
"tools-wrapper"
>
<el-table-column
prop=
"company"
label=
"企业站点"
>
<div
class=
"device-wrapper"
>
<template>
<span>
设备标识:
</span>
<span>
{{
companyName
}}
</span>
<el-select>
</
template
>
<el-option
label=
"400中段风速"
value=
"400中段风速"
></el-option>
</el-table-column>
<el-option
label=
"2 5 0 进风巷 风速"
value=
"2 5 0 进风巷 风速"
></el-option>
<el-table-column
prop=
"location"
label=
"采集站"
></el-table-column>
<el-option
label=
"3 0 0 进风巷 风速"
value=
"3 0 0 进风巷 风速"
></el-option>
<el-table-column
prop=
"item"
label=
"检测项"
></el-table-column>
<el-option
label=
"7 1线温度"
value=
"7 1线温度"
></el-option>
<el-table-column
prop=
"value"
label=
"数据值"
>
<el-option
label=
"71二氧化碳"
value=
"71二氧化碳"
></el-option>
<
template
slot-scope=
"scope"
>
</el-select>
{{
scope
.
row
.
value
.
trim
()
!==
void
0
?
scope
.
row
.
value
.
trim
()
+
'
'
+
(
itemUnit
[
scope
.
row
.
item
.
trim
()]
||
''
)
:
''
}}
<el-button
type=
"success"
size=
"medium"
>
查询
</el-button>
</
template
>
</div>
</el-table-column>
<div
class=
"switch-wrapper"
>
<el-table-column
prop=
"deviceid"
label=
"设备标识"
></el-table-column>
<el-button
type=
"primary"
size=
"medium"
@
click.stop=
"clickToSwitchTable"
>
切换
</el-button>
<el-table-column
prop=
"insertTime"
label=
"采集时间"
></el-table-column>
</div>
</el-table>
</div>
<el-pagination
layout=
"prev, pager, next"
:total=
"total"
@
current-change=
"handleCurrentChange"
></el-pagination>
<div
v-show=
"switchTable"
>
<el-table
:data=
"tableData"
style=
"width: 100%"
height=
"55vh"
>
<el-table-column
prop=
"company"
label=
"企业站点"
>
<template>
<span>
{{
companyName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"location"
label=
"采集站"
></el-table-column>
<el-table-column
prop=
"item"
label=
"检测项"
></el-table-column>
<el-table-column
prop=
"value"
label=
"数据值"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
value
.
trim
()
!==
void
0
?
scope
.
row
.
value
.
trim
()
+
'
'
+
(
itemUnit
[
scope
.
row
.
item
.
trim
()]
||
''
)
:
''
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"deviceid"
label=
"设备标识"
></el-table-column>
<el-table-column
prop=
"insertTime"
label=
"采集时间"
></el-table-column>
</el-table>
<el-pagination
layout=
"prev, pager, next"
:total=
"total"
@
current-change=
"handleCurrentChange"
></el-pagination>
</div>
<div
v-show=
"!switchTable"
id=
"enterStatistics"
style=
"width: 100%; height: 55vh"
>
</div>
</el-dialog>
</el-dialog>
</template>
</template>
...
@@ -49,6 +70,10 @@ export default {
...
@@ -49,6 +70,10 @@ export default {
page
:
0
,
page
:
0
,
companyName
:
''
,
companyName
:
''
,
itemUnit
:
getValueUnit
(),
itemUnit
:
getValueUnit
(),
// 设备标识
deviceIds
:
[],
// 切换
switchTable
:
true
}
}
},
},
...
@@ -91,6 +116,35 @@ export default {
...
@@ -91,6 +116,35 @@ export default {
this
.
page
=
e
-
1
this
.
page
=
e
-
1
this
.
core
()
this
.
core
()
},
},
clickToSwitchTable
()
{
// 切换图标
this
.
switchTable
=
!
this
.
switchTable
if
(
this
.
switchTable
===
false
)
{
this
.
$nextTick
(()
=>
{
// 画图表
console
.
log
(
echarts
,
'
有echarts吗
'
)
const
mychart
=
echarts
.
init
(
document
.
getElementById
(
'
enterStatistics
'
))
mychart
.
clear
()
const
option
=
{
xAxis
:
{
type
:
'
category
'
,
data
:
[
'
19:17
'
,
'
20:20
'
,
'
20:40
'
,
'
21:30
'
,
'
21:45
'
,
'
21:50
'
,
'
21:55
'
,
'
22:00
'
,
'
22:11
'
]
},
yAxis
:
{
type
:
'
value
'
},
series
:
[
{
data
:
[
150
,
230
,
224
,
118
,
110
,
55
,
280
,
360
,
780
],
type
:
'
line
'
}
]
}
mychart
.
setOption
(
option
)
})
}
}
},
},
computed
:
{
computed
:
{
...
@@ -131,4 +185,16 @@ export default {
...
@@ -131,4 +185,16 @@ export default {
}
}
}
}
}
}
.tools-wrapper
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.device-wrapper
{
margin-left
:
40px
;
}
.switch-wrapper
{
margin-right
:
40px
;
}
margin-bottom
:
10px
;
}
</
style
>
</
style
>
src/components/wkk_item/item.vue
View file @
82032d57
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