From e136af6032bcc8161cfaa59291c9314d6ffd7fe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=90=AA?= <727393967@qq.com> Date: Sat, 13 Jul 2024 18:00:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=88=AA=E7=BA=BF=E7=BB=98?= =?UTF-8?q?=E5=88=B6=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/dev.env.js | 2 +- src/api/dataSearch.js | 10 + src/api/home.js | 8 +- src/style/style.scss | 120 ++++---- src/views/dataSearch.vue | 589 +++++++++++++++++++-------------------- src/views/home.vue | 69 +++-- 6 files changed, 395 insertions(+), 403 deletions(-) create mode 100644 src/api/dataSearch.js diff --git a/config/dev.env.js b/config/dev.env.js index 06b7b86..8995e53 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -17,7 +17,7 @@ module.exports = merge(prodEnv, { // VUE_APP_API_URL: '"http://10.10.150.237/"' VUE_APP_BASE_API: '"/api"', - VUE_APP_BASE_APIURL: '"http://10.0.90.70/api"', + VUE_APP_BASE_APIURL: '"http://ds.hzzxq.com/api"', VUE_APP_FULL_API: '"http://10.10.151.5:5555"', VUE_APP_BASE_API_FRONT: '"http://10.10.150.128:8080/satellitePub/pub/index.html"', VUE_APP_FILE_API: '"http://10.10.151.5:5555/archives"', diff --git a/src/api/dataSearch.js b/src/api/dataSearch.js new file mode 100644 index 0000000..ceab4e9 --- /dev/null +++ b/src/api/dataSearch.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +// 获取航次列表 +export function getDataSearch(query) { + return request({ + url: '/search/page.htm', + method: 'get', + params: query + }) +} diff --git a/src/api/home.js b/src/api/home.js index e931547..d26aad3 100644 --- a/src/api/home.js +++ b/src/api/home.js @@ -58,7 +58,7 @@ export function saveVisits(data) { export function getVoyage() { return request({ url: '/voyage/reg/page.htm', - method: 'post' + method: 'get' }) } @@ -70,10 +70,10 @@ export function getVoyage() { // type: 'application/x-www-form-urlencoded' // }) // } -export function getVoyageLine(voyage_id) { +export function getVoyageLine(query) { return request({ - url: '/voyage/navigation/list.htm?voyage_id=' + voyage_id, + url: '/voyage/navigation/list.htm', method: 'get', - type: 'application/x-www-form-urlencoded' + params: query }) } diff --git a/src/style/style.scss b/src/style/style.scss index 94dea0d..9a22dc4 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -38,7 +38,7 @@ header{ background:black; // background-image: url(../static/images/banner@2x.png); overflow: hidden; - + } #video-background { min-width: 100%; @@ -59,7 +59,7 @@ header{ img{ height:83px; float: left; - + } span{ font-size: 30px; @@ -117,9 +117,9 @@ header{ height: auto; } } - + nav { - + float: left; height: 66px; position: relative; @@ -146,7 +146,7 @@ header{ height: 100%; line-height: 90px; // padding-top:23px; - text-align: center; + text-align: center; } nav ul ul li { @@ -182,7 +182,7 @@ header{ /* make this equal to the line-height of the links (specified below) */ width: 180px; text-align: left; - + } nav>ul li>ul>li>a{ padding-left:10px; @@ -338,7 +338,7 @@ header{ height:10px; margin-left:7px; } - + .introd{ background: white; margin-top:40px; @@ -356,17 +356,17 @@ header{ } } } - - + + .news_t{ .content_t{ background: white; padding:30px; - } + } .news{ margin-bottom:24px; - + li{ padding-bottom:30px; .fl{ @@ -389,7 +389,7 @@ header{ color:#767676; padding-bottom:48px; line-height: 20px; - + } & p:nth-of-type(3){ color:#a5a5a5; @@ -399,7 +399,7 @@ header{ ul li:nth-of-type(3){ padding-bottom:0; } - + } .quicklook{ .content_t>div{ @@ -433,8 +433,8 @@ header{ } } } - - + + } .inst{ // background:url(../static/images/inst.png) no-repeat center; @@ -463,16 +463,16 @@ header{ } - + .left50{ border-left:8px solid #1f2023; } - + .aboutasos{ line-height: 20px; - + .imgBox{ width:100%; float: left; @@ -508,7 +508,7 @@ header{ .title{ padding:0 4px; } - + li{ overflow: hidden; height: auto; // list-style-type:disc; @@ -516,7 +516,7 @@ header{ padding-right:20px; margin-left:10px; border-bottom:1px solid rgb(81, 81, 81); - + } li span:nth-of-type(1){ float: left; @@ -524,8 +524,8 @@ header{ li span:nth-of-type(2){ float: right; } - - + + } .PublishTrends ul li:nth-last-of-type(1){ border-bottom:0 @@ -546,7 +546,7 @@ header{ margin-bottom: 0px; // border-bottom:1px solid #ffffff; } - + h3{ color: #169bd5; } @@ -554,7 +554,7 @@ header{ position: relative; float: left; &:hover{ - + } .el-icon-paperclip{ padding-right:2px; @@ -613,7 +613,7 @@ header{ i{ font-size: 15px; } - + } } } @@ -663,7 +663,7 @@ header{ text-align: center; } } - + .post-title{ font-size: 24px; margin-top: 0; @@ -706,7 +706,7 @@ header{ height:100%; margin-right: 20px; padding-bottom: 9999px; - margin-bottom: -9999px; + margin-bottom: -9999px; ul{ padding:20px 0 10px 0; @@ -715,7 +715,7 @@ header{ padding:14px 20px; cursor: pointer; } - + } .form{ padding:20px 20px; @@ -760,7 +760,7 @@ header{ div{ background-color: #898989; padding:10px 10px; - + } padding:0; border:1px solid rgb(255, 255, 255); @@ -769,7 +769,7 @@ header{ } } } - + } .content>div{ min-height:500px; @@ -790,7 +790,7 @@ header{ img{ width:22px; margin-bottom:-5px; - margin-right:10px; + margin-right:10px; } p{ padding-bottom:12px; @@ -805,7 +805,7 @@ header{ .footer { width: 100%; // background: #02144E; - + overflow: hidden; .footer_main { overflow: hidden; @@ -819,15 +819,15 @@ header{ .footer_logo img { width: 76px; } - + .footer_biao img { width: 76px; } - + .company_erweima img { width: 100px; } - + .footer_main div { float: left; font-size: 12px; @@ -869,7 +869,7 @@ header{ .footer_chat { width:23%; - } + } } @media (min-width: 1200px){ .footer_main div { @@ -890,18 +890,18 @@ header{ width:26%; } } - + .theLatestSun{ .el-select .el-input.is-focus .el-input__inner,.theLatestSun li .selectBtn .el-input__inner{ color:white; } - + ul{ // display: flex; margin-left:10px; } - + li{ background-color: black; float:left; @@ -937,7 +937,7 @@ header{ color:white; } } - + } ul li:nth-of-type(3n){ margin-right:0 @@ -978,9 +978,9 @@ header{ li{ padding:0; display: flex; - + // line-height: 40px; - + } .orange span{ background-color: #e6770f; @@ -991,7 +991,7 @@ header{ // line-height: 40px; display: inline-block; width:20px; - + } .name{ @@ -1004,7 +1004,7 @@ header{ // text-overflow: ellipsis; } } - } + } .cme .box{ background-color: #c7c7c7; margin:14px 0 10px 0; @@ -1019,19 +1019,19 @@ header{ padding:12px 0 10px 0; background-color: #c7c7c7; li{ - + padding:8px 26px; cursor: pointer; - + } .no{ width:30px; display: inline-block; } - + } - -} + +} .Q1BrowseData{ background-color: #2b2c30; margin-left:14px; @@ -1106,7 +1106,7 @@ header{ .el-date-editor--daterange.el-input, .el-date-editor--daterange.el-input__inner, .el-date-editor--timerange.el-input, .el-date-editor--timerange.el-input__inner{ width:300px; } - + } @@ -1132,7 +1132,7 @@ header{ // display: flex; margin-left:10px; } - + li{ background-color: black; float:left; @@ -1161,7 +1161,7 @@ header{ width:100%; } } - + } ul li:nth-of-type(2n){ margin-right:0 @@ -1182,7 +1182,7 @@ header{ li{ list-style-type: disc; } - + .introduceIndex{ padding-top: 20px; display: flex; @@ -1199,7 +1199,7 @@ header{ overflow: auto; background-color: #2b2c30; color:white; - + } .el-tree-node__content:hover{ background-color:#e6770f @@ -1307,7 +1307,7 @@ header{ padding-bottom: 20px; } } - + } .container_a { padding-top: 90px; @@ -1355,7 +1355,7 @@ header{ } } @media (min-width: 992px){ - + } @@ -1387,10 +1387,10 @@ header{ height: 40px; } - .el-input { - width: 50%; - height: 40px; - } + //.el-input { + // width: 50%; + // height: 40px; + //} .el-button { width: 12%; font-size: 20px; diff --git a/src/views/dataSearch.vue b/src/views/dataSearch.vue index c76d7b3..9534da1 100644 --- a/src/views/dataSearch.vue +++ b/src/views/dataSearch.vue @@ -1,85 +1,116 @@ @@ -346,11 +341,11 @@ export default { justify-content: center; .left { position: relative; - width: 30%; + width: 570px; height: 100%; background: #fff; box-sizing: border-box; - padding: 50px; + padding: 50px 30px; display: flex; flex-direction: column; .left1 { @@ -359,13 +354,9 @@ export default { display: flex; align-items: center; .xiala { - width: 25%; - height: 40px; - } - - .el-input { - width: 50%; + width: 80%; height: 40px; + margin-right: 15px; } .el-button { width: 12%; @@ -390,50 +381,26 @@ export default { } } .left3 { - padding-bottom: 10px; + padding: 10px 0; width: 100%; margin-top: 10px; display: flex; align-items: center; - justify-content: space-between; + justify-content: center; border-bottom: 1px solid #e5e5e5; - p { - font-size: 16px; - color: #333; - } - .left3_1 { - width: 40%; - display: flex; - align-items: center; - justify-content: center; - .el-radio-group{ - display: flex; - align-items: center; - } - } - .left3_2 { - width: 30%; - display: flex; - align-items: center; - justify-content: center; - span { - font-size: 15px; - white-space: nowrap; - } - .el-select { - margin-left: 5px; - width: 100px; - .el-input { - .el-input__inner { - border: none; - } - } - } - } } .left4{ width: 100%; - height: auto; + height: 700px; + overflow-y: scroll; + &::-webkit-scrollbar { + width: 5px; /* 保持一个最小的宽度 */ + background-color: transparent; /* 透明背景 */ + } + + &::-webkit-scrollbar-thumb { + background-color: transparent; /* 滚动条滑块也设置为透明 */ + } .left4_1{ padding:20px 0; width: 100%; @@ -456,10 +423,16 @@ export default { font-size: 16px; color: #212121; font-weight: bold; + display: flex; + justify-content: space-between; + .mileage { + font-size: 12px; + color: #909fa7; + } } - span{ - font-size: 16px; - color: #666; + .org { + font-size: 12px; + color: #999999; } } .left4_list{ @@ -473,11 +446,11 @@ export default { align-items: center; margin-bottom: 10px; p{ - font-size: 16px; + font-size: 14px; color: #999; } span{ - font-size: 16px; + font-size: 14px; color: #212121; } } diff --git a/src/views/home.vue b/src/views/home.vue index bd1085e..4e429bd 100644 --- a/src/views/home.vue +++ b/src/views/home.vue @@ -67,18 +67,18 @@
@@ -213,7 +213,7 @@