修改地图

This commit is contained in:
GGJ
2024-12-03 11:10:30 +08:00
parent 02c6ced7ea
commit 853d98d18b
5 changed files with 55 additions and 42 deletions

View File

@@ -15,7 +15,7 @@
<el-form-item>
<el-button type="primary" icon="el-icon-Search" @click="onSubmit">查询</el-button>
<el-button type="primary" icon="el-icon-Download" @click="exportTemplate">导出模板</el-button>
<el-upload action="" :show-file-list="false" :auto-upload="false" :on-change="choose">
<el-upload action="" accept=".xlsx" :show-file-list="false" :auto-upload="false" :on-change="choose">
<el-button type="primary" class="ml10" icon="el-icon-Upload">离线导入</el-button>
</el-upload>
<!-- <el-button type="primary" class="ml10" icon="el-icon-Ticket" @click="modelTrain">
@@ -491,6 +491,9 @@ const choose = (e: any) => {
lineId: dotList.value.id,
startTime: datePickerRef.value.timeValue[0]
}
if (e.raw.type != 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') {
return ElMessage.warning('请选择Excel文件!')
}
uploadExcel(e.raw, form).then(res => {
ElMessage.success('导入成功')