diff --git a/config/index.js b/config/index.js index e7a8606..2261511 100644 --- a/config/index.js +++ b/config/index.js @@ -5,6 +5,7 @@ const path = require('path') module.exports = { + lintOnSave: false, dev: { // Paths @@ -26,7 +27,7 @@ module.exports = { }, '/geoserver': { // target: 'http://120.48.105.88', // 线上 - target: 'http://124.16.219.154:8080', // 测试环境 + target: 'http://124.222.8.13:9801', // 测试环境 changeOrigin: true, // 是否跨域 secure: false, // 是否使用https pathRewrite: { diff --git a/src/api/home.js b/src/api/home.js index b45201e..c6dc928 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -55,10 +55,11 @@ export function saveVisits(data) { // } // 航次列表 -export function getVoyage() { +export function getVoyage(query) { return request({ url: '/voyage/reg/page.htm', - method: 'get' + method: 'get', + params: query }) } diff --git a/src/views/home.vue b/src/views/home.vue index acacfc5..32462ba 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -63,30 +63,44 @@
- -
- -
+ +
+ 等深线: + + {{ depth }}米 + +
+ + + + +
+ +
+
@@ -232,7 +246,7 @@