|
@@ -12,8 +12,8 @@
|
|
|
<search :hideSelect="true" searchWidth="59.58vw" class="searchbar" @searchResult="searchResult"></search>
|
|
|
<div class="searchBox">
|
|
|
<div class="tabBoxHome" v-if="showTap">
|
|
|
- <div v-for="(item, index) in tapArr" :key="index" @click="changeAction(index)" v-show="totalArr[index]!=0">
|
|
|
- <span>{{item}}</span>
|
|
|
+ <div v-for="(item, index) in tapArr" :key="index" @click="changeAction(index)" v-show="item.show">
|
|
|
+ <span>{{item.name}}</span>
|
|
|
<img v-if="tapAction==index" src="../../../image/tabAction.png"/>
|
|
|
</div>
|
|
|
<div class="orderBox">
|
|
@@ -41,7 +41,7 @@ import home from '@/api/knowledge/home'
|
|
|
import search from './components/search'
|
|
|
import pageBar from './components/pageBar'
|
|
|
import pageList from './components/pageList'
|
|
|
-
|
|
|
+import { encryptDes, decryptDes,generatekey } from './components/DES.js'
|
|
|
export default {
|
|
|
name: 'home',
|
|
|
components: {
|
|
@@ -55,13 +55,12 @@ export default {
|
|
|
orderSort:0,
|
|
|
orderFiled:0,
|
|
|
pageNumArr:[],
|
|
|
- totalArr:[],
|
|
|
+ totalArr:[0,0,0,0],
|
|
|
listArr:[],
|
|
|
showTap:false,
|
|
|
total:0,
|
|
|
pageSize:10,
|
|
|
- tapArr:['开放数据','保密数据','公共盘数据','EIP数据'],
|
|
|
- //tapArrShow:[],
|
|
|
+ tapArr:[{name:'开放数据',show:false},{name:'保密数据',show:false},{name:'公共盘数据',show:false},{name:'EIP数据',show:false}],
|
|
|
tapAction:0,
|
|
|
searchData:{
|
|
|
range:0,
|
|
@@ -74,6 +73,11 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getBanner()
|
|
|
+ /* var keys = 'hkc'
|
|
|
+ var encrypts = encryptDes('admin',keys);
|
|
|
+ var dess = decryptDes('BbcjV7ot004=',keys)
|
|
|
+ console.log(encrypts)
|
|
|
+ console.log(dess)*/
|
|
|
//this.getData()
|
|
|
},
|
|
|
methods: {
|
|
@@ -115,6 +119,7 @@ export default {
|
|
|
that.dataList = that.listArr[that.tapAction]
|
|
|
}
|
|
|
})
|
|
|
+ console.log(sumTotal)
|
|
|
if(sumTotal==0){
|
|
|
this.showTap = false
|
|
|
this.dataList = []
|
|
@@ -134,11 +139,19 @@ export default {
|
|
|
orderSort:this.orderSort,
|
|
|
orderFiled:this.orderFiled
|
|
|
}
|
|
|
+ if(num==0){
|
|
|
+ this.tapArr.forEach((item,index) => {
|
|
|
+ item.show=false
|
|
|
+ })
|
|
|
+ }
|
|
|
home.searchApi(postData).then((res) => {
|
|
|
if(res.code==200){
|
|
|
this.pageNumArr[num] = 1
|
|
|
this.listArr[num] = res.data.records
|
|
|
this.totalArr[num] = Number(res.data.total)
|
|
|
+ if(Number(res.data.total)!=0){
|
|
|
+ this.tapArr[num].show = true
|
|
|
+ }
|
|
|
if(range==2){
|
|
|
for(var i=1;i<4;i++){
|
|
|
this.listArr[i] = []
|
|
@@ -148,8 +161,8 @@ export default {
|
|
|
}else{
|
|
|
if(num!=3){
|
|
|
this.getDataAll(num+1,type)
|
|
|
+ this.showAllData(type)
|
|
|
}else{
|
|
|
- console.log(type)
|
|
|
this.showAllData(type)
|
|
|
}
|
|
|
}
|