xy 2 years ago
parent 42a4da5d61
commit b13b8616d6

@ -37,6 +37,9 @@
<br/>单个文件不能超过50M
</div>
</el-upload>
<Table :data="fileList" :columns="table">
</Table>
</Modal>
</div>
</template>
@ -49,6 +52,27 @@ export default {
props: {},
data() {
return {
table: [
{
key: 'original_name',
title: '文件名称',
render: (h, { row }) => (h('span',row.response?.original_name))
},
{
key: 'tag',
title: "标签"
},
{
key: 'year',
title: '年份',
render: (h, { row }) => (h('span',row.response?.year))
},
{
key: 'year',
title: '年限',
render: (h, { row }) => (h('span',row.response?.nianxian))
}
],
isShow: false,
id: '',
type: '',

@ -61,48 +61,6 @@
</el-descriptions>
</el-card>
<el-card id="detail-files">
<div class="el-descriptions__header el-descriptions__title">
资产相关附件
</div>
<template>
<template
v-if="
(detail.id_asset_file_files_land_id_relation &&
detail.id_asset_file_files_land_id_relation.length > 0) ||
(detail.id_asset_file_files_house_id_relation &&
detail.id_asset_file_files_house_id_relation.length > 0)
"
>
<div
v-for="item in /\/land/g.test($route.path) ? detail.id_asset_file_files_land_id_relation : detail.id_asset_file_files_house_id_relation"
style="display: flex; justify-content: space-between;margin-bottom: 4px;"
>
<a :download="item.url">{{ item.original_name }}</a>
<div>
<el-button
type="primary"
icon="el-icon-download"
circle
size="mini"
@click="down(item)"
></el-button>
<el-button
type="primary"
icon="el-icon-search"
circle
size="mini"
@click="open(item.url)"
></el-button>
</div>
</div>
</template>
<template v-else>
<el-empty description="无"></el-empty>
</template>
</template>
</el-card>
<el-card id="detail-documents">
<div class="el-descriptions__header el-descriptions__title">
资产证件图片
@ -218,6 +176,48 @@
维修保养
</div>
</el-card>
<el-card id="detail-files">
<div class="el-descriptions__header el-descriptions__title">
资产相关附件
</div>
<template>
<template
v-if="
(detail.id_asset_file_files_land_id_relation &&
detail.id_asset_file_files_land_id_relation.length > 0) ||
(detail.id_asset_file_files_house_id_relation &&
detail.id_asset_file_files_house_id_relation.length > 0)
"
>
<div
v-for="item in /\/land/g.test($route.path) ? detail.id_asset_file_files_land_id_relation : detail.id_asset_file_files_house_id_relation"
style="display: flex; justify-content: space-between;margin-bottom: 4px;"
>
<a :download="item.url">{{ item.original_name }}</a>
<div>
<el-button
type="primary"
icon="el-icon-download"
circle
size="mini"
@click="down(item)"
></el-button>
<el-button
type="primary"
icon="el-icon-search"
circle
size="mini"
@click="open(item.url)"
></el-button>
</div>
</div>
</template>
<template v-else>
<el-empty description="无"></el-empty>
</template>
</template>
</el-card>
</el-col>
<el-col :span="3">
<Anchor show-ink :offset-top="64">
@ -228,13 +228,13 @@
detail.id_assets_atlas_files_land_id_relation.length > 0)
" />
<AnchorLink href="#detail-info" title="基本信息" />
<AnchorLink href="#detail-files" title="相关附件" />
<AnchorLink href="#detail-documents" title="证件图片" />
<AnchorLink href="#detail-histories" title="历史沿革" />
<AnchorLink href="#detail-assetsMap" title="资产地图" />
<AnchorLink href="#detail-safe" title="安全检查"></AnchorLink>
<AnchorLink href="#detail-contract" title="租赁合同"></AnchorLink>
<AnchorLink href="#detail-repair" title="维修保养"></AnchorLink>
<AnchorLink href="#detail-files" title="相关附件" />
</Anchor>
</el-col>
</el-row>

Loading…
Cancel
Save