|
|
|
@ -178,6 +178,16 @@
|
|
|
|
|
> |
|
|
|
|
详情 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="primary" |
|
|
|
|
@click="taskExec(scope.row)" |
|
|
|
|
v-if="scope.row.status == 1" |
|
|
|
|
v-hasPermi="['system:task-info:update']" |
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
立即执行 |
|
|
|
|
</el-button> |
|
|
|
|
<el-button |
|
|
|
|
link |
|
|
|
|
type="danger" |
|
|
|
@ -271,6 +281,22 @@ const getList = async () => {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 立即执行 |
|
|
|
|
const taskExec = async (data) => { |
|
|
|
|
|
|
|
|
|
loading.value = true |
|
|
|
|
|
|
|
|
|
try { |
|
|
|
|
await TaskInfoApi.taskExec(data) |
|
|
|
|
message.success(t('common.createSuccess')) |
|
|
|
|
getList() |
|
|
|
|
} finally { |
|
|
|
|
loading.value = false |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//选择任务中企业范围 |
|
|
|
|
const selectEnterprise = async (id: number) => {} |
|
|
|
|