diff --git a/src/components/PlanContentEditor.vue b/src/components/PlanContentEditor.vue
index 2b9e5d43..46692584 100644
--- a/src/components/PlanContentEditor.vue
+++ b/src/components/PlanContentEditor.vue
@@ -18,7 +18,7 @@
@@ -112,6 +112,10 @@ export default {
this.loading = false;
}
},
+ handleEdit() {
+ // Placeholder for future implementation
+ this.$message.info('编辑功能正在开发中');
+ },
editTask(task) {
console.log('编辑任务:', task);
this.$message.info('编辑任务功能正在开发中');
diff --git a/src/components/PlanList.vue b/src/components/PlanList.vue
index 8e24d956..fe721fc2 100644
--- a/src/components/PlanList.vue
+++ b/src/components/PlanList.vue
@@ -62,10 +62,10 @@
{{ formatNextExecutionTime(scope.row.cron_expression) }}
-
+
- 编辑计划
- 编辑任务
+ 编辑
+ 详情
停止
@@ -88,20 +88,20 @@
@cancel="handlePlanCancel"
/>
-
+
@@ -128,7 +128,7 @@ export default {
plans: [],
originalPlans: [], // Store the original unsorted list
dialogVisible: false,
- taskEditorVisible: false, // 控制任务编辑器对话框
+ detailsVisible: false, // 控制详情对话框
isEdit: false,
loading: false,
error: null,
@@ -140,7 +140,7 @@ export default {
execute_num: 0,
cron_expression: ''
},
- selectedPlanIdForTasks: null, // 当前要编辑任务的计划ID
+ selectedPlanIdForDetails: null, // 当前要查看详情的计划ID
startingPlanId: null,
stoppingPlanId: null
};
@@ -237,9 +237,9 @@ export default {
this.dialogVisible = true;
},
- editTask(plan) {
- this.selectedPlanIdForTasks = plan.id;
- this.taskEditorVisible = true;
+ showDetails(plan) {
+ this.selectedPlanIdForDetails = plan.id;
+ this.detailsVisible = true;
},
editPlan(plan) {