forked from liweijie/education
首页通知公告权限调整
This commit is contained in:
@@ -28,18 +28,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</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-card>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -49,7 +37,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { listNotice } from "@/api/system/notice"
|
import { listNoticeTop } from "@/api/system/notice"
|
||||||
import NoticeDetailView from "@/layout/components/HeaderNotice/DetailView"
|
import NoticeDetailView from "@/layout/components/HeaderNotice/DetailView"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -59,12 +47,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
version: "3.9.2",
|
version: "3.9.2",
|
||||||
noticeList: [],
|
noticeList: [],
|
||||||
noticeLoading: false,
|
noticeLoading: false
|
||||||
noticePage: {
|
|
||||||
currentPage: 1,
|
|
||||||
pageSize: 10,
|
|
||||||
total: 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -104,12 +87,8 @@ export default {
|
|||||||
},
|
},
|
||||||
loadNoticeList() {
|
loadNoticeList() {
|
||||||
this.noticeLoading = true
|
this.noticeLoading = true
|
||||||
listNotice({
|
listNoticeTop().then(response => {
|
||||||
pageNum: this.noticePage.currentPage,
|
this.noticeList = response.data || []
|
||||||
pageSize: this.noticePage.pageSize
|
|
||||||
}).then(response => {
|
|
||||||
this.noticeList = response.rows || []
|
|
||||||
this.noticePage.total = response.total || 0
|
|
||||||
this.noticeLoading = false
|
this.noticeLoading = false
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.noticeLoading = false
|
this.noticeLoading = false
|
||||||
@@ -117,15 +96,6 @@ export default {
|
|||||||
},
|
},
|
||||||
handleViewNotice(item) {
|
handleViewNotice(item) {
|
||||||
this.$refs.noticeViewRef.open(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