zengyicheng 2 anni fa
parent
commit
d3d1b3cc53

+ 1 - 1
dist/index.html

@@ -24,4 +24,4 @@
             height: 100%;
             width: 100%;
             background: #e6eaf0;
-        }</style><link href=./static/css/app.6258a714839ad5395ba19d8892836a00.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.f73e1f5407603f6a733b.js></script><script type=text/javascript src=./static/js/vendor.0c21445a4cd992a83ee9.js></script><script type=text/javascript src=./static/js/app.07d1053dd9456225ddd6.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>
+        }</style><link href=./static/css/app.38ac9fde076a72dc7687b01944a10196.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.f73e1f5407603f6a733b.js></script><script type=text/javascript src=./static/js/vendor.0c21445a4cd992a83ee9.js></script><script type=text/javascript src=./static/js/app.8711387fe8b82e40ebd4.js></script></body></html><script>document.domain = document.domain.split(".").slice(-2).join(".");</script>

File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.38ac9fde076a72dc7687b01944a10196.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/app.38ac9fde076a72dc7687b01944a10196.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.07d1053dd9456225ddd6.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.07d1053dd9456225ddd6.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8711387fe8b82e40ebd4.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.8711387fe8b82e40ebd4.js.map


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/manifest.f73e1f5407603f6a733b.js.map


+ 125 - 108
src/components/pages/race/eventCenter/myAnli.vue

