|
|
@@ -10,6 +10,28 @@ |
|
|
|
<problem-info :detail="problemDetail" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 模式选择 --> |
|
|
|
<div class="mode-select"> |
|
|
|
<!-- 火灾预警 --> |
|
|
|
<div class="mode" style="float: left" @click="selectFire"> |
|
|
|
<span |
|
|
|
class="fire-waring" |
|
|
|
:class="[modeIndex == 0 ? 'select' : 'unselect']" |
|
|
|
/> |
|
|
|
<p class="mode-text" :class="[modeIndex == 0 ? 'select' : 'unselect']">火灾预警</p> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 森林巡检 --> |
|
|
|
<div class="mode" style="float: right" @click="selectForest"> |
|
|
|
<span |
|
|
|
class="forest-patrol" |
|
|
|
:class="[modeIndex == 1 ? 'select' : 'unselect']" |
|
|
|
/> |
|
|
|
<p class="mode-text" :class="[modeIndex == 1 ? 'select' : 'unselect']">森林巡检</p> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div v-show="listChecked" class="menu"> |
|
|
|
<div class="tabBar"> |
|
|
|
<span |
|
|
@@ -25,7 +47,7 @@ |
|
|
|
</div> |
|
|
|
<div v-if="tabIndex == 1" class="listDetail"> |
|
|
|
<ul style="user-select: none;"> |
|
|
|
<li |
|
|
|
<li |
|
|
|
v-for="(item, index) in taskList" |
|
|
|
:key="index" |
|
|
|
style="font-size: 14px" |
|
|
@@ -150,7 +172,8 @@ import { |
|
|
|
airportList, |
|
|
|
getMissionList, |
|
|
|
getQuestionType, |
|
|
|
getQuestionList |
|
|
|
getQuestionList, |
|
|
|
warehouseList |
|
|
|
} from '@/api/dashboard/index.js' |
|
|
|
import { getQuestions } from '@/api/task/index.js' |
|
|
|
import { gcj02towgs84 } from '@/utils/coordinate-util.js' |
|
|
@@ -218,7 +241,8 @@ export default { |
|
|
|
problemLayerList: [], |
|
|
|
airportPopupShow: false, |
|
|
|
times: null, |
|
|
|
paginationShow: false |
|
|
|
paginationShow: false, |
|
|
|
modeIndex: 0 // 模块选择 |
|
|
|
}) |
|
|
|
watch( |
|
|
|
() => data.page, |
|
|
@@ -244,7 +268,8 @@ export default { |
|
|
|
const tdtImgMap = new Tile({ |
|
|
|
visible: true, |
|
|
|
source: new XYZ({ |
|
|
|
url: 'https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f634525a82da65f715d168d7ba1899c0' |
|
|
|
url: 'https://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=6&x={x}&y={y}&z={z}' |
|
|
|
// url: 'https://t0.tianditu.gov.cn/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f634525a82da65f715d168d7ba1899c0' |
|
|
|
}) |
|
|
|
}) |
|
|
|
var wmsSource = new Tile({ |
|
|
@@ -285,6 +310,25 @@ export default { |
|
|
|
// autoPan: true, |
|
|
|
offset: [10, 10] |
|
|
|
}) |
|
|
|
|
|
|
|
loadWarehouse() |
|
|
|
} |
|
|
|
|
|
|
|
const selectFire = () => { |
|
|
|
data.modeIndex = 0 |
|
|
|
} |
|
|
|
|
|
|
|
const selectForest = () => { |
|
|
|
data.modeIndex = 1 |
|
|
|
} |
|
|
|
|
|
|
|
const loadWarehouse = async function() { |
|
|
|
const res = await warehouseList() |
|
|
|
// 接口请求成功 |
|
|
|
if (res.code === 0) { |
|
|
|
const warehouse = res.data |
|
|
|
console.log(warehouse) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
@@ -310,10 +354,13 @@ export default { |
|
|
|
if (data.airportsAll.length > 0) { |
|
|
|
for (let i = 0; i < data.airportsAll.length; i++) { |
|
|
|
const airport = data.airportsAll[i] |
|
|
|
const lngLat = gcj02towgs84( |
|
|
|
parseFloat(airport.longitude), |
|
|
|
parseFloat(airport.latitude) |
|
|
|
) |
|
|
|
// const lngLat = gcj02towgs84( |
|
|
|
// parseFloat(airport.longitude), |
|
|
|
// parseFloat(airport.latitude) |
|
|
|
// ) |
|
|
|
const lngLat = |
|
|
|
[parseFloat(airport.longitude), |
|
|
|
parseFloat(airport.latitude)] |
|
|
|
const feature = new Feature({ |
|
|
|
geometry: new Point(fromLonLat(lngLat)) |
|
|
|
}) |
|
|
@@ -755,7 +802,9 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
handleNegativeClick() {}, |
|
|
|
liveShow |
|
|
|
liveShow, |
|
|
|
selectFire, |
|
|
|
selectForest |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@@ -904,4 +953,63 @@ export default { |
|
|
|
.n-pagination-item.n-pagination-item--disabled.n-pagination-item--button) { |
|
|
|
background-color: rgba(0, 0, 0, 0) !important; |
|
|
|
} |
|
|
|
|
|
|
|
.mode-select { |
|
|
|
width: 142px; |
|
|
|
height: 66px; |
|
|
|
position: absolute; |
|
|
|
left: 15px; |
|
|
|
top: 15px; |
|
|
|
} |
|
|
|
|
|
|
|
.mode-select .mode{ |
|
|
|
width: 66px; |
|
|
|
height: 66px; |
|
|
|
border-radius: 3px; |
|
|
|
background: rgba(0, 0, 0, 1); |
|
|
|
cursor: pointer; |
|
|
|
} |
|
|
|
.mode-select span { |
|
|
|
width: 38px; |
|
|
|
height: 38px; |
|
|
|
display: inline-block; |
|
|
|
position: relative; |
|
|
|
left: 14px; |
|
|
|
top: 5px; |
|
|
|
background-size: 100% 100%; |
|
|
|
background-repeat: no-repeat; |
|
|
|
} |
|
|
|
|
|
|
|
.mode-text{ |
|
|
|
position: absolute; |
|
|
|
bottom: 5px; |
|
|
|
width: 66px; |
|
|
|
text-align: center; |
|
|
|
color: white; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
|
|
|
|
.mode-text.select{ |
|
|
|
color: rgba(51, 133, 255, 1); |
|
|
|
} |
|
|
|
|
|
|
|
.mode-text.unselect{ |
|
|
|
color: rgba(255, 255, 255, 1); |
|
|
|
} |
|
|
|
|
|
|
|
.fire-waring.select { |
|
|
|
background-image: url('@/assets/gis/images/hzyj_select.png'); |
|
|
|
} |
|
|
|
.fire-waring.unselect { |
|
|
|
background-image: url('@/assets/gis/images/hzyj_unselect.png'); |
|
|
|
} |
|
|
|
|
|
|
|
.forest-patrol.select { |
|
|
|
background-image: url('@/assets/gis/images/slxj_select.png'); |
|
|
|
} |
|
|
|
|
|
|
|
.forest-patrol.unselect { |
|
|
|
background-image: url('@/assets/gis/images/slxj_unselect.png'); |
|
|
|
} |
|
|
|
|
|
|
|
</style> |