Browse Source

app2.0寝室日常 公共区域 学生日常管理处理班级和学生级联的问题

长阳分支推送专用
杨晓琪 2 years ago
parent
commit
e788ecfaa3
4 changed files with 44 additions and 32 deletions
  1. +1
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js
  2. +15
    -9
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue
  3. +14
    -9
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue
  4. +14
    -9
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue

+ 1
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/common/mixins.js View File

@@ -205,11 +205,7 @@ export default {
if (!code) { if (!code) {
return [] return []
} }

return await this.HTTP_GET('learun/adms/datasource/map', {
code,
ver: ''
})
return await this.HTTP_GET('learun/adms/datasource/map', {code,ver: ''})
}, },


// 拉取指定规则编号的表单编码数据 // 拉取指定规则编号的表单编码数据


+ 15
- 9
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_DailyAssess/single.vue View File

@@ -215,7 +215,9 @@ export default {
StuNo:[], StuNo:[],
}, },
}
} ,
StuNoAll:[],
} }
}, },
@@ -259,7 +261,8 @@ export default {
this.dataSource.Acc_DailyAssess.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id })) this.dataSource.Acc_DailyAssess.RId = result.data.sort((a,b)=>{return a.parentid-b.parentid}).map(t => ({ text: t.name, value: t.id }))
}), }),
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno,classno:t.classno }))
this.StuNoAll = JSON.parse(JSON.stringify(this.dataSource.Acc_DailyAssess.StuNo))
}), }),
@@ -442,14 +445,17 @@ export default {
}, },
//多条件查询:班级改变事件 //多条件查询:班级改变事件
async ClassNoChange(){ 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 }))
})
if (!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 }))
// })
this.dataSource.Acc_DailyAssess.StuNo = this.StuNoAll
}else{ }else{
this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
})
// this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
// this.dataSource.Acc_DailyAssess.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
// })
this.dataSource.Acc_DailyAssess.StuNo = this.StuNoAll.filter(t=>t.classno == this.getValue('Acc_DailyAssess.ClassNo'))
} }
this.setValue('Acc_DailyAssess.StuNo',''); this.setValue('Acc_DailyAssess.StuNo','');
}, },


+ 14
- 9
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_PublicAreaHealth/single.vue View File

@@ -157,7 +157,9 @@ export default {
StuNo:[], StuNo:[],
}, },
}
} ,
StuNoAll:[],
} }
}, },
@@ -189,7 +191,8 @@ export default {
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 a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno }))
}), }),
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno,classno:t.classno }))
this.StuNoAll = JSON.parse(JSON.stringify(this.dataSource.Acc_PublicAreaHealth.StuNo))
}), }),
@@ -332,14 +335,16 @@ export default {
}, },
//多条件查询:班级改变事件 //多条件查询:班级改变事件
async ClassNoChange(){ 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 }))
})
if (!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 }))
// })
this.dataSource.Acc_PublicAreaHealth.StuNo = this.StuNoAll
}else{ }else{
this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
})
// this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
// this.dataSource.Acc_PublicAreaHealth.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
// })
this.dataSource.Acc_PublicAreaHealth.StuNo = this.StuNoAll.filter(t=>t.classno == this.getValue('Acc_PublicAreaHealth.ClassNo'))
} }
this.setValue('Acc_PublicAreaHealth.StuNo',''); this.setValue('Acc_PublicAreaHealth.StuNo','');
}, },


+ 14
- 9
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Acc_StuDayRoutine/single.vue View File

@@ -157,7 +157,9 @@ export default {
StuNo:[], StuNo:[],
}, },
}
} ,
StuNoAll:[],
} }
}, },
@@ -189,7 +191,8 @@ export default {
this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno })) this.dataSource.Acc_StuDayRoutine.ClassNo = result.data.sort((a,b)=>{return a.classno-b.classno}).map(t => ({ text: t.classname, value: t.classno }))
}), }),
this.FETCH_DATASOURCE('StuInfoBasic').then(result => { this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno,classno:t.classno }))
this.StuNoAll = JSON.parse(JSON.stringify(this.dataSource.Acc_StuDayRoutine.StuNo))
}), }),
@@ -332,14 +335,16 @@ export default {
}, },
//多条件查询:班级改变事件 //多条件查询:班级改变事件
async ClassNoChange(){ 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 }))
})
if (!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 }))
// })
this.dataSource.Acc_StuDayRoutine.StuNo = this.StuNoAll
}else{ }else{
this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
})
// this.FETCH_DATASOURCE('StuInfoBasic').then(result => {
// this.dataSource.Acc_StuDayRoutine.StuNo = result.data.map(t => ({ text: t.stuname, value: t.stuno }))
// })
this.dataSource.Acc_StuDayRoutine.StuNo = this.StuNoAll.filter(t=>t.classno == this.getValue('Acc_StuDayRoutine.ClassNo'))
} }
this.setValue('Acc_StuDayRoutine.StuNo',''); this.setValue('Acc_StuDayRoutine.StuNo','');
}, },


Loading…
Cancel
Save