From f07b6e889ebdcbd6fcac4b8877a3f8000a164a68 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Mon, 7 Dec 2020 11:14:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9terminal=20?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=9A=90=E8=97=8F=E9=80=9A=E8=BF=87=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=E6=8E=A7=E5=88=B6=20=E6=B7=BB=E5=8A=A0=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/charts/chartPreview.vue | 2 - nezha-fronted/src/components/cli/console.vue | 2 +- nezha-fronted/src/components/cli/webSSH.scss | 3 +- nezha-fronted/src/components/cli/webSSH.vue | 299 +++++++++--------- .../components/page/dashboard/chartBox.vue | 2 - 5 files changed, 159 insertions(+), 149 deletions(-) diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 2a29aaf80..34700c9dd 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -368,7 +368,6 @@ // 获取一个图表具体数据 getChartData() { const chartItem = this.chart; - console.log(chartItem); if(chartItem.type === 'alertList'){ this.getAlertListChartData(chartItem,null); return; @@ -572,7 +571,6 @@ if(this.mapping&&!this.mapping.color){ this.mapping.color={bac:'#fff',text:'#000'} } - console.log(mapping) this.serieSingleStat = mapping?mapping.text.replace('{{value}}', singleStatTmp):chartDataFormat.getUnit(chartItem.unit?chartItem.unit:2).compute(singleStatTmp,null,2); }else{ this.serieSingleStat = chartDataFormat.getUnit(chartItem.unit?chartItem.unit:2).compute(singleStatTmp,null,2); diff --git a/nezha-fronted/src/components/cli/console.vue b/nezha-fronted/src/components/cli/console.vue index ede24a47c..fa04ea695 100644 --- a/nezha-fronted/src/components/cli/console.vue +++ b/nezha-fronted/src/components/cli/console.vue @@ -98,7 +98,7 @@ export default { if (resizeHeight) { this.termimalHeight = resizeHeight; } - this.isFullScreen = isFullScreen; + // this.isFullScreen = isFullScreen; //this.term.toggleFullScreen(isFullScreen);//全屏后无法显示顶部菜单和tab let height = document.body.clientHeight-this.topMenuHeight;//可视高度 let width = document.body.clientWidth;//可视宽度 diff --git a/nezha-fronted/src/components/cli/webSSH.scss b/nezha-fronted/src/components/cli/webSSH.scss index 0f1137a06..233cd2349 100644 --- a/nezha-fronted/src/components/cli/webSSH.scss +++ b/nezha-fronted/src/components/cli/webSSH.scss @@ -128,9 +128,8 @@ } } .shell-service-max { - height: 100% !important; + height: 100%; position: fixed !important; - top: 0; bottom: 0; } diff --git a/nezha-fronted/src/components/cli/webSSH.vue b/nezha-fronted/src/components/cli/webSSH.vue index ef2d3355f..4634c1252 100644 --- a/nezha-fronted/src/components/cli/webSSH.vue +++ b/nezha-fronted/src/components/cli/webSSH.vue @@ -7,170 +7,171 @@
--> -
-
-
-
-
-
- - - - - - +
+
+
+
+
+
+
+ + + + + + A A A - - + + - - - - - + + + + +
{{$t('webshell.upload')}}
-
- -
{{$t('webshell.download')}}
-
-
-
+ + +
{{$t('webshell.download')}}
+
+ + - - - - + + + +
{{item.title}} + style="margin-top: 0px;">
{{item.title}} - + - - - + - - - - - - - - -
+ + + + + + + + + + + + +
-
- -
-
+
+ +
+
- - - - -
{{$t('overall.dragFileTip')}},{{$t('overall.or')}} {{$t('overall.clickUpload')}}
- -
-
-
- - - - - - - - -
- -
-
- -
-
- - - - - - - - -
- -
-
- -
-
-
-
-
-
-

{{$t('webshell.closeTip')}}

+
-
-
diff --git a/nezha-fronted/src/components/page/dashboard/chartBox.vue b/nezha-fronted/src/components/page/dashboard/chartBox.vue index 37302bb87..d37e4d98c 100644 --- a/nezha-fronted/src/components/page/dashboard/chartBox.vue +++ b/nezha-fronted/src/components/page/dashboard/chartBox.vue @@ -1447,7 +1447,6 @@ }); }); params.elements = elements; - console.log(params,'params'); if (valid) { this.$refs.chartsPreview.show(params); } @@ -1636,7 +1635,6 @@ deep: true, immediate: true, handler(n) { - console.log(n,(n.param&&n.param.valueMapping)&&(n.type === 'singleStat' || n.type === 'table')); if((n.param&&n.param.valueMapping)&&(n.type === 'singleStat' || n.type === 'table')){ n.param.valueMapping.mapping.forEach(item=>{ this.showPicker.push({bac:false,text:false})