copy from src/api/ApsPlatePlan/ApsPlatePlan.js
copy to src/api/mainPlan/gasPiping.js
| 文件从 src/api/ApsPlatePlan/ApsPlatePlan.js 复制 |
| | |
| | | // 鏌ヨ閽i噾璁″垝绠$悊鍒楄〃 |
| | | export function listPlan(query) { |
| | | return request({ |
| | | url: '/aps/apsPlatePlan/list', |
| | | url: '/aps/gasPiping/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | // 鏌ヨ閽i噾璁″垝绠$悊璇︾粏 |
| | | export function getApsPlatePlan(id) { |
| | | return request({ |
| | | url: '/aps/ApsPlatePlan/ApsPlatePlan/' + id, |
| | | url: '/aps/gasPiping/' + id, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | // 鏂板閽i噾璁″垝绠$悊 |
| | | export function addApsPlatePlan(data) { |
| | | return request({ |
| | | url: '/aps/ApsPlatePlan/ApsPlatePlan/add', |
| | | url: '/aps/gasPiping/add', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | // 淇敼閽i噾璁″垝绠$悊 |
| | | export function updateApsPlatePlan(data) { |
| | | return request({ |
| | | url: '/ApsPlatePlan/ApsPlatePlan', |
| | | url: '/aps/gasPiping', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | |
| | | // 鍒犻櫎閽i噾璁″垝绠$悊 |
| | | export function delApsPlatePlan(id) { |
| | | return request({ |
| | | url: '/ApsPlatePlan/ApsPlatePlan/' + id, |
| | | url: '/aps/gasPiping/' + id, |
| | | method: 'delete' |
| | | }) |
| | | } |
| | | //閽i噾璁″垝涓婁紶 |
| | | export function uploadApsPlatePlan(data) { |
| | | return request({ |
| | | url: '/aps/ApsPlatePlan/upload', |
| | | url: '/aps/gasPiping/upload', |
| | | method: 'post', |
| | | headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, |
| | | data: data |
| | |
| | | // 鏌ヨ闆朵欢璁″垝绠$悊鍒楄〃 |
| | | export function examplePlan(query) { |
| | | return request({ |
| | | url: '/aps/apsPlatePlanTemp/list', |
| | | url: '/aps/gasPipingTemp/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | |
| | | // 鏌ヨ闆朵欢璁″垝绠$悊鍒楄〃 |
| | | export function confirmPart(data) { |
| | | return request({ |
| | | url: '/aps/apsPlatePlan/confirmPart', |
| | | url: '/aps/gasPiping/confirmGasPiping', |
| | | method: 'post', |
| | | data: data |
| | | }) |