From e60e62f1e166e4b805fbd014e7621233f5ff96aa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E7=86=99=E4=B8=9C?= <2195178163@qq.com>
Date: Mon, 21 Nov 2022 15:53:17 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E6=9D=BF=E5=88=97=E8=A1=A8?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96=EF=BC=8C=E6=9F=A5=E7=9C=8B=E6=92=A4=E5=9B=9E?=
=?UTF-8?q?=E6=93=8D=E4=BD=9C=EF=BC=8C=E6=A8=A1=E6=9D=BF=E8=AF=A6=E6=83=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/indexLibrary.js | 10 -
src/api/indexTemplate.js | 6 +-
src/views/projectcenter/LibraryAdd.vue | 748 +++++++++-----------
src/views/projectcenter/TemplateLibrary.vue | 229 +++---
4 files changed, 463 insertions(+), 530 deletions(-)
delete mode 100644 src/api/indexLibrary.js
diff --git a/src/api/indexLibrary.js b/src/api/indexLibrary.js
deleted file mode 100644
index a5f8feb2..00000000
--- a/src/api/indexLibrary.js
+++ /dev/null
@@ -1,10 +0,0 @@
-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/api/indexTemplate.js b/src/api/indexTemplate.js
index 713e349a..a9837852 100644
--- a/src/api/indexTemplate.js
+++ b/src/api/indexTemplate.js
@@ -14,4 +14,8 @@ export const moveTask = (obj) => http.post('/admin/project/template/moveTask',ob
// 新建或编辑阶段
export const editStage = (obj) => http.post('/admin/project/template/editStage',obj);
// 新建或编辑阶段任务
-export const editTask = (obj) => http.post('/admin/project/template/editTask',obj);
\ No newline at end of file
+export const editTask = (obj) => http.post('/admin/project/template/editTask',obj);
+// 操作模板(撤回,发布,删除)
+export const handleTemplates = (obj) => http.post('/admin/project/template/handle',obj);
+// 模板库列表
+export const templateList = (obj) => http.post(`/admin/project/template/list`,obj);
diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue
index 851e7e8e..09657694 100644
--- a/src/views/projectcenter/LibraryAdd.vue
+++ b/src/views/projectcenter/LibraryAdd.vue
@@ -5,11 +5,11 @@
-
+