diff --git a/src/api/user.js b/src/api/user.js
index 43c9d34..7ce07fa 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -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
}
\ No newline at end of file
diff --git a/src/view/case/index.vue b/src/view/case/index.vue
index 7cba2bb..e7c373c 100644
--- a/src/view/case/index.vue
+++ b/src/view/case/index.vue
@@ -55,7 +55,7 @@
-
+
白名单 -->
对接平台
+ 导出记录
@@ -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;