|
|
@@ -253,17 +253,6 @@
|
|
|
<customer-assign-list ref="assignList" @close="closeAssignList"></customer-assign-list>
|
|
|
</el-dialog>
|
|
|
|
|
|
- <el-dialog :title="xy.title" :visible.sync="xy.open" width="1000px" @close="xy.open=false" append-to-body>
|
|
|
- <div class="xy-content">
|
|
|
- <div class="xy-img">
|
|
|
- <img src="@/assets/image/xy_01.jpg"/>
|
|
|
- <img src="@/assets/image/xy_02.jpg"/>
|
|
|
- </div>
|
|
|
- <div class="footer">
|
|
|
- <el-button @click="submitExport" :disabled="exportDisable">{{exportBtnText}}</el-button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -285,15 +274,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
companyUser:store.getters.user,
|
|
|
- exportLoading:null,
|
|
|
- exportInteval:null,
|
|
|
- exportTime:60,
|
|
|
- exportBtnText:"导出",
|
|
|
- exportDisable:true,
|
|
|
- xy:{
|
|
|
- title:"免责协议",
|
|
|
- open:false,
|
|
|
- },
|
|
|
visitStatusOptions:[],
|
|
|
isDuplicateOptions:[ {"dictLabel":"不限","dictValue":""},{"dictLabel":"从客户","dictValue":1},{"dictLabel":"非从客户","dictValue":2}],
|
|
|
tagIds:[],
|
|
|
@@ -612,44 +592,18 @@ export default {
|
|
|
},
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
- this.exportTime=10;
|
|
|
- this.xy.open=true;
|
|
|
- var that=this;
|
|
|
- this.exportDisable=true;
|
|
|
- that.exportInteval= setInterval(function(){
|
|
|
- that.exportBtnText="同意隐私协议("+that.exportTime+")"
|
|
|
- that.exportTime--;
|
|
|
- if(that.exportTime<1){
|
|
|
- that.exportBtnText="同意隐私协议"
|
|
|
- clearInterval(that.exportInteval)
|
|
|
- that.exportInteval=null;
|
|
|
- that.exportDisable=false;
|
|
|
- }
|
|
|
- },1000);
|
|
|
- },
|
|
|
- submitExport(){
|
|
|
- var that=this;
|
|
|
+ const queryParams = this.addDateRange({...this.queryParams}, this.dateRange);
|
|
|
if(this.tagIds.length>0){
|
|
|
- this.queryParams.tags=this.tagIds.toString();
|
|
|
- }
|
|
|
- else{
|
|
|
- this.queryParams.tags=null
|
|
|
+ queryParams.tags=this.tagIds.toString();
|
|
|
}
|
|
|
this.$confirm('是否确认导出所有客户数据项?', "警告", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
|
type: "warning"
|
|
|
}).then(function() {
|
|
|
- that.exportLoading = that.$loading({
|
|
|
- lock: true,
|
|
|
- text: '处理中...',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- });
|
|
|
- return exportCustomer(that.addDateRange(that.queryParams, that.dateRange));
|
|
|
+ return exportCustomer(queryParams);
|
|
|
}).then(response => {
|
|
|
- that.exportLoading.close();
|
|
|
- that.download(response.msg);
|
|
|
+ this.download(response.msg);
|
|
|
}).catch(function() {});
|
|
|
},
|
|
|
|