no message

Former-commit-id: 408058fab164d62f8a60dcb3abbac19a0464dec1
Former-commit-id: ec41a7db6766d29a89679ed3769fad5ead12058a
Former-commit-id: 0f4d0fbaa32e40973b79ad12a1a90c3035106a68
This commit is contained in:
李杨
2018-02-09 15:42:28 +08:00
parent db6beafd47
commit c997f662e8
5 changed files with 178 additions and 0 deletions

View File

@@ -4,6 +4,12 @@
slot="header"
title="基本示例">
</PageHeader>
<div>
<el-button @click="exportCsv">
<Icon name="download"></Icon>
exportCsv
</el-button>
</div>
<el-table v-bind="table" style="width: 100%" class="dd-mb">
<el-table-column
v-for="(item, index) in table.columns"
@@ -16,7 +22,11 @@
</template>
<script>
// 假数据
import table from './data'
// 库
// import Csv from '@/utils/csv.js'
// import ExportCsv from '@/utils/export-csv.js'
export default {
data () {
return {
@@ -28,6 +38,14 @@ export default {
border: true
}
}
},
methods: {
exportCsv (params) {
let _params = Object.assign({}, params, {
filename: 'table'
})
console.log(_params)
}
}
}
</script>