lambo-design-bi 0.0.155 → 0.0.157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -39,7 +39,7 @@ export default {
|
|
|
39
39
|
initConfig() {
|
|
40
40
|
this.apiId = this.widget.options.apiId
|
|
41
41
|
this.chartsType = this.widget.options.chartType
|
|
42
|
-
this.columns = this.widget.options.columns
|
|
42
|
+
this.columns = JSON.parse(this.widget.options.columns)
|
|
43
43
|
this.height = this.widget.options.height || '300px'
|
|
44
44
|
if (!this.chartsType) {
|
|
45
45
|
this.$Message.warning("组件[" + this.widget.name + "]未配置charts类型")
|
|
@@ -30,6 +30,9 @@ export function convertChartsData(rows, columns) {
|
|
|
30
30
|
dataCol = columns["data_col"]
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
+
console.log(`convertChartsData xKey:${xKey},yKey:${yKey},dKey:${dKey},dataCol:${dKey}`)
|
|
34
|
+
console.log("(!xKey || !yKey || !dataCol):", (!xKey || !yKey || !dataCol))
|
|
35
|
+
|
|
33
36
|
|
|
34
37
|
if (!xKey || !yKey || !dataCol) {
|
|
35
38
|
console.error("convertChartsData columns的xKey,或者yKey,或者dataCol为无效值:", columns)
|