新增 - 前端模板字段

This commit is contained in:
suwings 2018-08-19 10:28:11 +08:00
parent cd6a4c66d9
commit 20fe0bad3d
3 changed files with 8 additions and 5 deletions

View File

@ -66,14 +66,15 @@
<div class="PanelItemInfo">
<h4>
<span v-text="item.serverName"></span> |
<span v-text="item.jarName"></span>
<span v-text="item.jarName || '未设置'"></span>
</h4> 状态:
<span v-if="item.run" class="color-green"> 正在运行 </span>
<span v-else="item.run" class="color-red"> 关闭 </span>
<!-- <br>创建时间 <span v-text="item.createDate"></span>-->
<br>最后启动:
<span v-text="item.lastDate"></span>
<br>到期:
<span v-text="item.timeLimitDate"></span>
</div>
</div>
<div class="col-md-5 NextCol">

View File

@ -41,8 +41,9 @@
<span v-if="item.data.run" class="color-green"> 正在运行 </span>
<span v-else="item.data.run" class="color-red"> 关闭 </span> | 创建时间
<span v-text="item.data.createDate"> </span> | 最后启动:
<span v-text="item.data.lastDate"> </span> | 端:
<span v-text="item.data.jarName"> </span>
<span v-text="item.data.lastDate"> </span> | 时间期限:
<span v-text="item.data.timeLimitDate || '- - 永久 - -'"> </span> | 端:
<span v-text="item.data.jarName || '未指定'"> </span>
</div>
</div>
<div class="col-md-5 NextCol">

View File

@ -36,9 +36,10 @@ WebSocketObserver().listener('genuser/home', (data) => {
createDate: userHaveServer.dataModel.createDate,
run: userHaveServer.isRun(),
jarName: userHaveServer.dataModel.jarName,
timeLimitDate: userHaveServer.dataModel.timeLimitDate
});
if (userHaveServer.isRun()) {
OnlineServerList.push(userHaveServer.dataModel.nam);
OnlineServerList.push(userHaveServer.dataModel.name);
}
}