Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
Overview
Overview
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
曹鹏
bigdatainterservice
Commits
adf93802
Commit
adf93802
authored
Jun 17, 2019
by
chentian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
2d94e443
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
src/main/resources/static/js/qypzjgxsNew.js
+17
-3
No files found.
src/main/resources/static/js/qypzjgxsNew.js
View file @
adf93802
...
@@ -166,7 +166,7 @@ function doQueryFL(){
...
@@ -166,7 +166,7 @@ function doQueryFL(){
flStr
=
"出生日期"
;
flStr
=
"出生日期"
;
}
}
$
(
"#fldh"
).
append
(
$
(
"#fldh"
).
append
(
"<div class='newNav
'
>"
+
"<div class='newNav
newNav"
+
index2
+
"'
>"
+
"<div class='newNavTop' id='newNavTop'>"
+
flStr
+
"分类</div>"
+
"<div class='newNavTop' id='newNavTop'>"
+
flStr
+
"分类</div>"
+
"<div class='newNavbody' id='newNavbody"
+
index2
+
"'>"
+
"<div class='newNavbody' id='newNavbody"
+
index2
+
"'>"
+
...
@@ -206,6 +206,13 @@ function doQueryFL(){
...
@@ -206,6 +206,13 @@ function doQueryFL(){
}
}
}
else
{
}
else
{
//除了出生日期外,其他分类去掉class为current-icon的第一个span的onclick事件
/* $(".newNav").each(function(){}
$(this).find(".current-icon").eq(0).removeAttr("onclick").css({"color":"#666","cursor":"default"});
)};*/
$
(
".newNav"
+
index2
).
find
(
".current-icon"
).
eq
(
0
).
removeAttr
(
"onclick"
);
$
(
".newNav"
+
index2
).
find
(
".current-icon"
).
eq
(
0
).
css
({
"color"
:
"#666"
,
"cursor"
:
"default"
});
//去掉onclick事件,则置灰内容
//除出生日期外其他分类循环部分begin
//除出生日期外其他分类循环部分begin
$
(
"#newNavbody"
+
index2
).
append
(
$
(
"#newNavbody"
+
index2
).
append
(
"<div class='newNavInfo' isshowed='false' id='flnr"
+
index2
+
"'>"
+
"<div class='newNavInfo' isshowed='false' id='flnr"
+
index2
+
"'>"
+
...
@@ -251,7 +258,6 @@ function doQueryFL(){
...
@@ -251,7 +258,6 @@ function doQueryFL(){
}
}
}
}
function
doQueryqk
(){
function
doQueryqk
(){
debugger
$
(
"#qkdiv"
).
empty
();
$
(
"#qkdiv"
).
empty
();
var
rows
=
$
(
'#qypzjgxsNewTable'
).
datagrid
(
'getRows'
);
//获得所有行
var
rows
=
$
(
'#qypzjgxsNewTable'
).
datagrid
(
'getRows'
);
//获得所有行
var
html
=
""
;
var
html
=
""
;
...
@@ -304,6 +310,8 @@ function flclick(obj,value,index,object_type){
...
@@ -304,6 +310,8 @@ function flclick(obj,value,index,object_type){
var
d
=
""
;
var
d
=
""
;
$
.
each
(
dataCsrq
,
function
(
i
,
item
)
{
$
.
each
(
dataCsrq
,
function
(
i
,
item
)
{
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
str
=
str
.
replace
(
'年'
,
'-'
);
str
=
str
.
replace
(
'月'
,
'-'
);
if
(
item
.
VALS
.
length
==
7
&&
item
.
VALS
.
substring
(
0
,
4
)
==
value
){
if
(
item
.
VALS
.
length
==
7
&&
item
.
VALS
.
substring
(
0
,
4
)
==
value
){
m
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
;
m
+=
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"
+
item
.
NAMES
+
"','"
+
index
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
;
}
else
if
(
item
.
VALS
.
length
==
10
&&
item
.
VALS
.
substring
(
0
,
7
)
==
value
){
}
else
if
(
item
.
VALS
.
length
==
10
&&
item
.
VALS
.
substring
(
0
,
7
)
==
value
){
...
@@ -331,6 +339,7 @@ function flclick(obj,value,index,object_type){
...
@@ -331,6 +339,7 @@ function flclick(obj,value,index,object_type){
"</div>"
"</div>"
);
);
//点击月时候 显示对应的“<<值”
//点击月时候 显示对应的“<<值”
value
=
value
.
replace
(
"年"
,
"-"
)
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
1
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
1
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
1
).
html
(
value
);
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
1
).
html
(
value
);
...
@@ -338,6 +347,8 @@ function flclick(obj,value,index,object_type){
...
@@ -338,6 +347,8 @@ function flclick(obj,value,index,object_type){
if
(
value
.
length
==
10
){
if
(
value
.
length
==
10
){
//点击日时候 显示对应的“<<值”
//点击日时候 显示对应的“<<值”
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
2
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
eq
(
2
).
show
();
value
=
value
.
replace
(
"年"
,
"-"
)
value
=
value
.
replace
(
"月"
,
"-"
)
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
2
).
html
(
value
);
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
eq
(
2
).
html
(
value
);
}
}
//点击出生日期的分类时候移除固定高度
//点击出生日期的分类时候移除固定高度
...
@@ -396,7 +407,10 @@ function goBackMd(obj,index){
...
@@ -396,7 +407,10 @@ function goBackMd(obj,index){
}
}
$
(
".newLayoutDiv"
).
siblings
().
hide
();
$
(
".newLayoutDiv"
).
siblings
().
hide
();
$
(
".newNavInfo-"
+
index
).
show
();
$
(
".newNavInfo-"
+
index
).
show
();
$
(
"#birthday"
).
val
(
$
(
obj
).
find
(
".current-text"
).
text
());
var
val
=
$
(
obj
).
find
(
".current-text"
).
text
();
val
=
val
.
replace
(
/-/
,
'年'
);
val
=
val
.
replace
(
'-'
,
'月'
);
$
(
"#birthday"
).
val
(
val
);
doQuery
();
doQuery
();
}
}
function
openDialog
(
arr
){
function
openDialog
(
arr
){
...
...
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