feat: 添加table类型

This commit is contained in:
zhangyu
2021-12-15 17:55:56 +08:00
parent 32398c5bc4
commit 5c540b767c
10 changed files with 189 additions and 23 deletions

View File

@@ -416,7 +416,13 @@ export default {
this.chart.groupId = ''
}
if (this.chart.type == 'table') {
this.chart.param.tags = this.chart.param.indexs ? this.chart.param.indexs.split(',') : []
const arr = this.chart.param.indexs ? this.chart.param.indexs.split(',') : []
this.chart.param.tags = arr.map((item) => {
return {
text: item,
tiClasses: ['ti-valid']
}
})
}
} else {
this.$message.error(res.msg)