|
@@ -58,13 +58,18 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
changeData (config, filterList) {
|
|
|
- // 当前组件的方法调用
|
|
|
- let remote = this.$refs['remoteComponent'+config.code]
|
|
|
- if (remote && remote.changeData){
|
|
|
- remote.changeData(config, filterList)
|
|
|
- }
|
|
|
// 调用混入中的方法
|
|
|
- return this.$options.mixins[1].methods.changeData.call(this, config, filterList)
|
|
|
+ let promise = this.$options.mixins[1].methods.changeData.call(this, config, filterList)
|
|
|
+ return promise.then(res => {
|
|
|
+ config = res
|
|
|
+ // 当前组件的方法调用
|
|
|
+ let remote = this.$refs['remoteComponent'+config.code]
|
|
|
+ if (remote && remote.changeData){
|
|
|
+ remote.changeData(config, filterList)
|
|
|
+ }
|
|
|
+ return config
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
...mapMutations('bigScreen', ['changeChartConfig']),
|
|
|
// 尝试渲染远程文件或远程字符串
|