Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
0ee1a8bd
提交
0ee1a8bd
编写于
5月 15, 2019
作者:
Yuanzhao.dai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小红点
上级
beb3034a
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
8 行删除
+39
-8
App.vue
src/App.vue
+28
-5
patientsapi.js
src/utils/patients/patientsapi.js
+11
-3
未找到文件。
src/App.vue
浏览文件 @
0ee1a8bd
<
template
>
<
template
>
<div>
<div>
<v-header
:userName=
"userName"
:portrait=
"portrait"
:idType=
"idType"
></v-header>
<v-header
:userName=
"userName"
:portrait=
"portrait"
:idType=
"idType"
></v-header>
<v-slidebar
:authList=
"authList"
:tokenValue=
"token"
:notCompleteCount=
"
10
"
></v-slidebar>
<v-slidebar
:authList=
"authList"
:tokenValue=
"token"
:notCompleteCount=
"
redNum
"
></v-slidebar>
<el-container>
<el-container>
<div
class=
"content"
id=
"body-content"
>
<div
class=
"content"
id=
"body-content"
>
<transition
name=
"router-fade"
mode=
"out-in"
>
<transition
name=
"router-fade"
mode=
"out-in"
>
...
@@ -25,6 +25,7 @@ import VFooter from './views/layout/footer.vue'
...
@@ -25,6 +25,7 @@ import VFooter from './views/layout/footer.vue'
import
{
base64decode
,
isNotEmptyUtils
,
getUrlParamsMap
}
from
"./utils/utils.js"
import
{
base64decode
,
isNotEmptyUtils
,
getUrlParamsMap
}
from
"./utils/utils.js"
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
getLoginUrl
}
from
'./utils/index.js'
import
{
getLoginUrl
}
from
'./utils/index.js'
import
{
getRedNum
}
from
'./utils/patients/patientsapi'
let
vm
=
null
let
vm
=
null
export
default
{
export
default
{
components
:{
components
:{
...
@@ -38,7 +39,8 @@ export default {
...
@@ -38,7 +39,8 @@ export default {
token
:
''
,
token
:
''
,
userName
:
''
,
userName
:
''
,
portrait
:
''
,
portrait
:
''
,
authList
:
{}
authList
:
{},
redNum
:
0
,
}
}
},
},
computed
:{
computed
:{
...
@@ -51,7 +53,7 @@ export default {
...
@@ -51,7 +53,7 @@ export default {
vm
.
getToken
()
vm
.
getToken
()
},
},
mounted
()
{
mounted
()
{
vm
.
getRedData
()
},
},
methods
:
{
methods
:
{
// 解密token
// 解密token
...
@@ -107,8 +109,29 @@ export default {
...
@@ -107,8 +109,29 @@ export default {
vm
.
$message
.
info
(
res
.
message
)
vm
.
$message
.
info
(
res
.
message
)
}
}
})
})
}
},
}
getRedData
()
{
getRedNum
({
openTime
:
(
new
Date
()).
getTime
()
}).
then
((
data
)
=>
{
if
(
data
.
code
==
'000000'
)
{
vm
.
redNum
=
data
.
data
}
}).
catch
(
error
=>
{
vm
.
$message
.
error
(
error
)
})
}
},
watch
:
{
$route
:{
deep
:
true
,
handler
:
function
(
newVal
){
if
(
vm
.
$route
.
path
==
'/patients-manage/not-complete/uncompleted-list'
){
//避免重复请求
vm
.
redNum
=
0
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/utils/patients/patientsapi.js
浏览文件 @
0ee1a8bd
...
@@ -98,16 +98,24 @@ export const sendCompleteMessageList = (data) => {
...
@@ -98,16 +98,24 @@ export const sendCompleteMessageList = (data) => {
description
:
'批量提醒居民完善信息'
,
description
:
'批量提醒居民完善信息'
,
})
})
};
};
export
const
getNotCompleteCount
=
(
data
)
=>
{
export
const
getNotCompleteCount
=
(
params
)
=>
{
return
fetch
({
return
fetch
({
headers
,
headers
,
url
:
getBaseUrl
(
`healths/patients/uncomplate/counts`
),
url
:
getBaseUrl
(
`healths/patients/uncomplate/counts`
),
method
:
'get'
,
method
:
'get'
,
data
:
data
,
params
:
params
,
description
:
'获取未完善居民人数'
,
description
:
'获取未完善居民人数'
,
})
})
};
};
export
const
getRedNum
=
(
params
)
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/patients/uncompleted/last/counts`
),
method
:
'get'
,
params
:
params
,
description
:
'获取小红点数据'
,
})
};
export
const
getPatientDetail
=
(
patientId
)
=>
{
export
const
getPatientDetail
=
(
patientId
)
=>
{
return
fetch
({
return
fetch
({
headers
,
headers
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录