diff --git a/ruoyi-ui/src/api/basecar/car.js b/ruoyi-ui/src/api/basecar/car.js index e5e21b8..6314924 100644 --- a/ruoyi-ui/src/api/basecar/car.js +++ b/ruoyi-ui/src/api/basecar/car.js @@ -12,7 +12,7 @@ export function listBaseCar(query) { // 查询轮胎基础信息详细 export function getBaseCar(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/basecar/car/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getBaseCar(id) { // 新增轮胎基础信息 export function addBaseCar(data) { return request({ - url: '/basetyre/basetyre', + url: '/basecar/car', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addBaseCar(data) { // 修改轮胎基础信息 export function updateBaseCar(data) { return request({ - url: '/basetyre/basetyre', + url: '/basecar/car', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateBaseCar(data) { // 删除轮胎基础信息 export function delBaseCar(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/basecar/car/' + id, method: 'delete' }) } diff --git a/ruoyi-ui/src/api/basecar/cartype.js b/ruoyi-ui/src/api/basecar/cartype.js index 34cfdad..01dec8a 100644 --- a/ruoyi-ui/src/api/basecar/cartype.js +++ b/ruoyi-ui/src/api/basecar/cartype.js @@ -12,7 +12,7 @@ export function listCartype(query) { // 查询轮胎基础信息详细 export function getCartype(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/cartype/cartype/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getCartype(id) { // 新增轮胎基础信息 export function addCartype(data) { return request({ - url: '/basetyre/basetyre', + url: '/cartype/cartype', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addCartype(data) { // 修改轮胎基础信息 export function updateCartype(data) { return request({ - url: '/basetyre/basetyre', + url: '/cartype/cartype', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateCartype(data) { // 删除轮胎基础信息 export function delCartype(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/cartype/cartype/' + id, method: 'delete' }) } diff --git a/ruoyi-ui/src/api/basedevice/basedevice.js b/ruoyi-ui/src/api/basedevice/basedevice.js index c944964..61353b9 100644 --- a/ruoyi-ui/src/api/basedevice/basedevice.js +++ b/ruoyi-ui/src/api/basedevice/basedevice.js @@ -12,7 +12,7 @@ export function listBaseDevice(query) { // 查询轮胎基础信息详细 export function getBaseDevice(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/basedevice/basedevice/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getBaseDevice(id) { // 新增轮胎基础信息 export function addBaseDevice(data) { return request({ - url: '/basetyre/basetyre', + url: '/basedevice/basedevice', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addBaseDevice(data) { // 修改轮胎基础信息 export function updateBaseDevice(data) { return request({ - url: '/basetyre/basetyre', + url: '/basedevice/basedevice', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateBaseDevice(data) { // 删除轮胎基础信息 export function delBaseDevice(id) { return request({ - url: '/basetyre/basetyre/' + id, + url: '/basedevice/basedevice/' + id, method: 'delete' }) } diff --git a/ruoyi-ui/src/views/tireManagement/info/index.vue b/ruoyi-ui/src/views/tireManagement/info/index.vue index 9c677f4..3dc947e 100644 --- a/ruoyi-ui/src/views/tireManagement/info/index.vue +++ b/ruoyi-ui/src/views/tireManagement/info/index.vue @@ -489,7 +489,8 @@ function submitForm() { function handleDelete(row) { const postIds = row.id || ids.value; proxy.$modal.confirm(t('option.confirmDeletion', { - key: t('tireManagement.tireFactoryCode'), value: postIds + key: t('tireManagement.tireFactoryCode'), + value: postIds })).then(function () { return delBasetyre(postIds); }).then(() => {