Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
2c6225ae
提交
2c6225ae
编写于
5月 31, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
881c83ad
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
42 行增加
和
34 行删除
+42
-34
opinionDialog.vue
src/components/opinionDialog.vue
+1
-1
labels-detail.vue
src/views/patients/labels-manage/labels-detail.vue
+27
-21
labels-list.vue
src/views/patients/labels-manage/labels-list.vue
+11
-6
batch-import.vue
src/views/patients/new-manage/components/batch-import.vue
+3
-6
未找到文件。
src/components/opinionDialog.vue
浏览文件 @
2c6225ae
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
class=
"upload-demo"
class=
"upload-demo"
:action=
"action"
:action=
"action"
:headers=
"headers"
:headers=
"headers"
multiple
:multiple=
"false"
list-type=
"picture"
list-type=
"picture"
:limit=
"imgLimit"
:limit=
"imgLimit"
:accept=
"'image/jpg,image/jpeg,image/png,image/bmp'"
:accept=
"'image/jpg,image/jpeg,image/png,image/bmp'"
...
...
src/views/patients/labels-manage/labels-detail.vue
浏览文件 @
2c6225ae
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<p
class=
"member-number"
>
{{
searchData
.
totalRows
}}
人
</p>
<p
class=
"member-number"
>
{{
searchData
.
totalRows
}}
人
</p>
<div
class=
"right"
>
<div
class=
"right"
>
<el-button
type=
"primary"
size=
"small"
class=
"create-new-label"
v-if=
"!isUngrouped"
@
click=
"addPatientsHandler"
>
添加居民
</el-button>
<el-button
type=
"primary"
size=
"small"
class=
"create-new-label"
v-if=
"!isUngrouped"
@
click=
"addPatientsHandler"
>
添加居民
</el-button>
<el-button
type=
"default"
size=
"small"
class=
"create-new-label"
v-if=
"!isUngrouped"
:disabled=
"isBatchDeleteDisabled"
@
click=
"handleDeletePatients"
>
批量
删
除
</el-button>
<el-button
type=
"default"
size=
"small"
class=
"create-new-label"
v-if=
"!isUngrouped"
:disabled=
"isBatchDeleteDisabled"
@
click=
"handleDeletePatients"
>
批量
移
除
</el-button>
</div>
</div>
</div>
</div>
<el-table
<el-table
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<template
slot-scope=
"scope"
v-if=
"!isUngrouped"
>
<template
slot-scope=
"scope"
v-if=
"!isUngrouped"
>
<el-button
<el-button
class=
"remove-btn"
class=
"remove-btn"
@
click
.
native
.
prevent
=
"goToDeleteRow(scope.$index, searchData.tableData)"
@
click=
"goToDeleteRow(scope.$index, searchData.tableData)"
type=
"text"
type=
"text"
size=
"small"
>
size=
"small"
>
移除
移除
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<div
slot=
"empty"
>
<div
slot=
"empty"
>
<div
class=
"table-empty"
v-if=
"searchData.tableData && searchData.tableData.length < 1"
>
<div
class=
"table-empty"
v-if=
"searchData.tableData && searchData.tableData.length < 1"
>
<img
class=
"empty-pic"
src=
"../../../assets/image/no-content1.png"
>
<img
class=
"empty-pic"
src=
"../../../assets/image/no-content1.png"
>
<p
class=
"tips"
>
当前分组无成员
</p>
<p
class=
"tips"
>
当前分组
暂
无成员
</p>
</div>
</div>
</div>
</div>
</el-table>
</el-table>
...
@@ -98,6 +98,7 @@
...
@@ -98,6 +98,7 @@
v-model=
"ruleForm.newLabelName"
v-model=
"ruleForm.newLabelName"
placeholder=
"请填写分组名称,最多15个字符"
placeholder=
"请填写分组名称,最多15个字符"
maxlength=
"15"
maxlength=
"15"
@
input=
"handleNewNameInputChange"
>
>
</el-input>
</el-input>
<div
class=
"err-text"
>
{{changeNameTips}}
</div>
<div
class=
"err-text"
>
{{changeNameTips}}
</div>
...
@@ -184,6 +185,8 @@
...
@@ -184,6 +185,8 @@
ruleForm
:
{
ruleForm
:
{
newLabelName
:
''
,
// 修改后的分组名
newLabelName
:
''
,
// 修改后的分组名
},
},
isSingleDelete
:
false
,
singleDeleteInfo
:
[],
multipleSelection
:
[],
multipleSelection
:
[],
selectPatientType
:
2
,
//选择居民时需要的type类型
selectPatientType
:
2
,
//选择居民时需要的type类型
}
}
...
@@ -222,10 +225,8 @@
...
@@ -222,10 +225,8 @@
pageNo
:
this
.
searchData
.
pageNo
,
pageNo
:
this
.
searchData
.
pageNo
,
pageSize
:
this
.
searchData
.
pageSize
,
pageSize
:
this
.
searchData
.
pageSize
,
};
};
// commonUtil.openLoading(this);
getLabelDetail
(
labelId
,
params
).
then
(
data
=>
{
getLabelDetail
(
labelId
,
params
).
then
(
data
=>
{
// commonUtil.closeLoading(this);
// console.log('获取分组详情>> ', data)
console
.
log
(
'获取分组详情>> '
,
data
)
if
(
data
.
data
){
if
(
data
.
data
){
this
.
searchData
=
data
.
data
;
this
.
searchData
=
data
.
data
;
this
.
patientIdList
=
data
.
data
.
patientIdList
;
this
.
patientIdList
=
data
.
data
.
patientIdList
;
...
@@ -240,10 +241,7 @@
...
@@ -240,10 +241,7 @@
console
.
log
(
'error: '
,
err
)
console
.
log
(
'error: '
,
err
)
});
});
},
},
handleSelectionChange
(
val
){
console
.
log
(
'handleSelectionChange>>>> '
,
val
)
this
.
multipleSelection
=
val
;
},
handleSizeChange
(
val
){
handleSizeChange
(
val
){
console
.
log
(
'handleSizeChange>>>'
)
console
.
log
(
'handleSizeChange>>>'
)
this
.
searchData
.
pageSize
=
val
;
this
.
searchData
.
pageSize
=
val
;
...
@@ -264,13 +262,9 @@
...
@@ -264,13 +262,9 @@
labelId
:
labelId
labelId
:
labelId
});
});
deleteCurrentLabel
(
params
).
then
(
data
=>
{
deleteCurrentLabel
(
params
).
then
(
data
=>
{
console
.
log
(
'删除分组>> '
,
data
)
//
console.log('删除分组>> ', data)
if
(
data
.
code
==
'000000'
){
if
(
data
.
code
==
'000000'
){
this
.
centerDialogVisible
=
false
;
this
.
centerDialogVisible
=
false
;
// this.$message({
// message: '删除分组成功',
// type: 'success'
// });
this
.
$router
.
replace
({
this
.
$router
.
replace
({
path
:
'/patients-manage/labels-manage/labels-list'
,
path
:
'/patients-manage/labels-manage/labels-list'
,
})
})
...
@@ -302,6 +296,10 @@
...
@@ -302,6 +296,10 @@
this
.
ruleForm
.
newLabelName
=
''
;
this
.
ruleForm
.
newLabelName
=
''
;
this
.
showChangeLabelNameDialog
=
false
;
this
.
showChangeLabelNameDialog
=
false
;
},
},
handleNewNameInputChange
(){
this
.
isChangeNameError
=
false
;
this
.
changeNameTips
=
''
;
},
// 更改分组名
// 更改分组名
confirmChangeName
()
{
confirmChangeName
()
{
let
params
=
{
let
params
=
{
...
@@ -311,7 +309,7 @@
...
@@ -311,7 +309,7 @@
};
};
if
(
!
params
.
newLabelName
){
if
(
!
params
.
newLabelName
){
this
.
isChangeNameError
=
true
;
this
.
isChangeNameError
=
true
;
this
.
changeNameTips
=
'请输入分组名'
;
this
.
changeNameTips
=
'请输入分组名
称
'
;
return
;
return
;
}
}
if
(
params
.
labelName
==
params
.
newLabelName
){
if
(
params
.
labelName
==
params
.
newLabelName
){
...
@@ -348,14 +346,20 @@
...
@@ -348,14 +346,20 @@
});
});
});
});
},
},
handleSelectionChange
(
val
){
console
.
log
(
'handleSelectionChange>>>> '
,
val
)
this
.
multipleSelection
=
val
;
},
goToDeleteRow
(
index
,
rows
)
{
goToDeleteRow
(
index
,
rows
)
{
console
.
log
(
'rows '
,
rows
[
index
])
// console.log('before: ', this.multipleSelection)
// this.$refs.multipleTable.toggleRowSelection(rows[index]);
// console.log('after: ', this.multipleSelection)
this
.
isSingleDelete
=
true
;
this
.
showDeletePatientsDialog
=
true
;
this
.
showDeletePatientsDialog
=
true
;
this
.
multipleSelection
.
push
({
this
.
singleDeleteInfo
=
[{
patientId
:
rows
[
index
].
id
}];
patientId
:
rows
[
index
].
id
})
},
},
handleDeletePatients
()
{
handleDeletePatients
()
{
this
.
isSingleDelete
=
false
;
let
selectList
=
this
.
multipleSelection
;
let
selectList
=
this
.
multipleSelection
;
// console.log('list: ', selectList);
// console.log('list: ', selectList);
let
tempArr
=
[];
let
tempArr
=
[];
...
@@ -375,6 +379,9 @@
...
@@ -375,6 +379,9 @@
labelId
:
this
.
$route
.
query
.
labelId
,
labelId
:
this
.
$route
.
query
.
labelId
,
patientList
:
this
.
multipleSelection
,
patientList
:
this
.
multipleSelection
,
};
};
if
(
this
.
isSingleDelete
==
true
){
// 点击单个移除时
params
.
patientList
=
this
.
singleDeleteInfo
;
}
deleteCurrentPatients
(
params
).
then
(
data
=>
{
deleteCurrentPatients
(
params
).
then
(
data
=>
{
if
(
data
.
code
==
'000000'
){
if
(
data
.
code
==
'000000'
){
this
.
$message
({
this
.
$message
({
...
@@ -420,7 +427,6 @@
...
@@ -420,7 +427,6 @@
this
.
$message
.
error
(
data
.
message
)
this
.
$message
.
error
(
data
.
message
)
}
}
})
})
},
},
}
}
}
}
...
...
src/views/patients/labels-manage/labels-list.vue
浏览文件 @
2c6225ae
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
:disabled=
"labelNameList.length >= 999"
:disabled=
"labelNameList.length >= 999"
@
click=
"createNewLabel"
@
click=
"createNewLabel"
>
>
新
建
分组
新
增
分组
</el-button>
</el-button>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</div>
</div>
<div
class=
"table-empty"
v-if=
"labelNameList && labelNameList.length
<
1
"
>
<div
class=
"table-empty"
v-if=
"labelNameList && labelNameList.length
<
1
"
>
<img
class=
"empty-pic"
src=
"../../../assets/image/no-content1.png"
>
<img
class=
"empty-pic"
src=
"../../../assets/image/no-content1.png"
>
<p
class=
"tips"
>
未找到相似
分组
</p>
<p
class=
"tips"
>
没有找到匹配
分组
</p>
</div>
</div>
<el-dialog
<el-dialog
class=
"dialog-boxd"
class=
"dialog-boxd"
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
v-model=
"ruleForm.newLabelName"
v-model=
"ruleForm.newLabelName"
placeholder=
"请填写分组名称,最多15个字符"
placeholder=
"请填写分组名称,最多15个字符"
maxlength=
"15"
maxlength=
"15"
@
input=
"handleNewLabelNameChange"
>
>
</el-input>
</el-input>
<div
class=
"err-text"
>
{{
addNewLabelTips
}}
</div>
<div
class=
"err-text"
>
{{
addNewLabelTips
}}
</div>
...
@@ -134,20 +135,24 @@
...
@@ -134,20 +135,24 @@
console
.
log
(
'新增分组...'
);
console
.
log
(
'新增分组...'
);
this
.
centerDialogVisible
=
true
;
this
.
centerDialogVisible
=
true
;
},
},
handleNewLabelNameChange
()
{
if
(
this
.
isAddLabelError
==
true
){
this
.
isAddLabelError
=
false
;
this
.
addNewLabelTips
=
''
;
}
},
submitForm
()
{
submitForm
()
{
let
params
=
{
let
params
=
{
labelName
:
this
.
ruleForm
.
newLabelName
,
labelName
:
this
.
ruleForm
.
newLabelName
,
};
};
if
(
!
params
.
labelName
){
if
(
!
params
.
labelName
){
this
.
isAddLabelError
=
true
;
this
.
isAddLabelError
=
true
;
this
.
addNewLabelTips
=
'请输入分组名'
;
this
.
addNewLabelTips
=
'请输入分组名
称
'
;
return
;
return
;
}
}
// 请求新增
// 请求新增
// commonUtil.openLoading(this);
createNewLabel
(
params
).
then
(
data
=>
{
createNewLabel
(
params
).
then
(
data
=>
{
// commonUtil.closeLoading(this);
// console.log('新增分组>> ', data)
console
.
log
(
'新增分组>> '
,
data
)
if
(
data
.
code
==
'202520'
){
// 分组名重复
if
(
data
.
code
==
'202520'
){
// 分组名重复
console
.
log
(
'tips: '
,
data
.
message
)
console
.
log
(
'tips: '
,
data
.
message
)
this
.
isAddLabelError
=
true
;
this
.
isAddLabelError
=
true
;
...
...
src/views/patients/new-manage/components/batch-import.vue
浏览文件 @
2c6225ae
...
@@ -74,6 +74,7 @@
...
@@ -74,6 +74,7 @@
<el-table
<el-table
:data=
"searchData.tableData"
:data=
"searchData.tableData"
class=
"upload-table"
class=
"upload-table"
empty-text=
"该用户暂无历史记录"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
align=
"left"
align=
"left"
...
@@ -204,18 +205,14 @@
...
@@ -204,18 +205,14 @@
import_type
:
2
,
import_type
:
2
,
};
};
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
req
.
token
=
'
5E2F79D96DD144A0B23E7607E2169A6
8'
req
.
token
=
'
4E971382E2E14BDC91CC23A45034378
8'
}
else
{
}
else
{
req
.
token
=
self
.
_token
;
req
.
token
=
self
.
_token
;
}
}
self
.
postData
=
JSON
.
stringify
(
req
);
self
.
postData
=
JSON
.
stringify
(
req
);
uploadExcel
(
self
.
postData
).
then
(
res
=>
{
uploadExcel
(
self
.
postData
).
then
(
res
=>
{
// console.log('%c res >> ','color: red;', res)
if
(
typeof
res
.
importFlag
!=
'undefined'
&&
res
.
importFlag
==
true
){
if
(
typeof
res
.
importFlag
!=
'undefined'
&&
res
.
importFlag
==
true
){
self
.
$message
({
self
.
showUploadSuccess
=
true
;
message
:
'上传成功!'
,
type
:
'success'
});
try
{
try
{
self
.
goToGetUploadHistory
();
self
.
goToGetUploadHistory
();
}
catch
(
err
){
}
catch
(
err
){
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录