|
@@ -275,6 +275,17 @@
|
|
|
v-hasPermi="['qw:externalContact:myExport']"
|
|
v-hasPermi="['qw:externalContact:myExport']"
|
|
|
>导出</el-button>
|
|
>导出</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ plain
|
|
|
|
|
+ icon="el-icon-download"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :loading="exportRepeatLoading"
|
|
|
|
|
+ @click="handleRepeatExport"
|
|
|
|
|
+ v-hasPermi="['qw:externalContact:exportRepeat']"
|
|
|
|
|
+ >导出重粉记录</el-button>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="1.5">
|
|
<el-col :span="1.5">
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -1010,6 +1021,7 @@ import {
|
|
|
getCustomerCourseSop,
|
|
getCustomerCourseSop,
|
|
|
setCustomerCourseSopList,
|
|
setCustomerCourseSopList,
|
|
|
syncMyExternalContact, unBindUserId, updateExternalContactCall,exportMyExternalContact,updateExternalContactStatus,getWatchLogList
|
|
syncMyExternalContact, unBindUserId, updateExternalContactCall,exportMyExternalContact,updateExternalContactStatus,getWatchLogList
|
|
|
|
|
+ ,exportRepeatExternalContact
|
|
|
} from '@/api/qw/externalContact'
|
|
} from '@/api/qw/externalContact'
|
|
|
import info from "@/views/qw/externalContact/info.vue";
|
|
import info from "@/views/qw/externalContact/info.vue";
|
|
|
import {getMyQwUserList, getMyQwCompanyList, handleInputAuthAppKey, updateUser} from "@/api/qw/user";
|
|
import {getMyQwUserList, getMyQwCompanyList, handleInputAuthAppKey, updateUser} from "@/api/qw/user";
|
|
@@ -1032,6 +1044,8 @@ export default {
|
|
|
components:{PaginationMore, mycustomer,customerDetails,SopDialog,selectUser,info,Collection,userDetails},
|
|
components:{PaginationMore, mycustomer,customerDetails,SopDialog,selectUser,info,Collection,userDetails},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ userIds: [],
|
|
|
|
|
+ exportRepeatLoading: false,
|
|
|
member:{
|
|
member:{
|
|
|
title:"客户详情",
|
|
title:"客户详情",
|
|
|
open:false,
|
|
open:false,
|
|
@@ -1297,6 +1311,25 @@ export default {
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ /** 重粉导出按钮操作 */
|
|
|
|
|
+ handleRepeatExport() {
|
|
|
|
|
+ let finalQueryParams = this.queryParams
|
|
|
|
|
+ if (this.userIds != null && this.userIds.length > 0) {
|
|
|
|
|
+ finalQueryParams = { ...finalQueryParams, userIds: this.userIds };
|
|
|
|
|
+ }
|
|
|
|
|
+ finalQueryParams = {...finalQueryParams,exportType:"my"};
|
|
|
|
|
+ this.$confirm('是否确认导出所有重粉企业微信客户数据项?', "警告", {
|
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
|
+ type: "warning"
|
|
|
|
|
+ }).then(() => {
|
|
|
|
|
+ this.exportRepeatLoading = true;
|
|
|
|
|
+ return exportRepeatExternalContact(finalQueryParams);
|
|
|
|
|
+ }).then(response => {
|
|
|
|
|
+ this.download(response.msg);
|
|
|
|
|
+ this.exportRepeatLoading = false;
|
|
|
|
|
+ }).catch(() => {});
|
|
|
|
|
+ },
|
|
|
/** 重粉查看操作 */
|
|
/** 重粉查看操作 */
|
|
|
showLog(row) {
|
|
showLog(row) {
|
|
|
this.log.queryParams.fsUserId = row.fsUserId;
|
|
this.log.queryParams.fsUserId = row.fsUserId;
|
|
@@ -2024,6 +2057,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id)
|
|
this.ids = selection.map(item => item.id)
|
|
|
|
|
+ this.userIds = selection.map(item => item.fsUserId)
|
|
|
this.single = selection.length!==1
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
this.multiple = !selection.length
|
|
|
},
|
|
},
|