lcw
This commit is contained in:
@ -1,95 +1,27 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
|
||||
// 添加训练记录
|
||||
export function addXljl(data = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/xljl",
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
export function getXljlById(id) {
|
||||
return request({
|
||||
url: `/mosty-api/mosty-jmxf/xljl/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
export function getXljlList(params = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/xljl/getListByXfid",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export function updateXljl(data = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/xljl",
|
||||
method: "put",
|
||||
data
|
||||
});
|
||||
}
|
||||
export function deleteXljl(data = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/xljl",
|
||||
method: "delete",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//获取用户所属区域数据
|
||||
export function getUserArea(params = {}) {
|
||||
return request({
|
||||
url: "/mosty-base/other/getGajg",
|
||||
url: "/bagl/mosty-base/other/getGajg",
|
||||
method: "post",
|
||||
params
|
||||
});
|
||||
}
|
||||
//获取分值列表数据
|
||||
export function getSelectPzfz(params = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/fzpz/selectPzfzByPzrxm",
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
}
|
||||
|
||||
//新增分值数据
|
||||
export function addPzfz(data = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/fzpz/addPzfz",
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
//修改分值数据
|
||||
export function updatePzfz(data = {}) {
|
||||
return request({
|
||||
url: "/mosty-api/mosty-jmxf/fzpz/editEntity",
|
||||
method: "put",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
//删除分值数据
|
||||
export function deletePzfz(id) {
|
||||
return request({
|
||||
url: `/mosty-api/mosty-jmxf/fzpz/deleteEntity/${id}`,
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取方正cokie
|
||||
export function getCokie(params) {
|
||||
return request({
|
||||
url: `/mosty-base/fzmsg/getCokie`,
|
||||
url: `/bagl/mosty-base/fzmsg/getCokie`,
|
||||
method: "get",
|
||||
params
|
||||
});
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
|
||||
/**
|
||||
* 消息列表
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -119,7 +119,7 @@ export const zlZqtjxx = (data) => {
|
||||
//文件下载
|
||||
export function downFiles(id) {
|
||||
return request({
|
||||
url: `/mosty-base/minio/file/download/${id}`,
|
||||
url: `/mosty-api/mosty-base/minio/file/download/${id}`,
|
||||
method: "get"
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -68,7 +68,7 @@ export const zlZqtjxx = (data) => {
|
||||
//文件下载
|
||||
export function downFiles(id) {
|
||||
return request({
|
||||
url: `/mosty-base/minio/file/download/${id}`,
|
||||
url: `/mosty-api/mosty-base/minio/file/download/${id}`,
|
||||
method: "get"
|
||||
})
|
||||
};
|
||||
@ -81,4 +81,4 @@ export function exportJxkh(data) {
|
||||
params: data,
|
||||
responseType:'blob'
|
||||
})
|
||||
};
|
||||
};
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
//根据身份证号码查询个人信息
|
||||
export const cyryPage = (data) => {
|
||||
return request({
|
||||
@ -11,7 +11,7 @@ export const cyryPage = (data) => {
|
||||
};
|
||||
// 查询公司下的年检人员
|
||||
|
||||
// /mosty-base/baxx / njry / list
|
||||
// /bagl/mosty-base/baxx / njry / list
|
||||
export const njryList = (data) => {
|
||||
return request({
|
||||
url: api + "/baxx/njry/list",
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
//不巡防申请
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-api/mosty-jmxf";
|
||||
const api2 = "/mosty-base";
|
||||
const api2 = "/bagl/mosty-base";
|
||||
//新增
|
||||
export function addRw(data) {
|
||||
return request({
|
||||
@ -83,7 +83,7 @@ export function getOrgByDeptId(deptid) {
|
||||
//通过任务id查询任务详情信息
|
||||
export function getTaskInfo(id) {
|
||||
return request({
|
||||
url: api + `/tbRwTask/inner/getTaskInfo/${id}`,
|
||||
url: api + `/tbRwTask/inner/getTaskInfo/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@ -1,4 +1,6 @@
|
||||
import request from "@/utils/request";
|
||||
// import { getCookie } from "@/utils/cookie";
|
||||
import { getItem } from "@/utils/storage";
|
||||
const api = "/solrSearcher";
|
||||
const api2 = "/mosty-api/mosty-gsxt";
|
||||
/**
|
||||
@ -7,12 +9,27 @@ const api2 = "/mosty-api/mosty-gsxt";
|
||||
* @returns
|
||||
*/
|
||||
export const doBzdzSelect = (params = {}) => {
|
||||
return request({
|
||||
// 获取之前存储的fz_cookie的值
|
||||
const fzCookieValue = getItem('fz_cookie');
|
||||
console.log(fzCookieValue);
|
||||
|
||||
// 创建请求配置对象,并禁用axios自动携带所有cookie的行为
|
||||
const config = {
|
||||
url: api + "/doBzdzSelect",
|
||||
method: "GET",
|
||||
params
|
||||
});
|
||||
params,
|
||||
withCredentials: false // 禁用自动携带所有cookie
|
||||
};
|
||||
// 如果cookie值存在,构建正确格式的Cookie头
|
||||
if (fzCookieValue) {
|
||||
// 正确格式:'Cookie': 'fz_cookie=值'
|
||||
config.headers = {
|
||||
'Cookie': `${fzCookieValue}`
|
||||
};
|
||||
}
|
||||
return request(config);
|
||||
};
|
||||
|
||||
/**
|
||||
* 警情列分页查询
|
||||
* @param {*} params
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
// 查询生成表数据
|
||||
export function listTable(params) {
|
||||
return request({
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import request from "@/utils/request";
|
||||
const api = "/mosty-base";
|
||||
const api = "/bagl/mosty-base";
|
||||
/*
|
||||
* 登录
|
||||
* return promise 实例对象
|
||||
|
||||
@ -214,4 +214,15 @@ export const tbJcglEdit = (data) => {
|
||||
data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 获取线索列表
|
||||
* @param {*} params
|
||||
* @returns
|
||||
*/
|
||||
export const getXsList = (params = {}) => {
|
||||
return request({
|
||||
url: api + "/tbbary/getXsList",
|
||||
method: "GET",
|
||||
params
|
||||
});
|
||||
};
|
||||
|
||||
@ -14,7 +14,7 @@ export const getRypcList = (data = {}) => {
|
||||
});
|
||||
};
|
||||
|
||||
// 条件查询车辆盘查信息
|
||||
// 条件查询车辆盘查信息
|
||||
export const getClpcList = (data = {}) => {
|
||||
return request({
|
||||
url: api + "/tbHcBpccl/getClpcList",
|
||||
@ -26,7 +26,7 @@ export const getRypcList = (data = {}) => {
|
||||
//人员核查档案
|
||||
export function getHjyjData(data){
|
||||
return request({
|
||||
url: "/mosty-base/other/getHjyjData",
|
||||
url: "/mosty-api/mosty-base/other/getHjyjData",
|
||||
method: "POST",
|
||||
data
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user