|
@@ -41,24 +41,30 @@
|
|
|
<!-- 按钮 -->
|
|
|
<div class="btn-group clearfix">
|
|
|
<div class="fl">
|
|
|
- <el-button type="primary" size="small" @click="addDataList"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ icon="el-icon-plus"
|
|
|
+ size="small"
|
|
|
+ @click="addDataList"
|
|
|
>新增</el-button
|
|
|
>
|
|
|
|
|
|
- <el-popconfirm @onConfirm="delFn" title="这是一段内容确定删除吗?">
|
|
|
+ <el-popconfirm
|
|
|
+ class="delClass"
|
|
|
+ @onConfirm="delFn"
|
|
|
+ title="这是一段内容确定删除吗?"
|
|
|
+ >
|
|
|
<el-button
|
|
|
- size="small"
|
|
|
- type="primary"
|
|
|
- class="textColor"
|
|
|
slot="reference"
|
|
|
+ type="danger"
|
|
|
+ icon="el-icon-minus"
|
|
|
+ size="small"
|
|
|
>批量删除</el-button
|
|
|
>
|
|
|
</el-popconfirm>
|
|
|
</div>
|
|
|
<div class="fr">
|
|
|
- <el-button type="primary" size="small" @click="exportFn"
|
|
|
- >导出</el-button
|
|
|
- >
|
|
|
+ <ExportButton :exUrl="'/take-car-record/export'" :exParams="exParams" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 列表 -->
|
|
@@ -281,6 +287,14 @@ export default {
|
|
|
ids: [],
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ exParams() {
|
|
|
+ return {
|
|
|
+ carBrand: this.searchForm.carBrand,
|
|
|
+ customerName: this.searchForm.customerName,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ },
|
|
|
async created() {
|
|
|
this.getDataList({ pageNum: 1, pageSize: 10 });
|
|
|
this.getDealerDataList({ pageNum: 1, pageSize: 10 });
|
|
@@ -295,14 +309,14 @@ export default {
|
|
|
this.ids = selection.map((v) => v.id);
|
|
|
console.log(this.ids);
|
|
|
},
|
|
|
- //导出
|
|
|
- exportFn() {
|
|
|
- let screenData = {
|
|
|
- customerName: this.searchForm.customerName,
|
|
|
- carBrand: this.searchForm.carBrand,
|
|
|
- };
|
|
|
- downloadFiles("/take-car-record/export", screenData);
|
|
|
- },
|
|
|
+ // //导出
|
|
|
+ // exportFn() {
|
|
|
+ // let screenData = {
|
|
|
+ // customerName: this.searchForm.customerName,
|
|
|
+ // carBrand: this.searchForm.carBrand,
|
|
|
+ // };
|
|
|
+ // downloadFiles("/take-car-record/export", screenData);
|
|
|
+ // },
|
|
|
//取消
|
|
|
async cancelFn() {
|
|
|
if (this.addForm.id) {
|
|
@@ -430,4 +444,4 @@ export default {
|
|
|
::v-deep .el-dialog__header {
|
|
|
background-color: #dddddd;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|