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
a0900ce3
Commit
a0900ce3
authored
Nov 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
40e4ef81
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
23 deletions
+77
-23
pkListCon.html
application/index/view/pkList/pkListCon.html
+42
-11
pkList.js
public/resource/js/pkList.js
+33
-10
pk_list_template_tpl.html.html
public/resource/template/pk_list_template_tpl.html.html
+2
-2
No files found.
application/index/view/pkList/pkListCon.html
View file @
a0900ce3
...
...
@@ -117,7 +117,18 @@
#pk_list
td
,
#pk_list
th
{
padding
:
3px
;
}
/*加载图标*/
#main_loading_pic
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
width
:
100px
;
height
:
100px
;
margin-left
:
-50px
;
margin-top
:
-100px
;
overflow
:
hidden
;
display
:
none
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container pk-container"
>
...
...
@@ -143,16 +154,32 @@
<span
class=
"export-pk"
>
导出报表
</span>
</div>
<div
class=
"pk-container-detail-a"
>
<span
class=
"a-span"
>
A
</span>
<span
class=
"a-span"
>
B
</span>
<span
class=
"a-span-active"
>
C
</span>
<span
class=
"a-span"
>
D
</span>
<span
class=
"a-span"
>
E
</span>
<span
class=
"a-span"
>
F
</span>
<span
class=
"a-span"
>
G
</span>
<span
class=
"a-span"
>
H
</span>
<span
class=
"a-span"
>
I
</span>
<span
class=
"a-span"
>
J
</span>
<span
class=
"a-span-active ld-Marheight"
data-id=
'1'
>
A
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'2'
>
B
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'3'
>
C
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'4'
>
D
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'5'
>
E
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'6'
>
F
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'7'
>
G
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'8'
>
H
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'9'
>
I
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'10'
>
J
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'11'
>
K
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'12'
>
L
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'13'
>
M
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'14'
>
N
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'15'
>
O
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'16'
>
P
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'17'
>
Q
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'18'
>
R
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'19'
>
S
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'20'
>
T
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'21'
>
U
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'22'
>
V
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'23'
>
W
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'24'
>
X
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'25'
>
Y
</span>
<span
class=
"a-span ld-Marheight"
data-id=
'26'
>
Z
</span>
</div>
<div
class=
"pk_list_content"
>
<table
id=
"pk_list"
class=
"table"
>
...
...
@@ -163,3 +190,7 @@
</div>
</div>
</div>
<!--加载图标-->
<div
id=
"main_loading_pic"
>
<img
src=
"/resource/image/jz2.gif"
>
</div>
public/resource/js/pkList.js
View file @
a0900ce3
define
([
'doT'
,
'text!temp/pk_list_template_tpl.html.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
pkList
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
25
,
/*每页显示多少条*/
mainTabIndex
:
0
,
mainTabIndex
:
1
,
mainTabIndexTwo
:
0
,
init
:
function
()
{
//初始化dot
...
...
@@ -20,17 +22,35 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'team-span'
).
addClass
(
'team-span-active'
).
siblings
().
removeClass
(
'team-span-active'
).
addClass
(
'team-span'
);
pkList
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
pkList
.
mainTabIndex
)
if
(
_this
.
index
()
==
0
){
pkList
.
mainTabIndex
=
-
1
}
if
(
_this
.
index
()
==
1
){
pkList
.
mainTabIndex
=
1
;
}
if
(
_this
.
index
()
==
2
){
pkList
.
mainTabIndex
=
2
;
}
if
(
_this
.
index
()
==
3
){
pkList
.
mainTabIndex
=
3
;
}
if
(
_this
.
index
()
==
4
){
pkList
.
mainTabIndex
=
4
;
}
if
(
_this
.
index
()
==
5
){
pkList
.
mainTabIndex
=
0
;
}
});
_doc
.
on
(
'click'
,
'.pk-container-detail-a>span'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'a-span'
).
addClass
(
'a-span-active'
).
siblings
().
removeClass
(
'a-span-active'
).
addClass
(
'a-span'
);
pkList
.
mainTabIndexTwo
=
_this
.
index
();
console
.
log
(
pkList
.
mainTabIndexTwo
)
pkList
.
mainTabIndexTwo
=
_this
.
attr
(
'data-id'
);
pkList
.
getList
();
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
pkList
.
exportList
();
});
...
...
@@ -56,20 +76,22 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
getList
:
function
(
pageNo
)
{
var
params
=
{};
params
.
p
ageNo
=
pkList
.
pageNo
;
params
.
pageSize
=
pkList
.
pageSize
;
params
.
p
osition
=
pkList
.
mainTabIndex
;
params
.
AuthToken
=
user_info_obj
.
AuthToken
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/
evaluation
List'
,
//拜访列表
url
:
'/index/
getRandKing
List'
,
//拜访列表
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
beforeSend
:
function
()
{
$
(
'#main_loading_pic'
).
show
();
},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'pk_list_tpl'
).
innerHTML
);
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#pk_list"
).
html
(
doTtmpl
(
data
.
data
[
pkList
.
mainTabIndexTwo
]
));
add_page
(
data
.
data
.
total
,
pageNo
,
pkList
.
pageSize
,
pkList
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
...
...
@@ -82,6 +104,7 @@ define(['doT', 'text!temp/pk_list_template_tpl.html.html', 'css!style/home.css',
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
){
$
(
'#main_loading_pic'
).
hide
();
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
...
...
public/resource/template/pk_list_template_tpl.html.html
View file @
a0900ce3
...
...
@@ -10,8 +10,8 @@
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"evaluate_content"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
phon
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
create_tim
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
nam
e"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"
performanc
e"
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
...
...
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