wangting
2024-05-14 948a8b5fba4baf0a19493ae6d7b8a1dee0d4101a
Source/ProjectWeb/src/components/PLT-basic-component/basicForm.vue
@@ -75,6 +75,11 @@
      type: Object,
      default: () => {},
    },
    uploadattachment:{
      //是否显示上传附件
      type:Boolean,
      default:false
    },
  },
  data() {
    return {
@@ -186,7 +191,7 @@
        showProp:item.showField,
        type: type,
        labelWidth: this.labelWidth || (item.text.length >= 6 ? 115 : 90),
        disabled: item.readOnly || this.disabled,
        disabled: !this.isEdit || item.readOnly || this.disabled,
        span: item.span
          ? item.span
          : item.type === "textarea"
@@ -212,6 +217,10 @@
          required: item.required,
          message: `请输入${item.text}!`,
          trigger: "blur"
        },{
          required: item.required,
          message: `请输入${item.text}!`,
          trigger: "submit"
        }]):[]
      };
      if(!this.isEdit){
@@ -221,6 +230,10 @@
        this.subitemName = col.field;
      }else if(col.type === 'upload'){
        console.log('col',col)
      }else if(col.type=="multiFile"){
        if(this.uploadattachment == "false" || this.uploadattachment == false){
          col.display=false
        }
      }
      if (col.type === "select") {
        if(col.data && col.data.length>0){