@@ -195,121 +195,138 @@ export default {
           type: "warning",
         })
           .then(() => {
-            let params = {
-              sid: this.oid,
+            let paramsa = {
+              id: id,
+              s: a,
             };
             this.ajax
-              .get(this.$store.state.api + "selectRaceByOid", params)
+              .get(this.$store.state.api + "updateRaceState", paramsa)
               .then((res) => {
-                if (res.data[0].length == 0) {
-                  let paramsa = {
-                    id: id,
-                    s: a,
-                  };
-                  this.ajax
-                    .get(this.$store.state.api + "updateRaceState", paramsa)
-                    .then((res) => {
-                      this.$message({
-                        message: "提交成功",
-                        type: "success",
-                      });
-                      this.selectAnLi();
-                    })
-                    .catch((err) => {
-                      console.error(err);
-                    });
-                } else {
-                  var inType = [];
-                  for (var i = 0; i < res.data[0].length; i++) {
-                    if (inType.length == 0) {
-                      inType = JSON.parse(res.data[0][i].info).type;
-                    } else {
-                      inType += JSON.parse(res.data[0][i].info).type;
-                    }
-                  }
-                  var oldType = [];
-                  for (var j = 0; j < this.anliBox.length; j++) {
-                    if (id == this.anliBox[j].id) {
-                      oldType = JSON.parse(this.anliBox[j].info).type;
-                      break;
-                    }
-                  }
-                  if (
-                    res.data[0][0].name != "华南师大附属中学" ||
-                    res.data[0][0].name != "广东实验中学" ||
-                    res.data[0][0].name != "华南师大附属小学"
-                  ) {
-                    var isIndex = 0;
-                    for (var k = 0; k < oldType.length; k++) {
-                      if (inType.indexOf(oldType[k]) != -1) {
-                        this.$message({
-                          message: "每校每类别案例限报一项!",
-                          type: "error",
-                        });
-                        isIndex = 1;
-                        break;
-                      }
-                    }
-                    if (isIndex == 0) {
-                      let paramsb = {
-                        id: id,
-                        s: a,
-                      };
-                      this.ajax
-                        .get(this.$store.state.api + "updateRaceState", paramsb)
-                        .then((res) => {
-                          this.$message({
-                            message: "提交成功",
-                            type: "success",
-                          });
-                          this.selectAnLi();
-                        })
-                        .catch((err) => {
-                          console.error(err);
-                        });
-                    }
-                  } else {
-                    var isNum = 0;
-                    for (var z = 0; z < res.data[0].length; z++) {
-                      for (var p = 0; p < oldType.length; p++) {
-                        if (
-                          JSON.parse(res.data[0][z].info).type.indexOf(
-                            oldType[p]
-                          ) != -1
-                        ) {
-                          isNum++;
-                        }
-                      }
-                    }
-                    if (isNum < 2) {
-                      let paramsb = {
-                        id: id,
-                        s: a,
-                      };
-                      this.ajax
-                        .get(this.$store.state.api + "updateRaceState", paramsb)
-                        .then((res) => {
-                          this.$message({
-                            message: "提交成功",
-                            type: "success",
-                          });
-                          this.selectAnLi();
-                        })
-                        .catch((err) => {
-                          console.error(err);
-                        });
-                    } else {
-                      this.$message({
-                        message: "每校每类别案例限报两项!",
-                        type: "error",
-                      });
-                    }
-                  }
-                }
+                this.$message({
+                  message: "提交成功",
+                  type: "success",
+                });
+                this.selectAnLi();
               })
               .catch((err) => {
                 console.error(err);
               });
+            // let params = {
+            //   sid: this.oid,
+            // };
+            // this.ajax
+            //   .get(this.$store.state.api + "selectRaceByOid", params)
+            //   .then((res) => {
+            //     if (res.data[0].length == 0) {
+            //       let paramsa = {
+            //         id: id,
+            //         s: a,
+            //       };
+            //       this.ajax
+            //         .get(this.$store.state.api + "updateRaceState", paramsa)
+            //         .then((res) => {
+            //           this.$message({
+            //             message: "提交成功",
+            //             type: "success",
+            //           });
+            //           this.selectAnLi();
+            //         })
+            //         .catch((err) => {
+            //           console.error(err);
+            //         });
+            //     }
+            //  else {
+            //   var inType = [];
+            //   for (var i = 0; i < res.data[0].length; i++) {
+            //     if (inType.length == 0) {
+            //       inType = JSON.parse(res.data[0][i].info).type;
+            //     } else {
+            //       inType += JSON.parse(res.data[0][i].info).type;
+            //     }
+            //   }
+            //   var oldType = [];
+            //   for (var j = 0; j < this.anliBox.length; j++) {
+            //     if (id == this.anliBox[j].id) {
+            //       oldType = JSON.parse(this.anliBox[j].info).type;
+            //       break;
+            //     }
+            //   }
+            //   if (
+            //     res.data[0][0].name != "华南师大附属中学" ||
+            //     res.data[0][0].name != "广东实验中学" ||
+            //     res.data[0][0].name != "华南师大附属小学"
+            //   ) {
+            //     var isIndex = 0;
+            //     for (var k = 0; k < oldType.length; k++) {
+            //       if (inType.indexOf(oldType[k]) != -1) {
+            //         this.$message({
+            //           message: "每校每类别案例限报一项!",
+            //           type: "error",
+            //         });
+            //         isIndex = 1;
+            //         break;
+            //       }
+            //     }
+            //     if (isIndex == 0) {
+            //       let paramsb = {
+            //         id: id,
+            //         s: a,
+            //       };
+            //       this.ajax
+            //         .get(this.$store.state.api + "updateRaceState", paramsb)
+            //         .then((res) => {
+            //           this.$message({
+            //             message: "提交成功",
+            //             type: "success",
+            //           });
+            //           this.selectAnLi();
+            //         })
+            //         .catch((err) => {
+            //           console.error(err);
+            //         });
+            //     }
+            //   } else {
+            //     var isNum = 0;
+            //     for (var z = 0; z < res.data[0].length; z++) {
+            //       for (var p = 0; p < oldType.length; p++) {
+            //         if (
+            //           JSON.parse(res.data[0][z].info).type.indexOf(
+            //             oldType[p]
+            //           ) != -1
+            //         ) {
+            //           isNum++;
+            //         }
+            //       }
+            //     }
+            //     if (isNum < 2) {
+            //       let paramsb = {
+            //         id: id,
+            //         s: a,
+            //       };
+            //       this.ajax
+            //         .get(this.$store.state.api + "updateRaceState", paramsb)
+            //         .then((res) => {
+            //           this.$message({
+            //             message: "提交成功",
+            //             type: "success",
+            //           });
+            //           this.selectAnLi();
+            //         })
+            //         .catch((err) => {
+            //           console.error(err);
+            //         });
+            //     } else {
+            //       this.$message({
+            //         message: "每校每类别案例限报两项!",
+            //         type: "error",
+            //       });
+            //     }
+            //   }
+            // }
+            // })
+            // .catch((err) => {
+            //   console.error(err);
+            // });
           })
           .catch(() => {});
       } else {

Some files were not shown because too many files changed in this diff