@@ -59,7 +59,8 @@ | |||||
@input="setValue('Acc_DailyAssess.ClassNo', $event)" | @input="setValue('Acc_DailyAssess.ClassNo', $event)" | ||||
:value="getValue('Acc_DailyAssess.ClassNo')" | :value="getValue('Acc_DailyAssess.ClassNo')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
:range="dataSource.Acc_DailyAssess.ClassNo" | |||||
:range="dataSource.Acc_DailyAssess.ClassNo" | |||||
@change="ClassNoChange" | |||||
title="班级" | title="班级" | ||||
required | required | ||||
/> | /> | ||||
@@ -423,6 +424,7 @@ export default { | |||||
} | } | ||||
this.setValue('Acc_DailyAssess.MajorNo',''); | this.setValue('Acc_DailyAssess.MajorNo',''); | ||||
this.setValue('Acc_DailyAssess.ClassNo',''); | this.setValue('Acc_DailyAssess.ClassNo',''); | ||||
this.setValue('Acc_DailyAssess.StuNo',''); | |||||
}, | }, | ||||
//多条件查询:专业改变事件 | //多条件查询:专业改变事件 | ||||
async MajorNoChange(){ | async MajorNoChange(){ | ||||
@@ -436,6 +438,20 @@ export default { | |||||
}) | }) | ||||
} | } | ||||
this.setValue('Acc_DailyAssess.ClassNo',''); | this.setValue('Acc_DailyAssess.ClassNo',''); | ||||
this.setValue('Acc_DailyAssess.StuNo',''); | |||||
}, | |||||
//多条件查询:班级改变事件 | |||||
async ClassNoChange(){ | |||||
if (this.getValue('Acc_DailyAssess.ClassNo') != null && this.getValue('Acc_DailyAssess.ClassNo')!=undefined && this.getValue('Acc_DailyAssess.ClassNo') != "") { | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_DailyAssess.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_DailyAssess.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
}else{ | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
} | |||||
this.setValue('Acc_DailyAssess.StuNo',''); | |||||
}, | }, | ||||
@@ -24,6 +24,7 @@ | |||||
:value="getValue('Acc_PublicAreaHealth.ClassNo')" | :value="getValue('Acc_PublicAreaHealth.ClassNo')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
:range="dataSource.Acc_PublicAreaHealth.ClassNo" | :range="dataSource.Acc_PublicAreaHealth.ClassNo" | ||||
@change="ClassNoChange" | |||||
title="班级" | title="班级" | ||||
required | required | ||||
/> | /> | ||||
@@ -313,6 +314,7 @@ export default { | |||||
} | } | ||||
this.setValue('Acc_PublicAreaHealth.MajorNo',''); | this.setValue('Acc_PublicAreaHealth.MajorNo',''); | ||||
this.setValue('Acc_PublicAreaHealth.ClassNo',''); | this.setValue('Acc_PublicAreaHealth.ClassNo',''); | ||||
this.setValue('Acc_PublicAreaHealth.StuNo',''); | |||||
}, | }, | ||||
//多条件查询:专业改变事件 | //多条件查询:专业改变事件 | ||||
async MajorNoChange(){ | async MajorNoChange(){ | ||||
@@ -326,7 +328,22 @@ export default { | |||||
}) | }) | ||||
} | } | ||||
this.setValue('Acc_PublicAreaHealth.ClassNo',''); | this.setValue('Acc_PublicAreaHealth.ClassNo',''); | ||||
this.setValue('Acc_PublicAreaHealth.StuNo',''); | |||||
}, | }, | ||||
//多条件查询:班级改变事件 | |||||
async ClassNoChange(){ | |||||
if (this.getValue('Acc_PublicAreaHealth.ClassNo') != null && this.getValue('Acc_PublicAreaHealth.ClassNo')!=undefined && this.getValue('Acc_PublicAreaHealth.ClassNo') != "") { | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_PublicAreaHealth.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
}else{ | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
} | |||||
this.setValue('Acc_PublicAreaHealth.StuNo',''); | |||||
}, | |||||
} | } | ||||
@@ -24,6 +24,7 @@ | |||||
:value="getValue('Acc_StuDayRoutine.ClassNo')" | :value="getValue('Acc_StuDayRoutine.ClassNo')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
:range="dataSource.Acc_StuDayRoutine.ClassNo" | :range="dataSource.Acc_StuDayRoutine.ClassNo" | ||||
@change="ClassNoChange" | |||||
title="班级" | title="班级" | ||||
required | required | ||||
/> | /> | ||||
@@ -313,6 +314,7 @@ export default { | |||||
} | } | ||||
this.setValue('Acc_StuDayRoutine.MajorNo',''); | this.setValue('Acc_StuDayRoutine.MajorNo',''); | ||||
this.setValue('Acc_StuDayRoutine.ClassNo',''); | this.setValue('Acc_StuDayRoutine.ClassNo',''); | ||||
this.setValue('Acc_StuDayRoutine.StuNo',''); | |||||
}, | }, | ||||
//多条件查询:专业改变事件 | //多条件查询:专业改变事件 | ||||
async MajorNoChange(){ | async MajorNoChange(){ | ||||
@@ -326,6 +328,20 @@ export default { | |||||
}) | }) | ||||
} | } | ||||
this.setValue('Acc_StuDayRoutine.ClassNo',''); | this.setValue('Acc_StuDayRoutine.ClassNo',''); | ||||
this.setValue('Acc_StuDayRoutine.StuNo',''); | |||||
}, | |||||
//多条件查询:班级改变事件 | |||||
async ClassNoChange(){ | |||||
if (this.getValue('Acc_StuDayRoutine.ClassNo') != null && this.getValue('Acc_StuDayRoutine')!=undefined && this.getValue('Acc_StuDayRoutine.ClassNo') != "") { | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_StuDayRoutine.StuNo = result.data.filter(t=>t.classno===this.getValue('Acc_StuDayRoutine.ClassNo')).map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
}else{ | |||||
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { | |||||
this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno })) | |||||
}) | |||||
} | |||||
this.setValue('Acc_StuDayRoutine.StuNo',''); | |||||
}, | }, | ||||