1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-06 07:21:24 +08:00

Add note cards and update work card layout

This commit is contained in:
GGB
2023-05-31 15:08:12 +08:00
parent b3ef7f855e
commit e0e09fcd25
6 changed files with 113 additions and 38 deletions

View File

@@ -2,18 +2,18 @@
<div style="height: calc(100vh - 56px - 40px); min-height: calc(500px - 56px - 40px)">
<el-row :gutter="20">
<el-col :span="12">
<work-card :tableData="tableData" />
<work-card :tableData="works" />
</el-col>
<el-col :span="12">
<work-card :tableData="tableData" />
<notice-card :tableData="notices" />
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="12">
<work-card :tableData="tableData" />
<work-card :tableData="works" />
</el-col>
<el-col :span="12">
<work-card :tableData="tableData" />
<work-card :tableData="works" />
</el-col>
</el-row>
</div>
@@ -26,7 +26,8 @@ export default {
name: 'HomePage',
data() {
return {
tableData: []
works: [],
notices: []
}
},
methods: {
@@ -34,7 +35,15 @@ export default {
request
.get('/work/card')
.then((response) => {
this.tableData = response.data.data
this.works = response.data.data
})
.catch((reportError) => {
console.log(reportError)
})
request
.get('/notice/limit')
.then((response) => {
this.notices = response.data.data
})
.catch((reportError) => {
console.log(reportError)