NEZ-1577 feat:chart 编辑页面 system 数据源增加filter(80%)

This commit is contained in:
zhangyu
2022-02-21 18:03:21 +08:00
parent e0c318d2a7
commit be8ace3455
3 changed files with 18 additions and 8 deletions

View File

@@ -238,6 +238,9 @@ export default {
if (params.type === 'table') {
delete params.param.tags
}
if (params.datasource === 'system' && params.param.datasource[0].filter) {
params.param.datasource[0].filter = params.param.datasource[0].filter.filter(item => item.value)
}
if (params.id) { // 修改
this.$put('visual/panel/chart', params).then(response => {
if (response.code === 200) {