新增 - 基本计划任务模板

This commit is contained in:
suwings 2018-06-02 14:16:18 +08:00
parent 8125552d5d
commit 732e0bf916
3 changed files with 94 additions and 16 deletions

View File

@ -14,6 +14,13 @@
<div class="PanelItem">
<span class="glyphicon glyphicon-equalizer" aria-hidden="true"> </span> 内存 使用率: {{ (100 - sysMonery).toFixed(1) }} %
</div>
<div class="PanelItem" v-if="run">
<span class="glyphicon glyphicon-equalizer" aria-hidden="true"> </span> 正在运行..
</div>
<div class="PanelItem" v-else>
<span class="glyphicon glyphicon-equalizer" aria-hidden="true"> </span> 未运行
</div>
</div>
</div>
<div class="Panel PanelGreen">
@ -105,24 +112,14 @@
<div class="LogK">文件在线管理</div>
</div>
</div>
<!-- 一个组件 -->
<div class="col-md-3 col-sm-6" v-if="run">
<div class=" PanelItemBlock ">
<div class="LogV ">
<span class="glyphicon glyphicon-ok" aria-hidden="true "> </span>
<div class="col-md-3 col-sm-6" v-on:click="toSchedule()">
<div class="PanelItemBlock">
<div class="LogV">
<span class="glyphicon glyphicon-th-list" aria-hidden="true"> </span>
</div>
<div class="LogK" style="color:#2dd60b">运行中</div>
<div class="LogK">计划任务</div>
</div>
</div>
<div class="col-md-3 col-sm-6" v-if="!run">
<div class=" PanelItemBlock ">
<div class="LogV ">
<span class="glyphicon glyphicon-remove" aria-hidden="true "> </span>
</div>
<div class="LogK">非运行</div>
</div>
</div>
<!-- 一个组件 -->
</div>
</div>
</div>
@ -187,6 +184,9 @@
},
toTerminal: function () {
RES.redirectPage('./template/component/terminal.html', 'server/console', serverName);
},
toSchedule: function () {
RES.redirectPage('./template/component/schedule.html', null, serverName);
}
},
data: {

View File

@ -0,0 +1,78 @@
<div id='ServerProperties' class="OneContainer">
<div class="row">
<div class="col-md-12 ">
<div class="Panel PanelBlue">
<div class="PanelTitle">服务器计划任务</div>
<div class="PanelBody">
<div class="row">
<div class="col-sm-12 PanelItemF">
<p>您可以进行如下操作:</p>
<div class="PanelItem" v-on:click="toBackConsole()">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 返回到控制台
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<p>服务器的计划任务集合</p>
<p>
凡是 __xxx__ 格式的命令均是内部命令,不影响使用,请勿乱使用,以防错误
</p>
<table class='PropertiesList' width="100%">
<tr>
<th>任务序号</th>
<th>任务性质</th>
<th>执行命令</th>
</tr>
<tr>
<th>XXXXXX_15451654561</th>
<th>计次任务</th>
<th>
stop
</th>
</tr>
<tr>
<th>XXXXXX_11548645641</th>
<th>重复任务</th>
<th>
__RESTART__
</th>
</tr>
</table>
<br/>
<div class="row">
<div class="col-sm-12 PanelItemF">
<div class="PanelItem" v-on:click="toBackConsole()">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> 返回到控制台
</div>
<hr>
<p>最后,请检查是否符合格式,条件,仔细检查后即可确认修改,或者直接返回到其他页面直接舍弃修改。</p>
<p>如果显示不全或不是最新,您可以单击 [重新刷新读取] 来进行获取更新,设置完毕请重启服务器。</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// MI.rListener('onload', function () {
// // MCSERVER.autoColmDo();
// VIEW_MODEL.newVue('ServerProperties', {
// el: '#ServerProperties',
// methods: {
// toBackConsole: function () {
// RES.redirectPage('./template/component/console.html', 'server/console', this.serverName);
// }
// }
// });
// });
// MI.rListener('onend', function () {
// VIEW_MODEL['ServerProperties'] = null;
// });
</script>

View File

@ -4,7 +4,7 @@ const {
const permssion = require('../../helper/Permission');
const schedulejob = require('../../helper/Schedule');
const UUID = require('uuid');
const tools = require('../core/tools');
const tools = require('../../core/tools');
const serverModel = require('../../model/ServerModel');