- 模板变量有 {a}, {b},{c},{d},{e},分别表示系列名,数据名,数据值等。
+ 模板变量有 {a}, {b},{c},{d},分别表示系列名,数据名,数据值等。
- 在 trigger 为 'axis' 的时候,会有多个系列的数据,此时可以通过 {a0}, {a1}, {a2} 这种后面加索引的方式表示系列的索引。
+ 在 触发位置 为 '坐标轴' 的时候,会有多个系列的数据,此时可以通过 {a0}, {a1}, {a2} 这种后面加索引的方式表示系列的索引。
不同图表类型下的 {a},{b},{c},{d} 含义不一样。 其中变量{a}, {b}, {c}, {d}在不同图表类型下代表数据含义为:
- 折线(区域)图、柱状(条形)图、K线图 : {a}(系列名称),{b}(类目值),{c}(数值), {d}(无)
+ 折线(区域)图、柱状(条形)图、仪表盘 : {a}(系列名称),{b}(类目值),{c}(数值)
- 散点图(气泡)图 : {a}(系列名称),{b}(数据名称),{c}(数值数组), {d}(无)
-
- 地图 : {a}(系列名称),{b}(区域名称),{c}(合并数值), {d}(无)
-
- 饼图、仪表板、漏斗图: {a}(系列名称),{b}(数据项名称),{c}(数值), {d}(百分比)
+
+
+
+
+ 饼图、漏斗图: {a}(系列名称),{b}(数据项名称),{c}(数值), {d}(百分比)
diff --git a/frontend/src/views/chart/group/Group.vue b/frontend/src/views/chart/group/Group.vue
index 8783ceddce..6fae053c64 100644
--- a/frontend/src/views/chart/group/Group.vue
+++ b/frontend/src/views/chart/group/Group.vue
@@ -535,7 +535,8 @@ export default {
type: 'success',
showClose: true
})
- this.treeNode(this.groupForm)
+ // this.treeNode(this.groupForm)
+ this.refreshNodeBy(group.pid)
})
} else {
// this.$message({
@@ -588,7 +589,8 @@ export default {
message: this.$t('chart.delete_success'),
showClose: true
})
- this.treeNode(this.groupForm)
+ // this.treeNode(this.groupForm)
+ this.refreshNodeBy(data.pid)
})
}).catch(() => {
})
@@ -889,14 +891,18 @@ export default {
searchTree(val) {
const queryCondition = {
- withExtend: 'parent',
- modelType: 'chart',
+ // withExtend: 'parent',
+ // modelType: 'chart',
name: val
}
- authModel(queryCondition).then(res => {
- // this.highlights(res.data)
+ // authModel(queryCondition).then(res => {
+ // // this.highlights(res.data)
+ // this.tData = this.buildTree(res.data)
+ // // console.log(this.tData)
+ // })
+
+ post('/chart/view/search', queryCondition).then(res => {
this.tData = this.buildTree(res.data)
- // console.log(this.tData)
})
},
@@ -908,8 +914,8 @@ export default {
const roots = []
arrs.forEach(el => {
// 判断根节点 ###
- el.type = el.modelInnerType
- el.isLeaf = el.leaf
+ // el.type = el.modelInnerType
+ // el.isLeaf = el.leaf
if (el[this.treeProps.parentId] === null || el[this.treeProps.parentId] === 0 || el[this.treeProps.parentId] === '0') {
roots.push(el)
return
diff --git a/frontend/src/views/dataset/common/DatasetTableData.vue b/frontend/src/views/dataset/common/DatasetTableData.vue
index cb58e377b8..d5ad466c2b 100644
--- a/frontend/src/views/dataset/common/DatasetTableData.vue
+++ b/frontend/src/views/dataset/common/DatasetTableData.vue
@@ -72,7 +72,7 @@ export default {
if (this.table.id) {
this.dataLoading = true
this.table.row = 100
- post('/dataset/table/getPreviewData/1/100', this.table, false).then(response => {
+ post('/dataset/table/getPreviewData/1/100', this.table, false,30000).then(response => {
this.fields = response.data.fields
this.data = response.data.data
const datas = this.data
diff --git a/frontend/src/views/dataset/data/ViewTable.vue b/frontend/src/views/dataset/data/ViewTable.vue
index 844dafbfa2..3e645ec7c8 100644
--- a/frontend/src/views/dataset/data/ViewTable.vue
+++ b/frontend/src/views/dataset/data/ViewTable.vue
@@ -134,7 +134,7 @@ export default {
initPreviewData(page) {
if (this.table.id) {
this.table.row = this.tableViewRowForm.row
- post('/dataset/table/getPreviewData/' + page.page + '/' + page.pageSize, this.table).then(response => {
+ post('/dataset/table/getPreviewData/' + page.page + '/' + page.pageSize, this.table, true, 30000).then(response => {
this.fields = response.data.fields
this.data = response.data.data
this.page = response.data.page
diff --git a/frontend/src/views/dataset/group/Group.vue b/frontend/src/views/dataset/group/Group.vue
index dd8292be32..19f8db239a 100644
--- a/frontend/src/views/dataset/group/Group.vue
+++ b/frontend/src/views/dataset/group/Group.vue
@@ -856,14 +856,18 @@ export default {
searchTree(val) {
const queryCondition = {
- withExtend: 'parent',
- modelType: 'dataset',
+ // withExtend: 'parent',
+ // modelType: 'dataset',
name: val
}
- authModel(queryCondition).then(res => {
- // this.highlights(res.data)
+ // authModel(queryCondition).then(res => {
+ // // this.highlights(res.data)
+ // this.tData = this.buildTree(res.data)
+ // // console.log(this.tData)
+ // })
+
+ post('/dataset/table/search', queryCondition).then(res => {
this.tData = this.buildTree(res.data)
- // console.log(this.tData)
})
},
@@ -875,8 +879,8 @@ export default {
const roots = []
arrs.forEach(el => {
// 判断根节点 ###
- el.type = el.modelInnerType
- el.isLeaf = el.leaf
+ // el.type = el.modelInnerType
+ // el.isLeaf = el.leaf
if (el[this.treeProps.parentId] === null || el[this.treeProps.parentId] === 0 || el[this.treeProps.parentId] === '0') {
roots.push(el)
return