提交 5183d072 编写于 作者: guangjun.yang's avatar guangjun.yang

对接第一个接口

上级 c36c6b4e
...@@ -89,6 +89,7 @@ import CommonAreaSelect from "@/components/common/common-area-select"; ...@@ -89,6 +89,7 @@ import CommonAreaSelect from "@/components/common/common-area-select";
import ProcessBar from "@/components/common/pica-process"; import ProcessBar from "@/components/common/pica-process";
import CourseTimes from "@/components/bussiness/course-times"; import CourseTimes from "@/components/bussiness/course-times";
import CommonCard from "@/components/common/common-card"; import CommonCard from "@/components/common/common-card";
import { getGeneralData } from "@/service/index"
export default { export default {
components: { components: {
...@@ -166,8 +167,28 @@ export default { ...@@ -166,8 +167,28 @@ export default {
}, },
mounted() { mounted() {
// window.addEventListener("resize", this.resizeTheChart); // window.addEventListener("resize", this.resizeTheChart);
let queryData = {
"cityId": 0,
"countyId": 0,
"hospitalIdList": [
0
],
"originalFlag": 0,
"projectId": 11111,
"provinceId": 0,
"townId": 0
}
this.getGeneralData(queryData)
}, },
methods: { methods: {
async getGeneralData(queryData) {
await getGeneralData(queryData).then(res => {
alert(res)
if (res.code === "000000") {
}
});
},
tabClicked(index) { tabClicked(index) {
this.cIndex = index; this.cIndex = index;
}, },
......
...@@ -19,7 +19,8 @@ Axios.interceptors.request.use( ...@@ -19,7 +19,8 @@ Axios.interceptors.request.use(
const method = config.method.toLocaleLowerCase(); const method = config.method.toLocaleLowerCase();
if (method === 'post' || method === 'put' || method === 'delete') {} if (method === 'post' || method === 'put' || method === 'delete') {}
if (config.withCredentials) { if (config.withCredentials) {
config.headers.token = cookies.get('token'); config.headers.token = '3BDACDC8B709441AA6EBCE634BD113E0';
// config.headers.token = cookies.get('token') || 'C284B868425D494386EAEF6C9AE99937';
} }
return config; return config;
}, },
......
...@@ -55,3 +55,28 @@ export const getTownList = async params => { ...@@ -55,3 +55,28 @@ export const getTownList = async params => {
url: `/basic-data/position/towns` url: `/basic-data/position/towns`
}); });
}; };
/**
* 获取区域(一般是乡镇)下的机构列表
*/
export const getOrgListByTownId = async params => {
return request({
method: 'get',
params: params,
withCredentials: true,
url: `/basic-data/position/towns`
});
};
/**
* 总体情况-选择地区下
*/
export const getGeneralData = async data => {
return request({
baseURL: 'http://10.177.11.156:10443/',
method: 'post',
data: data,
withCredentials: true,
url: `stats/report/general`
});
};
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册