TransferDetail.vue
2.52 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<template>
<el-dialog
title="查看移交记录"
:visible="dialogVisible"
width="60%"
:close-on-click-modal="false"
:before-close="beforeClose">
<table class="form-table">
<tbody>
<tr>
<th>移交类型</th>
<td>{{detailData.type}}</td>
<th>移交人</th>
<td>{{detailData.transferName}}</td>
</tr>
<tr>
<th>被移交人</th>
<td>{{detailData.transferedName}}</td>
<th>移交原因</th>
<td>{{detailData.reason}}</td>
</tr>
<tr>
<th>创建时间</th>
<td>{{detailData.createTime}}</td>
</tr>
</tbody>
</table>
<ht-table
@load="loadData"
:data="flowData"
:pageResult="pageResult"
:show-export="false"
:show-custom-column="false"
:selectable="false"
ref="table">
<ht-table-column type="index" width="50" align="center" label="序号" />
<ht-table-column
prop="creator"
label="申请人"
width="220"
:show-overflow-tooltip="true"
/>
<ht-table-column
prop="subject"
label="流程标题"
:show-overflow-tooltip="true"
/>
<ht-table-column
prop="createTime"
label="创建时间"
width="260"
:show-overflow-tooltip="true"
/>
</ht-table>
</el-dialog>
</template>
<script>
import req from "@/request.js";
export default {
props:["detailData"],
data(){
return{
dialogVisible:false,
pageResult:{
page:0,
pageSize:50,
total:0
},
flowData:[]
}
},
methods:{
loadData(param,cb){
this.$nextTick(()=>{
req
.post(this.detailData.url,param)
.then(resp=>{
this.flowData = resp.data.rows;
this.pageResult={
page:resp.data.page,
pageSize:resp.data.pageSize,
total:resp.data.total
}
})
.finally(()=>{
cb()
});
});
},
beforeClose(){
this.dialogVisible = false;
},
handleOpen(){
this.dialogVisible = true;
this.$refs.table.load();
}
}
}
</script>
<style scoped>
table{
width: 100%;
}
th{
width: 15%;
padding: 8px;
}
td{
font-size: 13px;
width: 35%;
}
span{
font-size: 13px;
float: left;
}
</style>