From 1921944b584fc2b8165816cc0deb317c903f5c0c Mon Sep 17 00:00:00 2001 From: louzin <294098546@qq.com> Date: Wed, 24 May 2023 15:39:48 +0800 Subject: [PATCH] draw --- ruoyi-ui/src/views/echarts/myterminal/index.vue | 35 ++++++++++++++++++++----- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/src/views/echarts/myterminal/index.vue b/ruoyi-ui/src/views/echarts/myterminal/index.vue index 69003a9..09bf64b 100644 --- a/ruoyi-ui/src/views/echarts/myterminal/index.vue +++ b/ruoyi-ui/src/views/echarts/myterminal/index.vue @@ -1,6 +1,6 @@ @@ -36,16 +44,31 @@ data() { return { pathlist: [], + tableData: [] } }, methods: { axiosGet() { + var that = this; this.$http.get('/gethivepath') .then(resp => { console.log(resp.data); this.pathlist = resp.data; + that.$message({ + showClose: true, + message: '路径获取成功!', + type: 'success' + }); + for(var pathx in resp.data){ + this.tableData.push({'name':pathx,'scanpath':resp.data[pathx]}) + } }) .catch(function(error) { + that.$message({ + showClose: true, + message: '路径获取出错!请检查是否开启集群或联系管理员!', + type: 'error' + }); console.log(error); }); } @@ -77,12 +100,12 @@ margin-bottom: 10px; margin-top: 10px; width: 98%; - height: 640px; + height: 720px; background-color: #F3F4FA; border-radius: 15px; } - .btn { + /* .btn { width: 150px; height: 80px; display: flex; @@ -104,14 +127,14 @@ box-shadow: 0px 15px 0px 0px rgba(0, 0, 255, .2); transition: all .5s; } - + */ /* .three-d:hover { background-color: #eeeeee; } */ - .three-d:active { + /* .three-d:active { transform: translate(0, 4px); box-shadow: 0px 1px 0px 0px #F3F4FA; - } + } */