wangting
2024-11-15 6928489ffd5055f1b5a8b9e0432d36448bd8e4c1
修改action
已修改1个文件
25 ■■■■ 文件已修改
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-custom.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-custom.vue
@@ -18,7 +18,9 @@
               :sourceData="sourceData"
               :dataStore="dataStore"
               :areasName="areasName"
               :paramVOS="urlParams"></component>
               :paramVOS="urlParams"
               @setData="setData"
               @setDataStore="setDataStore"></component>
  </div>
</template>
@@ -89,8 +91,7 @@
    sourceData: {
      handler(newval) {
        //源数据有变化时变更当前区域数据
        console.log(this.areasName);
        console.log(newval);
        this.sourceDataMap();
      },
      deep: true,
      immediate: true
@@ -98,6 +99,13 @@
  },
  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){
@@ -128,10 +136,6 @@
    this.urlParams = Object.assign({},this.paramVOS, urlParams)
    this.loadCompoent();
  },
  mounted() {
    //this.getHeight(this.$parent);
  },
  methods: {
    loadCompoent(){
      // 动态导入组件
      import(`@/${this.ComponentUrl}.vue`).then((module) => {
@@ -148,6 +152,13 @@
      } else {
        this.getHeight(el.$parent);
      }
    },
    setDataStore(value) {
      this.$emit("setDataStore", value);
      this.dataStore = value.dataStore;
    },
    setData(value) {
      this.$emit("setData", value);
    }
  }
}