feat(okr): Phase2 - 行业扩展包12个+OKR模板库页面

- 插入12个行业包模板:贸易经销(7)+IT服务(5)
- 后端: name搜索+apply端点
- 前端: OKRTemplates.vue页面(搜索/筛选/三分区/应用弹窗)
- 路由+菜单+权限配置
This commit is contained in:
Hermes CI Fix
2026-07-21 17:30:50 +08:00
parent 9c6c1614fb
commit 4bc4c32e4f
6 changed files with 710 additions and 5 deletions
+8
View File
@@ -71,6 +71,14 @@ export const templateApi = {
delete: (id: number) => api.delete(`/templates/${id}`),
}
export const okrTemplateApi = {
list: (params?: any) => api.get('/okr-templates', { params }),
get: (id: number) => api.get(`/okr-templates/${id}`),
create: (data: any) => api.post('/okr-templates', data),
incrementUse: (id: number) => api.post(`/okr-templates/${id}/use`),
applyTemplate: (id: number, data: any) => api.post(`/okr-templates/${id}/apply`, data),
}
export const dataApi = {
importExcel: (file: File, qs?: string) => {
const form = new FormData()