|
|
|
@ -101,8 +101,8 @@ |
|
|
|
<el-table-column v-if="checkPer(['admin','timing:edit','timing:del'])" label="操作" width="170px" align="center" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<!-- <el-button v-permission="['admin','timing:edit']" size="mini" style="margin-right: 3px;" type="text" @click="crud.toEdit(scope.row)">编辑</el-button> --> |
|
|
|
<el-button v-permission="['admin','timing:edit']" class="exc-btn" style="margin-left: -2px" type="text" size="mini" @click="execute(scope.row.id)">执行</el-button> |
|
|
|
<el-button v-permission="['admin','timing:edit']" :class="scope.row.isPause ? 'rec-btn' : 'pause-btn'" style="margin-left: 3px" type="text" size="mini" @click="updateStatus(scope.row.id,scope.row.isPause ? '恢复' : '暂停')"> |
|
|
|
<el-button class="exc-btn" style="margin-left: -2px" type="text" size="mini" @click="execute(scope.row.id)">执行</el-button> |
|
|
|
<el-button :class="scope.row.isPause ? 'rec-btn' : 'pause-btn'" style="margin-left: 3px" type="text" size="mini" @click="updateStatus(scope.row.id,scope.row.isPause ? '恢复' : '暂停')"> |
|
|
|
{{ scope.row.isPause ? '恢复' : '暂停' }} |
|
|
|
</el-button> |
|
|
|
<!-- <el-popover |
|
|
|
@ -148,9 +148,9 @@ export default { |
|
|
|
return { |
|
|
|
delLoading: false, |
|
|
|
permission: { |
|
|
|
add: ['admin', 'timing:add'], |
|
|
|
edit: ['admin', 'timing:edit'], |
|
|
|
del: ['admin', 'timing:del'] |
|
|
|
add: [], |
|
|
|
edit: [], |
|
|
|
del: [] |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
jobName: [ |
|
|
|
|