Tang 3 年之前
父節點
當前提交
b2a276f591
共有 1 個文件被更改,包括 19 次插入24 次删除
  1. 19 24
      src/views/education/classManageMent/studentMenu/index.vue

+ 19 - 24
src/views/education/classManageMent/studentMenu/index.vue

@@ -16,10 +16,7 @@
         >
       </div>
       <div>
-        <el-button
-          size="small"
-          v-if="statusShow.includes(1)"
-          @click="uploadGF"
+        <el-button size="small" v-if="statusShow.includes(1)" @click="uploadGF"
           >官方信息推送</el-button
         >
         <span
@@ -37,19 +34,13 @@
         <el-button
           size="small"
           type="warning"
-          v-if="
-            statusShow.includes(3) ||
-            statusShow.includes(4)
-          "
+          v-if="statusShow.includes(3) || statusShow.includes(4)"
           @click="moreActive(4)"
           >账号状态标记</el-button
         >
         <span
           style="font-size: 14px; margin: 0px 6px"
-          v-if="
-            statusShow.includes(3) ||
-            statusShow.includes(4)
-          "
+          v-if="statusShow.includes(3) || statusShow.includes(4)"
           >已开通:{{ zhNum }}/{{ total }}</span
         >
       </div>
@@ -810,10 +801,7 @@ export default {
             } else {
               this.navText.gftsStatus = false;
             }
-            if (
-              res.data.includes(3) ||
-              res.data.includes(4)
-            ) {
+            if (res.data.includes(3) || res.data.includes(4)) {
               this.navText.gfUserStatus = true;
             } else {
               this.navText.gfUserStatus = false;
@@ -924,6 +912,13 @@ export default {
         this.$refs.accountTag.openBox(int, this.$refs.tableList.allCheckData);
       }
       if (int === 5) {
+        const GFSTATUS = this.$refs.tableList.allCheckData.every((item) => {
+          return item.learnStatus !== 1;
+        });
+        if (!GFSTATUS) {
+          this.$message.error("勾选的数据不能包含账号标记已开通的数据");
+          return;
+        }
         this.$refs.quickLogin.openBoxs(
           this.$refs.tableList.allCheckData,
           this.$route.query.goodsId
@@ -1078,14 +1073,14 @@ export default {
           this.tableData = res.rows;
           this.total = res.total;
           this.navText.index = res.total;
-            this.$api
-              .inquireGradegradeofficialInfoCount({
-                gradeId: this.$route.query.id,
-              })
-              .then((res) => {
-                this.gfNum = res.data.officialInfoCount;
-                this.zhNum = res.data.learnStatus;
-              });
+          this.$api
+            .inquireGradegradeofficialInfoCount({
+              gradeId: this.$route.query.id,
+            })
+            .then((res) => {
+              this.gfNum = res.data.officialInfoCount;
+              this.zhNum = res.data.learnStatus;
+            });
         })
         .finally(() => {
           this.loading = false;