fanzhen0102
This commit is contained in:
@@ -34,7 +34,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div v-for="(item,index) in searchData" :key="index">
|
<div v-for="(item,index) in searchData" :key="index">
|
||||||
<div>{{item.id}}</div>
|
<div>{{item.id}}</div>
|
||||||
<div>{{item.name}}</div>
|
<div @click="jumpSearch(item)">{{item.name}}</div>
|
||||||
<div>{{item.className}}</div>
|
<div>{{item.className}}</div>
|
||||||
<div>{{item.lmss}}</div>
|
<div>{{item.lmss}}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -209,7 +209,14 @@ export default {
|
|||||||
let arrts = []
|
let arrts = []
|
||||||
res.data.data.list.forEach((item, index) => {
|
res.data.data.list.forEach((item, index) => {
|
||||||
// console.log(item)
|
// console.log(item)
|
||||||
let srtAs = { id: item.id, name: item.name, className: item.cname, lmss: item.classify }
|
let srtAs = {
|
||||||
|
id: item.id,
|
||||||
|
name: item.name,
|
||||||
|
className: item.cname,
|
||||||
|
lmss: item.classify,
|
||||||
|
classify_id: item.classify_id,
|
||||||
|
f: item.f, type: item.type
|
||||||
|
}
|
||||||
arrts.push(srtAs)
|
arrts.push(srtAs)
|
||||||
})
|
})
|
||||||
this.searchData = arrts
|
this.searchData = arrts
|
||||||
@@ -267,7 +274,20 @@ export default {
|
|||||||
currentChange(ev) {
|
currentChange(ev) {
|
||||||
this.pageConfiguration.nowPage = ev
|
this.pageConfiguration.nowPage = ev
|
||||||
this.getSearchData(this.pageConfiguration.nowPage)
|
this.getSearchData(this.pageConfiguration.nowPage)
|
||||||
}
|
},
|
||||||
|
// 跳转至查询页面
|
||||||
|
jumpSearch(listCount) {
|
||||||
|
console.log(listCount)
|
||||||
|
this.$router.push(
|
||||||
|
{
|
||||||
|
path: '/datasweb',
|
||||||
|
query: {
|
||||||
|
type: listCount.type === '1' ? listCount.f : 'area',
|
||||||
|
defaultLeftId: listCount.classify_id
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
// 计算字符串
|
// 计算字符串
|
||||||
@@ -426,6 +446,9 @@ export default {
|
|||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
& > div:nth-child(2) {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
& > div {
|
& > div {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
height: 4.375rem;
|
height: 4.375rem;
|
||||||
|
|||||||
Reference in New Issue
Block a user