diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index d2da659..cfca39a 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611", - "baseUrlBusiness": "http://111.198.10.15:21611", + "baseUrl": "http://192.168.8.102:5909", + "baseUrlBusiness": "http://192.168.8.102:5909", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index d2da659..cfca39a 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611", - "baseUrlBusiness": "http://111.198.10.15:21611", + "baseUrl": "http://192.168.8.102:5909", + "baseUrlBusiness": "http://192.168.8.102:5909", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/model.ts b/src/api/eqpt/device/model.ts index b1f2edf..6940165 100644 --- a/src/api/eqpt/device/model.ts +++ b/src/api/eqpt/device/model.ts @@ -28,10 +28,11 @@ }) } // 设备名称列表/equipment/model/listEquipmentName -export function getDeviceNameList() { +export function getDeviceNameList(params: any) { return request({ url: '/equipment/model/listEquipmentName', method: 'get', + params, }) } // 导出 diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index d2da659..cfca39a 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611", - "baseUrlBusiness": "http://111.198.10.15:21611", + "baseUrl": "http://192.168.8.102:5909", + "baseUrlBusiness": "http://192.168.8.102:5909", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/model.ts b/src/api/eqpt/device/model.ts index b1f2edf..6940165 100644 --- a/src/api/eqpt/device/model.ts +++ b/src/api/eqpt/device/model.ts @@ -28,10 +28,11 @@ }) } // 设备名称列表/equipment/model/listEquipmentName -export function getDeviceNameList() { +export function getDeviceNameList(params: any) { return request({ url: '/equipment/model/listEquipmentName', method: 'get', + params, }) } // 导出 diff --git a/src/api/system/installation.ts b/src/api/system/installation.ts new file mode 100644 index 0000000..4288976 --- /dev/null +++ b/src/api/system/installation.ts @@ -0,0 +1,44 @@ +/* + * 安装位置管理 +*/ +import request from '../index' +// 列表 +export function getLocationListPage(data: any) { + return request({ + url: '/system/location/listPage', + method: 'get', + params: data, + }) +} +// 新建 +export function addLocation(data: any) { + return request({ + url: '/system/location/add', + method: 'post', + data, + }) +} +// 编辑 +export function updateLocation(data: any) { + return request({ + url: '/system/location/update', + method: 'post', + data, + }) +} +// 删除 +export function delLocation(data: any) { + return request({ + url: '/system/location/delete', + method: 'post', + data, + }) +} +// 列表 - 不分页 +export function getLocationList(data: any) { + return request({ + url: '/system/location/list', + method: 'post', + data, + }) +} diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index d2da659..cfca39a 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611", - "baseUrlBusiness": "http://111.198.10.15:21611", + "baseUrl": "http://192.168.8.102:5909", + "baseUrlBusiness": "http://192.168.8.102:5909", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/model.ts b/src/api/eqpt/device/model.ts index b1f2edf..6940165 100644 --- a/src/api/eqpt/device/model.ts +++ b/src/api/eqpt/device/model.ts @@ -28,10 +28,11 @@ }) } // 设备名称列表/equipment/model/listEquipmentName -export function getDeviceNameList() { +export function getDeviceNameList(params: any) { return request({ url: '/equipment/model/listEquipmentName', method: 'get', + params, }) } // 导出 diff --git a/src/api/system/installation.ts b/src/api/system/installation.ts new file mode 100644 index 0000000..4288976 --- /dev/null +++ b/src/api/system/installation.ts @@ -0,0 +1,44 @@ +/* + * 安装位置管理 +*/ +import request from '../index' +// 列表 +export function getLocationListPage(data: any) { + return request({ + url: '/system/location/listPage', + method: 'get', + params: data, + }) +} +// 新建 +export function addLocation(data: any) { + return request({ + url: '/system/location/add', + method: 'post', + data, + }) +} +// 编辑 +export function updateLocation(data: any) { + return request({ + url: '/system/location/update', + method: 'post', + data, + }) +} +// 删除 +export function delLocation(data: any) { + return request({ + url: '/system/location/delete', + method: 'post', + data, + }) +} +// 列表 - 不分页 +export function getLocationList(data: any) { + return request({ + url: '/system/location/list', + method: 'post', + data, + }) +} diff --git a/src/api/system/post.ts b/src/api/system/post.ts new file mode 100644 index 0000000..db0e6c7 --- /dev/null +++ b/src/api/system/post.ts @@ -0,0 +1,44 @@ +/* + * 岗位管理接口 +*/ +import request from '../index' +// 列表 +export function getPostListPage(data: any) { + return request({ + url: '/system/position/listPage', + method: 'get', + params: data, + }) +} +// 新建 +export function addPost(data: any) { + return request({ + url: '/system/position/add', + method: 'post', + data, + }) +} +// 编辑 +export function updatePost(data: any) { + return request({ + url: '/system/position/update', + method: 'post', + data, + }) +} +// 删除 +export function delPost(data: any) { + return request({ + url: '/system/position/delete', + method: 'post', + data, + }) +} +// 列表 - 不分页 +export function getPostList(data: any) { + return request({ + url: '/system/position/list', + method: 'get', + params: data, + }) +} diff --git a/.env.development b/.env.development index b87a9f3..95707e0 100644 --- a/.env.development +++ b/.env.development @@ -3,10 +3,10 @@ VITE_SYS_TITLE = 受检设备管理系统 # 接口请求地址,会设置到 axios 的 baseURL 参数上 # VITE_APP_API_BASEURL = http://139.198.29.133:8089 -VITE_APP_API_BASEURL = http://111.198.10.15:21611 +VITE_APP_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://192.168.8.100:5909 # VITE_METER_API_BASEURL = http://111.198.10.15:21606 -VITE_METER_API_BASEURL = http://111.198.10.15:21611 +VITE_METER_API_BASEURL = http://192.168.8.102:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21611 # VITE_APP_API_BASEURL = http://192.168.8.107:5909 # VITE_APP_API_BASEURL = http://111.198.10.15:21710 diff --git a/public/config/config.json b/public/config/config.json index d2da659..cfca39a 100644 --- a/public/config/config.json +++ b/public/config/config.json @@ -1,7 +1,7 @@ { "title":"计量业务系统", - "baseUrl": "http://111.198.10.15:21611", - "baseUrlBusiness": "http://111.198.10.15:21611", + "baseUrl": "http://192.168.8.102:5909", + "baseUrlBusiness": "http://192.168.8.102:5909", "pathDict": { "fbfpsbgl":"/reviewpage/detail", "fbfmlgl":"/directorypage/detail", diff --git a/src/api/eqpt/device/model.ts b/src/api/eqpt/device/model.ts index b1f2edf..6940165 100644 --- a/src/api/eqpt/device/model.ts +++ b/src/api/eqpt/device/model.ts @@ -28,10 +28,11 @@ }) } // 设备名称列表/equipment/model/listEquipmentName -export function getDeviceNameList() { +export function getDeviceNameList(params: any) { return request({ url: '/equipment/model/listEquipmentName', method: 'get', + params, }) } // 导出 diff --git a/src/api/system/installation.ts b/src/api/system/installation.ts new file mode 100644 index 0000000..4288976 --- /dev/null +++ b/src/api/system/installation.ts @@ -0,0 +1,44 @@ +/* + * 安装位置管理 +*/ +import request from '../index' +// 列表 +export function getLocationListPage(data: any) { + return request({ + url: '/system/location/listPage', + method: 'get', + params: data, + }) +} +// 新建 +export function addLocation(data: any) { + return request({ + url: '/system/location/add', + method: 'post', + data, + }) +} +// 编辑 +export function updateLocation(data: any) { + return request({ + url: '/system/location/update', + method: 'post', + data, + }) +} +// 删除 +export function delLocation(data: any) { + return request({ + url: '/system/location/delete', + method: 'post', + data, + }) +} +// 列表 - 不分页 +export function getLocationList(data: any) { + return request({ + url: '/system/location/list', + method: 'post', + data, + }) +} diff --git a/src/api/system/post.ts b/src/api/system/post.ts new file mode 100644 index 0000000..db0e6c7 --- /dev/null +++ b/src/api/system/post.ts @@ -0,0 +1,44 @@ +/* + * 岗位管理接口 +*/ +import request from '../index' +// 列表 +export function getPostListPage(data: any) { + return request({ + url: '/system/position/listPage', + method: 'get', + params: data, + }) +} +// 新建 +export function addPost(data: any) { + return request({ + url: '/system/position/add', + method: 'post', + data, + }) +} +// 编辑 +export function updatePost(data: any) { + return request({ + url: '/system/position/update', + method: 'post', + data, + }) +} +// 删除 +export function delPost(data: any) { + return request({ + url: '/system/position/delete', + method: 'post', + data, + }) +} +// 列表 - 不分页 +export function getPostList(data: any) { + return request({ + url: '/system/position/list', + method: 'get', + params: data, + }) +} diff --git a/src/views/system/installation/editDialog.vue b/src/views/system/installation/editDialog.vue index 637c07b..817930d 100644 --- a/src/views/system/installation/editDialog.vue +++ b/src/views/system/installation/editDialog.vue @@ -2,15 +2,18 @@