Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuhui
8 years ago
Commit
0186b7ccfb5fe76793e28708b777db2959bd0d3b
1 parent
c2a354b7
范文更改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
monitor-ui-web/src/main/webapp/jsp/switch/new_center_switch.jsp
monitor-ui-web/src/main/webapp/jsp/switch/new_center_switch.jsp
View file @
0186b7c
...
...
@@ -95,25 +95,25 @@
<div
class=
"panel-body"
>
<button
class=
"btn btn-large"
id=
"switch_mysql-btn"
style=
"background-color: green"
>
mysql
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_redis-btn"
>
redis(
先
)
</button>
<button
class=
"btn btn-large"
id=
"switch_redis-btn"
>
redis(
目标DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_internel_dns-btn"
>
内部DNS(
先
)
</button>
<button
class=
"btn btn-large"
id=
"switch_internel_dns-btn"
>
内部DNS(
目标DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_cobar-btn"
>
cobar(
先
)
</button>
<button
class=
"btn btn-large"
id=
"switch_cobar-btn"
>
cobar(
目标DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_lua-btn"
>
lua
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_dnspod-btn"
>
dnspod
</button>
===》
<button
class=
"btn btn-large"
id=
"java-btn"
>
java重启(
先
)
</button>
<button
class=
"btn btn-large"
id=
"java-btn"
>
java重启(
目标DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_redis_next-btn"
>
redis(
后
)
</button>
<button
class=
"btn btn-large"
id=
"switch_redis_next-btn"
>
redis(
源DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_internel_dns_next-btn"
>
内部DNS(
后
)
</button>
<button
class=
"btn btn-large"
id=
"switch_internel_dns_next-btn"
>
内部DNS(
源DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"switch_cobar_next-btn"
>
cobar(
后
)
</button>
<button
class=
"btn btn-large"
id=
"switch_cobar_next-btn"
>
cobar(
源DC
)
</button>
===》
<button
class=
"btn btn-large"
id=
"java_next-btn"
>
java重启(
后
)
</button>
<button
class=
"btn btn-large"
id=
"java_next-btn"
>
java重启(
源DC
)
</button>
</div>
</div>
<div
class=
"panel"
>
...
...
@@ -223,7 +223,7 @@
$
(
"#java-btn"
).
removeClass
(
"btn-success"
);
$
(
"#java_next-btn"
).
removeClass
(
"btn-success"
);
switchWait
=
toWait
(
"正在切换(
先
),请耐心等候..."
);
switchWait
=
toWait
(
"正在切换(
目标DC
),请耐心等候..."
);
doExe
(
array
,
0
,
toCloud
);
}
else
{
alert
(
"短信验证码错误或者失效"
);
...
...
@@ -265,7 +265,7 @@
}
},
error
:
function
()
{
var
div
=
"<div>切换(
先
)请求异常</div>"
;
var
div
=
"<div>切换(
目标DC
)请求异常</div>"
;
$
(
"#detail-div"
).
append
(
div
);
switchWait
.
modal
(
'hide'
);
...
...
@@ -274,7 +274,7 @@
}
function
javaRestart
(
toCloud
){
var
wait
=
toWait
(
"正在重启java(
先
),请耐心等候..."
);
var
wait
=
toWait
(
"正在重启java(
目标DC
),请耐心等候..."
);
var
commond
;
if
(
toCloud
=
"toAws"
){
commond
=
"aws"
;
...
...
@@ -296,17 +296,17 @@
$
(
"#java-btn"
).
addClass
(
"btn-success"
);
var
div
=
"<div class=\"alert alert-info alert-block\">"
;
div
=
div
+
"<h4 class=\"alert-heading\">java重启(
先
):</h4>"
;
div
=
div
+
"<h4 class=\"alert-heading\">java重启(
目标DC
):</h4>"
;
div
=
div
+
"成功</div>"
;
$
(
"#detail-div"
).
append
(
div
);
wait
.
modal
(
'hide'
);
switchWait
=
toWait
(
"正在切换(
后
),请耐心等候..."
);
switchWait
=
toWait
(
"正在切换(
源DC
),请耐心等候..."
);
doExeNext
(
array_next
,
0
,
toCloud
);
},
error
:
function
()
{
var
div
=
"<div>java重启(
先
)请求异常</div>"
;
var
div
=
"<div>java重启(
目标DC
)请求异常</div>"
;
$
(
"#detail-div"
).
append
(
div
);
wait
.
modal
(
'hide'
);
...
...
@@ -343,7 +343,7 @@
}
},
error
:
function
()
{
var
div
=
"<div>切换(
后
)请求异常</div>"
;
var
div
=
"<div>切换(
源DC
)请求异常</div>"
;
$
(
"#detail-div"
).
append
(
div
);
switchWait
.
modal
(
'hide'
);
...
...
@@ -352,7 +352,7 @@
}
function
javaRestartNext
(
toCloud
){
var
wait
=
toWait
(
"正在重启java(
后
),请耐心等候..."
);
var
wait
=
toWait
(
"正在重启java(
源DC
),请耐心等候..."
);
var
commond
;
if
(
toCloud
=
"toAws"
){
commond
=
"qcloud"
;
...
...
@@ -374,14 +374,14 @@
$
(
"#java_next-btn"
).
addClass
(
"btn-success"
);
var
div
=
"<div class=\"alert alert-info alert-block\">"
;
div
=
div
+
"<h4 class=\"alert-heading\">java重启(
后
):</h4>"
;
div
=
div
+
"<h4 class=\"alert-heading\">java重启(
源DC
):</h4>"
;
div
=
div
+
"成功</div>"
;
$
(
"#detail-div"
).
append
(
div
);
wait
.
modal
(
'hide'
);
},
error
:
function
()
{
var
div
=
"<div>java重启(
先
)请求异常</div>"
;
var
div
=
"<div>java重启(
源DC
)请求异常</div>"
;
$
(
"#detail-div"
).
append
(
div
);
wait
.
modal
(
'hide'
);
...
...
Please
register
or
login
to post a comment