导出记录
This commit is contained in:
parent
58980de56d
commit
45d04d1682
@ -172,6 +172,9 @@ const exportDoctor = (data) => {
|
||||
const exportJoin = (data) => {
|
||||
return http.post("/admin/stats/user/export", data);
|
||||
};
|
||||
const exportRecord = (data) => {
|
||||
return http.post("/admin/export/record", data);
|
||||
};
|
||||
const getOssSign=(data)=>{
|
||||
return http.get('/admin/sign/oss', data);
|
||||
}
|
||||
@ -236,5 +239,6 @@ export default {
|
||||
updateCaseItem,
|
||||
exportHospital,
|
||||
exportDoctor,
|
||||
exportJoin
|
||||
exportJoin,
|
||||
exportRecord
|
||||
}
|
||||
@ -55,7 +55,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="last_case_updated_at" label="病例最新更新时间" width="165" />
|
||||
<el-table-column prop="created_at" label="创建时间" width="165" />
|
||||
<el-table-column label="操作" width="300" fixed="right">
|
||||
<el-table-column label="操作" width="380" fixed="right">
|
||||
<template #default="scope">
|
||||
<el-button size="small"
|
||||
type="primary"
|
||||
@ -67,6 +67,8 @@
|
||||
@click="handleGoWhite(scope.row.project_id)">白名单</el-button> -->
|
||||
<el-button size="small"
|
||||
@click="handleGoPlatform(scope.row.project_id)">对接平台</el-button>
|
||||
<el-button size="small"
|
||||
@click="handleGoRecord(scope.row.project_id)">导出记录</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -88,6 +90,7 @@ import { onMounted, reactive, ref } from "vue";
|
||||
import { ElMessage, ElMessageBox } from 'element-plus';
|
||||
import { useRouter } from 'vue-router'
|
||||
import { formatDate } from "../../utils/format";
|
||||
import { downloadFile } from '../../utils/downloadFile';
|
||||
const router = useRouter();
|
||||
const platformRef = ref(null);
|
||||
const caseRef = ref(null);
|
||||
@ -161,6 +164,17 @@ const handleGoPlatform=(id)=>{
|
||||
platformRef.value.init(id)
|
||||
})
|
||||
|
||||
}
|
||||
const handleGoRecord= async(id)=>{
|
||||
const res = await userApi.exportRecord({
|
||||
project_id:id,
|
||||
type:3,
|
||||
Keyword: '进入问卷'
|
||||
});
|
||||
if(res.code==200){
|
||||
downloadFile(res.data,'导出记录')
|
||||
}
|
||||
|
||||
}
|
||||
const handleSizeChange = (size) => {
|
||||
pageFrom.page_size = size;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user