From 6306599274499f1399f86a87a19c4059ac7bcda2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com> Date: Thu, 10 Nov 2022 18:33:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A1=B9=E7=9B=AE=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=9B=B8=E5=85=B3=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexLibrary.js | 10 +++ src/views/projectcenter/TemplateLibrary.vue | 90 +++++++++++++++------ 2 files changed, 75 insertions(+), 25 deletions(-) create mode 100644 src/api/indexLibrary.js 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 @@