From e15a3259ca31cb2cc8065706ca553394bcf5917a Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期四, 07 九月 2023 10:52:22 +0800 Subject: [PATCH] 修改系统维护菜单 --- src/pages/vindicate/index/App.vue | 14 +++++++------- src/pages/desktop/index/components/DFrame.vue | 12 +++++++++++- src/pages/systemMonitor/index/App.vue | 6 +++++- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/pages/desktop/index/components/DFrame.vue b/src/pages/desktop/index/components/DFrame.vue index e7f2d03..b2ae667 100644 --- a/src/pages/desktop/index/components/DFrame.vue +++ b/src/pages/desktop/index/components/DFrame.vue @@ -42,7 +42,7 @@ </div> <div class="d-frame-content"> <div class="iframe-mask" v-if="data.order != 1" @click="frameClick"></div> - <iframe :src="data.url" v-if="data.url" :name="data.name"></iframe> + <iframe :src="data.url | proxyUrl" v-if="data.url" :name="data.name"></iframe> <div v-html="data.html" v-if="data.html"></div> <!-- <span class="d-frame-operation-resize" v-resize></span> --> <span @@ -73,6 +73,16 @@ created() { this.addBackListener() }, + filters: { + proxyUrl(srcUrl) { + let url = srcUrl + if (url.indexOf("127.0.0.1") > 0 && location.hostname != "127.0.0.1") { + url = url.replace("127.0.0.1", location.hostname) + } + + return url + } + }, data() { return { publicPath: process.env.BASE_URL, diff --git a/src/pages/systemMonitor/index/App.vue b/src/pages/systemMonitor/index/App.vue index 8e2fb1d..b2ee632 100644 --- a/src/pages/systemMonitor/index/App.vue +++ b/src/pages/systemMonitor/index/App.vue @@ -114,7 +114,11 @@ </div> </div> - <div :class="['ax_default', activeChartItem == 'gpu' ? 'selected' : '']" @click="setActiveChartItem('gpu')"> + <div + :class="['ax_default', activeChartItem == 'gpu' ? 'selected' : '']" + @click="setActiveChartItem('gpu')" + v-show="false" + > <div class="ax_default_pic color-gpu"></div> <div> <div class="ax_default_text">绠楀姏</div> diff --git a/src/pages/vindicate/index/App.vue b/src/pages/vindicate/index/App.vue index 20e3725..bd83f14 100644 --- a/src/pages/vindicate/index/App.vue +++ b/src/pages/vindicate/index/App.vue @@ -13,7 +13,7 @@ <span class="card-text">{{ item.name }}</span> </div> </div> - <systemClean + <!-- <systemClean v-if="activePage == 1" style="width: 100%" :free="free" @@ -21,10 +21,10 @@ @refreshPercent="getLeftPer" ref="view_1" ></systemClean> - <updateSettings v-if="activePage == 0" style="width: 100%" ref="view_0"></updateSettings> - <back-up v-if="activePage == 3" style="width: 100%"></back-up> - <restartSettings v-if="activePage == 2" style="width: 100%" ref="view_2"></restartSettings> - <sysInfo v-if="activePage == 4" style="width: 100%" ref="view_3"></sysInfo> + <updateSettings v-if="activePage == 0" style="width: 100%" ref="view_0"></updateSettings> --> + <back-up v-if="activePage == 1" style="width: 100%"></back-up> + <restartSettings v-if="activePage == 0" style="width: 100%" ref="view_2"></restartSettings> + <sysInfo v-if="activePage == 2" style="width: 100%" ref="view_3"></sysInfo> </div> <div class="welcome-page" v-else ref="curPage" @click="showRecomand = false" @mouseup="mouseDownIndex = ''"> @@ -126,8 +126,8 @@ // { name: "绯荤粺鏇存柊", addr: [0, 0] }, // { name: "鏇存柊璁剧疆", addr: [0, 1] }, // { name: "绯荤粺娓呯悊", addr: [1] }, - { name: "閲嶅惎璁剧疆", addr: [2] }, - { name: "绯荤粺淇℃伅", addr: [3] } + { name: "閲嶅惎璁剧疆", addr: [0] }, + { name: "绯荤粺淇℃伅", addr: [2] } ], activePage: 0, free: 0, -- Gitblit v1.8.0