+
@@ -1325,7 +1325,7 @@ export default {
view.customAttr.label.show = true
}
if (view.type === 'liquid' ||
- view.type.includes('table') ||
+ (view.type.includes('table') && view.render === 'echarts') ||
view.type.includes('text') ||
view.type.includes('gauge')) {
view.drillFields = []
@@ -1347,22 +1347,6 @@ export default {
delete view.data
return view
},
- save(getData, trigger, needRefreshGroup = false, switchType = false) {
- const view = this.buildParam(getData, trigger, needRefreshGroup, switchType)
- if (!view) return
- post('/chart/view/save', view).then(response => {
- if (getData) {
- this.resetDrill()
- this.getData(response.data.id)
- } else {
- this.getChart(response.data.id)
- }
- if (needRefreshGroup) {
- this.refreshGroup(view)
- }
- this.closeChangeChart()
- })
- },
calcData(getData, trigger, needRefreshGroup = false, switchType = false) {
this.hasEdit = true
const view = this.buildParam(getData, trigger, needRefreshGroup, switchType)
@@ -1501,14 +1485,7 @@ export default {
this.view.customAttr = this.view.customAttr ? JSON.parse(this.view.customAttr) : {}
this.view.customStyle = this.view.customStyle ? JSON.parse(this.view.customStyle) : {}
this.view.customFilter = this.view.customFilter ? JSON.parse(this.view.customFilter) : {}
-
- response.data.data = this.data
- this.chart = response.data
-
- this.chart.drill = this.drill
- // this.httpRequest.status = true
}).catch(err => {
- // this.resetView()
this.httpRequest.status = err.response.data.success
this.httpRequest.msg = err.response.data.message
return true