wangting
2024-05-08 923004d8ca3cb956d33f1990b34a5f221da30669
Source/ProjectWeb/src/components/dynamic-components/dynamic-form.vue
@@ -42,6 +42,10 @@
      type:Boolean,
      default:false
    },
    actionType:{
      //按钮操作类型
      default:""
    },
    areasName: {
      type: String,
      default: ''
@@ -137,7 +141,7 @@
      if (Object.keys(this.paramVOS).length>0) {
        for (let j in this.paramVOS) {
          if (this.paramVOS[j] && this.paramVOS[j].constructor === Object) continue;
          if (j == 'type' || j == 'context' || j == 'content') continue;
          if (j == 'type' || j == 'context' || j == 'content' || j == "getdataurl" || j == "getdatamethod" || j == "url" || j == "method" || j == "uploadfileurl" || j == "title") continue;
          sourceDataMap['sourceData["' + j + '"]'] = this.paramVOS[j]
        }
      }
@@ -161,7 +165,7 @@
      if (this.paramVOS.initvalue) {
        this.form=this.paramVOS.initvalue;
      }
      if (Object.keys(this.sourceData).length>0 && this.isShow) {
      if (Object.keys(this.sourceData).length>0 && this.isShow && this.actionType!="add") {
        this.loading = true;
        dataForm(this.params).then(res => {
          this.form = res.data.obj;