|
|
|
@ -47,13 +47,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
import commonMixins from '../../../js/mixins/commonMixins'
|
|
|
|
|
import paramsMixins from '../../../js/mixins/paramsMixins'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'Card',
|
|
|
|
|
components: {},
|
|
|
|
|
// mixins: [paramsMixins, commonMixins],
|
|
|
|
|
props: {
|
|
|
|
|
// 卡片的属性
|
|
|
|
|
config: {
|
|
|
|
@ -67,7 +63,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted () {
|
|
|
|
|
// this.chartInit()
|
|
|
|
|
},
|
|
|
|
|
watch: {},
|
|
|
|
|
computed: {
|
|
|
|
@ -76,13 +71,6 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
// dataFormatting (config, data) {
|
|
|
|
|
// // 文本数据配置原则:选择数据集则以后端返回的数据为主,否则以设置面板中标题设置为准
|
|
|
|
|
// if (config.dataSource.businessKey) {
|
|
|
|
|
// config.customize.title = data && data.data && data.data.length ? data.data[0][config.dataSource.metricField] : '暂无数据'
|
|
|
|
|
// }
|
|
|
|
|
// return config
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|