no message
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dataList: [],
|
dataList: [],
|
||||||
tabList: [],
|
tabList: [{name:'全部'}],
|
||||||
curTab: 0,
|
curTab: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@@ -68,7 +68,9 @@ export default {
|
|||||||
async cascadeCategory() {
|
async cascadeCategory() {
|
||||||
getCascadeCategory({ parentId: 0 }).then((res) => {
|
getCascadeCategory({ parentId: 0 }).then((res) => {
|
||||||
if (res && res.bizcode === 100) {
|
if (res && res.bizcode === 100) {
|
||||||
this.tabList = res.data;
|
res.data.forEach(item=>{
|
||||||
|
this.tabList.push(item);
|
||||||
|
})
|
||||||
this.getSearchList();
|
this.getSearchList();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -86,10 +88,12 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
type: 2,
|
type: 2,
|
||||||
page: 1,
|
page: 1,
|
||||||
pageSize: 99,
|
pageSize: 10000,
|
||||||
categoryId: this.tabList[this.curTab].id,
|
|
||||||
isPar: true,
|
isPar: true,
|
||||||
};
|
};
|
||||||
|
if(this.curTab != 0){
|
||||||
|
params['categoryId'] = this.tabList[this.curTab].id;
|
||||||
|
}
|
||||||
const resp = await searchList(params);
|
const resp = await searchList(params);
|
||||||
if (resp && resp.bizcode === 100) {
|
if (resp && resp.bizcode === 100) {
|
||||||
this.dataList = resp.data || [];
|
this.dataList = resp.data || [];
|
||||||
|
|||||||
Reference in New Issue
Block a user