fanzhen0102
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<div class="content">
|
||||
<div v-for="(item,index) in searchData" :key="index">
|
||||
<div>{{item.id}}</div>
|
||||
<div>{{item.name}}</div>
|
||||
<div @click="jumpSearch(item)">{{item.name}}</div>
|
||||
<div>{{item.className}}</div>
|
||||
<div>{{item.lmss}}</div>
|
||||
</div>
|
||||
@@ -209,7 +209,14 @@ export default {
|
||||
let arrts = []
|
||||
res.data.data.list.forEach((item, index) => {
|
||||
// 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)
|
||||
})
|
||||
this.searchData = arrts
|
||||
@@ -267,7 +274,20 @@ export default {
|
||||
currentChange(ev) {
|
||||
this.pageConfiguration.nowPage = ev
|
||||
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: {
|
||||
// 计算字符串
|
||||
@@ -426,6 +446,9 @@ export default {
|
||||
flex-direction: row;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
& > div:nth-child(2) {
|
||||
cursor: pointer;
|
||||
}
|
||||
& > div {
|
||||
width: 25%;
|
||||
height: 4.375rem;
|
||||
|
||||
Reference in New Issue
Block a user