模板下载
This commit is contained in:
parent
c9316f53b0
commit
2185be3542
|
|
@ -43,5 +43,9 @@ export const removeDeviceApi = (data: any) => {
|
|||
export const updateUpDownApi = (data: any) => {
|
||||
return post('/material-mall/dev/updateUpDown', data)
|
||||
}
|
||||
|
||||
// 模版下载
|
||||
export const downLoadTemplate = () => {
|
||||
return get('/material-mall/dev/downLoad', {})
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ import {
|
|||
insertDraftApi, //草稿(编辑)
|
||||
removeDeviceApi, //删除
|
||||
updateUpDownApi, //上下架
|
||||
downLoadTemplate, //模班下载
|
||||
} from 'http/api/usercenter/goodsmang'
|
||||
|
||||
// 注册地址拼装
|
||||
|
|
@ -438,6 +439,8 @@ const equipRules = ref({
|
|||
},
|
||||
],
|
||||
person: [{ required: true, message: '联系人不能为空', trigger: 'blur' }],
|
||||
checkDate: [{ required: true, message: '校验日期不能为空', trigger: 'blur' }],
|
||||
checkCycle: [{ required: true, message: '校验周期不能为空', trigger: 'blur' }],
|
||||
personPhone: [
|
||||
{ required: true, message: '联系电话不能为空', trigger: 'blur' },
|
||||
{
|
||||
|
|
@ -709,7 +712,15 @@ const handleRemove = (list: any, index: Number) => {
|
|||
}
|
||||
|
||||
const onTempDownLoad = ()=>{
|
||||
console.log('上传')
|
||||
ElMessageBox.confirm('是否确定下载', {
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
type: 'warning',
|
||||
})
|
||||
.then(() => {
|
||||
return downLoadTemplate()
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
const onBatchUpload = ()=>{
|
||||
console.log('下载')
|
||||
|
|
|
|||
Loading…
Reference in New Issue