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
24c61abc
Commit
24c61abc
authored
Jun 14, 2019
by
chentian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复代码
parent
8d6d4d08
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
9 deletions
+78
-9
src/main/resources/static/js/qypzjgxsNew.js
+78
-9
No files found.
src/main/resources/static/js/qypzjgxsNew.js
View file @
24c61abc
...
...
@@ -150,9 +150,10 @@ function doQueryFL(){
"<div class='newNavTop' id='newNavTop' style='top:24px;'>"
+
flStr
+
"分类</div>"
+
"<div class='newNavbody'>"
+
"<div class='newLayoutDiv pull-clear'>"
+
"<a onclick='' href='javascript:void(0)' class='newNavA pull-left'>"
+
flStr
+
"导航</a>"
+
"<a onclick=
\"
goBack()
\"
href='javascript:void(0)' class='newNavA pull-left'>"
+
flStr
+
"导航</a>"
+
"<span class='current-icon'><<<span class='current-text'></span></span></a>"
+
"<a onclick=
\"
goSlide(this)
\"
href='javascript:void(0)' class='newNavA newNavBtn newMore newNavTools pull-right'>更多</a>"
+
"<a href='javascript:void(0)' onclick='' class='newNavA newNavBtn newMultival_1 newNavTools pull-right' title='图表筛选'> 图表</a>"
+
/* "<a href='javascript:void(0)' onclick='' class='newNavA newNavBtn newMultival_1 newNavTools pull-right' title='图表筛选'> 图表</a>" +*/
"<div class='fillColorCheckBox pull-right'>"
+
"</div>"
+
"</div>"
+
...
...
@@ -167,7 +168,7 @@ function doQueryFL(){
// alert(item.COUNT+":"+item.OBJECT_TYPE+":"+item.OBJECT_NAME);
var
str
=
item
.
NAMES
+
"("
+
item
.
COUNTS
+
")"
;
$
(
"#flnr"
+
index2
).
append
(
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(
'
"
+
index2
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(
this,'"
+
item
.
NAMES
+
"',
"
+
index2
+
"','"
+
item
.
VALS
+
"')>"
+
str
+
"</a>"
);
});
$
(
"#fldh"
).
append
(
...
...
@@ -190,13 +191,81 @@ function doQueryFL(){
}
}
function
flclick
(
index
,
object_type
){
if
(
index
==
"BZHLX"
){
$
(
"#objectType"
).
val
(
object_type
);
}
else
{
$
(
"#objectType"
).
val
(
""
);
function
flclick
(
obj
,
value
,
index
,
object_type
){
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-icon"
).
show
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".current-text"
).
html
(
value
);
$
(
".newLayoutDiv"
).
siblings
().
hide
();
if
(
index
==
"date"
){
if
(
$
(
obj
).
parents
(
".newNavInfo"
).
length
==
1
||
$
(
obj
).
parents
(
".newNavMoreInfo"
).
length
==
1
)
{
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo"
).
hide
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-m"
).
show
();
}
doQuery
();
if
(
$
(
obj
).
parents
(
".newNavInfo-m"
).
length
==
1
){
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-m"
).
hide
();
$
(
obj
).
parents
(
".newNavbody"
).
find
(
".newNavInfo-d"
).
show
();
}
}
if
(
index
==
"BZHLX"
){
$
(
"#objectType"
).
val
(
object_type
);
}
else
{
$
(
"#objectType"
).
val
(
""
);
}
doQuery
();
}
function
goBack
(){
$
(
".current-icon"
).
hide
();
$
(
".current-text"
).
html
(
""
);
$
(
".newNavInfo,.newNavMoreInfo"
).
show
();
}
function
openDialog
(
arr
){
console
.
log
(
arr
)
$
(
'#w'
).
dialog
({
buttons
:[{
//确定生成表头配置信息,并重新加载表格数据
text
:
'确定'
,
handler
:
function
(){
$
(
'#w'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
},{
text
:
'取消'
,
handler
:
function
(){
$
(
'#w'
).
dialog
(
'close'
);
$
(
document
).
unbind
(
"scroll"
);
}
}],
onClose
:
function
()
{
$
(
document
).
unbind
(
"scroll"
);
}
});
$
(
'#w'
).
show
().
dialog
(
'open'
);
$
(
"#w"
).
window
(
'center'
);
var
tops
=
$
(
document
).
scrollTop
();
//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$
(
document
).
bind
(
"scroll"
,
function
(){
$
(
document
).
scrollTop
(
tops
);})
myEcharts
();
}
function
myEcharts
(){
var
dom
=
document
.
getElementById
(
"echarts-wrap"
);
var
myChart
=
echarts
.
init
(
dom
);
var
app
=
{};
option
=
null
;
option
=
{
xAxis
:
{
type
:
'category'
,
data
:
[
'Mon'
,
'Tue'
,
'Wed'
,
'Thu'
,
'Fri'
,
'Sat'
,
'Sun'
]
},
yAxis
:
{
type
:
'value'
},
series
:
[{
data
:
[
120
,
200
,
150
,
80
,
70
,
110
,
130
],
type
:
'bar'
}]
};
;
if
(
option
&&
typeof
option
===
"object"
)
{
myChart
.
setOption
(
option
,
true
);
}
}
/**
...
...
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