소스 검색

调整空间显示重叠,及部分样式调整

chenmy 1 년 전
부모
커밋
401532697d
1개의 변경된 파일8개의 추가작업 그리고 3개의 파일을 삭제
  1. 8 3
      TEAMModelOS/ClientApp/src/view/auth/SpaceInfo.vue

+ 8 - 3
TEAMModelOS/ClientApp/src/view/auth/SpaceInfo.vue

@@ -53,13 +53,17 @@ export default {
             padding: [5, 0, 5, 0]
             padding: [5, 0, 5, 0]
           },
           },
           icon: 'circle',
           icon: 'circle',
-          bottom: 10
+          bottom: 10,
+          type:'scroll',
+          orient:'horizontal',
+          x:'center',
+          y:'bottom',
         },
         },
         series: [
         series: [
           {
           {
             type: 'pie',
             type: 'pie',
             center: ['50%', '35%'],
             center: ['50%', '35%'],
-            radius: ['50%', '60%'],
+            radius: ['55%', '65%'],
             labelLine: {
             labelLine: {
               show: false
               show: false
             },
             },
@@ -75,6 +79,7 @@ export default {
   mounted() {
   mounted() {
     if (!this.typeCountPie) this.typeCountPie = this.$echarts.init(document.getElementById('space-info'))
     if (!this.typeCountPie) this.typeCountPie = this.$echarts.init(document.getElementById('space-info'))
     this.typeCountPie.setOption(this.option)
     this.typeCountPie.setOption(this.option)
+    console.log(this.option,'pie tu')
     this.erd = elementResizeDetectorMaker()
     this.erd = elementResizeDetectorMaker()
     this.erd.listenTo(document.getElementById("space-info"), () => {
     this.erd.listenTo(document.getElementById("space-info"), () => {
       this.$nextTick(() => {
       this.$nextTick(() => {
@@ -169,7 +174,7 @@ export default {
           this.option.title = []
           this.option.title = []
           this.option.title.push({
           this.option.title.push({
             text: '{name|' + this.$t('auth.totalSpace') + ': ' + '}{val|' + this.SCHOOL_SPACE + 'G' + '}\n' + '{name|' + this.$t('auth.used') + '}{use|' + this.$jsFn.formatBytes(res.total + res.teachSpace) + '}',
             text: '{name|' + this.$t('auth.totalSpace') + ': ' + '}{val|' + this.SCHOOL_SPACE + 'G' + '}\n' + '{name|' + this.$t('auth.used') + '}{use|' + this.$jsFn.formatBytes(res.total + res.teachSpace) + '}',
-            top: '22%',
+            top: '25%',
             left: 'center',
             left: 'center',
             textStyle: {
             textStyle: {
               rich: {
               rich: {