diff --git a/src/api/indexLibrary.js b/src/api/indexLibrary.js new file mode 100644 index 00000000..a5f8feb2 --- /dev/null +++ b/src/api/indexLibrary.js @@ -0,0 +1,10 @@ +import http from "./config"; + +// 获取模板库列表 +export const templateList = obj => http.post('/admin/project/template/list', obj); + +// 获取模板详情 +export const templateDetail = id => http.get(`/admin/project/template/detail?projectTemplateId=${id}`); + +// 操作模板(撤回,发布,删除) +export const templateHadle = obj => http.post(`/admin/project/template/handle`,obj); \ No newline at end of file diff --git a/src/views/projectcenter/TemplateLibrary.vue b/src/views/projectcenter/TemplateLibrary.vue index 0e4a00e7..0bb54282 100644 --- a/src/views/projectcenter/TemplateLibrary.vue +++ b/src/views/projectcenter/TemplateLibrary.vue @@ -60,7 +60,9 @@