Ver código fonte

【修改】移动端宿舍相关:学生与班级联动下拉;

长阳分支推送专用
dyy 2 anos atrás
pai
commit
560221d34c
3 arquivos alterados com 50 adições e 1 exclusões
  1. +17
    -1
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue
  2. +17
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue
  3. +16
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue

+ 17
- 1
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue Ver arquivo

@@ -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','');
},


+ 17
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue Ver arquivo

@@ -24,6 +24,7 @@
:value="getValue('Acc_PublicAreaHealth.ClassNo')"
:disabled="!edit"
:range="dataSource.Acc_PublicAreaHealth.ClassNo"
@change="ClassNoChange"
title="班级"
required
/>
@@ -313,6 +314,7 @@ export default {
}
this.setValue('Acc_PublicAreaHealth.MajorNo','');
this.setValue('Acc_PublicAreaHealth.ClassNo','');
this.setValue('Acc_PublicAreaHealth.StuNo','');
},
//多条件查询:专业改变事件
async MajorNoChange(){
@@ -326,7 +328,22 @@ export default {
})
}
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','');
},
}


+ 16
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue Ver arquivo

@@ -24,6 +24,7 @@
:value="getValue('Acc_StuDayRoutine.ClassNo')"
:disabled="!edit"
:range="dataSource.Acc_StuDayRoutine.ClassNo"
@change="ClassNoChange"
title="班级"
required
/>
@@ -313,6 +314,7 @@ export default {
}
this.setValue('Acc_StuDayRoutine.MajorNo','');
this.setValue('Acc_StuDayRoutine.ClassNo','');
this.setValue('Acc_StuDayRoutine.StuNo','');
},
//多条件查询:专业改变事件
async MajorNoChange(){
@@ -326,6 +328,20 @@ export default {
})
}
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','');
},


Carregando…
Cancelar
Salvar