lijinlong
parent
ac4df80523
commit
d2fb3c12ee
@ -1,59 +1,59 @@
|
||||
import request from '@/utils/request.js'
|
||||
import request from "@/utils/request.js";
|
||||
//数据来源
|
||||
export function dataLY() {
|
||||
return request({
|
||||
url: '/zongzhi/saftyscreen/source',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/saftyscreen/source",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//地球受攻击
|
||||
export function mapAttack(data) {
|
||||
return request({
|
||||
url: '/zongzhi/attack/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/attack/list",
|
||||
method: "get",
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
//安全隐患
|
||||
export function safeRisks() {
|
||||
return request({
|
||||
url: '/zongzhi/saftyscreen/safetyhazard',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/saftyscreen/safetyhazard",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//部门专办情况
|
||||
export function sectorZB() {
|
||||
return request({
|
||||
url: '/zongzhi/opinionscreen/sentimentdept',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/opinionscreen/sentimentdept",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//通报统计属地通报
|
||||
export function territorialTB() {
|
||||
return request({
|
||||
url: '/zongzhi/saftyscreen/tbarea',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/saftyscreen/tbarea",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//通报统计部门通报
|
||||
export function departmentTB() {
|
||||
return request({
|
||||
url: '/zongzhi/saftyscreen/tbdept',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/saftyscreen/tbdept",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//通报完成情况
|
||||
export function tbFinish() {
|
||||
return request({
|
||||
url: '/zongzhi/saftyscreen/tbcomplete',
|
||||
method: 'get',
|
||||
})
|
||||
return request({
|
||||
url: "/zongzhi/saftyscreen/tbcomplete",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
//获取部门通报列表
|
||||
export function departmentList(data) {
|
||||
return request({
|
||||
url: '/zongzhi/tb/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
})
|
||||
}
|
||||
return request({
|
||||
url: "/zongzhi/tb/list",
|
||||
method: "get",
|
||||
params: data,
|
||||
});
|
||||
}
|
||||
|
@ -0,0 +1,29 @@
|
||||
/**
|
||||
* 参数处理
|
||||
* @param {*} params 参数
|
||||
*/
|
||||
export function tansParams(params) {
|
||||
let result = "";
|
||||
for (const propName of Object.keys(params)) {
|
||||
const value = params[propName];
|
||||
var part = encodeURIComponent(propName) + "=";
|
||||
if (value !== null && value !== "" && typeof value !== "undefined") {
|
||||
if (typeof value === "object") {
|
||||
for (const key of Object.keys(value)) {
|
||||
if (
|
||||
value[key] !== null &&
|
||||
value[key] !== "" &&
|
||||
typeof value[key] !== "undefined"
|
||||
) {
|
||||
let params = propName + "[" + key + "]";
|
||||
var subPart = encodeURIComponent(params) + "=";
|
||||
result += subPart + encodeURIComponent(value[key]) + "&";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
result += part + encodeURIComponent(value) + "&";
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
Loading…
Reference in new issue