任务列表

This commit is contained in:
yyy 2025-05-17 11:03:22 +08:00
parent 6acd42544a
commit b123bb2131

View File

@ -174,19 +174,17 @@
<el-table-column align="center" label="操作" width="340">
<template #default="scope">
<el-button
v-if="scope.row.taskStatus === 0 || scope.row.taskStatus === 1"
:disabled="scope.row.taskStatus !== 0 && scope.row.taskStatus !== 1"
type="warning"
@click="cancelTask(props.row, scope.row)"
>取消任务</el-button
>
<el-popover
placement="right"
:width="300"
trigger="click"
v-if="scope.row.taskStatus === 0 || scope.row.taskStatus === 1"
>
<el-popover placement="right" :width="300" trigger="click">
<template #reference>
<el-button type="primary" @click="modifyPriority(props.row, scope.row)"
<el-button
:disabled="scope.row.taskStatus !== 0 && scope.row.taskStatus !== 1"
type="primary"
@click="modifyPriority(props.row, scope.row)"
>修改优先级</el-button
>
</template>
@ -203,7 +201,7 @@
<el-button
type="success"
@click="finishTask(props.row, scope.row)"
v-if="scope.row.taskStatus === 0 || scope.row.taskStatus === 1"
:disabled="scope.row.taskStatus !== 0 && scope.row.taskStatus !== 1"
>人工完成</el-button
>
</template>