|
@@ -12,9 +12,24 @@
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
<img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
|
|
<div class="i-list-con h-78">
|
|
<div class="i-list-con h-78">
|
|
<div class="d-l-con-icon">
|
|
<div class="d-l-con-icon">
|
|
|
|
+
|
|
|
|
+ <div class="i-list-con h-65" v-show="showSearch == true">
|
|
|
|
+ <div class="head-container">
|
|
|
|
+ <el-input
|
|
|
|
+ v-model="searchName"
|
|
|
|
+ placeholder="请输入名称"
|
|
|
|
+ @blur="searchByName()"
|
|
|
|
+ clearable
|
|
|
|
+ size="small"
|
|
|
|
+ prefix-icon="el-icon-search"
|
|
|
|
+ style="margin-bottom: 20px"
|
|
|
|
+ />
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div class="icon-con" :class="{on:iconCurrentIndex==item.resourceTable}"
|
|
<div class="icon-con" :class="{on:iconCurrentIndex==item.resourceTable}"
|
|
v-for="(item,index) in resourcesList"
|
|
v-for="(item,index) in resourcesList"
|
|
- v-on:click="indentleftSetMarkers(item.type)">
|
|
|
|
|
|
+ v-on:click="indentleftSetMarkers(item.type, searchName)">
|
|
<!--v-on:click="indentleftSetMarkers(item.resourceTable)">-->
|
|
<!--v-on:click="indentleftSetMarkers(item.resourceTable)">-->
|
|
<div class="iconfont icon icon-normal" :class="item.icon"></div>
|
|
<div class="iconfont icon icon-normal" :class="item.icon"></div>
|
|
<div class="icon-text">
|
|
<div class="icon-text">
|
|
@@ -82,6 +97,12 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 搜索框
|
|
|
|
+ showSearch: false,
|
|
|
|
+ // 搜索名称
|
|
|
|
+ searchName: undefined,
|
|
|
|
+ // 搜索类型
|
|
|
|
+ searchType: undefined,
|
|
iconCurrentIndex: '',
|
|
iconCurrentIndex: '',
|
|
listCurrentIndex: '',
|
|
listCurrentIndex: '',
|
|
markersList: [],
|
|
markersList: [],
|
|
@@ -108,6 +129,11 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
+ // 根据名称筛选资源点位
|
|
|
|
+ searchByName() {
|
|
|
|
+ this.$modal.msgSuccess("正在查询,请稍后...");
|
|
|
|
+ this.indentleftSetMarkers(this.searchType, this.searchName);
|
|
|
|
+ },
|
|
/** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
/** ----------------------------------底部按钮公用组件开始------------------------------------- */
|
|
bottomMenuList() {
|
|
bottomMenuList() {
|
|
this.$refs.bottomMenu.selectTaskList()//获取任务列表
|
|
this.$refs.bottomMenu.selectTaskList()//获取任务列表
|
|
@@ -212,18 +238,33 @@ export default {
|
|
let icon ='sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-").replaceAll("@", "-");
|
|
let icon ='sj' + '-' + 'icon' + '-' + data.type.replaceAll("_", "-").replaceAll("@", "-");
|
|
console.log("icon_" + (index + 1) + "=", icon);
|
|
console.log("icon_" + (index + 1) + "=", icon);
|
|
that.$set(that.resourcesList[index], 'icon', icon);
|
|
that.$set(that.resourcesList[index], 'icon', icon);
|
|
|
|
+
|
|
|
|
+ if(index < 5){
|
|
|
|
+ // that.fireControlViewPoint(data.type, 'undefined');
|
|
|
|
+ that.indentleftSetMarkers(data.type, '所有');
|
|
|
|
+ }
|
|
})
|
|
})
|
|
|
|
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- indentleftSetMarkers(resourceTable) {
|
|
|
|
|
|
+ indentleftSetMarkers(resourceTable, name) {
|
|
|
|
+ // 搜索框
|
|
|
|
+ // if(name == 'undefined' && this.showSearch == false){
|
|
|
|
+ // if(name == '所有' && this.showSearch == false){
|
|
|
|
+ if(name == '所有'){
|
|
|
|
+ name = undefined;
|
|
|
|
+ }else {
|
|
|
|
+ this.showSearch = true;
|
|
|
|
+ }
|
|
|
|
+ // 搜索类型
|
|
|
|
+ this.searchType = resourceTable;
|
|
this.iconCurrentIndex = resourceTable
|
|
this.iconCurrentIndex = resourceTable
|
|
let that = this
|
|
let that = this
|
|
that.resourceTable = resourceTable
|
|
that.resourceTable = resourceTable
|
|
that.markersList = []
|
|
that.markersList = []
|
|
that.source = []
|
|
that.source = []
|
|
//点击左侧地图落点
|
|
//点击左侧地图落点
|
|
- getResourcePoint(resourceTable).then(res => {
|
|
|
|
|
|
+ getResourcePoint(resourceTable, name).then(res => {
|
|
that.deptGroupList = res.data.deptGroupList
|
|
that.deptGroupList = res.data.deptGroupList
|
|
if (res.data.deptGroupList != null && res.data.deptGroupList.length > 0) {
|
|
if (res.data.deptGroupList != null && res.data.deptGroupList.length > 0) {
|
|
for (let i = 0; i < res.data.deptGroupList.length; i++) {
|
|
for (let i = 0; i < res.data.deptGroupList.length; i++) {
|