12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import axios from 'axios';
- export function getReportUserInfo(pid,uid) {
- return axios.get('/report/userInfo',{
- params: {
- pid: pid,
- uid: uid
- }
- })
- .then(res => res.data);
- }
- export function getGlobalResult(paperResultId) {
- return axios.get('/report/globalResult',{
- params: {
- paperResultId: paperResultId,
- }
- })
- .then(res => res.data);
- }
- export function getReportUserTime(pid,uid) {
- return axios.get('/report/useTime',{
- params: {
- pid: pid,
- uid: uid
- }
- })
- .then(res => res.data);
- }
- export function getSpecialReport(pid,uid,resultId) {
- if(resultId){
- return axios.get('/specialReport/generate1',{
- params: {
- resultId: resultId,
- }
- })
- .then(res => res.data);
- }
- else{
- return axios.get('/specialReport/generate',{
- params: {
- pid: pid,
- uid: uid
- }
- })
- .then(res => res.data);
- }
- }
- export function generateMind(pid,uid,resultId) {
- if(resultId){
- return axios.get('/specialReport/generateMind1',{
- params: {
- resultId: resultId,
- }
- })
- .then(res => res.data);
- }
- else{
- return axios.get('/specialReport/generateMind',{
- params: {
- pid: pid,
- uid: uid
- }
- })
- .then(res => res.data);
- }
- }
|