对比新文件 |
| | |
| | | import {getToken} from "../utils/auth"; |
| | | import request from '@/utils/request' |
| | | |
| | | export function emergencyPlanList(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/emergencyPlan/page', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | export function emergencyPlanAdd(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/emergencyPlan/add', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | export function emergencyPlanMod(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/emergencyPlan/mod', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | export function emergencyPlanDel(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/emergencyPlan/del', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |
| | | |
| | | export function emergencyPlanUpload(data) { |
| | | return request({ |
| | | headers:{ |
| | | 'Authorization': getToken() |
| | | }, |
| | | url: process.env.BASE_API+'/emergencyPlan/upload', |
| | | method: 'post', |
| | | data |
| | | }); |
| | | } |