From 6a0e381dcbd913c9c31f4baad937a229f57a9bf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Fri, 20 Sep 2024 17:15:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/OverviewState/index.vue | 74 ++++++++++----- src/services/screen/resource.js | 36 +++---- src/views/resource_screen/PlatformCard.vue | 19 ++-- src/views/resource_screen/data.js | 49 ++-------- src/views/resource_screen/index.vue | 103 +++++++-------------- vue.config.js | 2 +- 6 files changed, 123 insertions(+), 160 deletions(-) diff --git a/src/components/OverviewState/index.vue b/src/components/OverviewState/index.vue index 4aaa58a..a99b910 100644 --- a/src/components/OverviewState/index.vue +++ b/src/components/OverviewState/index.vue @@ -1,28 +1,32 @@ @@ -35,10 +39,38 @@ export default { type: Array, required: true } + }, + data() { + return { + activePlateform: '' + } + }, + methods: { + plateformClick(index) { + let isPublic + if (this.activePlateform === index) { + this.activePlateform = '' + isPublic = null + } else { + this.activePlateform = index + isPublic = index === 1 + } + this.$emit('plateformClick', isPublic) + } } } diff --git a/vue.config.js b/vue.config.js index a52001c..c5a4e03 100644 --- a/vue.config.js +++ b/vue.config.js @@ -8,7 +8,7 @@ function resolve(dir) { return path.join(__dirname, dir) } const httpType = 'https://' -const proxyUrl = '23.33.3.22:60006' // 代理地址设置 +const proxyUrl = '10.10.33.54:60006' // 代理地址设置 // const proxyUrl = '10.20.51.92:7001' // 代理地址设置 const publicPath = process.env.NODE_ENV === 'production' ? '/scr-web/' : '/'