feat(okr): Phase2 - 行业扩展包12个+OKR模板库页面
- 插入12个行业包模板:贸易经销(7)+IT服务(5) - 后端: name搜索+apply端点 - 前端: OKRTemplates.vue页面(搜索/筛选/三分区/应用弹窗) - 路由+菜单+权限配置
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user