yf_zhb 2 سال پیش
والد
کامیت
ef3c051396
5فایلهای تغییر یافته به همراه131 افزوده شده و 78 حذف شده
  1. 20 19
      pingpu_vue/config/index.js
  2. 59 51
      pingpu_vue/index.html
  3. 45 1
      pingpu_vue/package-lock.json
  4. 5 5
      pingpu_vue/src/page/index/index.vue
  5. 2 2
      pingpu_vue/src/page/login/login.vue

+ 20 - 19
pingpu_vue/config/index.js

@@ -1,36 +1,37 @@
-'use strict'
+"use strict";
 // Template version: 1.3.1
 // Template version: 1.3.1
 // see http://vuejs-templates.github.io/webpack for documentation.
 // see http://vuejs-templates.github.io/webpack for documentation.
 
 
-const path = require('path')
+const path = require("path");
 
 
 module.exports = {
 module.exports = {
   dev: {
   dev: {
     // Paths
     // Paths
-    assetsSubDirectory: 'static',
-    assetsPublicPath: '/',
+    assetsSubDirectory: "static",
+    assetsPublicPath: "/",
     proxyTable: {
     proxyTable: {
-      '/api': {
-        target: ' http://106.119.196.18:10004', //线上
+      "/api": {
+        target: " http://106.119.196.18:10004", // 线上
         // target: 'http://192.168.1.52:10004',
         // target: 'http://192.168.1.52:10004',
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite: {
         pathRewrite: {
-          '^/api': '/api' //重写接口
+          "^/api": "/api" // 重写接口
         }
         }
       },
       },
-      '/baoziyi': { // 孢子仪后台地址,请求时地址以baoziyi开头,就会走下面的地址。
-        target: ' http://106.119.196.18:7005', // 生产
+      "/baoziyi": {
+        // 孢子仪后台地址,请求时地址以baoziyi开头,就会走下面的地址。
+        target: " http://106.119.196.18:7005", // 生产
         // target: ' http://103.89.185.87:7005', // 测试
         // target: ' http://103.89.185.87:7005', // 测试
         // target: ' http://localhost:7005',
         // target: ' http://localhost:7005',
         changeOrigin: true,
         changeOrigin: true,
         pathRewrite: {
         pathRewrite: {
-          '^/baoziyi': '/baoziyi' //重写接口
+          "^/baoziyi": "/baoziyi" // 重写接口
         }
         }
       }
       }
     },
     },
 
 
     // Various Dev Server settings
     // Various Dev Server settings
-    host: '192.168.151.95', // can be overwritten by process.env.HOST
+    host: "192.168.1.106", // can be overwritten by process.env.HOST
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
     autoOpenBrowser: false,
     autoOpenBrowser: false,
     errorOverlay: true,
     errorOverlay: true,
@@ -50,7 +51,7 @@ module.exports = {
      */
      */
 
 
     // https://webpack.js.org/configuration/devtool/#development
     // https://webpack.js.org/configuration/devtool/#development
-    devtool: 'cheap-module-eval-source-map',
+    devtool: "cheap-module-eval-source-map",
 
 
     // If you have problems debugging vue-files in devtools,
     // If you have problems debugging vue-files in devtools,
     // set this to false - it *may* help
     // set this to false - it *may* help
@@ -62,12 +63,12 @@ module.exports = {
 
 
   build: {
   build: {
     // Template for index.html
     // Template for index.html
-    index: path.resolve(__dirname, '../dist/index.html'),
+    index: path.resolve(__dirname, "../dist/index.html"),
 
 
     // Paths
     // Paths
-    assetsRoot: path.resolve(__dirname, '../dist'),
-    assetsSubDirectory: 'static',
-    assetsPublicPath: '/',
+    assetsRoot: path.resolve(__dirname, "../dist"),
+    assetsSubDirectory: "static",
+    assetsPublicPath: "/",
 
 
     /**
     /**
      * Source Maps
      * Source Maps
@@ -75,14 +76,14 @@ module.exports = {
 
 
     productionSourceMap: true,
     productionSourceMap: true,
     // https://webpack.js.org/configuration/devtool/#production
     // https://webpack.js.org/configuration/devtool/#production
-    devtool: '#source-map',
+    devtool: "#source-map",
 
 
     // Gzip off by default as many popular static hosts such as
     // Gzip off by default as many popular static hosts such as
     // Surge or Netlify already gzip all static assets for you.
     // Surge or Netlify already gzip all static assets for you.
     // Before setting to `true`, make sure to:
     // Before setting to `true`, make sure to:
     // npm install --save-dev compression-webpack-plugin
     // npm install --save-dev compression-webpack-plugin
     productionGzip: false,
     productionGzip: false,
-    productionGzipExtensions: ['js', 'css'],
+    productionGzipExtensions: ["js", "css"],
 
 
     // Run the build command with an extra argument to
     // Run the build command with an extra argument to
     // View the bundle analyzer report after build finishes:
     // View the bundle analyzer report after build finishes:
@@ -90,4 +91,4 @@ module.exports = {
     // Set to `true` or `false` to always turn it on or off
     // Set to `true` or `false` to always turn it on or off
     bundleAnalyzerReport: process.env.npm_config_report
     bundleAnalyzerReport: process.env.npm_config_report
   }
   }
-}
+};

+ 59 - 51
pingpu_vue/index.html

@@ -1,60 +1,68 @@
 <!DOCTYPE html>
 <!DOCTYPE html>
 <html>
 <html>
+  <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
+    <title>农业数字化管理服务平台</title>
+    <link
+      rel="stylesheet"
+      href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"
+    />
+  </head>
+  <style>
+    .el-select-dropdown__item.selected {
+      color: #4f71ff;
+      font-weight: 700;
+    }
 
 
-<head>
-  <meta charset="utf-8">
-  <meta name="viewport" content="width=device-width,initial-scale=1.0">
-  <title>病虫害监测系统</title>
-  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
-</head>
-<style>
-  .el-select-dropdown__item.selected {
-    color: #4f71ff;
-    font-weight: 700;
-  }
-
-  .el-input__inner:hover {
-    border-color: #4f71ff;
-  }
-
-  .is-focus>.el-input__inner {
-    border-color: #4f71ff !important;
-  }
+    .el-input__inner:hover {
+      border-color: #4f71ff;
+    }
 
 
-  .el-message-box__btns>.el-button:hover {
-    border-color: #4f71ff;
-    color: #4f71ff;
-  }
+    .is-focus > .el-input__inner {
+      border-color: #4f71ff !important;
+    }
 
 
-  .el-message-box__btns>.el-button--primary {
-    color: #FFF;
-    background-color: #4f71ff !important;
-    border-color: #4f71ff !important;
-  }
+    .el-message-box__btns > .el-button:hover {
+      border-color: #4f71ff;
+      color: #4f71ff;
+    }
 
 
-  .el-message-box__btns>.el-button--primary:hover {
-    color: #FFF;
-    background-color: #4f71ff !important;
-    border-color: #4f71ff !important;
-  }
-</style>
+    .el-message-box__btns > .el-button--primary {
+      color: #fff;
+      background-color: #4f71ff !important;
+      border-color: #4f71ff !important;
+    }
 
 
-<body>
-  <div id="app"></div>
-  <!-- built files will be auto injected -->
-  <script>
-    window._AMapSecurityConfig = {
-      securityJsCode: '948c53e498c3188cb404ccdaf71be16c',
+    .el-message-box__btns > .el-button--primary:hover {
+      color: #fff;
+      background-color: #4f71ff !important;
+      border-color: #4f71ff !important;
     }
     }
-  </script>
-  <script
-    src="https://webapi.amap.com/maps?v=2.0&key=c907b4265ae043cbdbf64304f1f80b2b&plugin=AMap.PolygonEditor,AMap.MarkerClusterer,AMap.DistrictSearch"></script>
-  <!-- <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/ezuikit.js"></script> -->
-  <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/ezuikit.js" integrity="sha384-c04Hx/aw5tjO2+wOkP0qgfBIDSsOde7j/NMmkkZhsRN1oR5uGPb8/JPGGgqqfDu8" crossorigin="anonymous"></script>
-  <!-- <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/jsencrypt.min.js"></script>
-   -->
-   <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/jsencrypt.min.js" integrity="sha384-um7kEhiTTYAZgvwNbwMpjPLGNzw2e3iHdjr2CKg/vGkH6o3M7z8Y4+CvLaCeI9pe" crossorigin="anonymous"></script>
-  <script src="./static/imouplayer.js"></script>
-</body>
+  </style>
 
 
-</html>
+  <body>
+    <div id="app"></div>
+    <!-- built files will be auto injected -->
+    <script>
+      window._AMapSecurityConfig = {
+        securityJsCode: "948c53e498c3188cb404ccdaf71be16c",
+      };
+    </script>
+    <script src="https://webapi.amap.com/maps?v=2.0&key=c907b4265ae043cbdbf64304f1f80b2b&plugin=AMap.PolygonEditor,AMap.MarkerClusterer,AMap.DistrictSearch"></script>
+    <!-- <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/ezuikit.js"></script> -->
+    <script
+      src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/ezuikit.js"
+      integrity="sha384-c04Hx/aw5tjO2+wOkP0qgfBIDSsOde7j/NMmkkZhsRN1oR5uGPb8/JPGGgqqfDu8"
+      crossorigin="anonymous"
+    ></script>
+    <!-- <script src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/jsencrypt.min.js"></script>
+   -->
+    <script
+      src="https://webstaticimg.oss-cn-hangzhou.aliyuncs.com/bigdata_app/js/jsencrypt.min.js"
+      integrity="sha384-um7kEhiTTYAZgvwNbwMpjPLGNzw2e3iHdjr2CKg/vGkH6o3M7z8Y4+CvLaCeI9pe"
+      crossorigin="anonymous"
+    ></script>
+    <script src="./static/imouplayer.js"></script>
+  </body>
+</html>

+ 45 - 1
pingpu_vue/package-lock.json

@@ -5,15 +5,19 @@
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {
     "": {
     "": {
+      "name": "pingpu_vue",
       "version": "1.0.0",
       "version": "1.0.0",
       "dependencies": {
       "dependencies": {
+        "@tinymce/tinymce-vue": "^3.2.8",
         "axios": "^0.21.1",
         "axios": "^0.21.1",
         "echarts": "^4.7.0",
         "echarts": "^4.7.0",
         "echarts-extension-amap": "^1.9.2",
         "echarts-extension-amap": "^1.9.2",
-        "element-ui": "^2.15.9",
+        "element-ui": "^2.14.1",
         "highcharts": "^8.0.4",
         "highcharts": "^8.0.4",
+        "tinymce": "^4.8.2",
         "v-viewer": "^1.5.1",
         "v-viewer": "^1.5.1",
         "vue": "^2.5.2",
         "vue": "^2.5.2",
+        "vue-highcharts": "^0.1.0",
         "vue-jsonp": "^2.0.0",
         "vue-jsonp": "^2.0.0",
         "vue-lazyload": "^1.3.3",
         "vue-lazyload": "^1.3.3",
         "vue-picture-bd-marker": "^1.3.8",
         "vue-picture-bd-marker": "^1.3.8",
@@ -45,6 +49,7 @@
         "extract-text-webpack-plugin": "^3.0.0",
         "extract-text-webpack-plugin": "^3.0.0",
         "file-loader": "^1.1.4",
         "file-loader": "^1.1.4",
         "friendly-errors-webpack-plugin": "^1.6.1",
         "friendly-errors-webpack-plugin": "^1.6.1",
+        "highcharts": "^8.0.4",
         "html-webpack-plugin": "^2.30.1",
         "html-webpack-plugin": "^2.30.1",
         "less": "^3.9",
         "less": "^3.9",
         "less-loader": "^5.0.0",
         "less-loader": "^5.0.0",
@@ -386,6 +391,14 @@
         "node": ">= 8"
         "node": ">= 8"
       }
       }
     },
     },
+    "node_modules/@tinymce/tinymce-vue": {
+      "version": "3.2.8",
+      "resolved": "https://registry.npmmirror.com/@tinymce/tinymce-vue/-/tinymce-vue-3.2.8.tgz",
+      "integrity": "sha512-jEz+NZ0g+FZFz273OEUWz9QkwPMyjc5AJYyxOgu51O1Y5UaJ/6IUddXTX6A20mwCleEv5ebwNYdalviafx4fnA==",
+      "peerDependencies": {
+        "vue": "^2.4.3"
+      }
+    },
     "node_modules/@types/json5": {
     "node_modules/@types/json5": {
       "version": "0.0.29",
       "version": "0.0.29",
       "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
       "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
@@ -14898,6 +14911,11 @@
       "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==",
       "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==",
       "dev": true
       "dev": true
     },
     },
+    "node_modules/tinymce": {
+      "version": "4.9.11",
+      "resolved": "https://registry.npmmirror.com/tinymce/-/tinymce-4.9.11.tgz",
+      "integrity": "sha512-nkSLsax+VY5DBRjMFnHFqPwTnlLEGHCco82FwJF2JNH6W+5/ClvNC1P4uhD5lXPDNiDykSHR0XJdEh7w/ICHzA=="
+    },
     "node_modules/tmp": {
     "node_modules/tmp": {
       "version": "0.0.33",
       "version": "0.0.33",
       "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
       "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
@@ -15649,6 +15667,15 @@
       "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
       "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
       "dev": true
       "dev": true
     },
     },
+    "node_modules/vue-highcharts": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/vue-highcharts/-/vue-highcharts-0.1.0.tgz",
+      "integrity": "sha512-P0474D2s6P1ww5c/KbMN4iG8IOp7L1nWgjQwRJvKsq2yCNaeywg49/EHa2zHOKbS1MFxOXkRN2Vu1OSBc+gFYQ==",
+      "peerDependencies": {
+        "highcharts": ">=4.2.0",
+        "vue": ">=2.0.0"
+      }
+    },
     "node_modules/vue-hot-reload-api": {
     "node_modules/vue-hot-reload-api": {
       "version": "2.3.4",
       "version": "2.3.4",
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@@ -18081,6 +18108,12 @@
         "fastq": "^1.6.0"
         "fastq": "^1.6.0"
       }
       }
     },
     },
+    "@tinymce/tinymce-vue": {
+      "version": "3.2.8",
+      "resolved": "https://registry.npmmirror.com/@tinymce/tinymce-vue/-/tinymce-vue-3.2.8.tgz",
+      "integrity": "sha512-jEz+NZ0g+FZFz273OEUWz9QkwPMyjc5AJYyxOgu51O1Y5UaJ/6IUddXTX6A20mwCleEv5ebwNYdalviafx4fnA==",
+      "requires": {}
+    },
     "@types/json5": {
     "@types/json5": {
       "version": "0.0.29",
       "version": "0.0.29",
       "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
       "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz",
@@ -29848,6 +29881,11 @@
       "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==",
       "integrity": "sha512-qsdtZH+vMoCARQtyod4imc2nIJwg9Cc7lPRrw9CzF8ZKR0khdr8+2nX80PBhET3tcyTtJDxAffGh2rXH4tyU8A==",
       "dev": true
       "dev": true
     },
     },
+    "tinymce": {
+      "version": "4.9.11",
+      "resolved": "https://registry.npmmirror.com/tinymce/-/tinymce-4.9.11.tgz",
+      "integrity": "sha512-nkSLsax+VY5DBRjMFnHFqPwTnlLEGHCco82FwJF2JNH6W+5/ClvNC1P4uhD5lXPDNiDykSHR0XJdEh7w/ICHzA=="
+    },
     "tmp": {
     "tmp": {
       "version": "0.0.33",
       "version": "0.0.33",
       "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
       "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
@@ -30477,6 +30515,12 @@
         }
         }
       }
       }
     },
     },
+    "vue-highcharts": {
+      "version": "0.1.0",
+      "resolved": "https://registry.npmmirror.com/vue-highcharts/-/vue-highcharts-0.1.0.tgz",
+      "integrity": "sha512-P0474D2s6P1ww5c/KbMN4iG8IOp7L1nWgjQwRJvKsq2yCNaeywg49/EHa2zHOKbS1MFxOXkRN2Vu1OSBc+gFYQ==",
+      "requires": {}
+    },
     "vue-hot-reload-api": {
     "vue-hot-reload-api": {
       "version": "2.3.4",
       "version": "2.3.4",
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
       "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",

+ 5 - 5
pingpu_vue/src/page/index/index.vue

@@ -4,7 +4,7 @@
     <div class="projectbox_top">
     <div class="projectbox_top">
       <div class="projectbox_top_left">
       <div class="projectbox_top_left">
         <img src="../../../static/images/index/logo.png" alt="" />
         <img src="../../../static/images/index/logo.png" alt="" />
-        <p>病虫害监测系统</p>
+        <p>农业数字化管理服务平台</p>
       </div>
       </div>
       <div class="projectbox_top_right">
       <div class="projectbox_top_right">
         <div class="lingdangbox">
         <div class="lingdangbox">
@@ -212,9 +212,9 @@ export default {
   //生命周期 - 挂载完成(可以访问DOM元素)
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
   mounted() {
     // this.getNavList();
     // this.getNavList();
-    setInterval(()=>{
+    setInterval(() => {
       this.getwarningread();
       this.getwarningread();
-    },600000)
+    }, 600000);
   },
   },
   beforeUpdate() {}, //生命周期 - 更新之前
   beforeUpdate() {}, //生命周期 - 更新之前
   updated() {}, //生命周期 - 更新之后
   updated() {}, //生命周期 - 更新之后
@@ -272,7 +272,7 @@ li {
           vertical-align: middle;
           vertical-align: middle;
           margin-right: 10px;
           margin-right: 10px;
         }
         }
-        .lingdang_dian{
+        .lingdang_dian {
           width: 8px;
           width: 8px;
           height: 8px;
           height: 8px;
           background-color: red;
           background-color: red;
@@ -358,4 +358,4 @@ li {
   background-color: #4f71ff;
   background-color: #4f71ff;
   border-color: #4f71ff;
   border-color: #4f71ff;
 }
 }
-</style>
+</style>

+ 2 - 2
pingpu_vue/src/page/login/login.vue

@@ -5,7 +5,7 @@
       <div class="logininfo">
       <div class="logininfo">
         <div class="title">
         <div class="title">
           <p>数字迁安</p>
           <p>数字迁安</p>
-          <p>病虫害监测系统</p>
+          <p>农业数字化管理服务平台</p>
         </div>
         </div>
         <div class="info">
         <div class="info">
           <el-form
           <el-form
@@ -161,4 +161,4 @@ export default {
     }
     }
   }
   }
 }
 }
-</style>
+</style>