Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
f9cc856a
提交
f9cc856a
编写于
3月 15, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更改随访状态页面
上级
c892e9dd
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
228 行增加
和
17 行删除
+228
-17
customTextarea.vue
src/components/followup/customTextarea.vue
+75
-0
followupDetail.vue
src/components/followup/followupDetail.vue
+49
-0
record-list.vue
src/views/followup/record-manage/record-list.vue
+104
-17
未找到文件。
src/components/followup/customTextarea.vue
0 → 100644
浏览文件 @
f9cc856a
<
template
>
<div
class=
"custom-textarea"
:class=
"errTips ? 'err-border' : ''"
>
<textarea
v-model=
"inputContent"
:placeholder=
"placeholderTxt"
@
input=
"inputHandler"
@
blur=
"inputHandlerBlur"
:maxlength=
"maxlength"
:rows=
"rows"
></textarea>
<div
class=
"txt-wrap"
>
{{
computedNum
}}
/
{{
maxlength
}}
</div>
</div>
</
template
>
<
script
>
export
default
{
data
(){
return
{
inputContent
:
''
}
},
props
:
{
maxlength
:
{
type
:
Number
,
default
:
30
},
rows
:
{
type
:
Number
,
default
:
3
},
placeholderTxt
:
String
,
inputContentFrom
:
String
,
errTips
:
{
type
:
Boolean
,
default
:
false
}
},
computed
:
{
computedNum
(){
return
this
.
inputContent
.
length
}
},
mounted
(){
console
.
log
(
'外部内容'
,
this
.
inputContentFrom
)
if
(
this
.
inputContentFrom
){
this
.
inputContent
=
this
.
inputContentFrom
;
}
},
methods
:
{
inputHandler
(){
this
.
$emit
(
'inputHandler'
,
this
.
inputContent
)
},
inputHandlerBlur
(){
this
.
$emit
(
'inputHandlerBlur'
,
this
.
inputContent
)
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.custom-textarea
{
width
:
60%
;
border
:
1px
solid
#DCDFE6
;
padding
:
5px
15px
;
border-radius
:
4px
;
&
.err-border
{
border-color
:
#F56C6C
;
}
textarea
{
outline
:
none
;
color
:
#606266
;
resize
:
none
;
width
:
100%
;
}
::-webkit-input-placeholder
{
color
:
#999
;
}
.txt-wrap
{
line-height
:
20px
;
text-align
:
right
;
color
:
#606266
;
}
}
</
style
>
src/components/followup/followupDetail.vue
0 → 100644
浏览文件 @
f9cc856a
<
template
>
<el-dialog
title=
"本次随访详情"
:visible
.
sync=
"dialogFormVisible"
center
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
width=
"800px"
>
<!--
<el-form
ref=
"statusForm"
:model=
"statusForm"
:rules=
"rules"
label-suffix=
":"
label-width=
"120px"
>
-->
<!--
<el-form-item
label=
"居民"
style=
"margin-bottom:0;"
>
-->
<!--
<span>
{{
statusForm
.
nickname
}}
</span>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"变更状态"
>
-->
<!--
<span>
{{
statusForm
.
status
==
1
?
'未完成'
:
'已完成'
}}
</span>
-->
<!--
</el-form-item>
-->
<!--
<el-form-item
label=
"*变更原因"
prop=
"reason"
class=
"required-item"
>
-->
<!--
<custom-textarea-->
<!--:placeholderTxt="placeholderTxt"-->
<!--:inputContentFrom="statusForm.reason"-->
<!--@inputHandler="inputHandler"-->
<!--@inputHandlerBlur="inputHandlerBlur">
</custom-textarea>
-->
<!--
</el-form-item>
-->
<!--
</el-form>
-->
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save"
>
确 定
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
export
default
{
data
(){
return
{
// dialogFormVisible: true
}
},
props
:
{
dialogFormVisible
:
{
type
:
Boolean
,
default
:
false
}
},
computed
:
{
},
mounted
(){
},
methods
:
{
save
(){
this
.
dialogFormVisible
=
false
;
},
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/followup/record-manage/record-list.vue
浏览文件 @
f9cc856a
...
@@ -39,7 +39,11 @@
...
@@ -39,7 +39,11 @@
<el-radio-button
label=
"unfinish"
>
未完成(
{{
unfinishNum
}}
)
</el-radio-button>
<el-radio-button
label=
"unfinish"
>
未完成(
{{
unfinishNum
}}
)
</el-radio-button>
</el-radio-group>
</el-radio-group>
<el-table
:data=
"allData"
style=
"width: 100%;margin-top: 20px;"
>
<el-table
:data=
"allData"
style=
"width: 100%;margin-top: 20px;"
>
<el-table-column
prop=
"nickname"
label=
"姓名"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"nickname"
label=
"姓名"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span
style=
"cursor: pointer"
@
click=
"visitDetail(scope.row)"
>
{{
scope
.
row
.
nickname
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"mobilePhone"
label=
"手机号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"mobilePhone"
label=
"手机号"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"随访计划名称"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"name"
label=
"随访计划名称"
min-width=
"150"
align=
"center"
></el-table-column>
<el-table-column
prop=
"followupType"
label=
"随访时间"
min-width=
"150"
align=
"center"
>
<el-table-column
prop=
"followupType"
label=
"随访时间"
min-width=
"150"
align=
"center"
>
...
@@ -76,35 +80,58 @@
...
@@ -76,35 +80,58 @@
</div>
</div>
</div>
</div>
<el-dialog
title=
"变更随访状态"
:visible
.
sync=
"dialogFormVisible"
center
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
width=
"800px"
>
<el-dialog
title=
"变更随访状态"
:visible
.
sync=
"dialogFormVisible"
center
:close-on-click-modal=
"false"
:close-on-press-escape=
"false"
width=
"800px"
>
<el-form
ref=
"statusForm"
:model=
"statusForm"
label-suffix=
":"
label-width=
"120px"
>
<!--<el-form ref="statusForm" :model="statusForm" :rules="rules" label-suffix=":" label-width="120px">-->
<el-form-item
label=
"居民"
style=
"margin-bottom:0;"
>
<!--<el-form-item label="居民" style="margin-bottom:0;">-->
<span>
{{statusForm.nickname}}
</span>
<!--<span>{{statusForm.nickname}}</span>-->
</el-form-item>
<!--</el-form-item>-->
<el-form-item
label=
"变更状态"
>
<!--<el-form-item label="变更状态">-->
<span>
{{statusForm.status==1 ? '未完成' : '已完成'}}
</span>
<!--<span>{{statusForm.status==1 ? '未完成' : '已完成'}}</span>-->
</el-form-item>
<!--</el-form-item>-->
<el-form-item
label=
"变更原因"
>
<!--<el-form-item label="*变更原因" prop="reason" class="required-item">-->
<el-input
type=
"textarea"
<!--<custom-textarea-->
:rows=
"2"
<!--:placeholderTxt="placeholderTxt"-->
placeholder=
"请输入变更原因"
<!--:inputContentFrom="statusForm.reason"-->
v-model=
"statusForm.reason"
></el-input>
<!--@inputHandler="inputHandler"-->
</el-form-item>
<!--@inputHandlerBlur="inputHandlerBlur"></custom-textarea>-->
</el-form>
<!--</el-form-item>-->
<!--</el-form>-->
<div
class=
"form-content"
>
<div
class=
"item-div"
><span
class=
"left-title"
>
居民:
</span><span
class=
"right-item"
>
{{statusForm.nickname}}
</span></div>
<div
class=
"item-div"
><span
class=
"left-title"
>
变更状态:
</span><span
class=
"right-item"
>
{{statusForm.status==1 ? '未完成' : '已完成'}}
</span></div>
<div
class=
"item-div textarea-add"
><span
class=
"left-title"
><span
class=
"required-mark"
>
*
</span>
变更原因:
</span><span
class=
"right-item"
>
<custom-textarea
:placeholderTxt=
"placeholderTxt"
:inputContentFrom=
"statusForm.reason"
@
inputHandler=
"inputHandler"
@
inputHandlerBlur=
"inputHandlerBlur"
></custom-textarea></span></div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
dialogFormVisible = false
"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"
saveReason('statusForm')
"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<followup-detail
:dialogFormVisible=
"dialogDetailShow"
></followup-detail>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
BreadCrumb
from
"@/components/breadcrumb"
;
import
customTextarea
from
"@/components/followup/customTextarea"
;
import
followupDetail
from
"@/components/followup/followupDetail"
;
export
default
{
export
default
{
components
:{
components
:{
BreadCrumb
BreadCrumb
,
customTextarea
,
followupDetail
},
},
data
(){
data
(){
// let validDate = (rule, value, callback) => {
// if(!value) {
// callback(new Error('请输入变更原因'))
// } else {
// callback()
// }
// };
return
{
return
{
curmbFirst
:
'随访管理'
,
curmbFirst
:
'随访管理'
,
curmbSecond
:
'录入管理'
,
curmbSecond
:
'录入管理'
,
...
@@ -145,6 +172,13 @@
...
@@ -145,6 +172,13 @@
statusForm
:
{
statusForm
:
{
reason
:
''
reason
:
''
},
},
num
:
0
,
rules
:
{
// reason: [{ validator: validDate, required: true, trigger: ['blur']}]
},
placeholderTxt
:
'请输入变更原因'
,
errTips
:
false
,
dialogDetailShow
:
false
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -157,6 +191,9 @@
...
@@ -157,6 +191,9 @@
this
.
searchData
.
nickname
=
''
;
this
.
searchData
.
nickname
=
''
;
this
.
searchData
.
mobilePhone
=
''
;
this
.
searchData
.
mobilePhone
=
''
;
},
},
visitDetail
(
row
){
this
.
dialogDetailShow
=
true
;
},
handlerClick
(){
handlerClick
(){
console
.
log
(
this
.
activeName
)
console
.
log
(
this
.
activeName
)
},
},
...
@@ -173,6 +210,31 @@
...
@@ -173,6 +210,31 @@
handleCurrentChangePre
(
pageNum
){
handleCurrentChangePre
(
pageNum
){
this
.
paginationSet
[
'pageNum'
]
=
pageNum
this
.
paginationSet
[
'pageNum'
]
=
pageNum
},
},
saveReason
(
formName
){
if
(
this
.
statusForm
.
reason
){
this
.
$message
.
success
(
'保存成功'
)
this
.
dialogFormVisible
=
false
;
}
else
{
this
.
$message
.
error
(
'请填写变更原因!'
)
return
false
;
}
// this.$refs[formName].validate((valid) => {
// if (valid) {
// this.dialogFormVisible = false;
// } else {
// this.$message.error('请填写变更原因!')
// return false;
// }
// });
},
inputHandler
(
val
){
this
.
statusForm
.
reason
=
val
;
},
inputHandlerBlur
(
val
){
if
(
!
val
){
this
.
$message
.
error
(
'请填写变更原因!'
)
}
}
},
},
filters
:
{
filters
:
{
statusFileter
:
function
(
value
)
{
statusFileter
:
function
(
value
)
{
...
@@ -207,5 +269,30 @@
...
@@ -207,5 +269,30 @@
color
:
$picaGreen
;
color
:
$picaGreen
;
}
}
}
}
.form-content
{
.item-div
{
display
:
flex
;
align-items
:
center
;
color
:
#606266
;
min-height
:
40px
;
font-size
:
14px
;
&
.textarea-add
{
align-items
:
flex-start
;
margin-top
:
20px
;
}
.left-title
{
width
:
120px
;
text-align
:
right
;
padding-right
:
12px
;
}
.right-item
{
flex
:
1
;
}
.required-mark
{
color
:
#F56C6C
;
margin-right
:
3px
;
}
}
}
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录