浏览代码

乐团主管关联分部

1
mo 4 年之前
父节点
当前提交
5460a9abdd
共有 1 个文件被更改,包括 30 次插入18 次删除
  1. 30 18
      src/views/indexErrDataRecord/components/historyError.vue

+ 30 - 18
src/views/indexErrDataRecord/components/historyError.vue

@@ -15,6 +15,7 @@
           filterable
           clearable
           placeholder="请选择分部"
+          @change="changeBranch"
         >
           <el-option
             v-for="(item, index) in selects.branchs"
@@ -109,28 +110,32 @@
       <statistic-item>
         <span>课程考情异常剩余/总数</span>
         <span>
-           {{
-              statInfo.teacherExceptionAttendanceSurplus
-                ? statInfo.teacherExceptionAttendanceSurplus
-                : "0"
-            }}
-            /
-            {{
-              statInfo.teacherExceptionAttendance
-                ? statInfo.teacherExceptionAttendance
-                : "0"
-            }}
+          {{
+            statInfo.teacherExceptionAttendanceSurplus
+              ? statInfo.teacherExceptionAttendanceSurplus
+              : "0"
+          }}
+          /
+          {{
+            statInfo.teacherExceptionAttendance
+              ? statInfo.teacherExceptionAttendance
+              : "0"
+          }}
         </span>
       </statistic-item>
       <statistic-item>
         <span>课程异常剩余/总数</span>
-        <span> {{
-              statInfo.teacherNotAClassSurplus
-                ? statInfo.teacherNotAClassSurplus
-                : "0"
-            }}
-            /
-            {{ statInfo.teacherNotAClass ? statInfo.teacherNotAClass : "0" }}</span>
+        <span>
+          {{
+            statInfo.teacherNotAClassSurplus
+              ? statInfo.teacherNotAClassSurplus
+              : "0"
+          }}
+          /
+          {{
+            statInfo.teacherNotAClass ? statInfo.teacherNotAClass : "0"
+          }}</span
+        >
       </statistic-item>
     </statistic>
     <el-table
@@ -332,6 +337,13 @@ export default {
       this.rules.page = 1;
       this.getList();
     },
+    async changeBranch(val) {
+      this.searchForm.educationUserId = null;
+      try {
+        const res = await getAllEducationUsers({ organIds: val });
+        this.educationList = res.data;
+      } catch (e) {}
+    },
     async getList() {
       let { timer, ...rest } = this.searchForm;
       let params = {