forked from qiushanhe/dm-manage-web
提交
This commit is contained in:
43
src/api/sch/classType.js
Normal file
43
src/api/sch/classType.js
Normal file
@@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询班型列表
|
||||
export function getClassTypeTableList(query) {
|
||||
return request({
|
||||
url: '/sch/classType/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 新增班型
|
||||
export function insertClassType(params) {
|
||||
return request({
|
||||
url: '/sch/classType',
|
||||
method: 'post',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
// 修改班型
|
||||
export function updateClassType(params) {
|
||||
return request({
|
||||
url: '/sch/classType',
|
||||
method: 'put',
|
||||
data: params
|
||||
})
|
||||
}
|
||||
// 删除班型
|
||||
export function deleteClassType(ids) {
|
||||
return request({
|
||||
url: '/sch/classType/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//克隆班型
|
||||
export function cloneClassType(data) {
|
||||
return request({
|
||||
url: '/sch/classType/clone',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
27
src/api/sch/place.js
Normal file
27
src/api/sch/place.js
Normal file
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取地图数据
|
||||
export function getMapData() {
|
||||
return request({
|
||||
url: '/sch/place/list',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 更新驾校状态
|
||||
export async function updateSchoolStatus(data) {
|
||||
return await request({
|
||||
url: '/sch/place/updateSchool',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 保存场地状态
|
||||
export function savePlace(data) {
|
||||
return request({
|
||||
url: '/sch/place',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
36
src/api/sch/school.js
Normal file
36
src/api/sch/school.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
export default {
|
||||
pageList(data = {}) {
|
||||
return request({
|
||||
url: "/sch/school/list",
|
||||
method: "get",
|
||||
params: data,
|
||||
});
|
||||
},
|
||||
getById(id) {
|
||||
return request({
|
||||
url: `/sch/school/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
},
|
||||
add(data = {}) {
|
||||
return request({
|
||||
url: "/sch/school",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
},
|
||||
update(data = {}) {
|
||||
return request({
|
||||
url: "/sch/school",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
},
|
||||
delete(id) {
|
||||
return request({
|
||||
url: `/sch/school/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -49,4 +49,11 @@ export function delDept(deptId) {
|
||||
url: '/system/dept/' + deptId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
}
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/dept/deptTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
42
src/api/system/employee.js
Normal file
42
src/api/system/employee.js
Normal file
@@ -0,0 +1,42 @@
|
||||
import request from '@/utils/request'
|
||||
export default {
|
||||
pageList(data = {}) {
|
||||
return request({
|
||||
url: "/system/employee/list",
|
||||
method: "get",
|
||||
params: data,
|
||||
});
|
||||
},
|
||||
getById(id) {
|
||||
return request({
|
||||
url: `/system/employee/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
},
|
||||
add(data = {}) {
|
||||
return request({
|
||||
url: "/system/employee",
|
||||
method: "post",
|
||||
data,
|
||||
});
|
||||
},
|
||||
update(data = {}) {
|
||||
return request({
|
||||
url: "/system/employee",
|
||||
method: "put",
|
||||
data,
|
||||
});
|
||||
},
|
||||
delete(id) {
|
||||
return request({
|
||||
url: `/system/employee/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
},
|
||||
getEmployee() {
|
||||
return request({
|
||||
url: "/system/employee/getEmployees",
|
||||
method: "get"
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -117,3 +117,12 @@ export function deptTreeSelect(roleId) {
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function getRoleOptions() {
|
||||
return request({
|
||||
url: '/system/role/getRoles',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
import request from '@/utils/request'
|
||||
import { parseStrEmpty } from "@/utils/ruoyi";
|
||||
import {
|
||||
parseStrEmpty
|
||||
} from "@/utils/ruoyi";
|
||||
|
||||
// 查询用户列表
|
||||
export function listUser(query) {
|
||||
@@ -125,11 +127,3 @@ export function updateAuthRole(data) {
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询部门下拉树结构
|
||||
export function deptTreeSelect() {
|
||||
return request({
|
||||
url: '/system/user/deptTree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
0
src/api/tool/common.js
Normal file
0
src/api/tool/common.js
Normal file
0
src/api/tool/map.js
Normal file
0
src/api/tool/map.js
Normal file
186
src/api/zs/clue.js
Normal file
186
src/api/zs/clue.js
Normal file
@@ -0,0 +1,186 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询线索列表
|
||||
export function getClueList(query) {
|
||||
return request({
|
||||
url: '/zs/clue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 新增线索
|
||||
export function addClue(data) {
|
||||
return request({
|
||||
url: '/zs/clue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改线索
|
||||
export function updateClue(data) {
|
||||
return request({
|
||||
url: '/zs/clue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//删除
|
||||
export function deleteClue(data) {
|
||||
return request({
|
||||
url: '/zs/clue',
|
||||
method: 'delete',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
// 导出
|
||||
export function exportData(query) {
|
||||
return request({
|
||||
url: '/zs/clue/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导入模板
|
||||
export function importTemplate(param) {
|
||||
return request({
|
||||
url: '/zs/clue/importTemplate',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
// 导入
|
||||
export function importData(data) {
|
||||
return request({
|
||||
url: '/zs/clue/importData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//查询登记getSign
|
||||
export function getSign(query) {
|
||||
return request({
|
||||
url: '/zs/clue/sign',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
//保存登记
|
||||
export function saveSign(data) {
|
||||
return request({
|
||||
url: '/zs/clue/sign',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//甩单
|
||||
export function saveDistribute(data) {
|
||||
return request({
|
||||
url: '/zs/clue/distribute',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//驳回
|
||||
export function refuse(data) {
|
||||
return request({
|
||||
url: '/zs/clue/refuse',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//查询甩单记录
|
||||
export function getDistributeRecord(param) {
|
||||
return request({
|
||||
url: '/zs/clue/distributerecord',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
//查询跟踪记录
|
||||
export function getFollowRecord(param) {
|
||||
return request({
|
||||
url: '/zs/clue/followrecord',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
export function getConsultRecord(param) {
|
||||
return request({
|
||||
url: '/zs/clue/consultrecord',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
// 获取已过期
|
||||
export function getClueCountBadge() {
|
||||
return request({
|
||||
url: `/zs/clue/badgeCount`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 批量更新
|
||||
export function batchUpdate(data) {
|
||||
return request({
|
||||
url: `/zs/clue/batchUpdate`,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//公海线索 getPublicList
|
||||
export function getPublicList(param) {
|
||||
return request({
|
||||
url: `/zs/clue/public/list`,
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
//拾取线索
|
||||
export function pickupClue(data) {
|
||||
return request({
|
||||
url: `/zs/clue/public/pickup`,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//丢弃线索
|
||||
export function discardClue(data) {
|
||||
return request({
|
||||
url: `/zs/clue/public/discard`,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//查询接收
|
||||
export function getAccept() {
|
||||
return request({
|
||||
url: `/zs/clue/accept`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//丢弃线索
|
||||
export function updateAccept(data) {
|
||||
return request({
|
||||
url: `/zs/clue/accept`,
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
89
src/api/zs/sign.js
Normal file
89
src/api/zs/sign.js
Normal file
@@ -0,0 +1,89 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询线索列表
|
||||
export function getSignList(query) {
|
||||
return request({
|
||||
url: '/zs/sign/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出
|
||||
export function exportData(query) {
|
||||
return request({
|
||||
url: '/zs/sign/export',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导入模板
|
||||
export function importTemplate() {
|
||||
return request({
|
||||
url: '/zs/sign/importTemplate',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 导入
|
||||
export function importData(data) {
|
||||
return request({
|
||||
url: '/zs/sign/importData',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function addSign(data) {
|
||||
return request({
|
||||
url: '/zs/sign',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateSign(data) {
|
||||
return request({
|
||||
url: '/zs/sign',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
export function getClues(param) {
|
||||
return request({
|
||||
url: '/zs/sign/clue',
|
||||
method: 'get',
|
||||
params: param
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
export function deleteSign(data) {
|
||||
return request({
|
||||
url: '/zs/sign',
|
||||
method: 'delete',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//审核登记
|
||||
export function checkSign(data) {
|
||||
return request({
|
||||
url: '/zs/sign/check',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//审核记录
|
||||
export function getCheckRecord(data) {
|
||||
return request({
|
||||
url: '/zs/sign/check',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user