46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
// http://localhost:9529/mosty-api/mosty-jcz/tbQwXfll/getXfllList?jllx=02&pageSize=20&pageCurrent=1
|
|
import request from "@/utils/request";
|
|
const api = "/mosty-api/mosty-qwzx";
|
|
/**
|
|
* 获取民警|辅警列表
|
|
* @param {*} params
|
|
* @returns
|
|
*/
|
|
export const getTbJcglXfll = (params) => {
|
|
return request({
|
|
url: api + "/tbQwglXfll/getXfllList",
|
|
method: "GET",
|
|
params
|
|
});
|
|
};
|
|
// 新增数据辅警
|
|
export const getTbJcglXflladd = (data) => {
|
|
return request({
|
|
url: api + "/tbQwglXfll/add",
|
|
method: "post",
|
|
data
|
|
});
|
|
};
|
|
// 修改数据辅警
|
|
export const getTbJcglXflledit = (data) => {
|
|
return request({
|
|
url: api + "/tbQwglXfll/edit",
|
|
method: "post",
|
|
data
|
|
});
|
|
};
|
|
//身份证查询个人信息
|
|
export const getTbJcglXfllegetXfllBySfz = (id) => {
|
|
return request({
|
|
url: api + `/tbQwglXfll/getXfllBySfz/${id}`,
|
|
method: "post"
|
|
});
|
|
};
|
|
// 离职
|
|
export const getTbJcglXfllzList = (id) => {
|
|
return request({
|
|
url: api + `/tbQwglXfll/lzXfll/${id}`,
|
|
method: "post"
|
|
});
|
|
};
|