|
|
@@ -16,7 +16,8 @@
|
|
|
:isExport="false"
|
|
|
@listCreate="list">
|
|
|
<div slot="titleRight">
|
|
|
- <importFile
|
|
|
+ <exportFile :param="param" :columns="tablecols" fileName="合作伙伴档案"></exportFile>
|
|
|
+<!-- <importFile
|
|
|
ref="importFile"
|
|
|
class="inline-16"
|
|
|
:bindData="{ownertable:'sa_agents',ownerid:$route.query.id,usetype:'default'}"
|
|
|
@@ -24,7 +25,7 @@
|
|
|
@clearUrl="errorUrl = null"
|
|
|
@onSuccess="bindImportOrder"
|
|
|
v-if="tool.checkAuth($route.name,'export')"
|
|
|
- ></importFile>
|
|
|
+ ></importFile>-->
|
|
|
</div>
|
|
|
<template #custom>
|
|
|
<div class="mt-10">
|
|
|
@@ -130,6 +131,8 @@ import editArea from './area/modules/edit_area'
|
|
|
import startArea from './area/modules/start_area'
|
|
|
import delArea from './area/modules/del_area'
|
|
|
import importFile from './importFile.vue'
|
|
|
+
|
|
|
+import exportFile from '@/components/export_file/index'
|
|
|
import { log } from '@antv/g2plot/lib/utils'
|
|
|
|
|
|
export default {
|
|
|
@@ -139,7 +142,8 @@ export default {
|
|
|
editArea,
|
|
|
delArea,
|
|
|
startArea,
|
|
|
- importFile
|
|
|
+ importFile,
|
|
|
+ exportFile
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
@@ -159,6 +163,8 @@ export default {
|
|
|
label:'意向'
|
|
|
},
|
|
|
],
|
|
|
+ tablecols:[],
|
|
|
+ param:{}
|
|
|
}
|
|
|
},
|
|
|
provide () {
|
|
|
@@ -169,6 +175,7 @@ export default {
|
|
|
created () {
|
|
|
this.userstatus()
|
|
|
this.queryType()
|
|
|
+ this.tablecols = this.tool.tabelCol(this.$route.name).agentTable.tablecols
|
|
|
},
|
|
|
methods:{
|
|
|
async userstatus() {
|
|
|
@@ -196,6 +203,7 @@ export default {
|
|
|
this.errorUrl = res.data
|
|
|
}
|
|
|
this.tool.showMessage(res,() => {
|
|
|
+ this.param = this.$refs.basicLayout.param
|
|
|
this.$refs.basicLayout.listData()
|
|
|
})
|
|
|
},
|
|
|
@@ -204,6 +212,7 @@ export default {
|
|
|
this.$refs['basicLayout'].param.content.where.type = this.type
|
|
|
this.$refs['basicLayout'].param.content.where.cooperationstatus = this.cooperations
|
|
|
this.$refs['basicLayout'].param.content.pageNumber = 1
|
|
|
+ this.param = this.$refs.basicLayout.param
|
|
|
this.$refs['basicLayout'].listData()
|
|
|
},
|
|
|
onClick (data) {
|
|
|
@@ -213,6 +222,7 @@ export default {
|
|
|
this.$refs['basicLayout'].param.content.isAll = 1
|
|
|
this.$refs['basicLayout'].param.content.sa_saleareaids = []
|
|
|
this.$refs['basicLayout'].param.content.containssub = 1
|
|
|
+ this.param = this.$refs.basicLayout.param
|
|
|
this.$refs['basicLayout'].listData()
|
|
|
} else {
|
|
|
this.areaInfo = data
|
|
|
@@ -220,6 +230,7 @@ export default {
|
|
|
this.$refs['basicLayout'].param.content.sa_saleareaids = [data.sa_saleareaid]
|
|
|
this.$refs['basicLayout'].param.content.containssub = 1
|
|
|
this.$refs['basicLayout'].param.content.isAll = 0
|
|
|
+ this.param = this.$refs.basicLayout.param
|
|
|
this.$refs['basicLayout'].listData()
|
|
|
this.$store.dispatch('sendDataToForm',data)
|
|
|
}
|
|
|
@@ -243,6 +254,7 @@ export default {
|
|
|
},
|
|
|
list(param) {
|
|
|
param.content.isAll = 0
|
|
|
+ this.param = param
|
|
|
},
|
|
|
/*合作伙伴类型*/
|
|
|
async queryType(){
|