From 386aa373e19d7ec38dee679bb4453234b13a59ec Mon Sep 17 00:00:00 2001 From: yxq Date: Wed, 20 Nov 2024 16:42:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8C=96=E5=8A=9E=E5=85=AC?= =?UTF-8?q?=E8=AE=BE=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficeEquipment/list.vue | 14 ++-- .../OfficeEquipment/single.vue | 64 ++++++++++--------- 2 files changed, 42 insertions(+), 36 deletions(-) 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 b2f91f4e9..d09d34f1e 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 @@ -13,7 +13,7 @@ 使用管理人: - {{ displayListItem(item, 'JZGNo') }} + {{ displayListItem(item, 'UserId') }} @@ -157,7 +157,7 @@ return { // 数据项的数据类型、结构 scheme: { - JZGNo: { + UserId: { type: 'select' }, Department: { @@ -204,7 +204,7 @@ // 数据源 dataSource: { - JZGNo: [], + UserId: [], Department: [], Types: Object.values(this.GET_GLOBAL('dataDictionary').AssType).map(t => ({ value: t.value, @@ -247,9 +247,9 @@ // 拉取加载列表和数据源 await Promise.all([ this.FETCH_DATASOURCE('teacheruserdata').then(result => { - this.dataSource.JZGNo = result.data.map(t => ({ + this.dataSource.UserId = result.data.map(t => ({ text: t.f_realname, - value: t.f_encode, + value: t.f_userid, f_encode: t.f_encode, f_userid: t.f_userid, })); @@ -333,9 +333,9 @@ // 姓名格式化 if (this.searchData.Name_) { - let arr = this.dataSource.JZGNo + let arr = this.dataSource.UserId let obj = arr.find(e => e.f_userid == this.queryData.Name_) - this.searchData.JZGNo = obj ? obj.text : '' + this.searchData.UserId = obj ? obj.text : '' } await this.refreshList(false) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/single.vue index 4b14e9264..42dcdb327 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/OfficeEquipment/single.vue @@ -1,36 +1,36 @@