Commit 938c79d8 authored by liuyuping's avatar liuyuping

'2'

parent bb16dba7
......@@ -126,3 +126,11 @@ export function findTodayTrainEnterprise() {
method: 'get'
})
}
// 安全教育培训统计
export function analyzeSafetyEducation() {
return request({
url: 'api/trainImage/analyzeSafetyEducation',
method: 'get'
})
}
\ No newline at end of file
......@@ -10,6 +10,7 @@
:data="tableData"
style="width:100%;"
border
v-loading="isLoadingAdvice"
@selection-change="handleSelectionChange"
>
<el-table-column
......@@ -127,7 +128,8 @@ export default {
},
currentPage: 1,
curPageSize: 10,
totalColumn: 40
totalColumn: 40,
isLoadingAdvice: false
}
},
mounted() {
......@@ -196,12 +198,15 @@ export default {
handleSizeChange(val) {
// 每页多少条
this.curPageSize = val
this.initAllNotices()
},
handleCurrentChange(val) {
// 当前是多少页
this.currentPage = val
this.initAllNotices()
},
initAllNotices() {
this.isLoadingAdvice = true
getNotice({
page: this.currentPage - 1,
size: this.curPageSize,
......@@ -215,7 +220,11 @@ export default {
item.content = item.noticeContent
})
this.tableData = [...res.content]
}).catch(() => {})
this.totalColumn = res.totalElements
this.isLoadingAdvice = false
}).catch(() => {
this.isLoadingAdvice = false
})
}
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment