diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/list.vue index bb413931e..5efb2bb54 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/list.vue @@ -75,10 +75,14 @@ - + + + @@ -179,14 +183,15 @@ methods: { // 页面初始化 async init() { - console.log(this.GET_GLOBAL('user')) this.ON('EducationalAdministration_OfficeEquipment-list-change', this.reset) // 拉取加载列表和数据源 await Promise.all([ this.FETCH_DATASOURCE('teacheruserdata').then(result => { this.dataSource.Name = result.data.map(t => ({ text: t.f_realname, - value: t.f_encode + value: t.f_encode, + f_encode: t.f_encode, + f_userid: t.f_userid, })); }), this.FETCH_DATASOURCE('classdata').then(result => { @@ -259,11 +264,21 @@ result.StartTime = this.dateRange.start result.EndTime = this.dateRange.end } + // 将其他查询项添加到查询 JSON 中 const queryObj = pickBy(this.queryData, t => (Array.isArray(t) ? t.length > 0 : t)) Object.assign(result, mapValues(queryObj, t => (Array.isArray(t) ? t.join(',') : t))) this.searchData = result + + + // 姓名格式化 + if(this.searchData.Name_){ + let arr = this.dataSource.Name + let obj = arr.find(e => e.f_userid == this.queryData.Name_) + this.searchData.Name = obj ? obj.f_encode : '' + } + await this.refreshList(false) }, @@ -293,14 +308,15 @@ return } - this.HTTP_POST('/Learun/adms/EducationalAdministration/officeEquipment/delete', id, '删除失败').then( - success => { - if (!success) { - return - } - this.TOAST('删除成功', 'success') - this.refreshList() - }) + this.HTTP_POST('/Learun/adms/EducationalAdministration/officeEquipment/delete', id, '删除失败') + .then( + success => { + if (!success) { + return + } + this.TOAST('删除成功', 'success') + this.refreshList() + }) return default: