|
@@ -50,7 +50,8 @@
|
|
<i class="i-small"></i>
|
|
<i class="i-small"></i>
|
|
<h4>{{ item.deptName }}</h4>
|
|
<h4>{{ item.deptName }}</h4>
|
|
</div>
|
|
</div>
|
|
- <div class="d-l-l-count">{{ item.eventCount }}</div>
|
|
|
|
|
|
+ <div class="d-l-l-count">{{ item.count }}</div>
|
|
|
|
+ <!--<div class="d-l-l-count">{{ item.eventCount }}</div>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="overflow-y" style="height: 34vh;">
|
|
<div class="overflow-y" style="height: 34vh;">
|
|
@@ -77,6 +78,7 @@
|
|
<script>
|
|
<script>
|
|
import {
|
|
import {
|
|
getResource,
|
|
getResource,
|
|
|
|
+ SumLandInfo,
|
|
getFindAllType,
|
|
getFindAllType,
|
|
getFindAllZhanList
|
|
getFindAllZhanList
|
|
} from '@/api/datacenter'
|
|
} from '@/api/datacenter'
|
|
@@ -337,9 +339,42 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
getResource() {
|
|
getResource() {
|
|
- let that = this
|
|
|
|
|
|
+ let _this = this
|
|
//获取左侧菜单列表
|
|
//获取左侧菜单列表
|
|
getResource().then(res => {
|
|
getResource().then(res => {
|
|
|
|
+ console.log("获取左侧菜单列表=",res.data)
|
|
|
|
+ let list = res.data;
|
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
|
+ let map = {};
|
|
|
|
+ map.count = list[i].num;
|
|
|
|
+ map.name = list[i].name;
|
|
|
|
+ map.key = list[i].type;
|
|
|
|
+ map.icon = 'sj-icon-' + list[i].type;
|
|
|
|
+ if(list[i].name == '农业技术推广总站信息'){
|
|
|
|
+ map.name="农业技术推广总站";
|
|
|
|
+ }
|
|
|
|
+ if(list[i].name == '"备案畜禽规模养殖场"'){
|
|
|
|
+ map.name="备案畜禽养殖场";
|
|
|
|
+ }
|
|
|
|
+ if(list[i].name == '"区域性粪污处置中心"'){
|
|
|
|
+ map.name="粪污处置中心";
|
|
|
|
+ }
|
|
|
|
+ if(list[i].name == '肉牛基层翻改站(点)'){
|
|
|
|
+ map.name="肉牛基层翻改站";
|
|
|
|
+ }
|
|
|
|
+ if(list[i].name == '"农机技术推广部门信息"'){
|
|
|
|
+ map.name="农机技术推广部门";
|
|
|
|
+ }
|
|
|
|
+ _this.resourcesList.push(map);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ // getResource(){
|
|
|
|
+ getResource_废弃() {
|
|
|
|
+ let that = this
|
|
|
|
+ //获取左侧菜单列表
|
|
|
|
+ SumLandInfo().then(res => {
|
|
|
|
+ console.log("获取左侧菜单列表=",res.data)
|
|
const resourcesMap = res.data;
|
|
const resourcesMap = res.data;
|
|
// const resourcesMap = [];
|
|
// const resourcesMap = [];
|
|
// let data = res.data;
|
|
// let data = res.data;
|
|
@@ -401,6 +436,7 @@ export default {
|
|
let that = this
|
|
let that = this
|
|
that.resourceTable=type;
|
|
that.resourceTable=type;
|
|
getFindAllType(type).then(res => {
|
|
getFindAllType(type).then(res => {
|
|
|
|
+ console.log("点击左侧右侧数据展示及横向柱状图 res.data.lis=",res.data.list)
|
|
that.deptGroupList = res.data.dept;
|
|
that.deptGroupList = res.data.dept;
|
|
that.supermapDianList = res.data.list;
|
|
that.supermapDianList = res.data.list;
|
|
that.source = [];
|
|
that.source = [];
|
|
@@ -408,13 +444,15 @@ export default {
|
|
//点击左侧右侧数据展示及横向柱状图
|
|
//点击左侧右侧数据展示及横向柱状图
|
|
if (res.data != null && res.data.dept.length > 0) {
|
|
if (res.data != null && res.data.dept.length > 0) {
|
|
for (let i = 0; i < res.data.dept.length; i++) {
|
|
for (let i = 0; i < res.data.dept.length; i++) {
|
|
- let aa = [res.data.dept[i].deptName, res.data.dept[i].eventCount];
|
|
|
|
|
|
+ let aa = [res.data.dept[i].deptName, res.data.dept[i].count];
|
|
|
|
+ // let aa = [res.data.dept[i].deptName, res.data.dept[i].eventCount];
|
|
that.source.push(aa);
|
|
that.source.push(aa);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.dataChat();
|
|
this.dataChat();
|
|
if (res.data != null && res.data.list.length > 0) {
|
|
if (res.data != null && res.data.list.length > 0) {
|
|
- if(type=='hezuoshe'||type=='nongji'||type=='zhibao'||type=='xubao'||type=='yangzhi'){
|
|
|
|
|
|
+ if(true){
|
|
|
|
+ // if(type=='hezuoshe'||type=='nongji'||type=='zhibao'||type=='xubao'||type=='yangzhi'){
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
for (let i = 0; i < res.data.list.length; i++) {
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: res.data.list[i].longitude,
|
|
lng: res.data.list[i].longitude,
|
|
@@ -432,14 +470,16 @@ export default {
|
|
' <span>' +
|
|
' <span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>地址:' + res.data.list[i].address + '</h4>' +
|
|
|
|
|
|
+ // ' <h4>地址:' + res.data.list[i].address + '</h4>' +
|
|
|
|
+ ' <h4>名称:' + res.data.list[i].NAME + '</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>' +
|
|
' </span>' +
|
|
' <span>' +
|
|
' <span>' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-l-text">' +
|
|
' <div class="d-l-l-text">' +
|
|
- ' <h4>名称:' + res.data.list[i].name +'</h4>' +
|
|
|
|
|
|
+ // ' <h4>名称:' + res.data.list[i].name +'</h4>' +
|
|
|
|
+ ' <h4>电话:' + res.data.list[i].phone +'</h4>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </div>' +
|
|
' </span>' +
|
|
' </span>' +
|