Browse Source

整体报告待完善

shilipojs 2 years ago
parent
commit
84c0ffb73a

+ 20 - 1
src/views/career/bigdataSelectCourse/personalDivideClass.vue

@@ -10,6 +10,7 @@
       </div>
       <div>
         <p class="mb10">
+          <el-button type="primary" @click="dialogVisible = true">整体报告</el-button>
           <el-button type="primary" @click="toSign">完成选科签字</el-button>
           <el-button type="primary" @click="showDispatchInfo">查看分班信息</el-button>
         </p>
@@ -30,17 +31,31 @@
       </div>
     </el-card>
     <evaluation-empty v-else shadow title="暂无数据"></evaluation-empty>
+    <el-dialog
+      title="整体报告"
+      :visible.sync="dialogVisible"
+      width="80%"
+    >
+      <report :generation="generation" :dispatchInfo="rows[0]" :optional-majors="optionalMajors"></report>
+      <span slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
 <script>
 import { classesResult, getRound } from '@/api/webApi/elective/dispatch'
 import MxCondition from '@/components/MxCondition/mx-condition'
+import RoundSelect from '@/views/system/user/profile/round-select'
+import Report from './report'
 import { mapGetters } from 'vuex'
  export default {
-   components:{MxCondition},
+   components:{MxCondition,Report},
+   mixins:[RoundSelect],
    data(){
      return{
+       dialogVisible:false,
        isShow:false,
        rows: [],
        requireFields: ['year', 'roundId'],
@@ -48,6 +63,7 @@ import { mapGetters } from 'vuex'
          year: '',
          roundId: ''
        },
+       activeStep:'forceAdjust',
        round: {},
        propsDefines: {
          year: {
@@ -73,6 +89,9 @@ import { mapGetters } from 'vuex'
      }
    },
    computed:{
+     apply(){
+       return this.appliedModel.selectedList.map(item => item.groupName)
+     },
      ...mapGetters(['school','nickName']),
      title(){
         const store  = this.$store.getters

+ 57 - 0
src/views/career/bigdataSelectCourse/report.vue

@@ -0,0 +1,57 @@
+<template>
+  <div>
+    <p>{{nickName}}同学:</p>
+    <p>您好!</p>
+    <div class="mb10">您所在的学校开设了
+      <span v-for="item in stepOne">,{{`${item.groupName}(${item.classCount}个班级)(${item.count})`}}</span>,
+      <span>共计{{stepOne.length}}个组合。</span>
+    </div>
+    <div>
+
+    </div>
+    <div class="mb10">
+      选科完成后您将从原{{dispatchInfo.originalClassName}}班,重新分班至{{dispatchInfo.className}}班。
+    </div>
+  </div>
+</template>
+
+<script>
+
+import { mapGetters } from 'vuex'
+import ElectiveTableMixin from '@/views/elective/select/components/elective-table-mixins'
+import ElectiveEnrollInfo from '@/views/elective/select/components/elective-enroll-info'
+
+export default {
+  components:{ElectiveEnrollInfo},
+  mixins:[ElectiveTableMixin],
+  data(){
+    return {}
+  },
+  props:{
+    generation: Object,
+    optionalMajors: { type: Array, default: () => [] },
+    dispatchInfo:{ type: Object, default: () => {} },
+  },
+  computed:{
+    ...mapGetters(['nickName']),
+    stepOne() {
+      return this.generation.models[0].models.map(item => {
+        return {
+          groupName: item.groupName,
+          classCount:item.classCount,
+          count: item.actualCount
+        }
+      })
+    },
+    // 初录
+
+    // 补录
+  },
+  methods: {
+
+  }
+}
+</script>
+<style>
+
+</style>