From 7b8eb9327f2e041ad27024a7ba13ae22ac7c4c3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E8=B6=85?= Date: Wed, 23 Nov 2022 18:25:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=A1=E6=A0=B8=E9=A1=B9=E7=9B=AE=20=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=AE=A1=E6=A0=B8=E6=97=A5=E5=BF=97=20?= =?UTF-8?q?=E9=9D=A2=E6=8E=88=20=E4=B8=8A=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/indexAudit.js | 8 +- src/api/indexLearningPath.js | 5 +- src/components/drawers/ProjectAudit.vue | 35 +- src/views/examine/ProjectReviewed.vue | 48 +- src/views/examine/ProjectReviewedN.vue | 22 +- src/views/learningpath/LevelAdd.vue | 787 +++++++++++++++++------- src/views/projectcenter/TaskPage.vue | 5 + 7 files changed, 663 insertions(+), 247 deletions(-) diff --git a/src/api/indexAudit.js b/src/api/indexAudit.js index c1b3b4db..4e03e356 100644 --- a/src/api/indexAudit.js +++ b/src/api/indexAudit.js @@ -10,4 +10,10 @@ export const projlist = (obj) => http.post('/admin/project/list', obj) export const listView = (obj) => http.post('/admin/project/listView', obj) //获取面授课已审核列表 -export const courseListView = (obj) => http.post('/admin/offcourse/listReview', obj) \ No newline at end of file +export const courseListView = (obj) => http.post('/admin/offcourse/listReview', obj) + +//项目审核日志 +export const auditList = (obj) => http.post('/admin/project/auditList', obj) + +//项目审核 +export const auditView = (obj) => http.post('/admin/project/auditView', obj) \ No newline at end of file diff --git a/src/api/indexLearningPath.js b/src/api/indexLearningPath.js index f32f7d01..8de427ef 100644 --- a/src/api/indexLearningPath.js +++ b/src/api/indexLearningPath.js @@ -1,4 +1,7 @@ import http from "./config"; // 获取路径图概览 -export const getRouterOverview = (routerId) => http.get(`/admin/router/overview?routerId=${routerId}`) \ No newline at end of file +export const getRouterOverview = (routerId) => http.get(`/admin/router/overview?routerId=${routerId}`) + +//新建或编辑路径图 +export const editRoutered = (obj) => http.post('/admin/router/edit', obj) \ No newline at end of file diff --git a/src/components/drawers/ProjectAudit.vue b/src/components/drawers/ProjectAudit.vue index e8c0b1c3..b6e17ec3 100644 --- a/src/components/drawers/ProjectAudit.vue +++ b/src/components/drawers/ProjectAudit.vue @@ -118,6 +118,9 @@ +
+ +
@@ -130,6 +133,8 @@ import { toRefs, reactive } from "vue"; import { getTask } from "../../api/indexTaskadd"; import { toDate } from "../../api/method"; +import { auditView } from "../../api/indexAudit"; +import { message } from "ant-design-vue"; export default { name: "ProjectAudit", components: {}, @@ -138,10 +143,18 @@ export default { type: Boolean, default: false, }, - projectId: { + chooseProject: { type: Number, default: null, }, + chooseCreateId: { + type: Number, + default: null, + }, + chooseCreater: { + type: String, + default: null, + }, }, setup(props, ctx) { @@ -256,6 +269,25 @@ export default { const changeDe = () => { state.showDetail = !state.showDetail; }; + const subMit = () => { + auditView({ + createId: props.chooseCreateId, + createName: props.chooseCreater, + description: state.valueSuggest, + pass: state.valuePass == "1" ? 1 : -1, + projectId: props.chooseProject, + }) + .then((res) => { + console.log("提交成功", res); + message.destroy(); + message.success("提交成功"); + closeDrawer(); + }) + .catch((err) => { + console.log(err); + message.warning("提交失败"); + }); + }; return { ...toRefs(state), @@ -263,6 +295,7 @@ export default { afterVisibleChange, getTaskInfo, changeDe, + subMit, }; }, }; diff --git a/src/views/examine/ProjectReviewed.vue b/src/views/examine/ProjectReviewed.vue index ffc64137..5504fe78 100644 --- a/src/views/examine/ProjectReviewed.vue +++ b/src/views/examine/ProjectReviewed.vue @@ -113,6 +113,7 @@ :closable="closeBack" wrapClassName="projAuditModal" centered="true" + @after-visible-change="changeAu" >
@@ -148,7 +149,7 @@