|
@@ -23,6 +23,7 @@
|
|
:changeRange="changeRange"
|
|
:changeRange="changeRange"
|
|
:proAffix="proAffix"
|
|
:proAffix="proAffix"
|
|
:classTypeList="classTypeList"
|
|
:classTypeList="classTypeList"
|
|
|
|
+ :schStuList="schStuList"
|
|
></a-table>
|
|
></a-table>
|
|
</el-card>
|
|
</el-card>
|
|
</detail-frame>
|
|
</detail-frame>
|
|
@@ -98,6 +99,7 @@ const { mapActions: util } = createNamespacedHelpers('util');
|
|
const { mapActions: school } = createNamespacedHelpers('school');
|
|
const { mapActions: school } = createNamespacedHelpers('school');
|
|
const { mapActions: schPlan } = createNamespacedHelpers('schPlan');
|
|
const { mapActions: schPlan } = createNamespacedHelpers('schPlan');
|
|
const { mapActions: classtype } = createNamespacedHelpers('classtype');
|
|
const { mapActions: classtype } = createNamespacedHelpers('classtype');
|
|
|
|
+const { mapActions: student } = createNamespacedHelpers('student');
|
|
// 表中变量:
|
|
// 表中变量:
|
|
// batch-${batchid}:${batch}
|
|
// batch-${batchid}:${batch}
|
|
// batch_type-${batchid}:${type} 这期是什么类型的班级
|
|
// batch_type-${batchid}:${type} 这期是什么类型的班级
|
|
@@ -126,6 +128,8 @@ export default {
|
|
already: false,
|
|
already: false,
|
|
options: undefined,
|
|
options: undefined,
|
|
classTypeList: [],
|
|
classTypeList: [],
|
|
|
|
+ // 学校学生
|
|
|
|
+ schStuList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
async created() {
|
|
async created() {
|
|
@@ -137,6 +141,7 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...util({ modelFetch: 'fetch' }),
|
|
...util({ modelFetch: 'fetch' }),
|
|
|
|
+ ...student({ getSchoolStudent: 'schoolStudent' }),
|
|
...trainPlan({ getTrainPlan: 'fetch', exportPlan: 'exportSchoolPlan' }),
|
|
...trainPlan({ getTrainPlan: 'fetch', exportPlan: 'exportSchoolPlan' }),
|
|
...school(['query']),
|
|
...school(['query']),
|
|
...schPlan({ schPlanQuery: 'query', createSchPlan: 'create', updateSchPlan: 'update', setSchPlan: 'schArrange' }),
|
|
...schPlan({ schPlanQuery: 'query', createSchPlan: 'create', updateSchPlan: 'update', setSchPlan: 'schArrange' }),
|
|
@@ -741,6 +746,13 @@ export default {
|
|
async getOtherList() {
|
|
async getOtherList() {
|
|
const res = await this.getClassType();
|
|
const res = await this.getClassType();
|
|
if (this.$checkRes(res)) this.$set(this, `classTypeList`, res.data);
|
|
if (this.$checkRes(res)) this.$set(this, `classTypeList`, res.data);
|
|
|
|
+ const { planid } = this.defaultOption;
|
|
|
|
+ const schoolStudent = await this.getSchoolStudent({ planid });
|
|
|
|
+ console.log(schoolStudent);
|
|
|
|
+ if (this.$checkRes(schoolStudent)) {
|
|
|
|
+ const { data } = schoolStudent;
|
|
|
|
+ this.$set(this, `schStuList`, data);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
getProp(data, prop) {
|
|
getProp(data, prop) {
|
|
if (prop.includes('hascar')) {
|
|
if (prop.includes('hascar')) {
|