MicroCommunityWeb/public/pages/dev/jobManage/jobManage.html
2021-04-23 10:14:20 +08:00

125 lines
5.9 KiB
HTML
Executable File

<div>
<div class="row">
<div class="col-lg-12">
<div class="ibox ">
<div class="ibox-title">
<h5>查询条件</h5>
<div class="ibox-tools" style="top:10px;">
</div>
</div>
<div class="ibox-content">
<div class="row">
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入任务ID" v-model="jobManageInfo.conditions.taskId"
class=" form-control">
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<input type="text" placeholder="请输入任务名称" v-model="jobManageInfo.conditions.taskName"
class=" form-control">
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<input type="text" placeholder="请选择定时器类型" v-model="jobManageInfo.conditions.taskType"
class=" form-control">
</div>
</div>
<div class="col-sm-1">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_queryJobMethod()">
<i class="fa fa-search"></i> 查询
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="ibox">
<div class="ibox-title">
<h5>映射信息</h5>
<div class="ibox-tools" style="top:10px;">
<button type="button" class="btn btn-primary btn-sm" v-on:click="_openAddJobModal()">
<i class="fa fa-plus"></i>
添加
</button>
</div>
</div>
<div class="ibox-content">
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
<thead>
<tr>
<th class="text-center">任务ID</th>
<th class="text-center">任务名称</th>
<th class="text-center">运行时间</th>
<th class="text-center">模板名称</th>
<th class="text-center">创建时间</th>
<th class="text-center">启停状态</th>
<th class="text-right">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="job in jobManageInfo.jobs">
<td class="text-center">{{job.taskId}}</td>
<td class="text-center">{{job.taskName}}</td>
<td class="text-center">{{job.taskCron}}</td>
<td class="text-center">{{job.templateName}}</td>
<td class="text-center">{{job.createTime}}</td>
<td class="text-center">
<span v-if="job.state == '002'" class="badge badge-success">运行中</span>
<span v-else class="badge badge-dark">停止</span>
</td>
<td class="text-right">
<div class="btn-group" v-if="job.state == '001'">
<button class="btn-white btn btn-xs" v-on:click="_openStartJob(job)">
启动
</button>
</div>
<div class="btn-group" v-if="job.state == '002'">
<button class="btn-white btn btn-xs" v-on:click="_openStopJob(job)">
停止
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openEditJobModel(job)">
修改
</button>
</div>
<div class="btn-group">
<button class="btn-white btn btn-xs" v-on:click="_openDeleteJobModel(job)">
删除
</button>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="7">
<ul class="pagination float-right"></ul>
</td>
</tr>
</tfoot>
</table>
<!-- 分页 -->
<vc:create path="frame/pagination"></vc:create>
</div>
</div>
</div>
</div>
<vc:create path="dev/addJob"></vc:create>
<vc:create path="dev/editJob"></vc:create>
<vc:create path="dev/deleteJob"></vc:create>
</div>