Parcourir la source

飞参数据导入不校验

Rmengdi il y a 1 mois
Parent
commit
9dcbe0bd82
1 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 8 8
      src/views/als/flightData/index.vue

+ 8 - 8
src/views/als/flightData/index.vue

@@ -24,7 +24,7 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="上传飞参数据" label-width="110px" prop="ossId">
-                <FileUpload v-model="form.ossId" :limit="1" :fileSize="500" :fileType="['xls', 'xlsx', 'csv', 'txt']" :isNameCheck="true" :isAirType="isAirType" @uploadValue="uploadValue" />
+                <FileUpload v-model="form.ossId" :limit="1" :fileSize="500" :fileType="['xls', 'xlsx', 'csv', 'txt']" :isNameCheck="false" :isAirType="isAirType" @uploadValue="uploadValue" />
               </el-form-item>
             </el-col>
             <!-- <el-col :span="12">
@@ -71,12 +71,12 @@
           <el-row>
             <el-col :span="12">
               <el-form-item label="飞行时间" prop="flightDate">
-                <el-date-picker disabled v-model="form.flightDate" type="datetime" placement="bottom-start" value-format="yyyy-MM-dd HH:mm:ss" placeholder="上传飞参数据自动生成"></el-date-picker>
+                <el-date-picker v-model="form.flightDate" type="datetime" placement="bottom-start" value-format="yyyy-MM-dd HH:mm:ss" placeholder="请选择飞行时间"></el-date-picker>
               </el-form-item>
             </el-col>
             <el-col :span="12">
               <el-form-item label="架次号" prop="sortieNo">
-                <el-input disabled v-model="form.sortieNo" placeholder="上传飞参数据自动生成" />
+                <el-input v-model="form.sortieNo" placeholder="请输入架次号" />
               </el-form-item>
             </el-col>
           </el-row>
@@ -128,7 +128,7 @@ export default {
         source: [{ required: true, message: '数据源不能为空', trigger: 'change' }],
         // aircaftModel: [{ required: true, message: '机型不能为空', trigger: 'change' }],
         aircraftId: [{ required: true, message: '编目不能为空', trigger: 'change' }],
-        flightDate: [{ required: true, message: '飞行时间不能为空', trigger: 'change' }],
+        // flightDate: [{ required: true, message: '飞行时间不能为空', trigger: 'change' }],
         sortieNo: [{ required: true, message: '飞架次号不能为空', trigger: 'blur' }],
         ossId: [{ required: true, message: '飞参数据不能为空', trigger: 'change' }]
       },
@@ -336,7 +336,7 @@ export default {
           })
           this.uploadFlag = true
           this.handleClose()
-          this.handleFileSuccess()
+          // this.handleFileSuccess()
           this.warnFileList = []
           this.getDataImportAPI({ aircraftId: this.aircaftModelIdList })
           this.submitBtnLoading = false
@@ -356,7 +356,7 @@ export default {
           })
           this.handleClose()
           this.submitBtnLoading = false
-          this.handleFileSuccess()
+          // this.handleFileSuccess()
           this.warnFileList = []
           this.getDataImportAPI({ aircraftId: this.aircaftModelIdList })
         }
@@ -452,12 +452,12 @@ export default {
             case '编辑':
               this.submitBtnLoading = true
               this.updateDataImportAPI()
-              this.submitFileForm()
+              // this.submitFileForm()
               break
             case '新增':
               this.submitBtnLoading = true
               this.addDataImportAPI()
-              this.submitFileForm()
+              // this.submitFileForm()
               break
           }
         }