| | |
| | | :sourceData="sourceData" |
| | | :dataStore="dataStore" |
| | | :areasName="areasName" |
| | | :paramVOS="urlParams"></component> |
| | | :paramVOS="urlParams" |
| | | @setData="setData" |
| | | @setDataStore="setDataStore"></component> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | sourceData: { |
| | | handler(newval) { |
| | | //源数据有变化时变更当前区域数据 |
| | | console.log(this.areasName); |
| | | console.log(newval); |
| | | this.sourceDataMap(); |
| | | }, |
| | | deep: true, |
| | | immediate: true |
| | |
| | | }, |
| | | computed: {}, |
| | | created() { |
| | | this.sourceDataMap(); |
| | | }, |
| | | mounted() { |
| | | //this.getHeight(this.$parent); |
| | | }, |
| | | methods: { |
| | | sourceDataMap: function () { |
| | | this.customClass=this.componentVO.customClass; |
| | | this.componentVO.customClass.split(';').forEach(item=>{ |
| | | if(item.indexOf('web=')==0){ |
| | |
| | | this.urlParams = Object.assign({},this.paramVOS, urlParams) |
| | | this.loadCompoent(); |
| | | }, |
| | | mounted() { |
| | | //this.getHeight(this.$parent); |
| | | }, |
| | | methods: { |
| | | loadCompoent(){ |
| | | // 动态导入组件 |
| | | import(`@/${this.ComponentUrl}.vue`).then((module) => { |
| | |
| | | } else { |
| | | this.getHeight(el.$parent); |
| | | } |
| | | }, |
| | | setDataStore(value) { |
| | | this.$emit("setDataStore", value); |
| | | this.dataStore = value.dataStore; |
| | | }, |
| | | setData(value) { |
| | | this.$emit("setData", value); |
| | | } |
| | | } |
| | | } |