Commit 938c79d8 authored by liuyuping's avatar liuyuping

'2'

parent bb16dba7
...@@ -126,3 +126,11 @@ export function findTodayTrainEnterprise() { ...@@ -126,3 +126,11 @@ export function findTodayTrainEnterprise() {
method: 'get' method: 'get'
}) })
} }
// 安全教育培训统计
export function analyzeSafetyEducation() {
return request({
url: 'api/trainImage/analyzeSafetyEducation',
method: 'get'
})
}
\ No newline at end of file
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
:data="tableData" :data="tableData"
style="width:100%;" style="width:100%;"
border border
v-loading="isLoadingAdvice"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column <el-table-column
...@@ -127,7 +128,8 @@ export default { ...@@ -127,7 +128,8 @@ export default {
}, },
currentPage: 1, currentPage: 1,
curPageSize: 10, curPageSize: 10,
totalColumn: 40 totalColumn: 40,
isLoadingAdvice: false
} }
}, },
mounted() { mounted() {
...@@ -196,12 +198,15 @@ export default { ...@@ -196,12 +198,15 @@ export default {
handleSizeChange(val) { handleSizeChange(val) {
// 每页多少条 // 每页多少条
this.curPageSize = val this.curPageSize = val
this.initAllNotices()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
// 当前是多少页 // 当前是多少页
this.currentPage = val this.currentPage = val
this.initAllNotices()
}, },
initAllNotices() { initAllNotices() {
this.isLoadingAdvice = true
getNotice({ getNotice({
page: this.currentPage - 1, page: this.currentPage - 1,
size: this.curPageSize, size: this.curPageSize,
...@@ -215,7 +220,11 @@ export default { ...@@ -215,7 +220,11 @@ export default {
item.content = item.noticeContent item.content = item.noticeContent
}) })
this.tableData = [...res.content] 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