后台交互优化:移除系统/插件定时页按表重载按钮
- 系统定时任务页面移除按表重载按钮,保留刷新按钮\n- 插件定时任务页面移除按表重载按钮,保留刷新按钮\n- 清理前端未使用的 reload 方法,避免误导用户\n- 说明:保存配置后已自动重载到运行时,手动重载接口保留用于运维兜底
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
<p>统一管理插件的定时动作配置(如秀人群发),支持按群范围执行、立即触发与执行日志追踪。</p>
|
<p>统一管理插件的定时动作配置(如秀人群发),支持按群范围执行、立即触发与执行日志追踪。</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-hero-actions">
|
<div class="page-hero-actions">
|
||||||
<el-button type="primary" plain @click="reloadSchedules">按表重载</el-button>
|
|
||||||
<el-button type="success" @click="loadSchedules">刷新</el-button>
|
<el-button type="success" @click="loadSchedules">刷新</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -305,15 +304,6 @@ new Vue({
|
|||||||
this.logs = resp.data.data || []
|
this.logs = resp.data.data || []
|
||||||
this.logsDialogVisible = true
|
this.logsDialogVisible = true
|
||||||
}
|
}
|
||||||
},
|
|
||||||
async reloadSchedules() {
|
|
||||||
const resp = await axios.post('/plugin_schedules/api/reload')
|
|
||||||
if (resp.data.success) {
|
|
||||||
this.$message.success(resp.data.message || '重载成功')
|
|
||||||
await this.loadSchedules()
|
|
||||||
} else {
|
|
||||||
this.$message.error(resp.data.message || '重载失败')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
<p>任务配置存储在数据库表 `t_system_jobs`,支持在线启停、调度调整、手动触发与执行日志查看。</p>
|
<p>任务配置存储在数据库表 `t_system_jobs`,支持在线启停、调度调整、手动触发与执行日志查看。</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="page-hero-actions">
|
<div class="page-hero-actions">
|
||||||
<el-button type="primary" plain @click="reloadFromDB">按表重载</el-button>
|
|
||||||
<el-button type="success" @click="loadJobs">刷新</el-button>
|
<el-button type="success" @click="loadJobs">刷新</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -255,19 +254,6 @@ new Vue({
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.$message.error('加载日志失败');
|
this.$message.error('加载日志失败');
|
||||||
}
|
}
|
||||||
},
|
|
||||||
async reloadFromDB() {
|
|
||||||
try {
|
|
||||||
const resp = await axios.post('/system_jobs/api/reload');
|
|
||||||
if (resp.data.success) {
|
|
||||||
this.$message.success(resp.data.message || '重载成功');
|
|
||||||
await this.loadJobs();
|
|
||||||
} else {
|
|
||||||
this.$message.error(resp.data.message || '重载失败');
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
this.$message.error('重载失败');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user