|
|
@@ -301,6 +301,17 @@
|
|
|
v-hasPermi="['qw:externalContact:export']"
|
|
|
>导出</el-button>
|
|
|
</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-button
|
|
|
type="primary"
|
|
|
@@ -939,7 +950,7 @@ import {
|
|
|
setCustomerCourseSop,
|
|
|
getCustomerCourseSop,
|
|
|
setCustomerCourseSopList,
|
|
|
- unBindUserId, updateExternalContactCall,updateExternalContactStatus,getWatchLogList
|
|
|
+ unBindUserId, updateExternalContactCall,updateExternalContactStatus,getWatchLogList,exportRepeatExternalContact
|
|
|
} from '@/api/qw/externalContact'
|
|
|
import {getMyQwUserList, getMyQwCompanyList, updateUser,getQwUserListLikeName} from "@/api/qw/user";
|
|
|
import {listTag, getTag, searchTags} from "@/api/qw/tag";
|
|
|
@@ -1033,9 +1044,11 @@ export default {
|
|
|
open:false,
|
|
|
index:null,
|
|
|
},
|
|
|
- sTime:null,
|
|
|
- eTime:null,
|
|
|
- createTime:null,
|
|
|
+ sTime:null,
|
|
|
+ eTime:null,
|
|
|
+ createTime:null,
|
|
|
+ userIds: [],
|
|
|
+ exportRepeatLoading: false,
|
|
|
// 遮罩层
|
|
|
loading: false,
|
|
|
// 导出遮罩层
|
|
|
@@ -1987,6 +2000,7 @@ export default {
|
|
|
// 多选框选中数据
|
|
|
handleSelectionChange(selection) {
|
|
|
this.ids = selection.map(item => item.id)
|
|
|
+ this.userIds = selection.map(item => item.fsUserId)
|
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
@@ -2268,6 +2282,26 @@ export default {
|
|
|
this.exportLoading = false;
|
|
|
}).catch(() => {});
|
|
|
},
|
|
|
+ /** 重粉导出按钮操作 */
|
|
|
+ handleRepeatExport() {
|
|
|
+ const { qwUserName, ...queryParams } = this.queryParams;
|
|
|
+ let finalQueryParams = { ...queryParams };
|
|
|
+ if (this.userIds != null && this.userIds.length > 0) {
|
|
|
+ finalQueryParams = { ...queryParams, userIds: this.userIds };
|
|
|
+ }
|
|
|
+ finalQueryParams = {...finalQueryParams,exportType:"index"};
|
|
|
+ this.$confirm('是否确认导出所有重粉企业微信客户数据项?', "警告", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ }).then(() => {
|
|
|
+ this.exportRepeatLoading = true;
|
|
|
+ return exportRepeatExternalContact(finalQueryParams);
|
|
|
+ }).then(response => {
|
|
|
+ this.download(response.msg);
|
|
|
+ this.exportRepeatLoading = false;
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
handleBatchUpdateNotesFilter() {
|
|
|
this.notesOpen.open = true;
|
|
|
this.notesOpen.filter = true;
|