fix: bug修改

server_ui_dongxiaodong
lijiayao 2024-04-04 09:45:03 +08:00
parent 60a872185b
commit 4847aee9ab
8 changed files with 35 additions and 34 deletions

View File

@ -2,7 +2,7 @@ import request from "@/utils/request";
export function listEmployes(query) {
return request({
url: '/coupletEnterprisemanagement/employee/employeeList',
url: '/business/employee/employeeList',
method: 'post',
data: query
})

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询电子围栏列表
export function fenceList(data) {
return request({
url: '/couplet/fence/fenceList',
url: '/business/fence/fenceList',
method: 'post',
data
})
@ -14,7 +14,7 @@ export function fenceList(data) {
*/
export function fenceAdd(data) {
return request({
url: '/couplet/fence/fenceAdd',
url: '/business/fence/fenceAdd',
method: 'post',
data
})
@ -24,7 +24,7 @@ export function fenceAdd(data) {
*/
export function fenceUpdate(data) {
return request({
url: '/couplet/fence/fenceUpdate',
url: '/business/fence/fenceUpdate',
method: 'post',
data
})
@ -37,7 +37,7 @@ export function fenceUpdate(data) {
*/
export function fenceDelete(data) {
return request({
url: '/couplet/fence/'+data,
url: '/business/fence/'+data,
method: 'delete'
})
}
@ -48,7 +48,7 @@ export function fenceDelete(data) {
*/
export function changeFenceStatus(data) {
return request({
url: '/couplet/fence/fenceState',
url: '/business/fence/fenceState',
method: 'post',
data
})
@ -60,7 +60,7 @@ export function changeFenceStatus(data) {
*/
export function queryByLogo() {
return request({
url: '/couplet/logo/queryByLogo',
url: '/business/logo/queryByLogo',
method: 'post'
})
}

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询部门列表
export function listManage(query) {
return request({
url: '/coupletEnterprisemanagement/manage/manageList',
url: '/business/manage/manageList',
method: 'POST',
params: query
})
@ -12,7 +12,7 @@ export function listManage(query) {
// 查询部门列表(排除节点)
export function listManageExcludeChild(deptId) {
return request({
url: '/coupletEnterprisemanagement/manage/list/exclude/' + deptId,
url: '/business/manage/list/exclude/' + deptId,
method: 'get'
})
}
@ -20,7 +20,7 @@ export function listManageExcludeChild(deptId) {
// 查询部门详细
export function getManage(deptId) {
return request({
url: '/coupletEnterprisemanagement/manage/' + deptId,
url: '/business/manage/' + deptId,
method: 'get'
})
}
@ -28,7 +28,7 @@ export function getManage(deptId) {
// 新增部门
export function addManage(data) {
return request({
url: '/coupletEnterprisemanagement/manage',
url: '/business/manage',
method: 'post',
data: data
})
@ -36,7 +36,7 @@ export function addManage(data) {
// 修改部门
export function updateManage(data) {
return request({
url: '/coupletEnterprisemanagement/manage ',
url: '/business/manage ',
method: 'put',
data: data
})
@ -45,7 +45,7 @@ export function updateManage(data) {
// 删除部门
export function delManage(deptId) {
return request({
url: '/coupletEnterprisemanagement/manage/' + deptId,
url: '/business/manage/' + deptId,
method: 'delete'
})
}

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询故障码数据列表
export function listTrouble(data) {
return request({
url: '/trouble/trouble/troubleList',
url: '/business/trouble/troubleList',
method: 'post',
data: data
})
@ -12,7 +12,7 @@ export function listTrouble(data) {
// 查询故障类型
export function getTroubleType() {
return request({
url: '/trouble/trouble/troubleTypeList',
url: '/business/trouble/troubleTypeList',
method: 'get'
})
}
@ -20,7 +20,7 @@ export function getTroubleType() {
// 查询故障等级
export function getTroubleGrade() {
return request({
url: '/trouble/trouble/troubleGradeList',
url: '/business/trouble/troubleGradeList',
method: 'get'
})
}
@ -28,7 +28,7 @@ export function getTroubleGrade() {
// 添加故障码数据
export function getAddTrouble(data) {
return request({
url: '/trouble/trouble/insertTrouble',
url: '/business/trouble/insertTrouble',
method: 'post',
data: data
})
@ -37,7 +37,7 @@ export function getAddTrouble(data) {
// 修改故障码数据信息
export function getUpdateTrouble(data) {
return request({
url: '/trouble/trouble/updateTrouble',
url: '/business/trouble/updateTrouble',
method: 'post',
data: data
})
@ -46,7 +46,7 @@ export function getUpdateTrouble(data) {
// 删除故障码数据信息
export function getDelTrouble(troubleId) {
return request({
url: '/trouble/trouble/remove/' + troubleId,
url: '/business/trouble/remove/' + troubleId,
method: 'get'
})
}

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 查询车辆列表
export function list(vehicleListParams) {
return request({
url: '/vehicle/vehicle/list',
url: '/business/vehicle/list',
method: 'post',
data: vehicleListParams
})
@ -12,7 +12,7 @@ export function list(vehicleListParams) {
//根据车辆id进行删除
export function deleteById(vehicleId) {
return request({
url: '/vehicle/vehicle/deleteById/' + vehicleId,
url: '/business/vehicle/deleteById/' + vehicleId,
method: 'get'
})
}
@ -20,7 +20,7 @@ export function deleteById(vehicleId) {
//获取车辆类型
export function getVehicleTypes() {
return request({
url: '/vehicle/vehicleType/list',
url: '/business/vehicleType/list',
method: 'get'
})
}
@ -28,7 +28,7 @@ export function getVehicleTypes() {
//编辑车辆
export function editById(vehicle) {
return request({
url: '/vehicle/vehicle/editById',
url: '/business/vehicle/editById',
method: 'post',
data:vehicle
})
@ -37,7 +37,7 @@ export function editById(vehicle) {
//新增车辆
export function insert(vehicle) {
return request({
url: '/vehicle/vehicle/insert',
url: '/business/vehicle/insert',
method: 'post',
data:vehicle
})
@ -46,7 +46,7 @@ export function insert(vehicle) {
//获取绑定当前车辆的标识
export function getBindLogoByVehicleId(vehicleId) {
return request({
url: '/vehicle/vehicle/getBindLogoById/'+vehicleId,
url: '/business/vehicle/getBindLogoById/'+vehicleId,
method: 'get'
})
}

View File

@ -74,12 +74,12 @@ export const constantRoutes = [
]
},
{
path: '/couplet/fence',
path: '/business/fence',
component: Layout,
redirect: 'container',
children: [
{
path: '/couplet/fence/container',
path: '/business/fence/container',
component: () => import('@/views/couplet/fence/container.vue'),
name: 'fenMap',
meta: {title: '地图', icon: 'rate'}

View File

@ -11,6 +11,7 @@
<script>
//jsjsjson,
//import from ',
import AMapLoader from "@amap/amap-jsapi-loader";
import {fenceUpdate} from "@/api/couplet/fence";
@ -111,7 +112,7 @@ export default {
this.$message("覆盖物对象绘制完成");
fenceUpdate(this.drawnPoints).then(res=>{
this.$message.success("编辑成功")
this.$router.push({path: '/couplet/fence/fence'})
this.$router.push({path: '/business/fence/fence'})
})
}
},

View File

@ -56,7 +56,7 @@
<el-table-column align="center" class-name="small-padding fixed-width" label="操作">
<template slot-scope="scope">
<el-button
v-hasPermi="['couplet:fence:fenceUpdate']"
v-hasPermi="['business:fence:fenceUpdate']"
icon="el-icon-edit"
size="mini"
type="text"
@ -64,7 +64,7 @@
>查询围栏
</el-button>
<el-button
v-hasPermi="['couplet:fence:fenceUpdate']"
v-hasPermi="['business:fence:fenceUpdate']"
icon="el-icon-edit"
size="mini"
type="text"
@ -72,7 +72,7 @@
>编辑电子围栏
</el-button>
<el-button
v-hasPermi="['couplet:fence:fenceState']"
v-hasPermi="['business:fence:fenceState']"
v-if="scope.row.fenceState==1"
icon="el-icon-check"
size="mini"
@ -81,7 +81,7 @@
>启用
</el-button>
<el-button
v-hasPermi="['couplet:fence:fenceState']"
v-hasPermi="['business:fence:fenceState']"
v-if="scope.row.fenceState==0"
icon="el-icon-close"
size="mini"
@ -90,7 +90,7 @@
>停用
</el-button>
<el-button
v-hasPermi="['couplet:fence:fenceDelete']"
v-hasPermi="['business:fence:fenceDelete']"
icon="el-icon-delete"
size="mini"
type="text"
@ -319,7 +319,7 @@ export default {
* 编辑电子围栏图形
*/
handleFenceUpdate(row){
this.$router.push({path: '/couplet/fence/container', query: {drawGraph: row}})
this.$router.push({path: '/business/fence/container', query: {drawGraph: row}})
},
handleQueryFence(){