b25b036d
wuxw
v1.9 优化日期
|
1
|
<template>
|
fc9bd1db
wuxw
开发完成合同详情
|
2
3
4
|
<div class="margin-top">
<el-row class="margin-top-lg"></el-row>
<div class="margin-top">
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<el-form :model="contractDetailFileInfo" label-width="120px" class="text-left">
<el-row>
<el-col :span="10">
<el-form-item :label="$t('contractDetailFile.relatedFiles')">
<div v-for="(file, index) in contractDetailFileInfo.files" :key="index" style="margin-left: 50px;">
<el-link type="primary" @click="_viewFile(file)">
{{ file.fileRealName }}
</el-link>
</div>
</el-form-item>
</el-col>
</el-row>
</el-form>
|
fc9bd1db
wuxw
开发完成合同详情
|
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
</div>
</div>
</template>
<script>
import { queryContractFile } from '@/api/contract/contractDetailFileApi'
import { getCommunityId } from '@/api/community/communityApi'
export default {
name: 'ContractDetailFile',
data() {
return {
contractDetailFileInfo: {
files: [],
contractId: '',
roomNum: '',
allOweFeeAmount: '0'
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
35
36
37
38
39
|
},
pagination: {
page: 1,
row: 100
},
|
fc9bd1db
wuxw
开发完成合同详情
|
40
41
42
43
44
|
}
},
methods: {
open(data) {
this.contractDetailFileInfo.contractId = data.contractId
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
45
|
this._loadContractDetailFileData(1, this.pagination.row)
|
fc9bd1db
wuxw
开发完成合同详情
|
46
47
48
49
50
|
},
_loadContractDetailFileData(page, row) {
const params = {
contractId: this.contractDetailFileInfo.contractId,
page: page || 1,
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
51
|
row: row || this.pagination.row
|
fc9bd1db
wuxw
开发完成合同详情
|
52
|
}
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
53
|
|
fc9bd1db
wuxw
开发完成合同详情
|
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
queryContractFile(params).then(response => {
this.contractDetailFileInfo.files = response.data
}).catch(error => {
console.error('请求失败:', error)
})
},
_viewFile(file) {
window.open(file.fileSaveName)
}
},
created() {
this.communityId = getCommunityId()
}
}
</script>
<style scoped>
.margin-top {
margin-top: 20px;
}
|
62011a14
wuxw
v1.9 修复合同上传附件bug 修复
|
74
|
|
fc9bd1db
wuxw
开发完成合同详情
|
75
76
77
78
|
.margin-top-lg {
margin-top: 30px;
}
</style>
|