待办事项
This commit is contained in:
parent
a0ddb6ed03
commit
05465c28cb
@ -16,23 +16,27 @@
|
||||
<div class="todo-content-right">
|
||||
<div v-if="selectedTableList.length > 0">
|
||||
<el-table
|
||||
:data="waitTableList"
|
||||
:data="selectedTableList"
|
||||
@row-click="handleRowClick"
|
||||
:show-header="false"
|
||||
style="border-top: 1px solid #ebebeb;"
|
||||
max-height="500"
|
||||
>
|
||||
<el-table-column
|
||||
prop="imgStr"
|
||||
width="100"
|
||||
></el-table-column>
|
||||
<el-table-column prop="name"></el-table-column>
|
||||
<el-table-column width="100">
|
||||
<template slot-scope="scope">
|
||||
<img
|
||||
:src="scope.row.avatar"
|
||||
class="todo-content-right-avatar"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="title"></el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
align="right"
|
||||
>
|
||||
<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>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -76,18 +80,14 @@ export default {
|
||||
totalPage: 1
|
||||
},
|
||||
// 待处理
|
||||
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' }
|
||||
],
|
||||
waitTableList: [],
|
||||
// 已处理
|
||||
pageWaitInfo: {},
|
||||
processedTableList: [],
|
||||
pageProcessedInfo: {
|
||||
currPage: 1,
|
||||
pageSize: 20,
|
||||
status: 0,
|
||||
status: 1,
|
||||
totalCount: 1,
|
||||
totalPage: 1
|
||||
}
|
||||
@ -108,7 +108,7 @@ export default {
|
||||
this.pageSelectedInfo.currPage = res.data.currPage
|
||||
this.pageSelectedInfo.totalCount = res.data.totalCount
|
||||
this.pageSelectedInfo.totalPage = res.data.totalPage
|
||||
if (this.activeIndex === 0) {
|
||||
if (this.activeIndex === '0') {
|
||||
// 待处理事项
|
||||
this.waitCount = res.data.totalCount
|
||||
}
|
||||
@ -146,9 +146,10 @@ export default {
|
||||
handleCurrentChange (val) {
|
||||
// 页面变更
|
||||
this.pageSelectedInfo.currPage = val
|
||||
this.handleGetList()
|
||||
},
|
||||
handleRowClick (row) {
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: row.id } })
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: row.recordId } })
|
||||
}
|
||||
},
|
||||
watch: {}
|
||||
@ -181,6 +182,11 @@ export default {
|
||||
// padding-left: 20px;
|
||||
padding: 20px;
|
||||
flex: 1;
|
||||
&-avatar {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 17px;
|
||||
}
|
||||
.el-pagination {
|
||||
text-align: right;
|
||||
margin-top: 20px;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user