Michael Wang 4 жил өмнө
parent
commit
db4a604053

+ 10 - 0
http-test/user.http

@@ -27,3 +27,13 @@ time: 0
 GET http://qmth.oss-cn-shenzhen.aliyuncs.com/file/2020/8/31/87238cea138f4cf6a99df1a8399a6bb0.txt
 Origin: http://test1.qm.com:9222
 
+
+### post logo
+POST https://admin.online-exam.cn/api/admin/sys/org/queryByOrgCode?code=admin
+platform: WEB
+deviceid: 0.2079136003087918-1604278953283
+
+### post logo
+POST http://admin.myhost.com:8080/api/admin/sys/org/queryByOrgCode?code=admin
+platform: WEB
+deviceid: 0.2079136003087918-1604278953283

+ 1 - 1
src/features/examwork/ActivityManagement/ActivityEdit.vue

@@ -260,7 +260,7 @@ export default {
           console.log(data);
           if (!valid) return;
         } catch (error) {
-          console.log(error);
+          console.log("校验失败", error);
           return;
         }
       }

+ 1 - 1
src/features/examwork/ActivityManagement/ActivityManagementDialog.vue

@@ -209,7 +209,7 @@ export default {
       try {
         await this.$refs.form.validate();
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
 

+ 2 - 2
src/features/examwork/CourseManagement/CourseManagement.vue

@@ -140,7 +140,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       const res = await searchCourses({
@@ -167,7 +167,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       this.$refs.theDialog.openDialog();

+ 6 - 1
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -842,7 +842,12 @@ export default {
         await this.$refs.form2.validate();
         // await this.$refs.form3.validate();
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
+        this.$notify({
+          title: "保存失败",
+          message: "请检查不合法的输入项",
+          type: "waring",
+        });
         return;
       }
 

+ 1 - 1
src/features/examwork/ExamStudentImport/ExamStudentImport.vue

@@ -157,7 +157,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       this.$refs.theDialog.openDialog();

+ 2 - 2
src/features/examwork/ExamStudentManagement/ExamStudentManagement.vue

@@ -208,7 +208,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       const res = await searchExamStudents({
@@ -267,7 +267,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       await exportExamStudent(this.form);

+ 1 - 1
src/features/examwork/ExamStudentManagement/ExamStudentManagementDialog.vue

@@ -147,7 +147,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       let data = this.form;

+ 3 - 3
src/features/examwork/InvigilateManagement/InvigilateManagement.vue

@@ -137,7 +137,7 @@ export default {
       try {
         await this.$refs.form.validate();
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       const res = await searchInvigilators({
@@ -168,7 +168,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       this.$refs.theDialog2.openDialog();
@@ -177,7 +177,7 @@ export default {
       try {
         await this.$refs.form.validate();
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       exportInvigilate({

+ 2 - 2
src/features/examwork/MarkResultManagement/MarkResultManagement.vue

@@ -138,7 +138,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       const res = await searchMarkResult({
@@ -167,7 +167,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       await exportMarkResult({

+ 1 - 1
src/features/examwork/StudentManagement/StudentManagementDialog.vue

@@ -103,7 +103,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }
       const res = await searchStudentExamRecord({

+ 1 - 1
src/features/system/UserManagement/UserManagementDialog.vue

@@ -136,7 +136,7 @@ export default {
         const valid = await this.$refs.form.validate();
         if (!valid) return;
       } catch (error) {
-        console.log(error);
+        console.log("校验失败", error);
         return;
       }