Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
763dce47
authored
2020-02-21 12:03:23 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加日选择后回调
1 parent
e3b9bce4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
src/components/clarms/clarms-plugins-material.js
src/components/clarms/clarms-plugins-material.vue
src/components/date-picker/date-picker.js
src/components/clarms/clarms-plugins-material.js
View file @
763dce4
...
...
@@ -141,6 +141,9 @@ export default {
initData
()
{
// console.log("this.insuredList = ", this.insuredList);
},
datePickCompleteHandler
(){
console
.
log
(
"datePickCompleteHandler"
);
},
typeClickHandle
(
t
)
{
let
index
=
this
.
typeSelected
.
indexOf
(
t
);
if
(
index
>
-
1
)
{
...
...
src/components/clarms/clarms-plugins-material.vue
View file @
763dce4
...
...
@@ -103,7 +103,7 @@
<div
class=
"down-arrow"
></div>
<div
class=
"cont"
>
<div
class=
"ipt-date"
>
<date-picker
v-model=
"data.contactDate"
:formatter=
"'dd-MM-yyyy'"
:filtModel=
"['future']"
:check=
"checkDate"
:readonly=
"true"
:cusStyle=
"{border:'none !important','background-color':'transparent !important','height':'58px', 'color':'#ff6839','font-weight':'bold','text-align': 'center'}"
></date-picker>
<date-picker
v-model=
"data.contactDate"
:
datePickComplete=
"datePickCompleteHandler"
:
formatter=
"'dd-MM-yyyy'"
:filtModel=
"['future']"
:check=
"checkDate"
:readonly=
"true"
:cusStyle=
"{border:'none !important','background-color':'transparent !important','height':'58px', 'color':'#ff6839','font-weight':'bold','text-align': 'center'}"
></date-picker>
</div>
</div>
</div>
...
...
src/components/date-picker/date-picker.js
View file @
763dce4
...
...
@@ -74,6 +74,11 @@ export default {
return
{};
}
},
// 选择完日后触发
datePickComplete
:
{
type
:
Function
,
default
:
null
},
},
data
()
{
return
{
...
...
@@ -272,6 +277,9 @@ export default {
// this.dateValue = `${year}-${month}-${date}`;
this
.
formatDateValue
(
year
,
month
,
date
);
this
.
showCalendar
();
if
(
this
.
datePickComplete
){
this
.
datePickComplete
();
}
},
// 选择月份
selectMonth
(
item
)
{
...
...
Please
register
or
sign in
to post a comment