|
@@ -32,22 +32,42 @@ export function getReportUserTime(pid,uid) {
|
|
|
.then(res => res.data);
|
|
|
}
|
|
|
|
|
|
-export function getSpecialReport(pid,uid) {
|
|
|
- return axios.get('/specialReport/generate',{
|
|
|
- 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) {
|
|
|
- return axios.get('/specialReport/generateMind',{
|
|
|
- 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);
|
|
|
+ }
|
|
|
}
|