ZhaoJing 2 년 전
부모
커밋
7408dce1f4
1개의 변경된 파일17개의 추가작업 그리고 16개의 파일을 삭제
  1. 17 16
      src/pages/_user/bzrgz.vue

+ 17 - 16
src/pages/_user/bzrgz.vue

@@ -183,9 +183,10 @@
       <van-icon class="cha" @click="cancel" name="cross" size="5vw"></van-icon>
       <h3>提醒</h3>
       <div>
-        此申请账号关系为{{ nowParent.relation }}。 此学生已经关联过{{
+       <p>此申请账号关系为{{ nowParent.relation }}。</p>
+       <p>此学生已经关联过{{
           already.length
-        }}位家长账号,关系为:{{ already?.relation }}。
+        }}位家长账号,关系为:<span v-for="r in already" :key="r.id">{{ r.relation }}</span></p> 
       </div>
       <div style="margin: 16px">
         <van-button round block type="primary" @click="keepUp">
@@ -215,7 +216,6 @@ export default {
       activeName: "a",
       isShowbar: true,
       msg: {},
-      msgsLoading: false,
       show: false,
       auditShow: false,
       checkShow: false,
@@ -268,14 +268,11 @@ export default {
             data,
           }).then((res) => {
             if (res.code == "1") {
-              res.data.class_stu_supply.forEach((item) => {
-                if (item.statue == "0") {
-                  this.code == 1;
-                } else {
-                  this.code == 0;
-                }
-              });
-              this.msgsLoading = false;
+              if(res.data.class_stu_supply.some((item=>item.statue != "0"))){
+                this.code = 0;
+              }else{
+                this.code = 1;
+              }
               this.msg = res.data;
             }
           });
@@ -290,7 +287,7 @@ export default {
         this.auditShow = true;
         // this.checked = s;
       } else {
-        if (this.code == 0) {
+        if (s.statue !='0') {
           return showToast("不可重复审核!");
         }
         this.checkShow = true;
@@ -379,12 +376,12 @@ export default {
         } else{
           this.auditShow = true;
           this.show = true;
-        }
-        
+          this.auditchecked = '';
+          this.rejectMsg = '';
+        } 
       }
     },
     onSubmit(value) {
-      console.log(value.radio);
       if (!value.radio) {
         showToast("请选择是否通过~");
       } else {
@@ -397,6 +394,7 @@ export default {
           statue: value.radio,
           desc: this.rejectMsg,
         };
+        console.log(ids);
         if (value.radio == "2" && this.rejectMsg == "") {
           return showToast("请填写反驳原因");
         }
@@ -410,7 +408,10 @@ export default {
             this.show = false;
             this.auditShow = false;
             this.checked = [];
-            this.$refs.deleteGroup.toggleAll();
+            // this.$refs.deleteGroup.toggleAll();
+            showToast(res.msg)
+          }else{
+            showToast(res.msg)
           }
         });
       }