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 bca21b257..27db9141b 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 @@
-
+
@@ -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' },
},
@@ -146,6 +146,11 @@ export default {
onUnload() {
this.OFF('EducationalAdministrationSYS_ReceiveMessage-list-change')
},
+ onShow() {
+ if(this.list.length){
+ this.refreshList(false)
+ }
+ },
methods: {
// 页面初始化
@@ -174,7 +179,7 @@ export default {
{
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序)
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序
- pagination: { rows: 10, page: this.page, sidx: 'MESSAGEID', sord: 'DESC' },
+ pagination: { rows: 10, page: this.page, sidx: 'READFLAG asc,SENDTIME desc', sord: 'DESC' },
queryJson: JSON.stringify(this.searchData)
},
'加载数据时出错'
@@ -226,15 +231,16 @@ export default {
// 点击「清空查询条件」按钮
reset() {
- this.$refs.datefilter.changeDateRange('all')
this.queryData = this.COPY(this.defaultQueryData)
- this.searchChange()
+ this.$refs.datefilter.changeDateRange('all')
+ // this.searchChange()
},
// 点击「编辑」、「查看」、「添加」、「删除」按钮
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 947aaa8eb..a2bf1a9f6 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,13 +13,13 @@
:disabled="!edit"
title="主题"
/>
-
+ /> -->
{fileList = e}"
:readonly="!edit"
:number="9"
title="附件上传"
/>
-
+ /> -->
+ 邮件内容
+
+
+
-
+
@@ -82,14 +100,16 @@ export default {
// 表单数据
current: {},
origin: {},
+
+ fileList:[],
// 表单项数据结构
scheme: {
SYS_ReceiveMessage: {
SENDER: { type: 'text', title: '发件人' },
TITLE: { type: 'text', title: '主题' },
- READFLAG: { type: 'select', title: '状态', dataSource: '0' },
- SENDTIME: { type: 'datetime', title: '收件时间', dateformat: '0' },
+ // READFLAG: { type: 'select', title: '状态', dataSource: '0' },
+ SENDTIME: { type: 'datetime', title: '收件时间', dateformat: '1' },
URL: { type: 'upload', title: '附件上传' },
CONTENTS: { type: 'textarea', title: '邮件内容' },
},
@@ -136,8 +156,17 @@ 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 fileList = await this.getFileListById(result.SYS_ReceiveMessage.FilePath)
+ console.log(fileList)
+ this.fileList = fileList
+
+ this.origin = await this.formatFormData(result)
+ console.log(this.origin)
+ }else{
+ return
+ }
}
this.current = this.COPY(this.origin)
},
@@ -155,11 +184,14 @@ export default {
break
case 'save':
+ console.log(this.fileList)
+
+ // return
const verifyResult = this.verifyForm()
if (verifyResult.length > 0) {
this.CONFIRM('表单验证失败', verifyResult.join('\n'))
return
- }
+ }
if (!(await this.CONFIRM('提交确认', '确定要提交本页表单内容吗?', true))) {
return