Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
5183d072
提交
5183d072
编写于
11月 18, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
对接第一个接口
上级
c36c6b4e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
48 行增加
和
1 行删除
+48
-1
index.vue
pages/index.vue
+21
-0
api.js
service/api.js
+2
-1
index.js
service/index.js
+25
-0
未找到文件。
pages/index.vue
浏览文件 @
5183d072
...
...
@@ -89,6 +89,7 @@ import CommonAreaSelect from "@/components/common/common-area-select";
import
ProcessBar
from
"@/components/common/pica-process"
;
import
CourseTimes
from
"@/components/bussiness/course-times"
;
import
CommonCard
from
"@/components/common/common-card"
;
import
{
getGeneralData
}
from
"@/service/index"
export
default
{
components
:
{
...
...
@@ -166,8 +167,28 @@ export default {
},
mounted
()
{
// 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
:
{
async
getGeneralData
(
queryData
)
{
await
getGeneralData
(
queryData
).
then
(
res
=>
{
alert
(
res
)
if
(
res
.
code
===
"000000"
)
{
}
});
},
tabClicked
(
index
)
{
this
.
cIndex
=
index
;
},
...
...
service/api.js
浏览文件 @
5183d072
...
...
@@ -19,7 +19,8 @@ Axios.interceptors.request.use(
const
method
=
config
.
method
.
toLocaleLowerCase
();
if
(
method
===
'post'
||
method
===
'put'
||
method
===
'delete'
)
{}
if
(
config
.
withCredentials
)
{
config
.
headers
.
token
=
cookies
.
get
(
'token'
);
config
.
headers
.
token
=
'3BDACDC8B709441AA6EBCE634BD113E0'
;
// config.headers.token = cookies.get('token') || 'C284B868425D494386EAEF6C9AE99937';
}
return
config
;
},
...
...
service/index.js
浏览文件 @
5183d072
...
...
@@ -55,3 +55,28 @@ export const getTownList = async params => {
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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录