|
|
@ -42,7 +42,7 @@ export default {
|
|
|
|
const result = new Function('dataset', 'computedDatas', this.config.expression)
|
|
|
|
const result = new Function('dataset', 'computedDatas', this.config.expression)
|
|
|
|
config.customize.title = result(this.dataset, this.computedDatas)
|
|
|
|
config.customize.title = result(this.dataset, this.computedDatas)
|
|
|
|
// 同时将计算得来的值保存到公共的数据存储的地方
|
|
|
|
// 同时将计算得来的值保存到公共的数据存储的地方
|
|
|
|
this.updateComputedDatas({ code: config.code, title: config.title, data: config.customize.title, isExpression: true })
|
|
|
|
this.updateComputedDatas({ code: config.code, title: config.title, data: config.customize.title })
|
|
|
|
},
|
|
|
|
},
|
|
|
|
dataFormatting (config, data) {
|
|
|
|
dataFormatting (config, data) {
|
|
|
|
// 文本数据配置原则:选择数据集则以后端返回的数据为主,否则以设置面板中标题设置为准
|
|
|
|
// 文本数据配置原则:选择数据集则以后端返回的数据为主,否则以设置面板中标题设置为准
|
|
|
|