5345a113 by weimo934

feat(panel):相关下载

1 parent 464068aa
......@@ -68,11 +68,17 @@
<span class="edit">查看全部 <i class="fa fa-angle-right " aria-hidden="true"></i></span>
</div>
<el-table
:data="tableData"
:data="downloadData"
:height="tableHeight"
border
@row-click="download"
:row-class-name="tableRowClassName"
>
<el-table-column prop="title" align="center" label="内容名称">
<el-table-column
type="index" align="center"
width="50" label="序号">
</el-table-column>
<el-table-column prop="name" align="center" label="下载文件">
</el-table-column>
</el-table>
</el-card>
......@@ -99,6 +105,15 @@ export default {
{ name: "添加", img: require("@assets/images/tj.png") },
],
tableData: [],
downloadData:[
{
name:"宗地导入模板",
url:"api/tx/excelGeo/template?type=zd"
},{
name:"自然幢导入模板",
url:"api/tx/excelGeo/template?type=zrz"
}
],
tableHeight: 0,
total: 0,
isEdit:false
......@@ -110,6 +125,9 @@ export default {
});
},
methods: {
download(row,column,event){
window.open(row.url)
},
handleSelect() {
//非编辑状态才可以点击
if (!isEdit) {
......