备份:财务改造前的版本 - 模板编辑功能和管理员入口

This commit is contained in:
a273825743
2026-05-16 02:40:22 +08:00
parent cc5d96e226
commit a4048776ba
3 changed files with 29 additions and 8 deletions
-3
View File
@@ -57,9 +57,6 @@ router.put('/:id', async (req, res) => {
if (existing.rows.length === 0) {
return res.status(404).json({ success: false, message: '模板不存在' });
}
if (existing.rows[0].is_system) {
return res.status(403).json({ success: false, message: '系统预设模板不可修改' });
}
const { name, description, phases } = req.body;
const updates = [];
const values = [];