Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
15e2a878
提交
15e2a878
编写于
5月 27, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
6dcfe169
变更
6
展开全部
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
394 行增加
和
23 行删除
+394
-23
package.json
package.json
+1
-0
patient-add-flow-path.png
src/assets/image/patient-add-flow-path.png
+0
-0
patientsapi.js
src/utils/patients/patientsapi.js
+20
-2
labels-detail.vue
src/views/patients/labels-manage/labels-detail.vue
+28
-1
labels-list.vue
src/views/patients/labels-manage/labels-list.vue
+11
-4
new-patient.vue
src/views/patients/new-manage/new-patient.vue
+334
-16
未找到文件。
package.json
浏览文件 @
15e2a878
...
...
@@ -25,6 +25,7 @@
"
iscroll
"
:
"
^5.2.0
"
,
"
js-cookie
"
:
"
^2.2.0
"
,
"
js-md5
"
:
"
^0.7.3
"
,
"
qrcode
"
:
"
^1.3.3
"
,
"
showdown
"
:
"
^1.6.4
"
,
"
vue
"
:
"
^2.1.0
"
,
"
vue-infinite-scroll
"
:
"
^2.0.2
"
,
...
...
src/assets/image/patient-add-flow-path.png
0 → 100644
浏览文件 @
15e2a878
294.7 KB
src/utils/patients/patientsapi.js
浏览文件 @
15e2a878
...
...
@@ -74,17 +74,35 @@ export const getDiseasesList = (params) => {
};
// 新增居民
export
const
getQRCode
=
data
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/qrcodes/get`
),
method
:
'post'
,
data
:
data
,
description
:
'获取二维码'
,
})
}
export
const
getUploadHistory
=
params
=>
{
// 获取上传历史记录
export
const
getUploadHistory
=
params
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`
/
healths/docImpPat/import/records`
),
url
:
getBaseUrl
(
`healths/docImpPat/import/records`
),
method
:
'get'
,
params
:
params
,
description
:
'获取上传历史记录'
,
})
}
export
const
refreshCode
=
data
=>
{
return
fetch
({
headers
,
url
:
getBaseUrl
(
`healths/qrcodes/refresh`
),
method
:
'post'
,
data
:
data
,
description
:
'刷新二维码有效期'
,
})
}
// 分组管理
export
const
getLabelList
=
(
params
)
=>
{
...
...
src/views/patients/labels-manage/labels-detail.vue
浏览文件 @
15e2a878
...
...
@@ -72,6 +72,7 @@
</div>
</el-table>
<el-pagination
v-if=
"searchData.tableData && searchData.tableData.length > 0"
class=
"pagination-style"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
...
...
@@ -201,7 +202,7 @@
},
// 挂载到Dom完成时
mounted
()
{
commonUtil
.
resizeHeight
();
//
commonUtil.resizeHeight();
},
methods
:
{
getDetail
()
{
...
...
@@ -284,6 +285,7 @@
},
handleChangeLabelName
(){
this
.
showChangeLabelNameDialog
=
true
;
this
.
ruleForm
.
newLabelName
=
this
.
$route
.
query
.
labelName
;
},
cancelChangeName
(){
this
.
isChangeNameError
=
false
;
...
...
@@ -417,8 +419,30 @@
}
</
script
>
<
style
lang=
"less"
>
.label-detail-wrap{
.err-text{
height: 12px;
// display: none;
visibility: hidden;
}
.special-error-tips{
.el-textarea__inner{
border: 1px solid red;
outline: none;
}
.err-text{
color: red;
visibility: visible;
}
}
}
</
style
>
<
style
lang=
"less"
scoped
>
.label-detail-wrap{
.screenSet{
background: #fff;
padding: 30px;
...
...
@@ -470,11 +494,13 @@
}
.pagination-style{
text-align: right;
margin: 20px 0;
}
.table-empty{
width: 100%;
height: auto;
text-align: center;
margin-top: 20%;
.empty-pic{
width: 100px;
height: 100px;
...
...
@@ -486,6 +512,7 @@
font-size: 14px;
color: #909399;
line-height: 14px;
padding-bottom: 200px;
}
}
}
...
...
src/views/patients/labels-manage/labels-list.vue
浏览文件 @
15e2a878
...
...
@@ -21,7 +21,7 @@
</el-button>
</el-col>
</el-row>
<p
class=
"total-label"
>
共:
{{
labelNameList
.
length
}}
个分组
</p>
<p
class=
"total-label"
>
共:
{{
totalListCount
}}
个分组
</p>
<div
class=
"label-list"
v-if=
"labelNameList && labelNameList.length > 0"
>
<el-tag
class=
"each-label"
@
click=
"goToDetail(item)"
v-for=
"(item, index) in labelNameList"
:key=
"index"
>
{{
item
.
labelName
}}
(
{{
item
.
labelPatientNums
}}
人)
</el-tag>
</div>
...
...
@@ -70,6 +70,7 @@
curmbSecond
:
"分组管理"
,
labelName
:
''
,
labelNameList
:
[],
totalListCount
:
0
,
centerDialogVisible
:
false
,
ruleForm
:
{
newLabelName
:
''
,
// 新建分组名
...
...
@@ -98,17 +99,23 @@
// 获取分组列表
let
params
=
{
type
:
1
,
token
:
localStorage
.
getItem
(
"token"
),
};
if
(
this
.
labelName
){
params
.
labelName
=
this
.
labelName
;
}
commonUtil
.
openLoading
(
this
);
//
commonUtil.openLoading(this);
getLabelList
(
params
).
then
(
data
=>
{
commonUtil
.
closeLoading
(
this
);
//
commonUtil.closeLoading(this);
// console.log('获取分组列表>> ', data)
if
(
data
.
data
&&
data
.
data
.
labelNameList
){
this
.
labelNameList
=
data
.
data
.
labelNameList
;
for
(
let
i
=
0
;
i
<
this
.
labelNameList
.
length
;
i
++
){
if
(
this
.
labelNameList
[
i
].
labelId
==
0
){
this
.
totalListCount
=
this
.
labelNameList
.
length
-
1
;
}
else
{
this
.
totalListCount
=
this
.
labelNameList
.
length
;
}
}
}
}).
catch
(
err
=>
{
console
.
log
(
'error: '
,
err
)
...
...
src/views/patients/new-manage/new-patient.vue
浏览文件 @
15e2a878
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录