This commit is contained in:
2025-10-31 22:01:08 +08:00
parent 840fb98988
commit b4662a2b10
2 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ export default {
// 处理执行方式变更
const handleExecutionTypeChange = (value) => {
// 如果切换为手动执行清空执行次数和cron表达式
if (value === 'manual') {
if (value === '手动') {
formData.execute_num = 0;
formData.cron_expression = '';
} else {
@@ -178,7 +178,7 @@ export default {
}
// 如果是手动执行清除执行次数和cron表达式
if (formData.execution_type === 'manual') {
if (formData.execution_type === '手动') {
submitData.execute_num = 0;
submitData.cron_expression = '';
}

View File

@@ -55,7 +55,7 @@
<el-table-column prop="description" label="计划描述" min-width="150"/>
<el-table-column prop="execution_type" label="执行类型" min-width="150" sortable="custom">
<template #default="scope">
<el-tag v-if="scope.row.execution_type === 'manual'">手动</el-tag>
<el-tag v-if="scope.row.execution_type === '手动'">手动</el-tag>
<el-tag v-else-if="scope.row.execute_num === 0" type="success">自动(无限执行)</el-tag>
<el-tag v-else type="warning">自动({{ scope.row.execute_num }})</el-tag>
</template>