|
|
@@ -163,6 +163,11 @@ export default { |
|
|
|
onUnload() { |
|
|
|
this.OFF('EducationalAdministrationSys_ReceiveFile-list-change') |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
if(this.list.length){ |
|
|
|
this.refreshList() |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 页面初始化 |
|
|
@@ -184,13 +189,13 @@ export default { |
|
|
|
// 拉取列表 |
|
|
|
async fetchList() { |
|
|
|
if (this.page > this.total) { return } |
|
|
|
this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId; |
|
|
|
this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId; |
|
|
|
const result = await this.HTTP_GET( |
|
|
|
'learun/adms/EducationalAdministration/Sys_ReceiveFile/pagelist', |
|
|
|
{ |
|
|
|
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) |
|
|
|
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 |
|
|
|
pagination: { rows: 10, page: this.page, sidx: 'RFileId', sord: 'DESC' }, |
|
|
|
pagination: { rows: 10, page: this.page, sidx: 'SendTime desc,SendStatus asc', sord: 'DESC' }, |
|
|
|
queryJson: JSON.stringify(this.searchData) |
|
|
|
}, |
|
|
|
'加载数据时出错' |
|
|
@@ -307,14 +312,14 @@ this.searchData.ReceiverId=this.GET_GLOBAL('loginUser').userId; |
|
|
|
default: return value === null || value === undefined ? '' : value |
|
|
|
} |
|
|
|
}, |
|
|
|
showStatus(item){ |
|
|
|
console.log(item); |
|
|
|
if(item.SendStatus==true){ |
|
|
|
return "已查阅"; |
|
|
|
}else{ |
|
|
|
return "未查阅" |
|
|
|
} |
|
|
|
} |
|
|
|
showStatus(item){ |
|
|
|
console.log(item); |
|
|
|
if(item.SendStatus==true){ |
|
|
|
return "已查阅"; |
|
|
|
}else{ |
|
|
|
return "未查阅" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|