Skip to content

Commit

Permalink
Merge pull request #4 from sunpu007/dev
Browse files Browse the repository at this point in the history
修改任务启动状态下无法进行编辑和删除
  • Loading branch information
sunpu007 authored Jun 29, 2022
2 parents 56625b4 + 3179888 commit 585084a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/task/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<el-dropdown-item v-if="row.runMode==1" divided :command="beforeHandleCommand('handleEditShell', row)">编辑Shell</el-dropdown-item>
<el-dropdown-item v-if="row.status==-1" divided :command="beforeHandleCommand('updateStatus', row.job_id, 0)">启动</el-dropdown-item>
<el-dropdown-item v-else :command="beforeHandleCommand('updateStatus', row.job_id, -1)">停止</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('handleEdit', row)">编辑</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('del', row)">删除</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('handleEdit', row)" :disabled="row.status==0">编辑</el-dropdown-item>
<el-dropdown-item :command="beforeHandleCommand('del', row)" :disabled="row.status==0">删除</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
Expand Down

0 comments on commit 585084a

Please sign in to comment.