summaryrefslogtreecommitdiff
path: root/UI source code/dns_mapping_ui-master/src/components/Search/right.vue
blob: ae109f68e15278bf4fdb72634ccc26ffa4109407 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<template>
  <div class="right bigbox">
    <div class="title">
      <div :class="tabshow == 1 ? 'active' : ''" @click="tab(1)">
        检索结果
      </div>
      <div :class="tabshow == 2 ? 'active' : ''" @click="tab(2)">
        数据统计
      </div>
      <div :class="tabshow == 3 ? 'active' : ''" @click="tab(3)">
        关联分析
      </div>
      <div class="inp">
        <input type="text" placeholder="近一年">
        <el-button type="primary">导出</el-button>
      </div>
    </div>

    <div class="containerbox">
      <div v-show="tabshow == 1"><Result /></div>
      <div v-show="tabshow == 2"><Count /></div>
      <div v-show="tabshow == 3"><Relation /></div>
    </div>
  </div>
</template>

<script>
import Result from '../SearchList/result.vue'
import Count from '../SearchList/count.vue'
import Relation from '../SearchList/relation.vue'
// import { mapGetters } from 'vuex'
export default {
  components: {
    Result,
    Count,
    Relation
  },
  data() {
    return {
      tabshow: 1,
    }
  },
  // computed:{
  //   ...mapGetters({
  //       maplist: "searchlist/maplist",
  //   })
  // },
  created() {},
  methods: {
    tab(val) {
      this.tabshow = val;
      // console.log(val);
       var page = document.getElementsByClassName('block')[0];
      if(val == 2 || val == 3){
        page.style.display = "none"
      }else{
        page.style.display = "block"
      }
    },
  
  },
  
}
</script>

<style lang="scss" scoped>
.right {
  float: right;
  width: 76%;
}
.bigbox .title {
  background-color: #fff;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.title{
 color: #aca9b3;
//  .inp{
//    flex: 1;
//  }
  div:nth-of-type(1){
    margin-left:10px;
  }
  div:hover{
    color: #4608ad;
    cursor:pointer
  }
 .inp input{
   height: 32px;
   width: 300px;
   border:1px solid #aca9b3;
   outline-style: none;
   border-radius: 5px;
 }
 .inp button{
   vertical-align: top;
   margin-right: 10px;
   background-color: #4608ad;
   border-color: #4608ad;
 }
}
.active {
  font-weight: 600;
  color: #4608ad !important;
  border-bottom:4px solid #4608ad;
}
html,body{
	scroll-behavior:smooth;
}
.right >>> .el-loading-mask{
  z-index: 6 !important;
  background-color: white;
}
</style>