8 changed files with 129 additions and 8 deletions
@ -1 +1,3 @@ |
|||
[0517/154023.784:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3) |
|||
[0518/172215.096:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3) |
|||
[0519/162903.250:ERROR:directory_reader_win.cc(43)] FindFirstFile: 系统找不到指定的路径。 (0x3) |
|||
|
@ -0,0 +1,76 @@ |
|||
<template> |
|||
<div class="pa-3 white fill-height d-flex flex-column"> |
|||
<banner-search @getListData="getListData" /> |
|||
<banner-date :phone="true" :lists="lists" :pagination="pagination" @getListData="getListData" /> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import BannerSearch from 'components/Banner/BannerSearch.vue'; |
|||
import BannerDate from 'components/Banner/BannerDate.vue'; |
|||
import { queryCarousel } from 'config/api'; |
|||
|
|||
export default { |
|||
name: 'BannerManage', |
|||
components: { |
|||
BannerSearch, |
|||
BannerDate, |
|||
}, |
|||
|
|||
data() { |
|||
return { |
|||
str: '轮播图管理界面', |
|||
lists: {}, |
|||
pagination: { current: 1, pageSize: 10 }, |
|||
pageNum: 1, |
|||
pageSize: 10, |
|||
paramData: { |
|||
showPage: '', |
|||
jumpType: 0, |
|||
recStatus: 0, |
|||
}, |
|||
}; |
|||
}, |
|||
|
|||
created() { |
|||
this.getListData(); |
|||
}, |
|||
|
|||
methods: { |
|||
// 获取轮播图列表 |
|||
async getListData(condition) { |
|||
try { |
|||
if (condition && condition.current) { |
|||
this.pageNum = condition.current; |
|||
this.pageSize = condition.pageSize; |
|||
} else if (condition && !condition.pageNum) { |
|||
this.paramData = condition; |
|||
} |
|||
const params = { |
|||
param: { |
|||
showPage: this.paramData.showPage, |
|||
jumpType: this.paramData.jumpType, |
|||
recStatus: this.paramData.recStatus, |
|||
pageNum: this.pageNum, |
|||
pageSize: this.pageSize, |
|||
}, |
|||
}; |
|||
const res = await queryCarousel(params); |
|||
const { code, msg, data } = res.data; |
|||
if (code === 200) { |
|||
this.lists = data; |
|||
const paper = { ...this.pagination }; |
|||
paper.current = data.pageNum; |
|||
paper.total = +data.total; |
|||
paper.pageSize = data.pageSize; |
|||
this.pagination = paper; |
|||
} else { |
|||
throw msg || '获取失败'; |
|||
} |
|||
} catch (error) { |
|||
this.$message.error(error); |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
Loading…
Reference in new issue