coys пре 1 година
родитељ
комит
4a0fb2dccf

+ 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,