coys 1 년 전
부모
커밋
4a0fb2dccf
3개의 변경된 파일10개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 0
      src/views/menu/rehearsalTask/components/addRehearsalTask.vue
  2. 7 6
      src/views/menu/training/components/addTraining.vue
  3. 2 2
      vue.config.js

+ 1 - 0
src/views/menu/rehearsalTask/components/addRehearsalTask.vue

@@ -396,6 +396,7 @@ export default {
         .then(() => {
           if (type === 1) {
             //type 1保存2提交
+            // this.beforSubmitV()
             this.submitHandlerConfirm(type)
           } else {
             this.beforSubmitV() //校验

+ 7 - 6
src/views/menu/training/components/addTraining.vue

@@ -332,7 +332,7 @@ export default {
     },
     //上传附件成功
     listHandler(list) {
-      console.log(list, 'mmmm')
+      
       this.form.imageList = list || []
     },
     //表单提交前校验
@@ -349,11 +349,11 @@ export default {
         return
       }
 
-      // if (this.form.imageList.length == 0) {
-      //   Toast('上传图片不能为空')
-      //   this.falg = true
-      //   return
-      // }
+      if (this.form.imageList.length == 0) {
+        Toast('上传图片不能为空')
+        this.falg = true
+        return
+      }
       if (this.userPeopleList.length == 0) {
         Toast('参与人员不能为空!')
         this.falg = true
@@ -396,6 +396,7 @@ export default {
         .then(() => {
           if (type === 1) {
             //type 1保存2提交
+            // this.beforSubmitV()
             this.submitHandlerConfirm(type)
           } else {
             this.beforSubmitV() //校验

+ 2 - 2
vue.config.js

@@ -110,8 +110,8 @@ module.exports = defineConfig({
         }
       },
       '/dev': {
-        // target: "http://10.87.10.55:8080",
-        target: "http://10.87.10.91:8080",
+        target: "http://10.87.10.55:8080",
+        // target: "http://10.87.10.91:8080",
         // target: "http://10.87.11.173:8080",
         // ws:true,
         changOrigin:true,