diff --git a/PC/InterFace.Dash/src/api/wms-api.js b/PC/InterFace.Dash/src/api/wms-api.js index a0ef7fd..0218ff9 100644 --- a/PC/InterFace.Dash/src/api/wms-api.js +++ b/PC/InterFace.Dash/src/api/wms-api.js @@ -1,6 +1,7 @@ import request from '@/utils/request' import store from '@/store' // let baseURL = process.env.VUE_APP_BASE_API + '/' +let baseAPI = localStorage.getItem('baseApi') + '/' let baseURL = localStorage.getItem('baseApi') + '/api/' //新建 @@ -146,4 +147,31 @@ export function getVsersion() { url: window.SITE_CONFIG['versionUrl'] + `/version.json?t=${new Date().getTime()}`, method: 'get' }) +} + +// fast-new +//API-POST +export function ApiTypePost(data, url) { + return request({ + url: baseAPI + url, + method: 'post', + data + }) +} +//API-PUT +export function ApiTypePut(data, id, url) { + return request({ + url: baseAPI + url, + method: 'put', + data, + params:{id:id} + }) +} +//API-DELETE +export function ApiTypeDelete(id, url) { + return request({ + url: baseAPI + url, + method: 'delete', + params:{id:id} + }) } \ No newline at end of file diff --git a/PC/InterFace.Dash/src/components/addEditFromApiPop/index.vue b/PC/InterFace.Dash/src/components/addEditFromApiPop/index.vue index c276e69..ec8858d 100644 --- a/PC/InterFace.Dash/src/components/addEditFromApiPop/index.vue +++ b/PC/InterFace.Dash/src/components/addEditFromApiPop/index.vue @@ -125,10 +125,9 @@