Ver Fonte

rename mock api name - generation

hare8999@163.com há 3 anos atrás
pai
commit
ecf8a5578d

+ 1 - 1
mock/modules/elective-generation.js

@@ -7,7 +7,7 @@ const mockPreferenceCount = 3 // 1 or 3 // 1志愿/3志愿
 
 module.exports = [
   {
-    url: '/mock/front/report/getElectiveStatus',
+    url: '/mock/front/elective/generation/getElectiveStatus',
     type: 'get',
     response: config => {
       return {

+ 1 - 1
src/api/webApi/elective/generation.js

@@ -2,7 +2,7 @@ import request from '@/utils/request'
 
 export function getElectiveStatus(params) {
   return request({
-    url: '/mock/front/report/getElectiveStatus',
+    url: '/mock/front/elective/generation/getElectiveStatus',
     method: 'get',
     params
   })

+ 1 - 1
src/views/elective/generation/detail.vue

@@ -118,7 +118,7 @@ export default {
       }
     },
     logDialogWidth() {
-      const expectedWidth = (this.prevData.groups.length + 2) * 160 // 假定elective-generation-flow-log 单格宽160
+      const expectedWidth = (this.prevData.groups.length + 3) * 160 // 假定elective-generation-flow-log 单格宽160
       const finalWidth = Math.min(expectedWidth, window.innerWidth * 0.8)
       return finalWidth + 'px'
     }