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
08902c49
Commit
08902c49
authored
Nov 08, 2021
by
Kimber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'up'
parent
1ccfa5b6
Changes
17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
529 additions
and
159 deletions
+529
-159
package.json
package.json
+1
-1
tian_qi2.png
public/image/tian_qi2.png
+0
-0
index.js
src/api/index.js
+22
-2
weikuangku.js
src/api/weikuangku.js
+28
-0
BaseLeft.vue
src/components/base/BaseLeft.vue
+9
-4
BaseRight.vue
src/components/base/BaseRight.vue
+37
-10
CommVideo.vue
src/components/comm/CommVideo.vue
+27
-25
dxkqDialog.vue
src/components/dxkq/dxkqDialog.vue
+5
-1
dxkqZongHe.vue
src/components/dxkq/dxkqZongHe.vue
+12
-1
HomeMap.vue
src/components/home/HomeMap.vue
+37
-25
ltkZongHe.vue
src/components/ltk/ltkZongHe.vue
+11
-1
table.vue
src/components/wkk_environment/table.vue
+7
-3
item.vue
src/components/wkk_item/item.vue
+242
-79
index.js
src/mixins/index.js
+22
-4
index.js
src/utils/index.js
+50
-1
request4.js
src/utils/request4.js
+5
-2
vue.config.js
vue.config.js
+14
-0
No files found.
package.json
View file @
08902c49
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
"version"
:
"0.1.0"
,
"version"
:
"0.1.0"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"
serve
"
:
"vue-cli-service serve"
,
"
dev
"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
"build"
:
"vue-cli-service build"
},
},
"dependencies"
:
{
"dependencies"
:
{
...
...
public/image/tian_qi2.png
0 → 100644
View file @
08902c49
2.19 KB
src/api/index.js
View file @
08902c49
...
@@ -202,7 +202,7 @@ export function start(data) {
...
@@ -202,7 +202,7 @@ export function start(data) {
// 隐患
// 隐患
export
function
findHiddenTimeout
(
data
)
{
export
function
findHiddenTimeout
(
data
)
{
return
request
4
({
return
request
2
({
url
:
"
api/hiddenTroubleCheck/findAllwarningHiddenTrouble
"
,
url
:
"
api/hiddenTroubleCheck/findAllwarningHiddenTrouble
"
,
method
:
"
get
"
,
method
:
"
get
"
,
params
:
data
params
:
data
...
@@ -211,7 +211,7 @@ export function findHiddenTimeout(data) {
...
@@ -211,7 +211,7 @@ export function findHiddenTimeout(data) {
// 重大隐患
// 重大隐患
export
function
undergroundSeriousHiddenTrouble
(
data
)
{
export
function
undergroundSeriousHiddenTrouble
(
data
)
{
return
request
4
({
return
request
2
({
url
:
"
/api/undergroundSeriousHiddenTrouble/warn
"
,
url
:
"
/api/undergroundSeriousHiddenTrouble/warn
"
,
method
:
"
get
"
,
method
:
"
get
"
,
params
:
data
params
:
data
...
@@ -226,3 +226,23 @@ export function weather(data) {
...
@@ -226,3 +226,23 @@ export function weather(data) {
params
:
data
params
:
data
});
});
}
}
// 新气象接口
export
function
getWeather
(
data
)
{
return
request4
({
url
:
'
/weather
'
,
method
:
'
get
'
,
params
:
data
,
data
:
data
})
}
// 突发事件报警
export
function
getEmergency
(
param
)
{
return
request2
({
url
:
'
api/emergency
'
,
method
:
'
get
'
,
data
:
{},
params
:
param
})
}
\ No newline at end of file
src/api/weikuangku.js
View file @
08902c49
...
@@ -91,3 +91,31 @@ export function wkkNeiBuWeiYiChenJiang(data) {
...
@@ -91,3 +91,31 @@ export function wkkNeiBuWeiYiChenJiang(data) {
});
});
}
}
// 内部位移沉降
export
function
personSelectList
(
data
)
{
return
request5
({
url
:
"
api/personnelRealTimeData/distinctCurrentBaseStationByCompanycode
"
,
method
:
"
get
"
,
params
:
data
});
}
// 人员定位统计
export
function
findPersonLocationStatistic
(
data
)
{
return
request5
({
url
:
"
api/personnelRealTimeData/countEachZonePeople
"
,
method
:
"
get
"
,
params
:
data
});
}
// 尾矿库报警 新
export
function
wkkAlarm
(
data
)
{
return
request5
({
url
:
"
api/alarm
"
,
method
:
"
get
"
,
params
:
data
});
}
\ No newline at end of file
src/components/base/BaseLeft.vue
View file @
08902c49
...
@@ -30,6 +30,11 @@
...
@@ -30,6 +30,11 @@
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(0, 'rydw')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(0, 'rydw')"
>
查看
</span></el-col>
</el-row>
</el-row>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
人员定位统计
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(0, 'rydwtj')"
>
查看
</span></el-col>
</el-row>
<div
v-if=
"hidePartBaseInfo"
>
<div
v-if=
"hidePartBaseInfo"
>
<el-row
class=
"text"
>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
降雨量
</el-col>
<el-col
:span=
"12"
>
降雨量
</el-col>
...
@@ -67,14 +72,14 @@
...
@@ -67,14 +72,14 @@
</el-row>
</el-row>
</div>
</div>
<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(7, 'yjz')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(7, 'yjz')"
>
查看
</span></el-col>
</el-row>
</el-row>
-->
<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(6, '
yj
')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(6, '
bjjl
')"
>
查看
</span></el-col>
</el-row>
</el-row>
<el-row
class=
"text"
>
<el-row
class=
"text"
>
...
@@ -273,7 +278,7 @@ export default {
...
@@ -273,7 +278,7 @@ export default {
}
}
.base-type
{
.base-type
{
height
:
37vh
;
min-
height
:
37vh
;
}
}
}
}
}
}
...
...
src/components/base/BaseRight.vue
View file @
08902c49
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<span>
{{
tian_qi_data
.
wea
}}
</span>
<span>
{{
tian_qi_data
.
wea
}}
</span>
<span>
{{
tian_qi_data
.
win
+
tian_qi_data
.
win_speed
}}
</span>
-->
<span>
{{
tian_qi_data
.
win
+
tian_qi_data
.
win_speed
}}
</span>
-->
<div
style=
"font-size: 2vw"
>
<div
style=
"font-size: 2vw"
>
<img
src=
"@/assets/images/tian_qi2.png
"
alt=
""
/>
<img
:src=
"tian_qi_data.img || '/image/tian_qi2.png'
"
alt=
""
/>
</div>
</div>
<span>
{{
tian_qi_data
.
air_level
}}
</span>
<span>
{{
tian_qi_data
.
air_level
}}
</span>
<span>
{{
tian_qi_data
.
temp
}}
</span>
<span>
{{
tian_qi_data
.
temp
}}
</span>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<
script
>
<
script
>
import
{
randNum
}
from
'
@/utils
'
import
{
randNum
}
from
'
@/utils
'
import
{
dept
,
weather
}
from
'
@/api
'
import
{
dept
,
/* weather, */
getWeather
}
from
'
@/api
'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -53,8 +53,35 @@ export default {
...
@@ -53,8 +53,35 @@ export default {
this.tian_qi_data = res.data
this.tian_qi_data = res.data
}) */
}) */
var
that
=
this
;
var
that
=
this
;
weather
({}).
then
(
function
(
res
){
getWeather
({
c
:
'
code
'
,
id
:
12
,
icon
:
1
,
num
:
3
,
py
:
'
neimenggu
'
}).
then
(
function
(
res
){
if
(
res
.
replace
(
/
\s
+/g
,
''
)){
var
body
=
document
.
createElement
(
"
div
"
);
setTimeout
(
function
(){
body
.
innerHTML
=
res
;
var
styles
=
body
.
querySelectorAll
(
"
link
"
);
for
(
var
style
of
styles
){
body
.
removeChild
(
style
)
};
var
scripts
=
body
.
querySelectorAll
(
"
script
"
);
for
(
var
script
of
scripts
){
script
.
parentNode
.
removeChild
(
script
)
};
var
day_1
=
body
.
querySelector
(
"
#day_1
"
);
var
img
=
day_1
.
querySelector
(
"
.pngtqico
"
);
var
wtline
=
day_1
.
querySelector
(
"
.wtline
"
).
nextElementSibling
;
var
flag
=
day_1
.
parentNode
.
title
;
var
temp
=
wtline
.
innerText
;
var
div2
=
document
.
createElement
(
"
p
"
);
div2
.
innerHTML
=
img
.
outerHTML
;
that
.
tian_qi_data
=
{
temp
:
temp
,
wea
:
flag
,
img
:
'
http://i.tianqi.com/static
'
+
img
.
src
.
split
(
'
/static
'
)[
1
],
}
},
300
);
/* if(res.replace(/\s+/g, '')){
var str = res.replace(/(\r\n)|(\n)/g, '&').split(/&&|&/g);
var str = res.replace(/(\r\n)|(\n)/g, '&').split(/&&|&/g);
var todayStr = str[1];
var todayStr = str[1];
if(todayStr){
if(todayStr){
...
@@ -70,7 +97,7 @@ export default {
...
@@ -70,7 +97,7 @@ export default {
};
};
that.tian_qi_data = data;
that.tian_qi_data = data;
};
};
};
};
*/
})
})
this
.
dept
()
this
.
dept
()
...
@@ -81,7 +108,7 @@ export default {
...
@@ -81,7 +108,7 @@ export default {
dept
()
{
dept
()
{
dept
().
then
(
res
=>
{
dept
().
then
(
res
=>
{
this
.
listText
=
[]
this
.
listText
=
[]
this
.
listAll
=
res
this
.
listAll
=
res
;
res
.
content
.
map
(
item
=>
{
res
.
content
.
map
(
item
=>
{
if
(
item
.
name
==
'
东乌珠穆沁旗应急管理局
'
)
{
if
(
item
.
name
==
'
东乌珠穆沁旗应急管理局
'
)
{
return
return
...
@@ -130,9 +157,9 @@ export default {
...
@@ -130,9 +157,9 @@ export default {
watch
:
{
watch
:
{
title
(
e
)
{
title
(
e
)
{
let
select_item
=
this
.
$store
.
state
.
select_item
let
select_item
=
this
.
$store
.
state
.
select_item
this
.
listText
=
[]
this
.
listText
=
[]
;
for
(
let
name
of
select_item
)
{
for
(
let
name
of
select_item
)
{
if
(
name
.
value
==
e
)
{
if
(
name
.
value
==
e
&&
this
.
listAll
.
content
)
{
this
.
listAll
.
content
.
map
(
item
=>
{
this
.
listAll
.
content
.
map
(
item
=>
{
if
(
item
.
name
==
'
东乌珠穆沁旗应急管理局
'
)
{
if
(
item
.
name
==
'
东乌珠穆沁旗应急管理局
'
)
{
return
return
...
@@ -150,9 +177,9 @@ export default {
...
@@ -150,9 +177,9 @@ export default {
}
}
}
}
for
(
let
i
of
this
.
listText
)
{
/*
for (let i of this.listText) {
i.is = false
i.is = false
}
}
*/
},
},
},
},
}
}
...
...
src/components/comm/CommVideo.vue
View file @
08902c49
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
return
return
}
}
let
indexVideo
=
0
let
indexVideo
=
0
;
for
(
let
item
of
data
.
list
)
{
for
(
let
item
of
data
.
list
)
{
start
(
start
(
{
{
...
@@ -143,30 +143,32 @@ export default {
...
@@ -143,30 +143,32 @@ export default {
code
:
item
.
code
,
code
:
item
.
code
,
}
}
).
then
(
res
=>
{
).
then
(
res
=>
{
if
(
res
&&
res
.
WS_FLV
)
{
if
(
typeof
res
===
'
object
'
){
this
.
dataList
.
push
(
res
)
if
(
res
&&
res
.
WS_FLV
)
{
}
this
.
dataList
.
push
(
res
)
indexVideo
++
}
let
dataLen
=
data
.
list
.
length
;
let
dataLen
=
data
.
list
.
length
;
if
(
dataLen
==
indexVideo
)
{
if
(
0
===
indexVideo
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
let
len
=
this
.
dataList
.
length
let
len
=
this
.
dataList
.
length
if
(
len
<
16
)
{
if
(
len
<
16
)
{
for
(
let
i
=
0
;
i
<
16
-
len
;
i
++
)
{
for
(
let
i
=
0
;
i
<
16
-
len
;
i
++
)
{
this
.
dataList
.
push
(
''
)
this
.
dataList
.
push
(
''
)
}
}
};
};
this
.
loading
=
false
this
.
loading
=
false
this
.
isVideo
=
true
this
.
isVideo
=
true
this
.
videoList
=
this
.
dataList
.
slice
(
0
,
1
);
this
.
videoList
=
this
.
dataList
.
slice
(
0
,
1
);
var
item
=
this
.
videoList
[
0
];
var
item
=
this
.
videoList
[
0
];
if
(
item
&&
res
.
WS_FLV
){
if
(
item
&&
res
.
WS_FLV
){
this
.
videoItem
=
item
;
this
.
videoItem
=
item
;
};
};
},
100
)
},
100
)
}
};
indexVideo
++
};
})
})
}
}
});
});
...
...
src/components/dxkq/dxkqDialog.vue
View file @
08902c49
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
<
script
>
<
script
>
import
{
environment
}
from
'
@/api/weikuangku
'
import
{
environment
}
from
'
@/api/weikuangku
'
import
{
getValueUnit
,
getCompanyCodes
}
from
'
@/utils
'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -29,11 +30,14 @@ export default {
...
@@ -29,11 +30,14 @@ export default {
},
},
environmentData
()
{
environmentData
()
{
var
componyName
=
this
.
$store
.
state
.
compony_info
.
name
;
var
companycode
=
getCompanyCodes
()[
componyName
];
const
params
=
{
const
params
=
{
page
:
this
.
page_index
,
page
:
this
.
page_index
,
size
:
10
,
size
:
10
,
sort
:
'
id,desc
'
,
sort
:
'
id,desc
'
,
item
:
'
可燃气体
'
item
:
'
可燃气体
'
,
companycode
:
companycode
,
}
}
environment
(
params
).
then
(
res
=>
{
environment
(
params
).
then
(
res
=>
{
let
content
=
res
.
content
let
content
=
res
.
content
...
...
src/components/dxkq/dxkqZongHe.vue
View file @
08902c49
...
@@ -24,8 +24,15 @@
...
@@ -24,8 +24,15 @@
<el-col
:span=
"12"
>
可燃性气体浓度
</el-col>
<el-col
:span=
"12"
>
可燃性气体浓度
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(1, 'third')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(1, 'third')"
>
查看
</span></el-col>
</el-row>
</el-row>
<div>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
三维
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onClickthree"
>
查看
</span></el-col>
</el-row>
</div>
</div>
</div>
<br
/>
<br
/>
...
@@ -45,7 +52,10 @@ import LivePlayer from '@liveqing/liveplayer'
...
@@ -45,7 +52,10 @@ import LivePlayer from '@liveqing/liveplayer'
import
eventBus
from
'
@/utils/eventbus
'
import
eventBus
from
'
@/utils/eventbus
'
import
{
grouptree
,
start
}
from
'
@/api
'
import
{
grouptree
,
start
}
from
'
@/api
'
import
mixin_index
from
'
@/mixins
'
export
default
{
export
default
{
mixins
:
[
mixin_index
],
data
()
{
data
()
{
return
{
return
{
dataObj
:
''
,
dataObj
:
''
,
...
@@ -93,6 +103,7 @@ export default {
...
@@ -93,6 +103,7 @@ export default {
grouptree
().
then
(
res
=>
{
grouptree
().
then
(
res
=>
{
const
serial
=
res
[
0
].
serial
const
serial
=
res
[
0
].
serial
this
.
loading
=
true
this
.
loading
=
true
grouptree
({
grouptree
({
serial
,
serial
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/components/home/HomeMap.vue
View file @
08902c49
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
dept
}
from
'
@/api
'
import
{
dept
,
getEmergency
}
from
'
@/api
'
export
default
{
export
default
{
name
:
'
home-map
'
,
name
:
'
home-map
'
,
...
@@ -65,7 +65,8 @@ export default {
...
@@ -65,7 +65,8 @@ export default {
// 企业管理
// 企业管理
dept
().
then
(
res
=>
{
dept
().
then
(
res
=>
{
let
select_item
=
this
.
$store
.
state
.
select_item
let
select_item
=
this
.
$store
.
state
.
select_item
let
arr
=
[]
let
arr
=
[];
res
.
content
.
map
(
item
=>
{
res
.
content
.
map
(
item
=>
{
for
(
let
i
of
select_item
)
{
for
(
let
i
of
select_item
)
{
if
(
item
.
type
==
i
.
id
)
{
if
(
item
.
type
==
i
.
id
)
{
...
@@ -74,37 +75,44 @@ export default {
...
@@ -74,37 +75,44 @@ export default {
}
}
if
(
item
.
typeName
)
{
if
(
item
.
typeName
)
{
var
url
if
(
item
.
jd
&&
!
item
.
jd
.
match
(
/°|′/
)){
if
(
item
.
typeName
==
'
非煤矿山
'
)
{
arr
.
push
({
url
=
'
/image/fei.png
'
title
:
item
.
name
,
}
typeName
:
item
.
typeName
,
position
:
[
item
.
jd
,
item
.
wd
],
address
:
item
.
address
,
label
:
{
tip
:
[
item
.
typeName
],
},
});
};
}
});
if
(
item
.
typeName
==
'
煤矿
'
)
{
url
=
'
/image/mei.png
'
}
if
(
item
.
typeName
==
'
危险化学品企业
'
)
{
url
=
'
/image/hua.png
'
}
//突发事件
getEmergency
({
sort
:
'
emergencyTime,desc
'
}).
then
(
res
=>
{
//var select_item = this.$store.state.select_item;
var
list
=
res
.
content
||
[];
for
(
var
item
of
list
){
arr
.
push
({
arr
.
push
({
title
:
item
.
name
,
title
:
item
.
emergencyTitle
+
'
(
'
+
item
.
emergencyContent
+
'
)
'
,
typeName
:
item
.
typeName
,
typeName
:
item
.
emergencyContent
,
position
:
[
item
.
jd
,
item
.
wd
],
position
:
[
item
.
emergencyLng
,
item
.
emergencyLat
],
address
:
item
.
address
,
address
:
item
.
emergencyPlace
,
url
,
label
:
{
label
:
{
tip
:
[
item
.
typeNam
e
],
tip
:
[
item
.
emergencyTitl
e
],
},
},
item
,
type
:
226
,
})
})
}
};
})
this
.
markerArr
=
arr
this
.
onMarker
(
map
)
});
});
this
.
markerArr
=
arr
this
.
onMarker
(
map
)
})
this
.
$store
.
commit
(
'
SET_APP_MAP
'
,
map
)
this
.
$store
.
commit
(
'
SET_APP_MAP
'
,
map
)
this
.
init
(
map
)
this
.
init
(
map
)
...
@@ -199,6 +207,10 @@ export default {
...
@@ -199,6 +207,10 @@ export default {
url
=
'
/image/hua.png
'
url
=
'
/image/hua.png
'
}
}
if
(
item
.
type
==
226
)
{
url
=
'
https://webapi.amap.com/theme/v1.3/markers/n/mark_rs.png
'
};
var
icon
=
new
AMap
.
Icon
({
var
icon
=
new
AMap
.
Icon
({
image
:
url
,
image
:
url
,
size
:
new
AMap
.
Size
(
36
,
36
),
size
:
new
AMap
.
Size
(
36
,
36
),
...
...
src/components/ltk/ltkZongHe.vue
View file @
08902c49
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<img
src=
"@/assets/images/error.png"
@
click=
"onClickDel"
>
<img
src=
"@/assets/images/error.png"
@
click=
"onClickDel"
>
<div
class=
"base_left_box_line"
>
<div
class=
"base_left_box_line"
>
<div
class=
"title"
>
基础信息
</div>
<div
class=
"title"
>
基础信息
44
</div>
<el-row
class=
"text"
>
<el-row
class=
"text"
>
<el-col
:span=
"8"
>
名称
</el-col>
<el-col
:span=
"8"
>
名称
</el-col>
...
@@ -42,6 +42,13 @@
...
@@ -42,6 +42,13 @@
<el-col
:span=
"12"
>
车辆信息
</el-col>
<el-col
:span=
"12"
>
车辆信息
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(4, 'fourth')"
>
查看
</span></el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onTextLook(4, 'fourth')"
>
查看
</span></el-col>
</el-row>
</el-row>
<div>
<el-row
class=
"text"
>
<el-col
:span=
"12"
>
三维
</el-col>
<el-col
class=
"text_look"
:span=
"12"
><span
@
click=
"onClickthree"
>
查看
</span></el-col>
</el-row>
</div>
</div>
</div>
<div
class=
"base_left_box_line"
>
<div
class=
"base_left_box_line"
>
...
@@ -86,7 +93,10 @@ import LivePlayer from '@liveqing/liveplayer'
...
@@ -86,7 +93,10 @@ import LivePlayer from '@liveqing/liveplayer'
import
eventBus
from
"
@/utils/eventbus
"
import
eventBus
from
"
@/utils/eventbus
"
import
LineChart
from
'
@/components/Echarts/LineChart
'
import
LineChart
from
'
@/components/Echarts/LineChart
'
import
mixin_index
from
'
@/mixins
'
export
default
{
export
default
{
mixins
:
[
mixin_index
],
data
()
{
data
()
{
return
{
return
{
dataObj
:
''
,
dataObj
:
''
,
...
...
src/components/wkk_environment/table.vue
View file @
08902c49
...
@@ -22,7 +22,11 @@
...
@@ -22,7 +22,11 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"location"
label=
"采集站"
></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=
"item"
label=
"检测项"
></el-table-column>
<el-table-column
prop=
"value"
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=
"deviceid"
label=
"设备标识"
></el-table-column>
<el-table-column
prop=
"insertTime"
label=
"采集时间"
></el-table-column>
<el-table-column
prop=
"insertTime"
label=
"采集时间"
></el-table-column>
</el-table>
</el-table>
...
@@ -31,7 +35,7 @@
...
@@ -31,7 +35,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
timeParse
,
randNum
}
from
'
@/utils
'
import
{
timeParse
,
randNum
,
getValueUnit
}
from
'
@/utils
'
import
{
environment
}
from
'
@/api/weikuangku
'
import
{
environment
}
from
'
@/api/weikuangku
'
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -43,8 +47,8 @@ export default {
...
@@ -43,8 +47,8 @@ export default {
tableData
:
[],
tableData
:
[],
total
:
0
,
total
:
0
,
page
:
0
,
page
:
0
,
companyName
:
''
,
companyName
:
''
,
itemUnit
:
getValueUnit
(),
}
}
},
},
...
...
src/components/wkk_item/item.vue
View file @
08902c49
This diff is collapsed.
Click to expand it.
src/mixins/index.js
View file @
08902c49
...
@@ -9,18 +9,36 @@ export default {
...
@@ -9,18 +9,36 @@ export default {
// 展示三维
// 展示三维
onClickthree
()
{
onClickthree
()
{
let
title
=
this
.
$store
.
state
.
compony_info
.
name
;
let
title
=
this
.
$store
.
state
.
compony_info
.
name
;
if
(
title
==
'
锡林矿业
'
)
{
if
(
title
==
'
锡林矿业
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/
three/?id=5
'
,
'
_blank
'
);
window
.
open
(
'
http://dwqdp.jingkongyun.com/
xilin/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
融冠矿业
'
)
{
}
else
if
(
title
==
'
融冠矿业
'
)
{
//window.open('http://ndwqu3.jingkongyun.com/3DRongGuan/', '_blank');
//window.open('http://ndwqu3.jingkongyun.com/3DRongGuan/', '_blank');
window
.
open
(
'
http://dwqdp.jingkongyun.com/3DRongGuan/index.html
'
,
'
_blank
'
);
window
.
open
(
'
http://dwqdp.jingkongyun.com/3DRongGuan/index.html
'
,
'
_blank
'
);
}
else
if
(
title
==
'
钨矿
'
)
{
}
else
if
(
title
==
'
钨矿
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/
three/?id=3
'
,
'
_blank
'
);
window
.
open
(
'
http://dwqdp.jingkongyun.com/
wukuang/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
山金阿尔哈达
'
)
{
}
else
if
(
title
==
'
山金阿尔哈达
'
)
{
//window.open('http://dwqdp.jingkongyun.com/three/?id=2', '_blank');
//window.open('http://dwqdp.jingkongyun.com/three/?id=2', '_blank');
window
.
open
(
'
http://dwqdp.jingkongyun.com/aerhada/
index.html
'
,
'
_blank
'
);
window
.
open
(
'
http://dwqdp.jingkongyun.com/aerhada/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
山金白音呼布
'
)
{
}
else
if
(
title
==
'
山金白音呼布
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/three/?id=1
'
,
'
_blank
'
);
//window.open('http://dwqdp.jingkongyun.com/three/?id=1', '_blank');
window
.
open
(
'
http://dwqdp.jingkongyun.com/baiyinhubu/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
宝力格
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/baolige/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
雅斯作业区
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/yasi/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
阿尔作业区
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/aer/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
沈铁物流
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/shentiewuliu/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
延长宏博
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/yanchanghongbo/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
中康石油
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/zhongkangshiyou/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
天地煤矿
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/tiandimeikuang/
'
,
'
_blank
'
);
}
else
if
(
title
==
'
乌尼特煤矿
'
)
{
window
.
open
(
'
http://dwqdp.jingkongyun.com/wunite/
'
,
'
_blank
'
);
}
else
{
}
else
{
this
.
$notify
.
error
({
this
.
$notify
.
error
({
title
:
'
错误
'
,
title
:
'
错误
'
,
...
...
src/utils/index.js
View file @
08902c49
...
@@ -74,4 +74,53 @@ export function randNum(min, max, len, isRound) {
...
@@ -74,4 +74,53 @@ export function randNum(min, max, len, isR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XonRd4O3bsWtAVv2Chqe2XFzb8bHAEXAMR0f6rIFn1ftV5Da93eLjBDBv024pia8GeZFCUhFetAgvwovwIrwIL1qEF+FFeBFetAgvwovwIrwIL1qEF+FFeBFetAgvwovw1tD+A2QKHlM6/+MtAAAAAElFTkSuQmCC
'
// 环境检测单位
\ No newline at end of file
export
function
getValueUnit
()
{
// .....
return
{
'
风速
'
:
'
m/s
'
,
'
一氧化碳
'
:
'
ppm
'
,
'
二氧化碳
'
:
'
ppm
'
,
'
二氧化氮
'
:
'
%
'
,
'
温度
'
:
'
°C
'
,
'
压差
'
:
'
kPa
'
,
'
负压
'
:
'
kPa
'
,
'
降雨量
'
:
'
mm
'
,
'
浸润线
'
:
'
m
'
,
'
库水位
'
:
'
m
'
,
'
干滩
'
:
'
m
'
,
'
表面位移
'
:
'
mm
'
,
'
内部位移沉降
'
:
'
mm
'
,
'
内部位移倾斜
'
:
'
mm
'
,
};
};
// 获取企业编码
export
function
getCompanyCodes
()
{
return
{
'
锡林矿业
'
:
152525002
,
'
山金阿尔哈达
'
:
152525003
,
'
融冠矿业
'
:
152525001
,
'
钨矿
'
:
152525004
,
'
山金白音呼布
'
:
152525005
,
'
宝力格
'
:
152525006
,
'
雅斯作业区
'
:
152525007
,
'
阿尔作业区
'
:
152525008
,
'
测试企业
'
:
111
,
'
沈铁物流
'
:
152525009
,
'
延长宏博
'
:
152525010
,
'
中康石油
'
:
152525011
,
'
天地煤矿
'
:
152525012
,
};
};
export
const
imgBase64
=
'
image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABPCAYAAACqNJiGAAAACXBIWXMAAAsSAAALEgHS3X78AAAGZklEQVR42u2cTYgkSRXHfy8iP6q7qr92e+wunIPIIGyN60XRk+xFT7IHD3vypiDexJuHhZ5G2IOgZw96Fd3Z06J48SJ4VWGh66CLIDvSPXa7PVVdn5kR8TxUdpnVM8Muylb1FPEgqazKiMjKH/8XH+8FKapKtP/NTEQQ4UV4EV6EFy3Ci/Aiv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uJRhCCi4Yd/yt49Hcmvho4/X0zkt7/4W/KuiG4AP0PlU6RVvQYKH6LSKzhcfmTlE5+q3Ag9zZZU21jKi4St/QSZTYqT1HzeSDIl+J8Av1ORd/AItoLq1EmWlVOZlIy1JN0oUEquLhzpvqOPn682lhSq+sSVt/AAHZQ2yh5Ke3+23DIEcvUBTnE+AG8D9wUtRbUU1bck6I8xfFaLok3Ak6ufL9fa+2HWXhVlWWKkeTmjrQAPat+vUJu6TbVCcNbR2JQwHJ0XmblsePlAs/wdwtSgCAnf12DbhLDprD6hCI7mpmOCN4nPZKiZL5M++Y376Rq47fNc13za52LIfG5LJiSUgwTTshisKaZ7ibCDsmOMnkw8St7wBDxh4ElbjgbOTn2qgSL8006X7bLLHTBk0XXDjp36nh3ROw80cGirBEoYliHxF4X3fy8a+V8mLhSkoYDh7Lq2Sho4eufB9+wo7NjpgsvKGg0Yz43nXa9xHcbs+A2CEAb9wJYxTLaFtIahRGn0lasQTGvbiKj1fTsgISysaZec01juVOUax0PgFCUnkBCCsSNxClnpkO2SXSoVVscuJbJdkpVOnKLKZA7uFOXhjfbXbZ43V8MRyn2UE5S9CkCT4Es7ZPOOM1kQe+VyO/YJfRx9nL1yucmCsHnH+dIOw46dzhV3UrVXpSSXmcdYTQKonnKsJ4FOETrA2TM0NIvZQfsZyZ8VpSBXkrddSHZfpx/f4L/52teAv9YAfg7lD7UB5yHM1bbC5PdKtluooiJINR9TQCslzgCcI+zVYJzXonRd4O3bsWtAVv2Chqe2XFzb8bHAEXAMR0f6rIFn1ftV5Da93eLjBDBv024pia8GeZFCUhFetAgvwovwIrwIL1qEF+FFeBFetAgvwovwIrwIL1qEF+FFeBFetAgvwovw1tD+A2QKHlM6/+MtAAAAAElFTkSuQmCC
'
;
\ No newline at end of file
src/utils/request4.js
View file @
08902c49
import
axios
from
'
axios
'
import
axios
from
'
axios
'
//import router from '@/router/routers'
//import Config from '@/config'
import
{
Message
,
Notification
}
from
'
element-ui
'
import
{
Message
,
Notification
}
from
'
element-ui
'
const
service
=
axios
.
create
({
const
service
=
axios
.
create
({
// baseURL: 'http://192.168.1.123:8000/', //小葱
//## baseURL: 'http://39.98.150.124:8000/',
baseURL
:
'
http://39.98.150.124:8000/
'
,
//## timeout: 30000,
baseURL
:
process
.
env
.
NODE_ENV
===
'
production
'
?
process
.
env
.
BASE_API
:
'
/
'
,
// api 的 base_url
timeout
:
30000
,
timeout
:
30000
,
})
})
...
...
vue.config.js
View file @
08902c49
...
@@ -15,6 +15,20 @@ module.exports = {
...
@@ -15,6 +15,20 @@ module.exports = {
disableHostCheck
:
true
disableHostCheck
:
true
},
},
// vue-cli3 配置举例, vue.config.js中
devServer
:
{
proxy
:
{
// 天气接口
'
/weather
'
:
{
target
:
'
http://i.tianqi.com/
'
,
// 真实请求URl
changeOrigin
:
true
,
// 允许跨域
pathRewrite
:
{
// 替换,通配/api的替换成/
'
^/weather
'
:
'
/
'
}
},
}
},
// devServer: {
// devServer: {
// proxy: {
// proxy: {
// '/index': {
// '/index': {
...
...
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