123
This commit is contained in:
parent
ca285e83ce
commit
62f61eeacd
|
@ -128,8 +128,7 @@ Link{
|
|||
}
|
||||
.detection{
|
||||
position: absolute;
|
||||
margin-left: 1300px;
|
||||
margin-top: -150px;
|
||||
z-index: 5;
|
||||
margin-left: 1280px;
|
||||
margin-top: -50px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
|
|
@ -178,7 +178,7 @@ function Operation2() {
|
|||
{/* 前端连接数据库⬇ */}
|
||||
{ !isTrue&&TrainData&&Src&&<div>
|
||||
<p style={{fontSize:'26px'}}>题目:{TrainData['operateID'][3][0]}</p>
|
||||
<span style={{fontSize:'18px',marginLeft:'50px'}}>点击此链接进入到ide编辑代码:</span>
|
||||
<span style={{fontSize:'18px',marginLeft:'50px'}}>点击此链接进入到ide编辑代码(sudo密码:123456):</span>
|
||||
<br />
|
||||
<Link to={Src[6]} style={{fontSize:'18px',marginLeft:'90px'}} target='_blank'>{Src[6]}</Link>
|
||||
<br />
|
||||
|
@ -192,6 +192,7 @@ function Operation2() {
|
|||
<br />
|
||||
<Link to={Src[8]} style={{fontSize:'18px',marginLeft:'90px'}} target='_blank'>{Src[8]}</Link>
|
||||
<br />
|
||||
|
||||
</div>
|
||||
|
||||
}
|
||||
|
@ -200,7 +201,7 @@ function Operation2() {
|
|||
{/* 达梦数据库连接 ⬇*/}
|
||||
{ isTrue&&TrainData&&
|
||||
<div>
|
||||
<p>{TrainData['operateID'][3][0]}</p>
|
||||
<p style={{fontSize:'26px'}}>题目:{TrainData['operateID'][3][0]}<span style={{fontSize:'20px'}}>(sudu密码:123456)</span></p>
|
||||
{Src&&<Test ip={Src[6]}/>}
|
||||
<div className='detection'><button onClick={detection}>检测</button></div>
|
||||
</div>}
|
||||
|
|
|
@ -4,7 +4,7 @@ import time
|
|||
|
||||
import paramiko
|
||||
|
||||
from k8s_func import *
|
||||
# from k8s_func import *
|
||||
from teacher_func import *
|
||||
from student_func import *
|
||||
|
||||
|
@ -452,6 +452,6 @@ def handle_disconnect():
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(app, host='0.0.0.0', port=8000 ,allow_unsafe_werkzeug=True, debug=False)
|
||||
socketio.run(app, host='0.0.0.0', port=5000 ,allow_unsafe_werkzeug=True, debug=False)
|
||||
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ from Crypto.Cipher import AES
|
|||
from Crypto.Random import get_random_bytes
|
||||
import base64
|
||||
import datetime
|
||||
import k8s_func
|
||||
# import k8s_func
|
||||
|
||||
db = dmPython.connect(user='SYSDBA', password='dameng!!', host="36.138.114.105", port="32522")
|
||||
|
||||
|
|
Loading…
Reference in New Issue