From 62947f6b0cd0155bfd06eddf126062213d8bf2e2 Mon Sep 17 00:00:00 2001 From: Joel <479214531@qq.com> Date: Fri, 5 Nov 2021 18:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E9=BB=98=E8=AE=A4=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E3=80=81=E9=A6=96=E9=A1=B5=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/img/logo.png | Bin 3326 -> 2925 bytes src/layouts/header/index.vue | 1 + src/layouts/home/index.vue | 7 ++++++- src/pages/data/list/index.vue | 14 ++++++++++---- src/pages/index/list/index.vue | 18 +++++++++++------- src/pages/stat/list/index.vue | 24 +++++++++++++++--------- src/styles/common.scss | 5 ++++- 7 files changed, 47 insertions(+), 22 deletions(-) diff --git a/src/assets/img/logo.png b/src/assets/img/logo.png index a31d7b31572632c8a9aeb9906cf4b380b146b29f..eea0dbba9436cfda7cf5ab94c8d0c3029cdb84a4 100644 GIT binary patch literal 2925 zcmV-z3zGDSP)Px=CrLy>RA@u(T6vHZDhzn@1V+6#z1&*E4+k@gbu;=5b7jcLke`^zfF6FAb?;1 z8%{9jAQ3J4rt>BNl|CSV`H6|_RFNoU}Qq2#_Hs*c=DK^Xh6?Y;vw436a3vI~K=6xG5UNm3 zH+@c_^pF`n#iy}Tdm+6wzOA?PS^>cdz+cUTE z2VgrIaS)c$C%snI@MFph?_-HVg0rb#1mTTg;;yxe2p zH4WIFc5LYsqz*uZIbn)|`Zd540cs+`)2uaLL0&(JQknvOn{jNv5H6$)MwW@L=}<$k zx~n0TsLS6s!sEt4)8~OP6~I0s3o{Rb^atz#xO*&pZkhRpF}6|`G3jx9xbVHsiTEFzo^;+^Si;2dnJ$%um)5vvM} z^8gG7{Q1xA8mk(Hc9~){Wm5KOLZp1iSX0*ne*LC2x{Z`t0MJN)R#CHePWt`Y4@5sf z)4GTVKLTSUn706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L2V4t_;){6oGh|$lWXD+8U(2*A(EE z?l+#$xznyq@Sv-RB|9SWXF|@1U!wR|W4gmRh$nXDBpA2t;alC9ra0jN(90T|w7r@Z zdg5_}QmFt~>W-tm!9Ah$%H?jUIpndgayBIdh)Gftwy_D|oEM_j67MEK8I*rxwX+&= zv8t+SStnkSCkvnMPnqPkmJme-#qp$g=?TitJtOd6z|qRZcZz-R*xzP3x{`f}QY&|% zd-e=b$OG@C9n_ge&#R$g<)Dl2ZORjB(n=CK93gsP65X}FFlVRgW`EWf>$5HAe@RM& z=1tCDXkq=hK=0@)RcbomIrv_iex9}SkXV2|5?Hjo>4FGu)ZWM$S7)?6K{P+VPP_2W zV8x8&!Yt1$&9AJT*aYKK?n;v(R&FXfs-CE7B_&<`sz>Q1;Fta^dOw#>vzSdaY!-{Q znSFF1xS5eV?!Gs$S^;^h=M3^k{yhVe+<7l@Anjs-bx<%qvGeDMa9EllO>2y?G5-Ts Chf!q! diff --git a/src/layouts/header/index.vue b/src/layouts/header/index.vue index 3e817b0..149c093 100644 --- a/src/layouts/header/index.vue +++ b/src/layouts/header/index.vue @@ -227,6 +227,7 @@ export default { width: 100%; height: $height; background-color: #fff; + box-shadow: 0px 0px 6px 0px rgba(178, 178, 178, 0.32); .inner{ display: flex; justify-content: space-between; diff --git a/src/layouts/home/index.vue b/src/layouts/home/index.vue index c00234a..a18f19b 100644 --- a/src/layouts/home/index.vue +++ b/src/layouts/home/index.vue @@ -1,7 +1,7 @@
    -
  • +
  • 平台概览

    了解数据平台一句话简介

  • -
  • +
  • 平台特色与优势

    了解数据平台一句话简介

  • -
  • +
  • -
    平台概览
    +
    平台产品介绍

    了解数据平台一句话简介

-
+
关于数据平台
欢迎使用数据平台,这是我们的财经数据库。我们的数据涵盖股票数据,期货数据,债券数据,期权数据,利率数据,公募数据和宏观数据,拥有超40年的历史数据,可为您解读、预测、分析,模拟市场趋势、经济周期和世界事件影响提供必要的数据支持。我们的数据均来源于各大专业财经权威网站和数据官方发布平台,并经过专业的数据分类和整理,可让用户轻松便捷地搜索并批量下载到自己研究所需的数据,极大地减轻自己搜索整理数据的时间,提高研究效率, 从而高效的输出研究成果。
-
+
@@ -110,7 +110,7 @@
-
+
产品展示
@@ -258,6 +258,9 @@ export default { }) window.open(route.href) } + }, + toPart(i){ + document.querySelector(`#part${i}`).scrollIntoView() } } }; @@ -394,6 +397,7 @@ export default { li{ display: inline-flex; align-items: center; + cursor: pointer; } img{ width: 50px; diff --git a/src/pages/stat/list/index.vue b/src/pages/stat/list/index.vue index 8ed4253..3635fa7 100644 --- a/src/pages/stat/list/index.vue +++ b/src/pages/stat/list/index.vue @@ -69,7 +69,7 @@ -
+
展开更多 @@ -190,26 +190,29 @@ export default { 'setInfo' ]), getData(){ + // 查询产品列表 this.$get(`${this.api.getProductInfoBySchoolId}?schoolId=${this.schoolId}`).then(res => { let list = res.message list.map(n => { + // 时间格式化 n.startTime = util.formatDate('yyyy-MM-dd',new Date(n.startTime)) n.endTime = util.formatDate('yyyy-MM-dd',new Date(n.endTime)) }) - // this.productList = list + this.productList = list if(list.length){ this.schoolName = list[0].schoolName } }).catch(res => {}) - + // 查询平均日访客量和累计下载 this.$get(`${this.api.queryAccumulate}?schoolId=${this.schoolId}`).then(res => { this.dayCount = res.dayCount this.schoolCount = res.schoolCount }).catch(res => {}) - + // 查询按月份统计数据库使用概况 this.$get(`${this.api.queryDatabaseInfoByMonth}?schoolId=${this.schoolId}`).then(res => { let list = res.message let result = [] + // 每年的每个月份赋值 for(let i in list){ for(let n in list[i]){ let item = { @@ -224,25 +227,26 @@ export default { } this.monthData = result }).catch(res => {}) - + // 查询本校累计用户数量 this.$get(`${this.api.getUserTotalBySchoolId}?schoolId=${this.schoolId}`).then(res => { this.userCount = res.totalCount }).catch(res => {}) - + // 查询当前在线人数 this.$get(this.api.onlineNumber).then(res => { this.onlineCunt = res.message }).catch(res => {}) this.getDatabase() }, + // 查询按数据库统计使用概况 getDatabase(){ this.$get(`${this.api.queryDatabaseInfo}?schoolId=${this.schoolId}&startTime=${this.startTime}&endTime=${this.endTime}`).then(res => { let list = JSON.parse(res.databaseInfo) - // 只展示前十条 + // 只展示前十条,页面上点展开更多去展示全部 this.listData = list.slice(0,10) - this.listDataAll = list + this.listDataAll = list // 把全部数据先存起来,点展开的时候直接取这个列表 }).catch(res => {}) }, - // 因为后端的数据存在redis了,所以无法做模糊查询,只能在前端实现 + // 模糊查询,因为后端的数据存在redis了,所以无法做模糊查询,只能在前端实现 searchData(){ let list = this.listDataAll let result = [] @@ -273,7 +277,9 @@ export default { handleSelectionChange1(val) { this.multipleSelection1 = val }, + // 展开收缩 toggleList(){ + // 如果是输入了关键词,则不是取默认的listDataAll列表,而是取模糊查询后的全部数据列表 listDataKeyword if(this.keyword){ if(this.active){ this.listData = this.listDataKeyword.slice(0,10) diff --git a/src/styles/common.scss b/src/styles/common.scss index 80aab41..1657413 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -182,7 +182,7 @@ &:before{ content: '全选'; margin-right: 5px; - color: #fff; + color: #222326; font-size: 14px; opacity: 0; } @@ -348,6 +348,9 @@ font-size: 14px; border-radius: 4px; border-color: #CACFDB; + &:last-child{ + border-color: transparent; + } } } }