Selaa lähdekoodia

云图es搜索

qinhouyu 2 vuotta sitten
vanhempi
commit
9c87b05c40
1 muutettua tiedostoa jossa 16 lisäystä ja 0 poistoa
  1. 16 0
      src/views/forest.vue

+ 16 - 0
src/views/forest.vue

@@ -84,6 +84,9 @@
             <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-27" style="padding-left: 1rem;">
             <div class="i-list-con h-27" style="padding-left: 1rem;">
               <div class="d-l-con-icon">
               <div class="d-l-con-icon">
+                <div class="top-left">
+                  <button class="add-button" @click="getResource">搜索全部</button>
+                </div>
                 <div class="icon-con" :class="{on:iconCurrentIndex==item.type}"
                 <div class="icon-con" :class="{on:iconCurrentIndex==item.type}"
                   v-for="(item,index) in resourcesList" v-on:click="fireControlViewPoint(item.type, '','search')">
                   v-for="(item,index) in resourcesList" v-on:click="fireControlViewPoint(item.type, '','search')">
                   <!--v-on:click="indentleftSetMarkers(item.resourceTable)">-->
                   <!--v-on:click="indentleftSetMarkers(item.resourceTable)">-->
@@ -680,6 +683,7 @@
       },
       },
       getResource() {
       getResource() {
         let that = this;
         let that = this;
+        that.resourcesList=[]
         fireControlViewList("ziyuan").then(function (res) {
         fireControlViewList("ziyuan").then(function (res) {
           for (let i = 0; i < res.data.length; i++) {
           for (let i = 0; i < res.data.length; i++) {
             if(res.data[i].type !='centerdata_t_forest_fireteam'){
             if(res.data[i].type !='centerdata_t_forest_fireteam'){
@@ -1988,7 +1992,19 @@
 
 
 <style lang="scss">
 <style lang="scss">
     @import '@/assets/styles/base.scss';
     @import '@/assets/styles/base.scss';
+    .top-left {
+      position: absolute;
+      top: 15px; /* 设置距离顶部的位置 */
+      left: 75%; /* 设置距离左侧的位置 */
+    }
 
 
+    .add-button {
+      background-color: #04244d; /* 设置背景颜色 */
+      color: #1d66ec; /* 设置文字颜色 */
+      padding: 5px 10px; /* 设置内边距 */
+      border: none; /* 移除边框 */
+      cursor: pointer; /* 添加鼠标指针样式 */
+    }
     .bottomRight{
     .bottomRight{
         .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
         .el-table .el-table__header-wrapper th, .el-table .el-table__fixed-header-wrapper th {
             background-color: $searchBG;
             background-color: $searchBG;