Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
73addde4
Commit
73addde4
authored
Apr 11, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩搜索日期限制
parent
14be0b53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
5 deletions
+33
-5
achieve_region.js
public/app/js/achieve_region.js
+16
-2
achieve_ywy.js
public/app/js/achieve_ywy.js
+17
-3
No files found.
public/app/js/achieve_region.js
View file @
73addde4
...
@@ -7,6 +7,7 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
...
@@ -7,6 +7,7 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
token
:
''
,
token
:
''
,
startDate
:
''
,
startDate
:
''
,
endDate
:
''
,
endDate
:
''
,
nowDate
:
backNowDate
(),
headerTitle
:
''
,
headerTitle
:
''
,
ywyId
:
getUrlParam
(
'ywyId'
),
ywyId
:
getUrlParam
(
'ywyId'
),
userLevel
:
''
,
userLevel
:
''
,
...
@@ -135,8 +136,21 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
...
@@ -135,8 +136,21 @@ require(['vue', 'css!style/achieve_temp.css', 'jquery0325', 'common'], function(
var
_this
=
this
;
var
_this
=
this
;
_this
.
resetSomeData
(
1
);
_this
.
resetSomeData
(
1
);
if
(
type
==
'today'
){
if
(
type
==
'today'
){
_this
.
startDate
=
backNowDate
();
_this
.
endDate
=
_this
.
startDate
=
_this
.
nowDate
;
_this
.
endDate
=
_this
.
startDate
;
}
else
{
var
_tempTimeNow
=
new
Date
(
_this
.
nowDate
).
getTime
(),
_tempTimeStart
=
new
Date
(
_this
.
startDate
).
getTime
(),
_tempTimeEnd
=
new
Date
(
_this
.
endDate
).
getTime
();
if
(
_tempTimeStart
>
_tempTimeEnd
||
_tempTimeEnd
>=
_tempTimeNow
){
layer
.
open
({
content
:
'开始时间不能大于结束时间,且搜索日期需要小于今天。请重新选择日期'
,
btn
:
[
'确定'
,
'取消'
],
yes
:
function
(
_index
){
layer
.
close
(
_index
);
}
});
return
false
;
};
};
};
sessionStorage
.
setItem
(
'achieve_search_start_date'
,
_this
.
startDate
);
sessionStorage
.
setItem
(
'achieve_search_start_date'
,
_this
.
startDate
);
sessionStorage
.
setItem
(
'achieve_search_end_date'
,
_this
.
endDate
);
sessionStorage
.
setItem
(
'achieve_search_end_date'
,
_this
.
endDate
);
...
...
public/app/js/achieve_ywy.js
View file @
73addde4
...
@@ -7,6 +7,7 @@ require(['vue', 'css!style/achieve_tonglian_ac.css', 'jquery0325', 'common'], fu
...
@@ -7,6 +7,7 @@ require(['vue', 'css!style/achieve_tonglian_ac.css', 'jquery0325', 'common'], fu
testBtn
:
null
,
testBtn
:
null
,
startDate
:
''
,
startDate
:
''
,
endDate
:
''
,
endDate
:
''
,
nowDate
:
backNowDate
(),
tabsMain
:
[{
tabsMain
:
[{
'title'
:
'经纪人'
,
'title'
:
'经纪人'
,
'token'
:
''
,
'token'
:
''
,
...
@@ -231,11 +232,24 @@ require(['vue', 'css!style/achieve_tonglian_ac.css', 'jquery0325', 'common'], fu
...
@@ -231,11 +232,24 @@ require(['vue', 'css!style/achieve_tonglian_ac.css', 'jquery0325', 'common'], fu
},
},
search
:
function
(
type
)
{
search
:
function
(
type
)
{
var
_this
=
this
;
var
_this
=
this
;
_this
.
resetSomeData
(
1
);
if
(
type
==
'today'
){
if
(
type
==
'today'
){
_this
.
startDate
=
backNowDate
();
_this
.
endDate
=
_this
.
startDate
=
_this
.
nowDate
;
_this
.
endDate
=
_this
.
startDate
;
}
else
{
var
_tempTimeNow
=
new
Date
(
_this
.
nowDate
).
getTime
(),
_tempTimeStart
=
new
Date
(
_this
.
startDate
).
getTime
(),
_tempTimeEnd
=
new
Date
(
_this
.
endDate
).
getTime
();
if
(
_tempTimeStart
>
_tempTimeEnd
||
_tempTimeEnd
>=
_tempTimeNow
){
layer
.
open
({
content
:
'开始时间不能大于结束时间,且搜索日期需要小于今天。请重新选择日期'
,
btn
:
[
'确定'
,
'取消'
],
yes
:
function
(
_index
){
layer
.
close
(
_index
);
}
});
return
false
;
};
};
};
_this
.
resetSomeData
(
1
);
_this
.
ajaxMainNum
(
function
(){
_this
.
ajaxMainNum
(
function
(){
sessionStorage
.
setItem
(
'achieve_search_start_date'
,
_this
.
startDate
);
sessionStorage
.
setItem
(
'achieve_search_start_date'
,
_this
.
startDate
);
sessionStorage
.
setItem
(
'achieve_search_end_date'
,
_this
.
endDate
);
sessionStorage
.
setItem
(
'achieve_search_end_date'
,
_this
.
endDate
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment