|
|
@@ -188,7 +188,7 @@ export default { |
|
|
|
this.dataSource.Acc_PublicAreaHealth.MajorNo = result.data.sort((a,b)=>{return a.majorno-b.majorno}).map(t => ({ text: t.majorname, value: t.majorno })) |
|
|
|
}), |
|
|
|
this.FETCH_DATASOURCE('bjsj').then(result => { |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
}), |
|
|
|
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { |
|
|
|
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno,classno:t.classno })) |
|
|
@@ -323,11 +323,11 @@ export default { |
|
|
|
async MajorNoChange(){ |
|
|
|
if (this.getValue('Acc_PublicAreaHealth.MajorNo') != null && this.getValue('Acc_PublicAreaHealth.MajorNo')!=undefined && this.getValue('Acc_PublicAreaHealth.MajorNo') != "") { |
|
|
|
this.FETCH_DATASOURCE('bjsj').then(result => { |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).filter(t=>t.majorno===this.getValue('Acc_PublicAreaHealth.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).filter(t=>t.majorno===this.getValue('Acc_PublicAreaHealth.MajorNo')).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.FETCH_DATASOURCE('bjsj').then(result => { |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
this.dataSource.Acc_PublicAreaHealth.ClassNo = result.data.sort((a,b)=>{return b.classno-a.classno}).map(t => ({ text: t.classname, value: t.classno })) |
|
|
|
}) |
|
|
|
} |
|
|
|
this.setValue('Acc_PublicAreaHealth.ClassNo',''); |
|
|
|