Commit 8fc583d6e91e20b9936b874c3e983a6e726ca7f5
1 parent
10959c3f
图表定位
Showing
1 changed file
with
7 additions
and
1 deletions
src/views/bigscreenDesigner/designer/widget/pie/widgetActiveRingChart.vue
| @@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
| 2 | 动态环图 | 2 | 动态环图 |
| 3 | --> | 3 | --> |
| 4 | <template> | 4 | <template> |
| 5 | - <div v-if="isRouterAlive"> | 5 | + <div v-if="isRouterAlive" style="position: relative;"> |
| 6 | <div class="bcci-header" :style="titleConfig.titleStyle" v-if="titleConfig.isNoTitle" >{{titleConfig.titleText}}</div> | 6 | <div class="bcci-header" :style="titleConfig.titleStyle" v-if="titleConfig.isNoTitle" >{{titleConfig.titleText}}</div> |
| 7 | 7 | ||
| 8 | <div class="bc-chart-item" :style="styleObj"> | 8 | <div class="bc-chart-item" :style="styleObj"> |
| @@ -177,6 +177,12 @@ export default { | @@ -177,6 +177,12 @@ export default { | ||
| 177 | titleStyle['font-style'] = optionsSetup.textFontStyle; | 177 | titleStyle['font-style'] = optionsSetup.textFontStyle; |
| 178 | titleStyle['font-weight'] = optionsSetup.textFontWeight; | 178 | titleStyle['font-weight'] = optionsSetup.textFontWeight; |
| 179 | titleStyle['text-align'] = optionsSetup.textAlign; | 179 | titleStyle['text-align'] = optionsSetup.textAlign; |
| 180 | + if (this.$router.history.current.path === "/bigscreen/viewer") { | ||
| 181 | + titleStyle['position'] = 'absolute'; | ||
| 182 | + titleStyle['top'] = this.optionsStyle.top + "px"; | ||
| 183 | + titleStyle['left'] = this.optionsStyle.left + "px"; | ||
| 184 | + titleStyle['width'] = this.optionsStyle.width + "px"; | ||
| 185 | + } | ||
| 180 | this.titleConfig.titleStyle = titleStyle; | 186 | this.titleConfig.titleStyle = titleStyle; |
| 181 | }else{ | 187 | }else{ |
| 182 | this.titleConfig.isNoTitle = false; | 188 | this.titleConfig.isNoTitle = false; |