导出跟进状态
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
|
<el-button v-if="$local.isRoot()" size="small" @click="exportData()" plain>导出数据</el-button>
|
||||||
<div style="float:right;">
|
<div style="float:right;">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="time_search"
|
v-model="time_search"
|
||||||
@@ -13,7 +14,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-table :data="retData.Data" row-key="id" border size="medium" :height="$getHeight(100)">
|
<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="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">
|
<el-table-column label="用户" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link @click="click_username(scope.row)">点击查看</el-link>
|
<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.e_time = this.time_search[1]
|
||||||
}this.searchModel.PageIndex = 1;
|
}this.searchModel.PageIndex = 1;
|
||||||
this.get();
|
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>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user