processingRecordDialog.vue
2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
<div>
<el-dialog title="处理记录" :visible.sync="dialogTableVisible" @close="handleClose">
<el-table :data="gridData">
<el-table-column type="index" property="date" label="序号" width="80" align="center">
<template slot-scope="scope">
{{ gridData.length - scope.$index }}
</template>
</el-table-column>
<el-table-column property="f_create_by" label="操作人" width="120"></el-table-column>
<el-table-column property="f_create_time" label="操作时间" width="200"></el-table-column>
<el-table-column property="f_event_type" label="事件类型" width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column property="f_progress_status" label="进展情况" :show-overflow-tooltip="true"></el-table-column>
</el-table>
<el-row>
<el-col :span="24" style="display: flex;justify-content: end;margin-top: 10px">
<el-pagination
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageForm.page"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageForm.size"
layout="total, sizes, prev, pager, next, jumper"
:total="pageForm.total">
</el-pagination>
</el-col>
</el-row>
</el-dialog>
</div>
</template>
<script>
import { getProcessingRecord } from '@/api/projectSubmission'
export default {
name: "processingRecordDialog",
data(){
return {
dialogTableVisible:false,
gridData:[],
projectId:'',
pageForm:{
page:1,
size:10,
total:0
}
}
},
mounted(){
},
methods:{
async getRecordData(){
let params ={
pageBean: {
page: 1,
pageSize: 10,
showTotal: true,
},
querys: [
{
property: "f_project_id",
value: this.projectId?this.projectId:'',
group: "advance",
relation: "AND",
operation: "EQUAL"
}
]
}
await getProcessingRecord(params).then((res)=>{
console.log('打印获取处理记录的res',res)
const { rows, total } = res;
this.gridData = rows;
this.pageForm.total = total;
})
},
open(row){
this.dialogTableVisible = true;
this.projectId = row.id_;
this.getRecordData();
},
handleClose(){
this.dialogTableVisible = false;
},
handleSizeChange(val){
this.pageForm.size = val;
this.getRecordData();
},
handleCurrentChange(val){
this.pageForm.page = val;
this.getRecordData();
}
}
}
</script>
<style scoped>
</style>