|
@@ -18,7 +18,9 @@ import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
import import_mixin from '@/components/template/import_mixin.js'
|
|
|
import add_callback_mixin from '@/components/template/add_callback_mixin.js'
|
|
|
import Popu from '@/components/template/popu.vue'
|
|
|
-import { getDealerListV2, exportDealerListV2, importCustomerV2 } from '@/api/basic_data/dealer'
|
|
|
+
|
|
|
+import { getDealerListV2, exportDealerListV2, importCustomerV2, exportJiaXianV2 } from '@/api/basic_data/dealer'
|
|
|
+
|
|
|
import DealerListDetail from './components/dealer_list-detail.vue'
|
|
|
export default {
|
|
|
components: { TemplatePage, Popu, DealerListDetail },
|
|
@@ -35,6 +37,30 @@ export default {
|
|
|
render: this.importButton(importCustomerV2)
|
|
|
}
|
|
|
]
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '导出提贷物流存货类别',
|
|
|
+ click: (p) => {
|
|
|
+ exportJiaXianV2({
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: -1,
|
|
|
+ params: this.$refs.pageRef.getParams().querylist
|
|
|
+ }, `${this.$route.meta.title}`)
|
|
|
+ .then(_res => {
|
|
|
+ this.$message({
|
|
|
+ message: '导出成功',
|
|
|
+ type: 'success'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(_err => {
|
|
|
+ this.$message.error('导出失败')
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+
|
|
|
]
|
|
|
],
|
|
|
// 表格属性
|
|
@@ -61,7 +87,7 @@ export default {
|
|
|
// 列表导出函数
|
|
|
exportList: exportDealerListV2,
|
|
|
// 表格列解析渲染数据更改
|
|
|
- columnParsing(item, defaultData) {
|
|
|
+ columnParsing(_item, defaultData) {
|
|
|
return defaultData
|
|
|
},
|
|
|
// 监听勾选变化
|
|
@@ -69,7 +95,7 @@ export default {
|
|
|
this.recordSelected = data
|
|
|
},
|
|
|
operation() {
|
|
|
- return (h, { row, index, column }) => {
|
|
|
+ return (_h, { row, index, column }) => {
|
|
|
return (
|
|
|
<div class='operation-btns'>
|
|
|
<el-button
|