马宇豪
2023-10-13 2229240bd329ede0f08a2f9e8b3d9ce917caf7bf
src/views/notCoalMine/nCertificateList/components/certificateDialog.vue
@@ -279,13 +279,6 @@
      console.log(file, fileList);
    },
    async submit(){
      if(this.form.supportDirectionSafety.length == 0 && this.form.supportDirectionPrevention.length == 0 && this.form.supportDirectionEmergency.length == 0){
        this.$message({
          type:'warning',
          message: '请至少选择一种支撑方向'
        })
        return
      }
      this.$refs["ruleForm"].validate(async(valid) =>{
        if(valid) {
          await this.submitUpload()