|
@@ -28,65 +28,76 @@
|
|
|
:disabled="isDisabled(item)"
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
- <el-button type="text" @click="lookStudentList" :disabled="!item.classId" class="studentTitle">学员列表>></el-button>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ @click="lookStudentList"
|
|
|
+ :disabled="!item.classId"
|
|
|
+ class="studentTitle"
|
|
|
+ >学员列表>></el-button
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
-
|
|
|
+
|
|
|
<div class="infomsg">
|
|
|
- <div class="left">
|
|
|
- 剩余课时:
|
|
|
- <p>合奏课:<span>1</span>节</p>
|
|
|
+ <div class="left" v-if="!isNoCourse">
|
|
|
+ 剩余课时:
|
|
|
+ <div v-for="(val,key) in item.courseList" :key='key'>
|
|
|
+ <p style="margin-right:5px">{{key|courseTypeFormat}}:<span>{{val}}</span>节</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="left" v-else>
|
|
|
+ <div>暂无剩余课时</div>
|
|
|
</div>
|
|
|
<div class="right">
|
|
|
已选学员:
|
|
|
- <p><span>{{item.studentList.length}}</span>人</p>
|
|
|
+ <p>
|
|
|
+ <span>{{ item.studentList.length }}</span
|
|
|
+ >人
|
|
|
+ </p>
|
|
|
</div>
|
|
|
-
|
|
|
</div>
|
|
|
- <!-- <extraClass :form="eclass"
|
|
|
- class="extraClass"
|
|
|
- ref="eclass"
|
|
|
- :isUserType="true"
|
|
|
- :isCommon="false"
|
|
|
- :isDisabled="true"
|
|
|
- :courseUnitPriceSettingsByType="organizationCourseUnitPriceSettingsByType"
|
|
|
- @priceChange="priceChange"
|
|
|
- @moneyChange="syncAllMoney"/>
|
|
|
- <paymentCycle ref="cycles"
|
|
|
- :form="item"
|
|
|
- :isUserType="false"
|
|
|
- :isCommon="true"
|
|
|
- :isDisabled="true"/> -->
|
|
|
- <el-dialog title="学员列表"
|
|
|
- width="700px"
|
|
|
- :visible.sync="studentListModalVisible"
|
|
|
- append-to-body
|
|
|
- destroy-on-close>
|
|
|
- <viewStudentList :list="studentList" :chioseList='item.studentList' v-if="studentListModalVisible"
|
|
|
- :isChiose='true'
|
|
|
- @close="closeStudentView" />
|
|
|
+
|
|
|
+ <el-dialog
|
|
|
+ title="学员列表"
|
|
|
+ width="700px"
|
|
|
+ :visible.sync="studentListModalVisible"
|
|
|
+ append-to-body
|
|
|
+ destroy-on-close
|
|
|
+ >
|
|
|
+ <viewStudentList
|
|
|
+ :list="studentList"
|
|
|
+ :chioseList="item.studentList"
|
|
|
+ v-if="studentListModalVisible"
|
|
|
+ :isChiose="true"
|
|
|
+ @close="closeStudentView"
|
|
|
+ />
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import { getClassAllStudent } from "@/api/studentManager";
|
|
|
-import viewStudentList from './view-student-list'
|
|
|
+import { getClassGroupSubCourseNum } from "@/api/buildTeam";
|
|
|
+import viewStudentList from "./view-student-list";
|
|
|
import paymentCycle from "@/views/resetTeaming/modals/payment-cycle";
|
|
|
import extraClass from "../../../resetTeaming/modals/extra-class";
|
|
|
export default {
|
|
|
props: ["item", "index", "classList", "form"],
|
|
|
- components:{viewStudentList,paymentCycle,extraClass},
|
|
|
+ components: { viewStudentList, paymentCycle, extraClass },
|
|
|
data() {
|
|
|
return {
|
|
|
studentList: [],
|
|
|
- studentListModalVisible:false,
|
|
|
- organizationCourseUnitPriceSettingsByType:[],
|
|
|
- eclass:[],
|
|
|
-
|
|
|
+ studentListModalVisible: false,
|
|
|
+ organizationCourseUnitPriceSettingsByType: [],
|
|
|
+ eclass: [],
|
|
|
+ isNoCourse: false,
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
- changeValue(val) {
|
|
|
- console.log(val);
|
|
|
+ async changeValue(val) {
|
|
|
+ this.item.studentList = []
|
|
|
+ try {
|
|
|
+ let reset = await getClassGroupSubCourseNum({ classGroupId: val });
|
|
|
+ this.setClassCourse(reset.data);
|
|
|
+ } catch {}
|
|
|
},
|
|
|
deteleClass() {
|
|
|
this.$emit("deteleClass", this.index);
|
|
@@ -117,16 +128,24 @@ export default {
|
|
|
subjectNames: item.subjectName,
|
|
|
};
|
|
|
});
|
|
|
- this.studentListModalVisible = true
|
|
|
+ this.studentListModalVisible = true;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- closeStudentView(list){
|
|
|
- this.item.studentList = list
|
|
|
- this.studentListModalVisible = false
|
|
|
+ closeStudentView(list) {
|
|
|
+ this.item.studentList = list;
|
|
|
+ this.studentListModalVisible = false;
|
|
|
},
|
|
|
- priceChange(){},
|
|
|
- syncAllMoney(){},
|
|
|
+ setClassCourse(data) {
|
|
|
+ if (Object.keys(data).length > 0) {
|
|
|
+
|
|
|
+ this.item.courseList = data;
|
|
|
+ } else {
|
|
|
+ this.isNoCourse = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ priceChange() {},
|
|
|
+ syncAllMoney() {},
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -167,7 +186,4 @@ export default {
|
|
|
flex-direction: row;
|
|
|
justify-content: flex-end;
|
|
|
}
|
|
|
-.extraClass {
|
|
|
- margin-bottom: 20px;
|
|
|
-}
|
|
|
</style>
|