Quellcode durchsuchen

fixed bugs in homepage

maqingyang vor 11 Monaten
Ursprung
Commit
393bcf0310
3 geänderte Dateien mit 15 neuen und 57 gelöschten Zeilen
  1. 6 48
      src/api/index.js
  2. 2 2
      src/views/system/businessInfo.vue
  3. 7 7
      src/views/system/homePage.vue

+ 6 - 48
src/api/index.js

@@ -174,6 +174,12 @@ export function findCooperatorFieldsByName(cooperatorName){
         method: 'get',
     })
 }
+export function getBusinessSize(businessType){
+    return request.post('/business/getBusinessSize',
+        {
+            businessType:businessType
+        });
+    }
 export function businessList(pageNum,pageSize,businessType){
     return request.post('/business/businessList',
         {
@@ -192,54 +198,6 @@ export function selectBusiness(pageNum,pageSize,customerName,businessType){
 
         });
 }
-export function businessToDoList(pageNum,pageSize){
-    return request.post('/business/businessToDoList',
-        {
-            pageNum:pageNum,
-            pageSize:pageSize,
-        });
-}
-
-export function selectBusinessToDo(pageNum,pageSize,customerName){
-    return request.post('/business/selectBusinessToDo',
-        {
-            pageNum:pageNum,
-            pageSize:pageSize,
-            customerName:customerName,
-
-        });
-}
-
-export function businessAnalysisList(pageNum,pageSize){
-    return request.post('/business/businessAnalysisList',        {
-        pageNum:pageNum,
-        pageSize:pageSize,
-    });
-}
-export function selectBusinessAnalysis(pageNum,pageSize,customerName){
-    return request.post('/business/selectBusinessAnalysis',
-        {
-            pageNum:pageNum,
-            pageSize:pageSize,
-            customerName:customerName,
-
-        });
-}
-export function businessFailList(pageNum,pageSize) {
-    return request.post('/business/businessFailList', {
-        pageNum: pageNum,
-        pageSize: pageSize,
-    });
-}
-export function selectBusinessFail(pageNum,pageSize,customerName){
-    return request.post('/business/selectBusinessFail',
-        {
-            pageNum:pageNum,
-            pageSize:pageSize,
-            customerName:customerName,
-
-        });
-}
 export function modelDefineList(){
     return request.get('/model_define/modelDefineList');
 }

+ 2 - 2
src/views/system/businessInfo.vue

@@ -36,7 +36,7 @@
   
           <el-tabs v-model="activeName" @tab-click="handleClick" >
             <el-tab-pane label="业务信息" name="first">
-              <el-descriptions style="margin-top: 20px"  :column="1" border>
+              <el-descriptions style="margin-top: 20px" direction="vertical" :column="1" border>
                 <el-descriptions-item label="业务编号">
                   <p>
                     {{this.businessInfoData.businessNum }}
@@ -62,7 +62,7 @@
             </el-tab-pane>
   
             <el-tab-pane label="客户信息" name="second">
-              <el-descriptions style="margin-top: 20px"  :column="1" border>
+              <el-descriptions style="margin-top: 20px" direction="vertical" :column="1" border>
                 <el-descriptions-item label="客户编号">
                   <p>
                     {{this.customInfoData.customerNum }}

+ 7 - 7
src/views/system/homePage.vue

@@ -82,7 +82,7 @@ import store from "@/store";
 import request from '@/utils/request.js'
 import { fieldInfo, modelInfo } from '../../api';
 import {
-  businessToDoList,businessAnalysisList,businessFailList
+  getBusinessSize
 } from '@/api/index.js'
 export default {
 
@@ -124,26 +124,26 @@ export default {
   beforeMount() {},
   mounted() 
   {
-    businessToDoList(1,1000).then(
+    getBusinessSize(0).then(
         res=>
         {
-          var j = parseInt(res.data.business_todo_list.total)
+          var j = parseInt(res.data.business_size)
           this.baseSize = j
 
         }
     )
 
-    businessAnalysisList(1,1000).then(
+    getBusinessSize(1).then(
         res=>
         {
-          var j = parseInt(res.data.business_analysis_list.total)
+          var j = parseInt(res.data.business_size)
           this.analysisSize = j
         }
     )
-    businessFailList(1,1000).then(
+    getBusinessSize(2).then(
         res=>
         {
-          var j = parseInt(res.data.business_fail_list.total)
+          var j = parseInt(res.data.business_size)
           this.failSize = j
         }
     )