Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
5e944f38
提交
5e944f38
编写于
8月 19, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改name问题
上级
309f2a33
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
38 行增加
和
22 行删除
+38
-22
edit-information.vue
...atients/mypatients-manage/components/edit-information.vue
+38
-22
未找到文件。
src/views/patients/mypatients-manage/components/edit-information.vue
浏览文件 @
5e944f38
...
@@ -180,10 +180,12 @@
...
@@ -180,10 +180,12 @@
<
el
-
form
-
item
label
=
"所在地区"
prop
=
"addressList"
>
<
el
-
form
-
item
label
=
"所在地区"
prop
=
"addressList"
>
<!--
@
active
-
item
-
change
=
"handleItemChange"
-->
<!--
@
active
-
item
-
change
=
"handleItemChange"
-->
<
el
-
cascader
<
el
-
cascader
ref
=
"cascaderRegion"
placeholder
=
"请选择省市县乡"
placeholder
=
"请选择省市县乡"
:
options
=
"provinceList"
:
options
=
"provinceList"
v
-
model
=
"addressList"
v
-
model
=
"addressList"
:
props
=
"optionProps"
>
:
props
=
"optionProps"
@
change
=
"handleChange"
>
<
/el-cascader
>
<
/el-cascader
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col
>
<
/el-col
>
...
@@ -406,6 +408,7 @@
...
@@ -406,6 +408,7 @@
return
time
>
Date
.
now
()
||
time
<
old
;
return
time
>
Date
.
now
()
||
time
<
old
;
}
}
}
,
}
,
region
:
[],
}
}
}
,
}
,
props
:
{
props
:
{
...
@@ -609,26 +612,32 @@
...
@@ -609,26 +612,32 @@
this
.
patientInfoForm
.
cityId
=
this
.
addressList
[
1
];
this
.
patientInfoForm
.
cityId
=
this
.
addressList
[
1
];
this
.
patientInfoForm
.
countyId
=
this
.
addressList
[
2
];
this
.
patientInfoForm
.
countyId
=
this
.
addressList
[
2
];
this
.
patientInfoForm
.
townId
=
this
.
addressList
[
3
];
this
.
patientInfoForm
.
townId
=
this
.
addressList
[
3
];
this
.
provinceLists
.
forEach
((
item
)
=>
{
// this.provinceLists.forEach((item) =>
{
if
(
this
.
patientInfoForm
.
provinceId
==
item
.
provinceId
)
{
// if(this.patientInfoForm.provinceId == item.provinceId)
{
this
.
patientInfoForm
.
provinceName
=
item
.
provinceName
;
// this.patientInfoForm.provinceName = item.provinceName;
}
//
}
}
);
//
}
);
this
.
cityLists
.
forEach
((
item
)
=>
{
// this.cityLists.forEach((item) =>
{
if
(
this
.
patientInfoForm
.
cityId
==
item
.
cityId
)
{
// if(this.patientInfoForm.cityId == item.cityId)
{
this
.
patientInfoForm
.
cityName
=
item
.
cityName
;
// this.patientInfoForm.cityName = item.cityName;
}
//
}
}
);
//
}
);
this
.
countyLists
.
forEach
((
item
)
=>
{
// this.countyLists.forEach((item) =>
{
if
(
this
.
patientInfoForm
.
countyId
==
item
.
countyId
)
{
// if(this.patientInfoForm.countyId == item.countyId)
{
this
.
patientInfoForm
.
countyName
=
item
.
countyName
;
// this.patientInfoForm.countyName = item.countyName;
}
//
}
}
)
//
}
)
this
.
townLists
.
forEach
((
item
)
=>
{
// this.townLists.forEach((item) =>
{
if
(
this
.
patientInfoForm
.
townId
==
item
.
townId
)
{
// if(this.patientInfoForm.townId == item.townId)
{
this
.
patientInfoForm
.
townName
=
item
.
townName
;
// this.patientInfoForm.townName = item.townName;
}
//
}
}
)
//
}
)
this
.
patientInfoForm
.
provinceName
=
vm
.
region
[
0
];
this
.
patientInfoForm
.
cityName
=
vm
.
region
[
1
];
this
.
patientInfoForm
.
countyName
=
vm
.
region
[
2
];
this
.
patientInfoForm
.
townName
=
vm
.
region
[
3
];
if
(
this
.
patientInfoForm
.
provinceName
&&
this
.
patientInfoForm
.
cityName
&&
this
.
patientInfoForm
.
countyName
&&
this
.
patientInfoForm
.
townName
)
{
if
(
this
.
patientInfoForm
.
provinceName
&&
this
.
patientInfoForm
.
cityName
&&
this
.
patientInfoForm
.
countyName
&&
this
.
patientInfoForm
.
townName
)
{
this
.
patientInfoForm
.
patientAddress
=
`${this.patientInfoForm.provinceName
}
${this.patientInfoForm.cityName
}
${this.patientInfoForm.countyName
}
${this.patientInfoForm.townName
}
`
this
.
patientInfoForm
.
patientAddress
=
`${this.patientInfoForm.provinceName
}
${this.patientInfoForm.cityName
}
${this.patientInfoForm.countyName
}
${this.patientInfoForm.townName
}
`
}
else
{
}
else
{
...
@@ -810,7 +819,14 @@
...
@@ -810,7 +819,14 @@
let
s
=
n
-
old
;
let
s
=
n
-
old
;
return
Math
.
floor
(
s
/
(
24
*
3600
*
1000
));
return
Math
.
floor
(
s
/
(
24
*
3600
*
1000
));
// return s;
// return s;
}
}
,
handleChange
()
{
setTimeout
(
function
()
{
let
region
=
vm
.
$refs
[
"cascaderRegion"
].
inputValue
;
vm
.
region
=
region
.
split
(
" / "
);
console
.
log
(
"vm.region"
,
vm
.
region
)
}
,
20
)
}
,
}
,
}
,
filters
:
{
filters
:
{
emptyFilter
:
function
(
value
)
{
emptyFilter
:
function
(
value
)
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录