ruanqi 3 years ago
parent
commit
22c815d346
  1. 18
      src/views/modules/eam/eam_device_list.vue

18
src/views/modules/eam/eam_device_list.vue

@ -111,7 +111,7 @@
:height="secondHeight" :height="secondHeight"
border border
v-loading="dataListLoading" v-loading="dataListLoading"
style="width: 95%; ">
style="width: 100%; ">
<!-- <el-table-column <!-- <el-table-column
fixed="left" fixed="left"
header-align="center" header-align="center"
@ -132,7 +132,7 @@
:show-overflow-tooltip="item.showOverflowTooltip" :show-overflow-tooltip="item.showOverflowTooltip"
:align="item.align" :align="item.align"
:fixed="item.fixed==''?false:item.fixed" :fixed="item.fixed==''?false:item.fixed"
:width="item.columnWidth"
:min-width="item.columnWidth"
:label="item.columnLabel"> :label="item.columnLabel">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span> <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
@ -140,6 +140,17 @@
style="width: 100px; height: 80px"/></span> style="width: 100px; height: 80px"/></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
fixed="right"
header-align="center"
align="center"
width="100"
label="操作">
<template slot-scope="scope">
<a :href="'http://192.168.1.130:80/file/'+scope.row.url" :download="scope.row.fileName">下载</a>
<a @click="downloadFile(scope.row.url)" >下载2</a>
</template>
</el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<!-- 设备备件 --> <!-- 设备备件 -->
@ -3110,6 +3121,9 @@
}) })
return this.exportList; return this.exportList;
},
downloadFile(url){
}, },
startDownload() { startDownload() {
// this.exportData = this.dataList // this.exportData = this.dataList

Loading…
Cancel
Save