wangting
2024-04-08 5848ccc253f59e32742cf7de16b13c5860f25824
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
@@ -60,7 +60,7 @@
      default: ''
    },
    sourceData:{
      //菜单源数据或者弹窗时按钮所属区域的上一区域选中数据
      //所属区域的上一区域选中数据
      type:Object,
      default: {}
    },
@@ -101,15 +101,6 @@
    }
  },
  watch:{
    sourceData:{
      handler(newval) {
        //源数据有变化时变更当前区域数据
        console.log(this.areasName);
        console.log(newval);
      }
    }
  },
  watch:{
    slotData:{
      handler(newV){
       this.getDictList(newV)
@@ -139,6 +130,13 @@
      deep: true,
      immediate: true,
    },
    sourceData:{
      handler(newval) {
        //源数据有变化时变更当前区域数据
        console.log(this.areasName);
        console.log(newval);
      }
    }
  },
  methods: {
    //转化数据
@@ -250,7 +248,7 @@
      this.formTemplateData = val;
    },
    setReferValue(data) {
      if (data.prop) {
      if (data && data.prop) {
        this.ruleForm[data.prop] = data.value || "";
        this.ruleForm[data.showProp] = data.text || "";
        if (data.propMap) {