导出跟进状态

This commit is contained in:
“wanyongkang”
2022-01-14 16:08:47 +08:00
parent 39efc34bc6
commit 62ac781957

View File

@@ -1,5 +1,6 @@
<template>
<div>
<el-button v-if="$local.isRoot()" size="small" @click="exportData()" plain>导出数据</el-button>
<div style="float:right;">
<el-date-picker
v-model="time_search"
@@ -13,7 +14,7 @@
</div>
<el-table :data="retData.Data" row-key="id" border size="medium" :height="$getHeight(100)">
<el-table-column prop="create_time" label="创建时间" width="200"></el-table-column>
<el-table-column prop="manager" label="负责人" width="200"></el-table-column>
<el-table-column prop="manager" label="负责人" width="100"></el-table-column>
<el-table-column label="用户" width="150">
<template slot-scope="scope">
<el-link @click="click_username(scope.row)">点击查看</el-link>
@@ -201,7 +202,14 @@ export default {
this.searchModel.e_time = this.time_search[1]
}this.searchModel.PageIndex = 1;
this.get();
}
},
exportData () {
if (this.time_search && this.time_search.length === 2) {
this.searchModel.s_time = this.time_search[0]
this.searchModel.e_time = this.time_search[1]
}
this.$api.getDownloadFile(this.$api.phpURL + 'manager/userfollow/exportAllFollowRecord', {data: this.search_info}, '跟进记录.csv')
},
}
};
</script>