|
@@ -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: {
|