diff --git a/src/api/index1.js b/src/api/index1.js
index 819f4120..6141767f 100644
--- a/src/api/index1.js
+++ b/src/api/index1.js
@@ -1,5 +1,5 @@
import http from "./config";
-// import qs from 'qs';
+import qs from 'qs';
/**
@@ -34,6 +34,8 @@ import http from "./config";
*
*/
+//上传文件
+export const uploadFile = (obj) => http.post('/test/testRequest', qs.stringify({ obj }));
// 接口-请求
diff --git a/src/api/indexActivity.js b/src/api/indexActivity.js
new file mode 100644
index 00000000..c7fac455
--- /dev/null
+++ b/src/api/indexActivity.js
@@ -0,0 +1,19 @@
+import http from "./config";
+
+//获取活动信息接口
+export const getActivity = (obj) => http.get('/activity', { params: obj });
+
+//创建活动接口
+export const createActivity = (obj) => http.post('/activity/createActivity', obj);
+
+//删除活动接口
+export const deleteActivity = (obj) => http.post('/activity/deleteActivity', { params: obj });
+
+//修改活动接口
+export const updateActivity = (obj) => http.post('/activity/updateActivity', obj);
+
+//修改活动是否为必修接口
+export const updateActivityToCompulsory = (obj) => http.post('/activity/updateActivityToCompulsory', { params: obj });
+
+//修改活动是否为选修接口
+export const updateActivityToElective = (obj) => http.post('/activity/updateActivityToElective', { params: obj });
\ No newline at end of file
diff --git a/src/api/indexDiscuss.js b/src/api/indexDiscuss.js
new file mode 100644
index 00000000..cc9863a9
--- /dev/null
+++ b/src/api/indexDiscuss.js
@@ -0,0 +1,13 @@
+import http from "./config";
+
+//创建讨论
+export const createDiscuss = (obj) => http.post('/discuss/createDiscuss', obj);
+
+//获取讨论信息接口
+export const getDiscussDetail = (obj) => http.post('/discuss/getDiscussDetail', { params: obj });
+
+//删除讨论接口
+export const deleteDiscuss = (obj) => http.post('/discuss/deleteDiscuss', { params: obj });
+
+//修改讨论接口
+export const updateDiscuss = (obj) => http.post('/discuss/updateDiscuss', { params: obj });
\ No newline at end of file
diff --git a/src/api/indexEval.js b/src/api/indexEval.js
new file mode 100644
index 00000000..b02e4875
--- /dev/null
+++ b/src/api/indexEval.js
@@ -0,0 +1,63 @@
+import http from "./config";
+// import qs from 'qs';
+
+
+/**
+ * 接口传参数方式(get)
+ * axios.get('/user', {
+ * params: {
+ * id: 12345,
+ * name: user
+ * }
+ * }).then(res => console.log(res))
+ *
+ * 接口传参三种方式(post/put/patch)
+ *
+ * 1.'Content-Type'= 'multipart/form-data',传参格式为 formData。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'multipart/form-data')
+ * var formData=new FormData();
+ * formData.append('user',123456);formData.append('pass',12345678);
+ * axios.post("/notice",formData).then()
+ *
+ * 2.'Content-Type'= 'application/x-www-form-urlencoded',传参格式为 query 形式,使用$qs.stringify。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'application/x-www-form-urlencoded')
+ * let data = {"code":"1234","name":"yyyy"};
+ * axios.post(`${this.$url}/test/testRequest`,qs.stringify({data})).then()
+ *
+ * 3.'Content-Type'= 'application/json,传参格式为 raw (JSON格式)。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'application/json;charset=UTF-8')
+ * let data = {"code":"1234","name":"yyyy"}
+ * axios.post(`${this.$url}/test/testRequest`,data).then()
+ *
+ */
+
+
+// 接口-请求
+
+//创建测评
+export const createEvaluation = (obj) => http.post('/evaluation/createEvaluation', obj,);
+
+//上传组件
+export const fileUp = (obj) => http.post('/file/upload', obj,);
+
+//删除测评信息
+export const deleteEvaluationById = (obj) => http.post('/evaluation/deleteEvaluationById', { params: obj })
+
+
+//根据ID获取测评信息详情
+export const queryEvaluationDetailById = (obj) => http.post('/evaluation/queryEvaluationDetailById', { params: obj })
+
+//修改测评信息
+export const updateEvaluation = (obj) => http.post('/evaluation/updateEvaluation', obj)
+
+
+// 测试方法
+// import * as api from '../../api/index'
+// api.getLearnPath({}).then(res => {
+// console.log(res)
+// }).catch(err => {
+// console.log(err)
+// })
diff --git a/src/api/indexExam.js b/src/api/indexExam.js
new file mode 100644
index 00000000..fc9a30af
--- /dev/null
+++ b/src/api/indexExam.js
@@ -0,0 +1,14 @@
+import http from "./config";
+// 创建考试信息接口
+export const createExamination = (obj) => http.post('/examination/createExamination',obj,{
+ headers: {
+ 'token': '123'
+ }
+});
+// 根据Id删除考试信息
+export const deleteExaminationById = (obj) => http.post('/examination/deleteExaminationById',obj);
+// 根据ID获取考试信息详情
+export const queryExaminationDetailById = (obj) => http.post('/examination/queryExaminationDetailById',obj);
+// 创建考试信息接口
+export const updateExamination = (obj) => http.post('/examination/updateExamination',obj);
+
diff --git a/src/api/indexInvist.js b/src/api/indexInvist.js
new file mode 100644
index 00000000..550a5803
--- /dev/null
+++ b/src/api/indexInvist.js
@@ -0,0 +1,60 @@
+import http from "./config";
+// import qs from 'qs';
+
+
+/**
+ * 接口传参数方式(get)
+ * axios.get('/user', {
+ * params: {
+ * id: 12345,
+ * name: user
+ * }
+ * }).then(res => console.log(res))
+ *
+ * 接口传参三种方式(post/put/patch)
+ *
+ * 1.'Content-Type'= 'multipart/form-data',传参格式为 formData。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'multipart/form-data')
+ * var formData=new FormData();
+ * formData.append('user',123456);formData.append('pass',12345678);
+ * axios.post("/notice",formData).then()
+ *
+ * 2.'Content-Type'= 'application/x-www-form-urlencoded',传参格式为 query 形式,使用$qs.stringify。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'application/x-www-form-urlencoded')
+ * let data = {"code":"1234","name":"yyyy"};
+ * axios.post(`${this.$url}/test/testRequest`,qs.stringify({data})).then()
+ *
+ * 3.'Content-Type'= 'application/json,传参格式为 raw (JSON格式)。
+ * (全局请求头:'Content-Type'= 'application/x-www-form-urlencoded')
+ * (request的Header:'Content-Type'= 'application/json;charset=UTF-8')
+ * let data = {"code":"1234","name":"yyyy"}
+ * axios.post(`${this.$url}/test/testRequest`,data).then()
+ *
+ */
+
+
+// 接口-请求
+
+//创建评估
+export const createAppraiseMessage = (obj) => http.post('/survey/createAppraiseMessage', obj,);
+
+//删除评估信息
+export const deleteAppraise = (obj) => http.post('/survey/deleteAppraise', { params: obj })
+
+
+//根据ID获取评估信息详情
+export const queryAppraiseDetailById = (obj) => http.post('/survey/queryAppraiseDetailById', { params: obj })
+
+//修改评估信息
+export const updateAppraiseMessage = (obj) => http.post('/survey/updateAppraiseMessage', obj)
+
+
+// 测试方法
+// import * as api from '../../api/index'
+// api.getLearnPath({}).then(res => {
+// console.log(res)
+// }).catch(err => {
+// console.log(err)
+// })
diff --git a/src/api/indexLevel.js b/src/api/indexLevel.js
new file mode 100644
index 00000000..39e22fcd
--- /dev/null
+++ b/src/api/indexLevel.js
@@ -0,0 +1,8 @@
+import http from "./config";
+
+//新建或编辑关卡
+export const editChapter = (obj) => http.post('/admin/router/editChapter', obj, {
+ headers: {
+ 'token': '123'
+ }
+});
\ No newline at end of file
diff --git a/src/api/indexVote.js b/src/api/indexVote.js
new file mode 100644
index 00000000..e69de29b
diff --git a/src/api/indexWork.js b/src/api/indexWork.js
new file mode 100644
index 00000000..49ab456a
--- /dev/null
+++ b/src/api/indexWork.js
@@ -0,0 +1,14 @@
+import http from "./config";
+// 创建作业信息接口
+export const createWorkTask = (obj) => http.post('/work/createWorkTask',obj,{
+ headers: {
+ 'token': '123'
+ }
+});
+// 删除作业信息接口
+export const deleteWorkTask = (obj) => http.post('/work/deleteWorkTask',obj);
+// 根据ID获取作业信息详情
+export const queryWorkDetailById = (obj) => http.post('/work/queryWorkDetailById',obj);
+// 修改作业信息接口
+export const updateWorkTaskUsing = (obj) => http.post('/work/updateWorkTask',obj);
+
diff --git a/src/components/NavLeft.vue b/src/components/NavLeft.vue
index d991d7dc..4de7d2e9 100644
--- a/src/components/NavLeft.vue
+++ b/src/components/NavLeft.vue
@@ -188,7 +188,7 @@
- 调研
+ 评估
diff --git a/src/components/drawers/AddActive.vue b/src/components/drawers/AddActive.vue
index 5a0b5940..53a2f6fe 100644
--- a/src/components/drawers/AddActive.vue
+++ b/src/components/drawers/AddActive.vue
@@ -65,6 +65,7 @@
v-model:value="textV2"
placeholder="请输入活动说明"
allow-clear
+ maxlength="150"
/>
@@ -75,6 +76,7 @@
@@ -118,7 +120,7 @@
@@ -143,7 +145,7 @@
border-radius: 8px;
overflow: hidden;
"
- :v-model:value="inputV4"
+ v-model:value="inputV4"
/>
分钟
@@ -159,7 +161,7 @@
border-radius: 8px;
overflow: hidden;
"
- :v-model:value="inputV5"
+ v-model:value="inputV5"
/>
分钟
@@ -180,7 +182,7 @@
border-radius: 8px;
overflow: hidden;
"
- :v-model:value="inputV6"
+ v-model:value="inputV6"
/>
分钟(提前签退则记为早退)
- 取消
- 确定
+ 取消
+ 确定
+ api
+ .createEvaluation(obj)
+ .then((res) => {
+ setTimeout(() => {
+ console.log("创建成功", res);
+ message.success("创建成功");
+ console.log(obj);
+ // state.createLoading = false;
+ router.push("/leveladd");
+ // getLearnPath();
+ }, 1000);
+ })
+ .catch((err) => {
+ console.log("创建失败", err);
+ // state.createLoading = false;
+ });
+ };
+
+ return {
+ ...toRefs(state),
+ afterVisibleChange,
+ closeDrawer,
+ rowSelection,
+ createEvalText,
+ onChange,
+ //上传组件
+ fileList,
+ loading,
+ imageUrl,
+ handleChange,
+ beforeUpload,
+ };
+ },
+};
+
+}
+
\ No newline at end of file
diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue
index 7467682a..f1fb1d21 100644
--- a/src/components/drawers/AddHomework.vue
+++ b/src/components/drawers/AddHomework.vue
@@ -63,6 +63,7 @@
@@ -78,7 +79,15 @@
附件:
@@ -91,14 +100,18 @@
- 取消
- 确定
+ 取消
+ 确定
-
-
\ No newline at end of file
diff --git a/src/components/drawers/AddTest.vue b/src/components/drawers/AddTest.vue
index 88b9afc6..c65e9e46 100644
--- a/src/components/drawers/AddTest.vue
+++ b/src/components/drawers/AddTest.vue
@@ -43,7 +43,7 @@
- 取消
- 确定
+ 取消
+ 确定