|
|
@@ -68,10 +68,20 @@
|
|
|
<span>{{ scope.row.buyAmount ? parseFloat(scope.row.buyAmount) : 0 }}</span>
|
|
|
</template>
|
|
|
|
|
|
- <template #slot-billing>
|
|
|
+ <template #slot-add-custom>
|
|
|
<el-button type="primary" size="mini" style="margin-left:60px;" @click="add()">添加客户</el-button>
|
|
|
</template>
|
|
|
|
|
|
+ <template #slot-multiple-add-custom>
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ :action="fileUrl"
|
|
|
+ multiple
|
|
|
+ :limit="1">
|
|
|
+ <el-button size="small" type="primary">批量导入客户</el-button>
|
|
|
+</el-upload>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template #table-column-name="{scope}">
|
|
|
<el-link
|
|
|
:underline="true"
|
|
|
@@ -155,6 +165,7 @@
|
|
|
import { mapGetters, mapActions } from 'vuex';
|
|
|
import cardName from './components/card-name';
|
|
|
import detailDraw from './components/detail-draw';
|
|
|
+import { baseUrl } from '@/config/env';
|
|
|
export default {
|
|
|
components: {
|
|
|
cardName,
|
|
|
@@ -187,13 +198,16 @@ export default {
|
|
|
name1:'',
|
|
|
mobile1:'',
|
|
|
confirmMobile1:'',
|
|
|
- addPop:false
|
|
|
+ addPop:false,
|
|
|
+ fileUrl:'',
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapGetters({ levelData: 'level' })
|
|
|
},
|
|
|
created() {
|
|
|
+ this.fileUrl = baseUrl+'/upload/custom'
|
|
|
+ console.log(this.fileUrl)
|
|
|
this.getLevel();
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -430,7 +444,7 @@ export default {
|
|
|
})
|
|
|
.set('layout', [
|
|
|
['slot-tabs'],
|
|
|
- ['search-key','slot-billing'],
|
|
|
+ ['search-key','slot-add-custom','flex1','slot-multiple-add-custom'],
|
|
|
['data-table'],
|
|
|
['flex1', 'pagination']
|
|
|
])
|