|
@@ -25,6 +25,13 @@ export default {
|
|
|
this.getDataByExpression(this.config)
|
|
|
}
|
|
|
},
|
|
|
+ // 标题发生变化时需要及时更新表达式中的数据集库的字段名
|
|
|
+ 'config.title': {
|
|
|
+ handler (val, oldVal) {
|
|
|
+ this.updateDataset({ code: this.config.code, title: val, data: [], oldTitle: oldVal, isChangeTitle: true })
|
|
|
+ this.updateComputedDatas({ code: this.config.code, title: val, data: [], oldTitle: oldVal, isChangeTitle: true })
|
|
|
+ }
|
|
|
+ },
|
|
|
currentDataset: { // 关联的数据发生变化
|
|
|
handler (val, old) {
|
|
|
if (val && Object.keys(val).length && JSON.stringify(val) !== JSON.stringify(old)) {
|