|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
<div>
|
|
|
<el-card :shadow="hover">
|
|
<el-card :shadow="hover">
|
|
|
<div class="full-width flex flex-center flex-justify-start">
|
|
<div class="full-width flex flex-center flex-justify-start">
|
|
|
- <notice :data="[333, 44]" />
|
|
|
|
|
|
|
+ <notice :data="noticeList" />
|
|
|
</div>
|
|
</div>
|
|
|
</el-card>
|
|
</el-card>
|
|
|
<div class="flex flex-center flex-justify-between">
|
|
<div class="flex flex-center flex-justify-between">
|
|
@@ -52,7 +52,30 @@ import read from '@/views/dash/compoents/read.vue'
|
|
|
import notice from '@/views/dash/compoents/notice.vue'
|
|
import notice from '@/views/dash/compoents/notice.vue'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
- components: { Profile, dataShow, agency, read, notice }
|
|
|
|
|
|
|
+ components: { Profile, dataShow, agency, read, notice },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ page: {
|
|
|
|
|
+ size: 10,
|
|
|
|
|
+ current: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ noticeList: []
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.getNotice()
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ getNotice() {
|
|
|
|
|
+ this.$api.dash.noticeList(this.page).then(res => {
|
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
|
+ this.noticeList = res.data.records
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.msg)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|