首页通知公告权限调整
This commit is contained in:
@@ -28,18 +28,6 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-footer">
|
||||
<el-pagination
|
||||
@size-change="handleNoticeSizeChange"
|
||||
@current-change="handleNoticeCurrentChange"
|
||||
:current-page="noticePage.currentPage"
|
||||
:page-sizes="[5, 10, 20, 50]"
|
||||
:page-size="noticePage.pageSize"
|
||||
:total="noticePage.total"
|
||||
layout="total, prev, pager, next"
|
||||
small
|
||||
/>
|
||||
</div>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
@@ -49,7 +37,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listNotice } from "@/api/system/notice"
|
||||
import { listNoticeTop } from "@/api/system/notice"
|
||||
import NoticeDetailView from "@/layout/components/HeaderNotice/DetailView"
|
||||
|
||||
export default {
|
||||
@@ -59,12 +47,7 @@ export default {
|
||||
return {
|
||||
version: "3.9.2",
|
||||
noticeList: [],
|
||||
noticeLoading: false,
|
||||
noticePage: {
|
||||
currentPage: 1,
|
||||
pageSize: 10,
|
||||
total: 0
|
||||
}
|
||||
noticeLoading: false
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -104,12 +87,8 @@ export default {
|
||||
},
|
||||
loadNoticeList() {
|
||||
this.noticeLoading = true
|
||||
listNotice({
|
||||
pageNum: this.noticePage.currentPage,
|
||||
pageSize: this.noticePage.pageSize
|
||||
}).then(response => {
|
||||
this.noticeList = response.rows || []
|
||||
this.noticePage.total = response.total || 0
|
||||
listNoticeTop().then(response => {
|
||||
this.noticeList = response.data || []
|
||||
this.noticeLoading = false
|
||||
}).catch(() => {
|
||||
this.noticeLoading = false
|
||||
@@ -117,15 +96,6 @@ export default {
|
||||
},
|
||||
handleViewNotice(item) {
|
||||
this.$refs.noticeViewRef.open(item)
|
||||
},
|
||||
handleNoticeSizeChange(val) {
|
||||
this.noticePage.pageSize = val
|
||||
this.noticePage.currentPage = 1
|
||||
this.loadNoticeList()
|
||||
},
|
||||
handleNoticeCurrentChange(val) {
|
||||
this.noticePage.currentPage = val
|
||||
this.loadNoticeList()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user