epans hai 11 meses
pai
achega
6177d5ae23
Modificáronse 5 ficheiros con 9 adicións e 99 borrados
  1. 1 47
      src/router/index.js
  2. 1 47
      src/router/index102.js
  3. 1 1
      src/views/Welcome.vue
  4. 3 3
      src/views/basicSettings/CalfType.vue
  5. 3 1
      vue.config.js

+ 1 - 47
src/router/index.js

@@ -1,53 +1,7 @@
 // 102 按需加载路由
 import Vue from 'vue'
 import Router from 'vue-router'
-/*import Login from '@/views/Login.vue'
-import Home from '@/views/Home.vue'
-
-import Welcome from '@/views/Welcome.vue'
-
-
-
-import FeedProcess from '@/views/dataStatistics/FeedProcess.vue'
-import WeightTrend from '@/views/dataStatistics/WeightTrend.vue'
-import FormulaEffect from '@/views/dataStatistics/FormulaEffect.vue'
-import GrowthRate from '@/views/dataStatistics/GrowthRate.vue'
-import GrowthRate from '@/views/dataStatistics/GrowthRate.vue'
-import FeedCost from '@/views/dataStatistics/FeedCost.vue'
-import DiseaseSituation from '@/views/dataStatistics/DiseaseSituation.vue'
-import SurvivalRate from '@/views/dataStatistics/SurvivalRate.vue'
-
-
-import WeightRecord from '@/views/cowManagement/WeightRecord.vue'
-import CowInfo from '@/views/cowManagement/CowInfo.vue'
-import EventRecord from '@/views/cowManagement/EventRecord.vue'
-
-
-
-
-import CowCowShed from '@/views/cowShedManagement/CowCowShed.vue'
-import CowShedGroup from '@/views/cowShedManagement/CowShedGroup.vue'
-
-import FeedPlan from '@/views/formulaPlan/FeedPlan.vue'
-import FormulaTemplate from '@/views/formulaPlan/FormulaTemplate.vue'
-
-import WorkTaskAssign from '@/views/workManagement/WorkTaskAssign.vue'
-import WorkTaskImplement from '@/views/workManagement/WorkTaskImplement.vue'
-
-
-import CalfType from '@/views/basicSettings/CalfType.vue'
-import WorkOrderType from '@/views/basicSettings/WorkOrderType.vue'
-import FeedCarManagement from '@/views/basicSettings/FeedCarManagement.vue'
-import DiseaseManagement from '@/views/basicSettings/DiseaseManagement.vue'
-import InfoRemind from '@/views/basicSettings/InfoRemind.vue'
-import DiseaseType from '@/views/basicSettings/DiseaseType.vue'
-import FeedTemplate from '@/views/basicSettings/FeedTemplate.vue'
-import DefaultPara from '@/views/basicSettings/DefaultPara.vue'
-import FeedCostSet from '@/views/basicSettings/FeedCostSet.vue'
-
-import User from '@/views/systemManagement/User.vue'
-import Role from '@/views/systemManagement/Role.vue'
-*/
+ 
 
 Vue.use(Router)
 

+ 1 - 47
src/router/index102.js

@@ -1,53 +1,7 @@
 // 102 按需加载路由
 import Vue from 'vue'
 import Router from 'vue-router'
-/*import Login from '@/views/Login.vue'
-import Home from '@/views/Home.vue'
-
-import Welcome from '@/views/Welcome.vue'
-
-
-
-import FeedProcess from '@/views/dataStatistics/FeedProcess.vue'
-import WeightTrend from '@/views/dataStatistics/WeightTrend.vue'
-import FormulaEffect from '@/views/dataStatistics/FormulaEffect.vue'
-import GrowthRate from '@/views/dataStatistics/GrowthRate.vue'
-import GrowthRate from '@/views/dataStatistics/GrowthRate.vue'
-import FeedCost from '@/views/dataStatistics/FeedCost.vue'
-import DiseaseSituation from '@/views/dataStatistics/DiseaseSituation.vue'
-import SurvivalRate from '@/views/dataStatistics/SurvivalRate.vue'
-
-
-import WeightRecord from '@/views/cowManagement/WeightRecord.vue'
-import CowInfo from '@/views/cowManagement/CowInfo.vue'
-import EventRecord from '@/views/cowManagement/EventRecord.vue'
-
-
-
-
-import CowCowShed from '@/views/cowShedManagement/CowCowShed.vue'
-import CowShedGroup from '@/views/cowShedManagement/CowShedGroup.vue'
-
-import FeedPlan from '@/views/formulaPlan/FeedPlan.vue'
-import FormulaTemplate from '@/views/formulaPlan/FormulaTemplate.vue'
-
-import WorkTaskAssign from '@/views/workManagement/WorkTaskAssign.vue'
-import WorkTaskImplement from '@/views/workManagement/WorkTaskImplement.vue'
-
-
-import CalfType from '@/views/basicSettings/CalfType.vue'
-import WorkOrderType from '@/views/basicSettings/WorkOrderType.vue'
-import FeedCarManagement from '@/views/basicSettings/FeedCarManagement.vue'
-import DiseaseManagement from '@/views/basicSettings/DiseaseManagement.vue'
-import InfoRemind from '@/views/basicSettings/InfoRemind.vue'
-import DiseaseType from '@/views/basicSettings/DiseaseType.vue'
-import FeedTemplate from '@/views/basicSettings/FeedTemplate.vue'
-import DefaultPara from '@/views/basicSettings/DefaultPara.vue'
-import FeedCostSet from '@/views/basicSettings/FeedCostSet.vue'
-
-import User from '@/views/systemManagement/User.vue'
-import Role from '@/views/systemManagement/Role.vue'
-*/
+ 
 
 Vue.use(Router)
 

+ 1 - 1
src/views/Welcome.vue

@@ -2,7 +2,7 @@
 <!-- 100 -->
   <div class="login_container">
    
-
+ <!-- 欢迎使用犊牛系统 -->
 
     <!-- <div class="card-bx">
              

+ 3 - 3
src/views/basicSettings/CalfType.vue

@@ -7,9 +7,9 @@
       <!-- 搜索区域 -->
       <div class="search-bx1">
           <el-input v-model="searchData.name" placeholder="犊牛类型"  style="width: 220px;" class="g-mr20" clearable />
-          <el-button type="primary"   @click="form_search">搜索</el-button>
-          <el-button type="primary"   @click="form_clear">重置</el-button>
-          <el-button type="primary"   v-if="isButtonEdit" @click="form_add">添加</el-button>
+          <el-button type="primary" class ="btn-search"  @click="form_search">搜索</el-button>
+          <el-button type="primary" class ="btn-clear"  @click="form_clear">重置</el-button>
+          <el-button type="primary"  class ="btn-add"  v-if="isButtonEdit" @click="form_add">添加</el-button>
            <!-- <el-button type="primary"   @click="form_export">导出</el-button> -->
       </div>
 

+ 3 - 1
vue.config.js

@@ -3,12 +3,14 @@ module.exports = {
   devServer: {
     proxy: process.env.VUE_APP_BASE_API
   },
+  // 限制打包大小,让网络加载更快的,不需要的时候注释
   configureWebpack: {
     optimization: {
       minimize: true,
       splitChunks: {
         chunks: 'all',
-        maxSize: 20000
+        maxSize: 20000,
+        minSize: 10000
       }
     }
   }