Bladeren bron

继续推进

nahida 1 jaar geleden
bovenliggende
commit
1b35f02ffb
3 gewijzigde bestanden met toevoegingen van 13 en 6 verwijderingen
  1. 10 3
      src/views/qyxypj/xypjdj/detailList.vue
  2. 1 1
      src/views/test/index.vue
  3. 2 2
      vite.config.js

+ 10 - 3
src/views/qyxypj/xypjdj/detailList.vue

@@ -3,11 +3,18 @@
 import request from "@/utils/request.js";
 
 const getData = async ()=>{
-  const res = await request.get('/basicData/xcrEBaseinfo/all-in',{
+  // const res = await request.get('/basicData/xcrEBaseinfo/all-in',{
+  //   params:{
+  //     uniCode: '91431227MA4LB1K97C'
+  //   }
+  // })
+  // console.log(res);
+  const res = await request.get('/basicData/xcrSummaryLoanDetails/annual-statistics',{
     params:{
-      uniCode: '91431227MA4LB1K97C'
+      year: '2024',
+      month: '1'
     }
-  })
+  });
   console.log(res);
 }
 

+ 1 - 1
src/views/test/index.vue

@@ -6,7 +6,7 @@ const closeDialog = ()=>{
   dialogVisible.value = false;
 }
 const testReport = async ()=>{
-  await download('/report/downloadReport',{uniCode:'91431227MA4L6U5508'},"信用报告.docx")
+  await download('/report/downloadReport',{uniCode:'93431227MA4L3W2G0C'},"信用报告.docx")
 }
 
 </script>

+ 2 - 2
vite.config.js

@@ -31,8 +31,8 @@ export default defineConfig(({ mode, command }) => {
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         '/dev-api': {
-          target: 'http://localhost:8900/background',
-          // target: 'http://localhost:18902',
+          // target: 'http://localhost:8900/background',
+          target: 'http://localhost:18902',
           // target: 'http://42.48.99.5:8900/background',
           changeOrigin: true,
           rewrite: (p) => p.replace(/^\/dev-api/, '')