提交 6fc0afcf authored 作者: taojinlong's avatar taojinlong

Merge branch 'v1.11' of github.com:dataease/dataease into v1.11

package io.dataease.dto.chart; package io.dataease.dto.chart;
import com.google.gson.annotations.SerializedName;
import io.dataease.plugins.common.base.domain.ChartViewWithBLOBs; import io.dataease.plugins.common.base.domain.ChartViewWithBLOBs;
import io.dataease.plugins.common.request.chart.ChartExtFilterRequest; import io.dataease.plugins.common.request.chart.ChartExtFilterRequest;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -32,4 +33,12 @@ public class ChartViewDTO extends ChartViewWithBLOBs { ...@@ -32,4 +33,12 @@ public class ChartViewDTO extends ChartViewWithBLOBs {
private List<ChartExtFilterRequest> drillFilters; private List<ChartExtFilterRequest> drillFilters;
@ApiModelProperty("视图存放位置") @ApiModelProperty("视图存放位置")
private String position; private String position;
@SerializedName("xaxis")
private String xAxis;
@SerializedName("xaxisExt")
private String xAxisExt;
@SerializedName("yaxis")
private String yAxis;
@SerializedName("yaxisExt")
private String yAxisExt;
} }
...@@ -412,6 +412,7 @@ function getCurrentField(valueFieldList, field) { ...@@ -412,6 +412,7 @@ function getCurrentField(valueFieldList, field) {
} catch (err) { } catch (err) {
list = JSON.parse(JSON.stringify(valueFieldList)) list = JSON.parse(JSON.stringify(valueFieldList))
} }
if (list) {
for (let i = 0; i < list.length; i++) { for (let i = 0; i < list.length; i++) {
const f = list[i] const f = list[i]
if (field.dataeaseName === f.dataeaseName) { if (field.dataeaseName === f.dataeaseName) {
...@@ -419,5 +420,7 @@ function getCurrentField(valueFieldList, field) { ...@@ -419,5 +420,7 @@ function getCurrentField(valueFieldList, field) {
break break
} }
} }
}
return res return res
} }
...@@ -342,6 +342,7 @@ export const TYPE_CONFIGS = [ ...@@ -342,6 +342,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -415,6 +416,7 @@ export const TYPE_CONFIGS = [ ...@@ -415,6 +416,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -488,6 +490,7 @@ export const TYPE_CONFIGS = [ ...@@ -488,6 +490,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -560,6 +563,7 @@ export const TYPE_CONFIGS = [ ...@@ -560,6 +563,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -625,6 +629,7 @@ export const TYPE_CONFIGS = [ ...@@ -625,6 +629,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -764,7 +769,6 @@ export const TYPE_CONFIGS = [ ...@@ -764,7 +769,6 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -940,6 +944,11 @@ export const TYPE_CONFIGS = [ ...@@ -940,6 +944,11 @@ export const TYPE_CONFIGS = [
'orient', 'orient',
'textStyle', 'textStyle',
'hPosition' 'hPosition'
],
'split-selector-ant-v': [
'splitForm',
'name',
'lineStyle'
] ]
} }
}, },
...@@ -1069,6 +1078,7 @@ export const TYPE_CONFIGS = [ ...@@ -1069,6 +1078,7 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue',
'splitLine', 'splitLine',
'axisForm', 'axisForm',
'axisLabel' 'axisLabel'
...@@ -1367,18 +1377,23 @@ export const TYPE_CONFIGS = [ ...@@ -1367,18 +1377,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1441,18 +1456,23 @@ export const TYPE_CONFIGS = [ ...@@ -1441,18 +1456,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1527,14 +1547,17 @@ export const TYPE_CONFIGS = [ ...@@ -1527,14 +1547,17 @@ export const TYPE_CONFIGS = [
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'y-axis-ext-selector': [ 'y-axis-ext-selector': [
'show', 'show',
...@@ -1605,18 +1628,23 @@ export const TYPE_CONFIGS = [ ...@@ -1605,18 +1628,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1679,18 +1707,23 @@ export const TYPE_CONFIGS = [ ...@@ -1679,18 +1707,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1753,19 +1786,23 @@ export const TYPE_CONFIGS = [ ...@@ -1753,19 +1786,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue', 'axisValue',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1828,20 +1865,24 @@ export const TYPE_CONFIGS = [ ...@@ -1828,20 +1865,24 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue', 'axisValue',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'axisValue', 'axisValue',
'splitLine' 'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -1893,7 +1934,7 @@ export const TYPE_CONFIGS = [ ...@@ -1893,7 +1934,7 @@ export const TYPE_CONFIGS = [
'labelLine', 'labelLine',
'fontSize', 'fontSize',
'color', 'color',
'position-v', 'position-pie',
'formatter' 'formatter'
], ],
'tooltip-selector': [ 'tooltip-selector': [
...@@ -2134,18 +2175,23 @@ export const TYPE_CONFIGS = [ ...@@ -2134,18 +2175,23 @@ export const TYPE_CONFIGS = [
'formatter' 'formatter'
], ],
'x-axis-selector': [ 'x-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'splitLine',
'axisLabel'
], ],
'y-axis-selector': [ 'y-axis-selector': [
'axisForm',
'show', 'show',
'position', 'position',
'name', 'name',
'nameTextStyle', 'nameTextStyle',
'splitLine' 'axisValue',
'splitLine',
'axisLabel'
], ],
'title-selector': [ 'title-selector': [
'show', 'show',
...@@ -2355,6 +2401,7 @@ export function getColors(chart, colors, reset) { ...@@ -2355,6 +2401,7 @@ export function getColors(chart, colors, reset) {
} else { } else {
series = JSON.parse(chart.yaxis) series = JSON.parse(chart.yaxis)
} }
if (series) {
for (let i = 0; i < series.length; i++) { for (let i = 0; i < series.length; i++) {
const s = series[i] const s = series[i]
seriesColors.push({ seriesColors.push({
...@@ -2363,6 +2410,7 @@ export function getColors(chart, colors, reset) { ...@@ -2363,6 +2410,7 @@ export function getColors(chart, colors, reset) {
isCustom: false isCustom: false
}) })
} }
}
} else { } else {
if (chart.data) { if (chart.data) {
const data = chart.data.datas const data = chart.data.datas
......
...@@ -2521,8 +2521,7 @@ export default { ...@@ -2521,8 +2521,7 @@ export default {
.view-panel-Mask { .view-panel-Mask {
display: flex; display: flex;
height: calc(100vh - 60px); height: calc(100vh - 60px);
background-color: #5c5e61; background-color: rgba(92,94,97, 0.7);
opacity: 0.7;
position:absolute; position:absolute;
top:0px; top:0px;
left: 0px; left: 0px;
......
...@@ -531,6 +531,9 @@ export default { ...@@ -531,6 +531,9 @@ export default {
if (!userCache) { if (!userCache) {
this.tData = res.data this.tData = res.data
} }
this.$nextTick(() => {
this.$refs.datasetTreeRef.filter(this.filterText)
})
}) })
}, },
......
...@@ -809,7 +809,8 @@ export default { ...@@ -809,7 +809,8 @@ export default {
} }
this.currentFilterCom.id = newComponentId this.currentFilterCom.id = newComponentId
this.currentFilterCom.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix this.currentFilterCom.auxiliaryMatrix = this.canvasStyleData.auxiliaryMatrix
this.currentFilterCom.mobileStyle = BASE_MOBILE_STYLE this.currentFilterCom.mobileStyle = deepCopy(BASE_MOBILE_STYLE)
this.currentFilterCom['hyperlinks'] = deepCopy(HYPERLINKS)
this.currentFilterCom.commonBackground = this.currentFilterCom.commonBackground || deepCopy(COMMON_BACKGROUND) this.currentFilterCom.commonBackground = this.currentFilterCom.commonBackground || deepCopy(COMMON_BACKGROUND)
if (this.currentWidget.filterDialog) { if (this.currentWidget.filterDialog) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论