待办事项

This commit is contained in:
leave 2020-10-28 11:26:51 +08:00
parent a0ddb6ed03
commit 05465c28cb

View File

@ -16,23 +16,27 @@
<div class="todo-content-right"> <div class="todo-content-right">
<div v-if="selectedTableList.length > 0"> <div v-if="selectedTableList.length > 0">
<el-table <el-table
:data="waitTableList" :data="selectedTableList"
@row-click="handleRowClick" @row-click="handleRowClick"
:show-header="false" :show-header="false"
style="border-top: 1px solid #ebebeb;" style="border-top: 1px solid #ebebeb;"
max-height="500" max-height="500"
> >
<el-table-column <el-table-column width="100">
prop="imgStr" <template slot-scope="scope">
width="100" <img
></el-table-column> :src="scope.row.avatar"
<el-table-column prop="name"></el-table-column> class="todo-content-right-avatar"
/>
</template>
</el-table-column>
<el-table-column prop="title"></el-table-column>
<el-table-column <el-table-column
width="200" width="200"
align="right" align="right"
> >
<template slot-scope="scope"> <template slot-scope="scope">
{{scope.row.dateTime}}<i class="el-icon-arrow-right"></i> {{scope.row.time}}<i class="el-icon-arrow-right"></i>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -76,18 +80,14 @@ export default {
totalPage: 1 totalPage: 1
}, },
// //
waitTableList: [ waitTableList: [],
{ imgStr: '', name: '咔咔咔咔咔咔扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩', dateTime: '2020-22-22 02:22:22' },
{ imgStr: '', name: '咔咔咔咔咔咔扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩', dateTime: '2020-22-22 02:22:22' },
{ imgStr: '', name: '咔咔咔咔咔咔扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩', dateTime: '2020-22-22 02:22:22' }
],
// //
pageWaitInfo: {}, pageWaitInfo: {},
processedTableList: [], processedTableList: [],
pageProcessedInfo: { pageProcessedInfo: {
currPage: 1, currPage: 1,
pageSize: 20, pageSize: 20,
status: 0, status: 1,
totalCount: 1, totalCount: 1,
totalPage: 1 totalPage: 1
} }
@ -108,7 +108,7 @@ export default {
this.pageSelectedInfo.currPage = res.data.currPage this.pageSelectedInfo.currPage = res.data.currPage
this.pageSelectedInfo.totalCount = res.data.totalCount this.pageSelectedInfo.totalCount = res.data.totalCount
this.pageSelectedInfo.totalPage = res.data.totalPage this.pageSelectedInfo.totalPage = res.data.totalPage
if (this.activeIndex === 0) { if (this.activeIndex === '0') {
// //
this.waitCount = res.data.totalCount this.waitCount = res.data.totalCount
} }
@ -146,9 +146,10 @@ export default {
handleCurrentChange (val) { handleCurrentChange (val) {
// //
this.pageSelectedInfo.currPage = val this.pageSelectedInfo.currPage = val
this.handleGetList()
}, },
handleRowClick (row) { handleRowClick (row) {
this.$router.push({ name: 'assessment-stepList', query: { id: row.id } }) this.$router.push({ name: 'assessment-stepList', query: { id: row.recordId } })
} }
}, },
watch: {} watch: {}
@ -181,6 +182,11 @@ export default {
// padding-left: 20px; // padding-left: 20px;
padding: 20px; padding: 20px;
flex: 1; flex: 1;
&-avatar {
width: 34px;
height: 34px;
border-radius: 17px;
}
.el-pagination { .el-pagination {
text-align: right; text-align: right;
margin-top: 20px; margin-top: 20px;