修改 - 终端页面直接切换

This commit is contained in:
suwings 2018-09-15 11:36:06 +08:00
parent f36faca166
commit bb42a8c86c
2 changed files with 18 additions and 6 deletions

View File

@ -2,17 +2,21 @@
<div class="row" style="position: absolute;right: 16px;">
<div class="col-sm-12 PanelItemF">
<div class="PanelItem PanelItemBlack" v-on:click="RES.redirectPage('./template/component/console.html', 'server/console', MCSERVER.listenServername);">
<span class="glyphicon glyphicon-backward" aria-hidden="true"></span> 返回
<span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> 控制台
</div>
<div class="PanelItem PanelItemBlack" v-on:click="RES.redirectPage('./template/server.html', 'server/view', '');">
<span class="glyphicon glyphicon-list" aria-hidden="true"></span> 实例列表
</div>
<div class="PanelItem PanelItemBlack" v-on:click="loadHistory()">
<span class="glyphicon glyphicon-facetime-video" aria-hidden="true"></span> 历史
</div>
<div class="PanelItem PanelItemBlack" v-on:click="goBttom()">
<span class="glyphicon glyphicon-download" aria-hidden="true"></span> 底部
<div class="PanelItem PanelItemBlack PhoneDisplayNone" v-on:click="goBttom()">
<span class="glyphicon glyphicon-download PhoneDisplayNone" aria-hidden="true"></span> 底部
</div>
<div class="PanelItem PanelItemBlack " v-on:click="clearConsole()">
<span class="glyphicon glyphicon-th-large " aria-hidden="true"></span> 清屏
</div>
<div class="PanelItem PanelItemBlack" v-on:click="toCommand('stop');toCommand('end');toCommand('exit');">
<span class="glyphicon glyphicon-pause" aria-hidden="true"></span> 关闭
</div>

View File

@ -48,11 +48,14 @@
</div>
<div class="col-md-5 NextCol">
<div class="PanelItemMuem">
<button class="btn btn-info" v-on:click="onRedirect('./template/component/server.html','server/get',item.serverName)">
基本参数
<button class="btn btn-primary" v-on:click="toTerminal(item.serverName);">
终端
</button>
<button class="btn btn-success" v-on:click="onRedirect('./template/component/console.html', 'server/console', item.serverName );">
控制台
控制
</button>
<button class="btn btn-info" v-on:click="onRedirect('./template/component/server.html','server/get',item.serverName);">
参数
</button>
<span style="margin-left: 8px;"> | </span>
<button class="btn btn-danger" v-on:click="toDeleteServer(item.serverName)">删除</button>
@ -94,6 +97,11 @@
if (!result) return;
WS.sendMsg('server/delete', serverName);
RES.redirectPage('./template/server.html', 'server/view');
},
toTerminal: function (serverName) {
//设置全局监听变量
MCSERVER.listenServername = serverName;
RES.redirectPage('./template/component/terminal.html', null, '');
}
}
});