diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue index d9c18c95e..d6dc6d91c 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue @@ -33,7 +33,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -107,7 +107,7 @@ export default { SENDER: { type: 'text' }, TITLE: { type: 'text' }, READFLAG: { type: 'select', dataSource: '0' }, - SENDTIME: { type: 'datetime', dateformat: '0' }, + SENDTIME: { type: 'datetime', dateformat: '1' }, URL: { type: 'upload' }, CONTENTS: { type: 'textarea' }, }, @@ -174,7 +174,7 @@ export default { { // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 - pagination: { rows: 10, page: this.page, sidx: 'MESSAGEID', sord: 'DESC' }, + pagination: { rows: 10, page: this.page, sidx: 'SENDTIME', sord: 'DESC' }, queryJson: JSON.stringify(this.searchData) }, '加载数据时出错' @@ -235,6 +235,7 @@ export default { async action(type, id = '') { switch (type) { case 'view': + this.HTTP_POST(`learun/adms/EducationalAdministration/SYS_ReceiveMessage/read`,{keyValue:id}) this.NAV_TO(`./single?type=view&id=${id}`) return diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue index 476cbcdad..007e4992e 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/single.vue @@ -13,35 +13,43 @@ :disabled="!edit" title="主题" /> - + /> --> + + + - + /> --> + 邮件内容 + + + - + 提交保存 @@ -49,7 +57,7 @@ 取消编辑 - + 删除 @@ -95,13 +103,15 @@ export default { // 表单数据 current: {}, origin: {}, + + fileList:[], // 表单项数据结构 scheme: { SYS_ReceiveMessage: { SENDER: { type: 'text', title: '发件人' }, TITLE: { type: 'text', title: '主题' }, - READFLAG: { type: 'select', title: '状态', dataSource: '0' }, + // READFLAG: { type: 'select', title: '状态', dataSource: '0' }, SENDTIME: { type: 'datetime', title: '收件时间', dateformat: '0' }, URL: { type: 'upload', title: '附件上传' }, CONTENTS: { type: 'textarea', title: '邮件内容' }, @@ -149,8 +159,37 @@ export default { if (this.mode === 'create') { this.origin = await this.getDefaultForm() } else { - const result = await this.HTTP_GET('learun/adms/EducationalAdministration/SYS_ReceiveMessage/form', this.id) - this.origin = await this.formatFormData(result) + const result = await this.HTTP_GET('learun/adms/EducationalAdministration/SYS_ReceiveMessage/form', this.id) + if(result){ + + let wxlist = await this.FETCH_FILEList(result.SYS_ReceiveMessage.FilePath),fileList = [] + for (const wxfile of wxlist) { + const fileInfo = await this.FETCH_FILEINFO(wxfile.F_Id) + if (!fileInfo) { + continue + } + + const fileType = fileInfo.F_FileType + const fileSize = fileInfo.F_FileSize + + const path = this.API + '/learun/adms/annexes/wxdown?' + this.URL_QUERY(wxfile.F_Id, true) + fileList.push({ + path, + type: fileType, + uid:wxfile.F_Id, + folderId:wxfile.F_FolderId, + size: fileSize + }) + } + console.log(fileList) + this.fileList = fileList + + this.origin = await this.formatFormData(result) + console.log(this.origin) + }else{ + return + } + } this.current = this.COPY(this.origin) }, diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue index ab1414bcd..684efb793 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/Sys_ReceiveFile/list.vue @@ -65,12 +65,12 @@ class="margin-bottom" /> - + /> --> +