diff --git a/config/dev.env.js b/config/dev.env.js index 3a3a84a..8542c64 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,6 +9,6 @@ // BASE_API: '"http://139.198.18.188:8083"' // 线上 // BASE_API: '"https://logapi.smartlog.work/"' // 小程序 // BASE_API: '"http://192.168.43.84:8083"' - BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 - // BASE_API: '"http://111.198.10.15:21405"' + // BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 + BASE_API: '"http://111.198.10.15:21405"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 3a3a84a..8542c64 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,6 +9,6 @@ // BASE_API: '"http://139.198.18.188:8083"' // 线上 // BASE_API: '"https://logapi.smartlog.work/"' // 小程序 // BASE_API: '"http://192.168.43.84:8083"' - BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 - // BASE_API: '"http://111.198.10.15:21405"' + // BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 + BASE_API: '"http://111.198.10.15:21405"' }) diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js index e1c9384..e92a7b7 100644 --- a/src/api/factoryManager/dataPreentry.js +++ b/src/api/factoryManager/dataPreentry.js @@ -5,6 +5,46 @@ export function getFactoryManagerList(data) { return request({ url: `well/pre/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'get' + method: 'post', + data + }) +} + +// 新增 +export function addFactoryManagerList(data) { + return request({ + url: 'well/pre/add', + method: 'post', + data + }) +} + +// 编辑 +export function editFactoryManagerList(data) { + return request({ + url: 'well/pre/update', + method: 'post', + data + }) +} + +// 删除 +export function delFactoryManagerList(data) { + return request({ + url: 'well/pre/delete', + method: 'post', + data + }) +} + +// 批量导入 +export function importFactoryManagerList(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'well/pre/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param }) } diff --git a/config/dev.env.js b/config/dev.env.js index 3a3a84a..8542c64 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -9,6 +9,6 @@ // BASE_API: '"http://139.198.18.188:8083"' // 线上 // BASE_API: '"https://logapi.smartlog.work/"' // 小程序 // BASE_API: '"http://192.168.43.84:8083"' - BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 - // BASE_API: '"http://111.198.10.15:21405"' + // BASE_API: '"https://38ka911915.picp.vip"' // 柴壮本地 + BASE_API: '"http://111.198.10.15:21405"' }) diff --git a/src/api/factoryManager/dataPreentry.js b/src/api/factoryManager/dataPreentry.js index e1c9384..e92a7b7 100644 --- a/src/api/factoryManager/dataPreentry.js +++ b/src/api/factoryManager/dataPreentry.js @@ -5,6 +5,46 @@ export function getFactoryManagerList(data) { return request({ url: `well/pre/listPage?offset=${data.offset}&limit=${data.limit}`, - method: 'get' + method: 'post', + data + }) +} + +// 新增 +export function addFactoryManagerList(data) { + return request({ + url: 'well/pre/add', + method: 'post', + data + }) +} + +// 编辑 +export function editFactoryManagerList(data) { + return request({ + url: 'well/pre/update', + method: 'post', + data + }) +} + +// 删除 +export function delFactoryManagerList(data) { + return request({ + url: 'well/pre/delete', + method: 'post', + data + }) +} + +// 批量导入 +export function importFactoryManagerList(fileobj) { + const param = new FormData() + param.append('file', fileobj) + return request({ + url: 'well/pre/batchImport', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data: param }) } diff --git a/src/views/factoryManager/components/addWellDialog.vue b/src/views/factoryManager/components/addWellDialog.vue index 57cd4af..f5bd775 100644 --- a/src/views/factoryManager/components/addWellDialog.vue +++ b/src/views/factoryManager/components/addWellDialog.vue @@ -2,17 +2,17 @@