3 changed files with 54 additions and 0 deletions
@ -0,0 +1,9 @@
|
||||
import request from '@/axios'; |
||||
// 数据修复
|
||||
export const $_syncUnloadData = data => { |
||||
return request({ |
||||
url: '/api/logpm-trunkline/carsLoad/syncUnloadData', |
||||
method: 'POST', |
||||
data, |
||||
}); |
||||
}; |
@ -0,0 +1,28 @@
|
||||
<template></template> |
||||
|
||||
<script setup> |
||||
import { ElMessage } from 'element-plus'; |
||||
import { $_syncUnloadData } from '@/api/HidePage/index'; |
||||
|
||||
const onLoad = async () => { |
||||
let User = JSON.parse(localStorage.getItem('TWMS-userInfo')); |
||||
if (User.content.role_name != 'admin') { |
||||
ElMessage.error('访问错误...'); |
||||
return; |
||||
} |
||||
ElMessage({ |
||||
message: '执行中...', |
||||
type: 'warning', |
||||
}); |
||||
let _res = await $_syncUnloadData(); |
||||
if (_res.data.code == 200) { |
||||
ElMessage({ |
||||
message: '执行成功', |
||||
type: 'success', |
||||
}); |
||||
} |
||||
}; |
||||
onLoad(); |
||||
</script> |
||||
|
||||
<style scoped lang="scss"></style> |
Loading…
Reference in new issue