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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user