Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
zxtb_to_ssfwpt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Bugzilla
Bugzilla
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
卢世豪
zxtb_to_ssfwpt
Commits
74a5a304
Commit
74a5a304
authored
Jan 29, 2021
by
刘明珠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
myAlert:样式调整
parent
1fcef14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
16 deletions
+19
-16
encapsulation.js
static/tools/js/encapsulation.js
+19
-16
No files found.
static/tools/js/encapsulation.js
View file @
74a5a304
...
@@ -45,7 +45,7 @@ function getIEVersion() {
...
@@ -45,7 +45,7 @@ function getIEVersion() {
//封装等待框
//封装等待框
(
function
(
$
)
{
(
function
(
$
)
{
var
renderHtml
=
function
()
{
var
renderHtml
=
function
()
{
var
_html
=
'<div id="loadingDiv" style="display: none; cursor:progress;"><div id="over" style=" position: absolute;top: 0;left: 0; width: 100%;height: 100%; background-color: #f5f5f5;opacity:0.5;z-index: 9999991;"></div><div id="layout" style="position: absolute;top: 40%; left: 40%;width: 20%; height: 20%; z-index: 9999999;text-align:center;"><img id="showloading" src="
/web/onlineReport
/static/tools/images/loading2.gif" /></div></div>'
;
var
_html
=
'<div id="loadingDiv" style="display: none; cursor:progress;"><div id="over" style=" position: absolute;top: 0;left: 0; width: 100%;height: 100%; background-color: #f5f5f5;opacity:0.5;z-index: 9999991;"></div><div id="layout" style="position: absolute;top: 40%; left: 40%;width: 20%; height: 20%; z-index: 9999999;text-align:center;"><img id="showloading" src="
../..
/static/tools/images/loading2.gif" /></div></div>'
;
$
(
"body"
).
append
(
_html
);
$
(
"body"
).
append
(
_html
);
}
}
renderHtml
();
renderHtml
();
...
@@ -98,7 +98,7 @@ function getIEVersion() {
...
@@ -98,7 +98,7 @@ function getIEVersion() {
var
_html
=
""
;
var
_html
=
""
;
_html
+=
'<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">'
+
title
+
'</span>'
_html
+=
'<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">'
+
title
+
'</span>'
if
(
type
==
"confirm"
)
{
if
(
type
==
"confirm"
)
{
_html
+=
'<img id="mb_img" src="
/web/onlineReport
/static/tools/images/close.png">'
;
_html
+=
'<img id="mb_img" src="
../..
/static/tools/images/close.png">'
;
_html
+=
'<div id="mb_msg">'
+
msg
+
'</div>'
;
_html
+=
'<div id="mb_msg">'
+
msg
+
'</div>'
;
}
}
if
(
type
==
"alert"
)
{
if
(
type
==
"alert"
)
{
...
@@ -222,7 +222,7 @@ function getIEVersion() {
...
@@ -222,7 +222,7 @@ function getIEVersion() {
float
:
'left'
,
float
:
'left'
,
width
:
'92%'
,
width
:
'92%'
,
display
:
'block'
,
display
:
'block'
,
fontSize
:
'1
4
px'
,
fontSize
:
'1
6
px'
,
color
:
'#444'
,
color
:
'#444'
,
padding
:
'10px 15px'
,
padding
:
'10px 15px'
,
backgroundColor
:
'#fff'
,
backgroundColor
:
'#fff'
,
...
@@ -249,12 +249,13 @@ function getIEVersion() {
...
@@ -249,12 +249,13 @@ function getIEVersion() {
$
(
"#mb_msg"
).
css
({
$
(
"#mb_msg"
).
css
({
clear
:
'both'
,
clear
:
'both'
,
padding
:
'
3
0px'
,
padding
:
'
2
0px'
,
lineHeight
:
'
4
0px'
,
lineHeight
:
'
3
0px'
,
textAlign
:
'left'
,
textAlign
:
'left'
,
fontSize
:
'16px'
,
fontSize
:
'16px'
,
color
:
'#4c4c4c'
,
color
:
'#4c4c4c'
,
marginBottom
:
'50px'
,
marginBottom
:
'50px'
,
textIndent
:
'2em'
});
});
$
(
"#mb_ico"
).
css
({
$
(
"#mb_ico"
).
css
({
...
@@ -363,11 +364,11 @@ function alertBox(type, msg, showTime, callBack) {
...
@@ -363,11 +364,11 @@ function alertBox(type, msg, showTime, callBack) {
var
srcUrl
;
var
srcUrl
;
var
divCss
=
"alert alert-"
+
type
+
" alert-dismissable"
;
var
divCss
=
"alert alert-"
+
type
+
" alert-dismissable"
;
if
(
type
==
"success"
)
{
if
(
type
==
"success"
)
{
srcUrl
=
'
/web/onlineReport
/static/tools/images/smile.png'
;
srcUrl
=
'
../..
/static/tools/images/smile.png'
;
}
else
if
(
type
==
"info"
)
{
}
else
if
(
type
==
"info"
)
{
srcUrl
=
'
/web/onlineReport
/static/tools/images/tan.png'
;
srcUrl
=
'
../..
/static/tools/images/tan.png'
;
}
else
{
}
else
{
srcUrl
=
'
/web/onlineReport
/static/tools/images/tan1.png'
;
srcUrl
=
'
../..
/static/tools/images/tan1.png'
;
}
}
if
(
showTime
==
null
)
showTime
=
3000
;
if
(
showTime
==
null
)
showTime
=
3000
;
var
divAlertBox
;
var
divAlertBox
;
...
@@ -433,7 +434,7 @@ function alertDanger(msg, showTime, callBack) {
...
@@ -433,7 +434,7 @@ function alertDanger(msg, showTime, callBack) {
}
}
function
alertBoxHide
()
{
function
alertBoxHide
()
{
// $("#divConfirm
Box").fadeOut(1000);
$
(
"#divAlert
Box"
).
fadeOut
(
1000
);
$
(
"#divAlertBoxCover"
).
remove
();
$
(
"#divAlertBoxCover"
).
remove
();
alertBoxArr
.
shift
();
alertBoxArr
.
shift
();
completedOk
=
false
;
completedOk
=
false
;
...
@@ -441,7 +442,9 @@ function alertBoxHide() {
...
@@ -441,7 +442,9 @@ function alertBoxHide() {
setTimeout
(
function
()
{
setTimeout
(
function
()
{
alertBox
(
alertBoxArr
[
0
].
type
,
alertBoxArr
[
0
].
msg
,
alertBoxArr
[
0
].
showTime
,
alertBoxArr
[
0
].
callBack
);
alertBox
(
alertBoxArr
[
0
].
type
,
alertBoxArr
[
0
].
msg
,
alertBoxArr
[
0
].
showTime
,
alertBoxArr
[
0
].
callBack
);
},
500
);
},
500
);
};
}
else
{
// window.close();
}
}
}
function
box
(
jqObj
)
{
function
box
(
jqObj
)
{
...
@@ -494,17 +497,17 @@ function box(jqObj) {
...
@@ -494,17 +497,17 @@ function box(jqObj) {
content
+=
"<div class='container-pageBtn-control'>"
;
content
+=
"<div class='container-pageBtn-control'>"
;
//content += "<a class='prePageOne'><<</a>";
//content += "<a class='prePageOne'><<</a>";
//content += "<a class='prePage'><</a>";
//content += "<a class='prePage'><</a>";
content
+=
"<img class='prePageFF' src='
/web/onlineReport
/static/tools/images/pagination_first.gif'/>"
;
content
+=
"<img class='prePageFF' src='
../..
/static/tools/images/pagination_first.gif'/>"
;
content
+=
"<img class='prePageF' src='
/web/onlineReport
/static/tools/images/pagination_prev.gif'>"
;
content
+=
"<img class='prePageF' src='
../..
/static/tools/images/pagination_prev.gif'>"
;
content
+=
"<input class='select-input-page margin-top' value='"
+
current
+
"'></a>"
;
content
+=
"<input class='select-input-page margin-top' value='"
+
current
+
"'></a>"
;
//content += "<a class='nextPage'>></a>";
//content += "<a class='nextPage'>></a>";
//content += "<a class='prePageLast'>>></a>";
//content += "<a class='prePageLast'>>></a>";
content
+=
"<img class='prePageL' src='
/web/onlineReport
/static/tools/images/pagination_next.gif'/>"
;
content
+=
"<img class='prePageL' src='
../..
/static/tools/images/pagination_next.gif'/>"
;
content
+=
"<img class='prePageLL' src='
/web/onlineReport
/static/tools/images/pagination_last.gif'>"
;
content
+=
"<img class='prePageLL' src='
../..
/static/tools/images/pagination_last.gif'>"
;
content
+=
"</div>"
;
content
+=
"</div>"
;
//content += "<img class='page-refresh-btn' src='
/web/onlineReport
/static/tools/images/pagination_load.png'/>";
//content += "<img class='page-refresh-btn' src='
../..
/static/tools/images/pagination_load.png'/>";
//content += "<span class='totalSize'> 共<span>" + totalNum + "</span>条记录 </span>";
//content += "<span class='totalSize'> 共<span>" + totalNum + "</span>条记录 </span>";
me
.
element
.
html
(
content
);
me
.
element
.
html
(
content
);
},
},
...
@@ -1210,7 +1213,7 @@ var JSTOOL = function() {
...
@@ -1210,7 +1213,7 @@ var JSTOOL = function() {
function
init
()
{
function
init
()
{
var
$loading
=
$
(
"<div></div>"
);
var
$loading
=
$
(
"<div></div>"
);
$loading
.
addClass
(
"table-body-loading"
);
$loading
.
addClass
(
"table-body-loading"
);
$loading
.
html
(
"<div> <img src='
/web/onlineReport
/static/tools/images/loading2.gif' alt=''/><div>"
);
$loading
.
html
(
"<div> <img src='
../..
/static/tools/images/loading2.gif' alt=''/><div>"
);
var
html
=
"<div class='table-responsive' style='width:"
+
tableObj
.
containerWidth
+
"'>"
+
var
html
=
"<div class='table-responsive' style='width:"
+
tableObj
.
containerWidth
+
"'>"
+
"<div class='table-header-container' style='height:44px;'>"
"<div class='table-header-container' style='height:44px;'>"
...
...
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