This commit is contained in:
@@ -67,8 +67,14 @@
|
||||
<p>1. 请先下载 Excel 模板文件,按照模板格式填写设备信息</p>
|
||||
<p>2. 仅支持 Excel 格式(.xlsx),单次最多导入 1000 条</p>
|
||||
<p>3. 列格式请设置为文本格式,避免长数字被转为科学计数法</p>
|
||||
<p>4. 必填列:device_no(设备号)、device_name(设备名称)、device_model(设备型号)、device_type(设备类型)</p>
|
||||
<p>5. 可选列:manufacturer(制造商)、max_sim_slots(最大插槽数,默认4)、iccid_1 ~ iccid_4(绑定的卡ICCID)</p>
|
||||
<p
|
||||
>4.
|
||||
必填列:device_no(设备号)、device_name(设备名称)、device_model(设备型号)、device_type(设备类型)</p
|
||||
>
|
||||
<p
|
||||
>5. 可选列:manufacturer(制造商)、max_sim_slots(最大插槽数,默认4)、iccid_1 ~
|
||||
iccid_4(绑定的卡ICCID)</p
|
||||
>
|
||||
</div>
|
||||
</template>
|
||||
</ElAlert>
|
||||
@@ -106,7 +112,6 @@
|
||||
</ElButton>
|
||||
</template>
|
||||
</ElDialog>
|
||||
|
||||
</ArtTableFullScreen>
|
||||
</template>
|
||||
|
||||
@@ -353,7 +358,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
ElMessage.error('获取设备任务列表失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
@@ -437,7 +441,7 @@
|
||||
{ wch: 22 }, // iccid_1
|
||||
{ wch: 22 }, // iccid_2
|
||||
{ wch: 22 }, // iccid_3
|
||||
{ wch: 22 } // iccid_4
|
||||
{ wch: 22 } // iccid_4
|
||||
]
|
||||
|
||||
// 将所有单元格设置为文本格式
|
||||
@@ -520,7 +524,11 @@
|
||||
const { upload_url, file_key } = uploadUrlRes.data
|
||||
|
||||
ElMessage.info('正在上传文件...')
|
||||
await StorageService.uploadFile(upload_url, file, 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
|
||||
await StorageService.uploadFile(
|
||||
upload_url,
|
||||
file,
|
||||
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
||||
)
|
||||
|
||||
ElMessage.info('正在创建导入任务...')
|
||||
const importRes = await DeviceService.importDevices({
|
||||
|
||||
@@ -399,7 +399,6 @@
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
ElMessage.error('获取IoT卡任务列表失败')
|
||||
} finally {
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user