|
|
@@ -59,7 +59,8 @@ |
|
|
|
@input="setValue('Acc_DailyAssess.ClassNo', $event)" |
|
|
|
:value="getValue('Acc_DailyAssess.ClassNo')" |
|
|
|
:disabled="!edit" |
|
|
|
:range="dataSource.Acc_DailyAssess.ClassNo" |
|
|
|
:range="dataSource.Acc_DailyAssess.ClassNo" |
|
|
|
@change="ClassNoChange" |
|
|
|
title="班级" |
|
|
|
required |
|
|
|
/> |
|
|
@@ -423,6 +424,7 @@ export default { |
|
|
|
} |
|
|
|
this.setValue('Acc_DailyAssess.MajorNo',''); |
|
|
|
this.setValue('Acc_DailyAssess.ClassNo',''); |
|
|
|
this.setValue('Acc_DailyAssess.StuNo',''); |
|
|
|
}, |
|
|
|
//多条件查询:专业改变事件 |
|
|
|
async MajorNoChange(){ |
|
|
@@ -436,6 +438,20 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
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',''); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|