|
@@ -44,8 +44,33 @@
|
|
<supermap ref="supermap" style="width: 100%;height: 100vh;" :mapDiv="'disasterMap'" class="indexSupermapClass"
|
|
<supermap ref="supermap" style="width: 100%;height: 100vh;" :mapDiv="'disasterMap'" class="indexSupermapClass"
|
|
:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"></supermap>
|
|
:mapSite="{doubleClickZoom:false}" :codes="['9fa5']" :isSideBySide="false"></supermap>
|
|
<!--底部 -->
|
|
<!--底部 -->
|
|
- <vBottomMenu ref="bottomMenu"></vBottomMenu>
|
|
|
|
|
|
|
|
|
|
+ <!-- 右侧 -->
|
|
|
|
+ <div class="rightbar" :class="indentright" ref="right">
|
|
|
|
+ <div class="forthis">
|
|
|
|
+ <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
|
|
|
|
+ <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
|
|
+ <div class="this-title">
|
|
|
|
+ <span>植树任务</span>
|
|
|
|
+ <dv-decoration-3 style="width:150px;height:15px;margin-right: 1rem;"/>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="i-list-con h-73">
|
|
|
|
+ <div class="overflow-y" style="height: 72vh">
|
|
|
|
+ <div class="d-l-con"
|
|
|
|
+ v-for="(item,index) in forestationTaskList"
|
|
|
|
+ v-on:click="selectWorkCountById(item.points)">
|
|
|
|
+ <div class="d-l-l-text">
|
|
|
|
+ <i class="i-small"></i>
|
|
|
|
+ <h4>{{ item.name }}</h4>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </dv-border-box-13>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ <vBottomMenu ref="bottomMenu"></vBottomMenu>
|
|
</div>
|
|
</div>
|
|
<eventLocation ref="eventLocation"></eventLocation>
|
|
<eventLocation ref="eventLocation"></eventLocation>
|
|
<TVWall ref="TVWall"></TVWall>
|
|
<TVWall ref="TVWall"></TVWall>
|
|
@@ -54,7 +79,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
- getAfforestation, getAfforestationArea
|
|
|
|
|
|
+ getAfforestation, getAfforestationArea,listPublishTask,selectWorkCountById
|
|
} from '@/api/afforestation'
|
|
} from '@/api/afforestation'
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
/** ----------------------------------摄像头预览开始------------------------------------- */
|
|
import {
|
|
import {
|
|
@@ -87,7 +112,8 @@ export default {
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件结束------------------------------------- */
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.getInit()
|
|
|
|
|
|
+ this.getInit();
|
|
|
|
+ this.listPublishTask();
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -102,8 +128,12 @@ export default {
|
|
indentleft: '',
|
|
indentleft: '',
|
|
indentright: '',
|
|
indentright: '',
|
|
indentText: '收起左右栏',
|
|
indentText: '收起左右栏',
|
|
- indentdisabled: false
|
|
|
|
|
|
+ indentdisabled: false,
|
|
|
|
|
|
|
|
+
|
|
|
|
+ //植树造林任务集合
|
|
|
|
+ forestationTaskList:[],
|
|
|
|
+ forestationDone: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -185,6 +215,16 @@ export default {
|
|
}, 1000)
|
|
}, 1000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ listPublishTask() {
|
|
|
|
+ listPublishTask({}).then(res => {
|
|
|
|
+ this.forestationTaskList = res.data
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ selectWorkCountById(points){
|
|
|
|
+ const graphicsList = JSON.parse( points );
|
|
|
|
+ this.$refs.supermap.clearGTwo();
|
|
|
|
+ this.$refs.supermap.setGraphicsListTwo(graphicsList, 'blue');
|
|
|
|
+ },
|
|
getAfforestationArea(afforestationId) {
|
|
getAfforestationArea(afforestationId) {
|
|
this.listCurrentIndex1 = afforestationId
|
|
this.listCurrentIndex1 = afforestationId
|
|
let that = this
|
|
let that = this
|