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
64b71a88
Commit
64b71a88
authored
Sep 23, 2019
by
caojingji
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增复制功能
parent
9e8e6313
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
src/main/resources/static/css/style.css
+4
-2
src/main/resources/static/js/qypzjgxsNew.js
+22
-4
src/main/webapp/WEB-INF/jsp/qypz/qypzjgxsNew.jsp
+4
-0
No files found.
src/main/resources/static/css/style.css
View file @
64b71a88
...
...
@@ -368,4 +368,6 @@ a.left-list-ftitle:hover{
}
.work-mark-task
li
span
{
margin-left
:
10px
;
}
\ No newline at end of file
}
#copyResult
{
position
:
fixed
;
font-weight
:
600
;
left
:
50%
;
top
:
50%
;
margin-left
:
-47px
;
margin-top
:
-16px
;
background
:
#fff
;
border
:
1px
solid
#ccc
;
border-radius
:
5px
;
padding
:
5px
6px
;
z-index
:
10000
;}
#copyResult
.fa
{
margin
:
0
4px
;
color
:
#109700
;
font-size
:
18px
;
position
:
relative
;
top
:
2px
;}
\ No newline at end of file
src/main/resources/static/js/qypzjgxsNew.js
View file @
64b71a88
...
...
@@ -70,8 +70,8 @@ function doClearFl(){
});
}
var
table_title
=
[
{
title
:
'标识号'
,
field
:
'objectValue'
,
align
:
'center'
,
width
:
"2
0
%"
,
formatter
:
function
(
val
,
row
,
index
){
return
"<span style='display:inline-block;height:18px;line-height:17px;padding:0 3px;border: 1px solid #f35d13;color:#f35d13;border-radius:5px;font-size:10px;position:relative;top:-1px;'>"
+
row
.
objectTypeName
+
"</span>"
+
getBshYchy
(
row
)
;
{
title
:
'标识号'
,
field
:
'objectValue'
,
align
:
'center'
,
width
:
"2
2
%"
,
formatter
:
function
(
val
,
row
,
index
){
return
"<span style='display:inline-block;height:18px;line-height:17px;padding:0 3px;border: 1px solid #f35d13;color:#f35d13;border-radius:5px;font-size:10px;position:relative;top:-1px;'>"
+
row
.
objectTypeName
+
"</span>"
+
"<span class='getCopyVal'>"
+
getBshYchy
(
row
)
+
"</span>"
+
"<i class=
\"
fa fa-clone
\"
aria-hidden=
\"
true
\"
style='position: relative;top:2px;color: #1563f5 !important;' title='复制' onclick='copyContent(this)'></i>"
;
}
},
/* {title:"标识号类型",field:"objectTypeName",align:'center',width:'10%'},*/
...
...
@@ -87,7 +87,11 @@ var table_title =[
if
(
lx
!=
'--'
){
hm
=
"<span style='display:inline-block;height:18px;line-height:17px;padding:0 3px;border: 1px solid #f35d13;color:#f35d13;border-radius:5px;font-size:10px;position:relative;top:-1px;'>"
+
lx
+
"</span>"
;
}
return
hm
+
getSfzhYchy
(
row
);
if
(
lx
==
'--'
){
return
hm
+
"<span class='getCopyVal'>"
+
getSfzhYchy
(
row
)
+
"</span>"
;
}
else
{
return
hm
+
"<span class='getCopyVal'>"
+
getSfzhYchy
(
row
)
+
"</span>"
+
"<i class=
\"
fa fa-clone
\"
aria-hidden=
\"
true
\"
style='position: relative;top:2px;color: #1563f5 !important;' title='复制' onclick='copyContent(this)'></i>"
;
}
}
},
{
title
:
"姓名"
,
field
:
"name"
,
align
:
'center'
,
width
:
'15%'
,
formatter
:
function
(
val
,
row
,
index
){
...
...
@@ -959,7 +963,21 @@ function toggleClass(obj){
$
(
"#qypzjgxsNewTable"
).
datagrid
(
"resize"
);
},
1000
)
}
/*复制账号*/
function
copyContent
(
obj
){
$
(
"#copy"
).
val
(
$
(
obj
).
parent
().
find
(
".getCopyVal"
).
text
());
console
.
log
(
$
(
"#copy"
).
val
());
var
url
=
$
(
"#copy"
);
//根据实际情况更改,需要复制内容的载体
url
.
select
();
document
.
execCommand
(
"Copy"
);
copyDialog
();
}
function
copyDialog
(){
$
(
"#copyResult"
).
show
();
setTimeout
(
function
(){
$
(
"#copyResult"
).
hide
();
},
2000
);
}
src/main/webapp/WEB-INF/jsp/qypz/qypzjgxsNew.jsp
View file @
64b71a88
...
...
@@ -88,6 +88,7 @@
</style>
<body>
<div
class=
"w"
>
<input
type=
"text"
id =
"copy"
name=
"copy"
value=
""
style=
"opacity: 0;"
/>
<
%
--
<
header
class=
"heade-box"
>
<img
src=
"images/title_qypzjgzs.png"
class=
"header-title-img"
alt=
""
>
</header>
--%>
...
...
@@ -383,6 +384,9 @@
<div
id=
"w"
class=
"easyui-dialog dialog"
title=
"图表"
data-options=
"modal:true,closed:true,collapsible:false,minimizable:false,maximizable:false"
style=
"width:600px;height:420px;padding:10px;overflow-y:auto;display:none;"
>
<div
id=
"echarts-wrap"
></div>
</div>
<div
id=
"copyResult"
style=
"display: none;"
>
<i
class=
"fa fa-info-circle"
aria-hidden=
"true"
></i>
复制成功
</div>
<script
type=
"text/javascript"
src=
"/js/jquery-1.11.3.js"
></script>
<script
type=
"text/javascript"
src=
"/js/jquery.easyui.min.js"
></script>
<script
type=
"text/javascript"
src=
"/js/easyui-lang-zh_CN.js"
></script>
...
...
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