浏览代码

feat:学时管理学时审核新增全选弹窗提示操作

xiexaing 1 年之前
父节点
当前提交
8382785832
共有 1 个文件被更改,包括 17 次插入1 次删除
  1. 17 1
      src/views/education/classManageMent/classHoursReview/component/StudyTables.vue

+ 17 - 1
src/views/education/classManageMent/classHoursReview/component/StudyTables.vue

@@ -370,7 +370,23 @@ export default {
     },
     checkBack() {
       if (!this.checkList.length) {
-        this.$message.warning("请勾选数据");
+        this.$confirm("您还未勾选数据,是否勾选全部数据?", "提示", {
+          confirmButtonText: "是",
+          cancelButtonText: "否",
+          type: "warning",
+        })
+          .then(() => {
+            this.checkList = this.allType3List.map((i) => {
+              if (
+                this.periodStatus === 3 &&
+                i.periodStatus === 1 &&
+                i.status !== 2
+              ) {
+                return i.periodStatusId;
+              }
+            });
+          })
+          .catch(() => {});
         return;
       }
       this.popback = true;