@@ -146,6 +146,11 @@ export default { | |||||
onUnload() { | onUnload() { | ||||
this.OFF('EducationalAdministrationSYS_ReceiveMessage-list-change') | this.OFF('EducationalAdministrationSYS_ReceiveMessage-list-change') | ||||
}, | }, | ||||
onShow() { | |||||
if(this.list.length){ | |||||
this.refreshList(false) | |||||
} | |||||
}, | |||||
methods: { | methods: { | ||||
// 页面初始化 | // 页面初始化 | ||||
@@ -174,7 +179,7 @@ export default { | |||||
{ | { | ||||
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | ||||
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | ||||
pagination: { rows: 10, page: this.page, sidx: 'SENDTIME', sord: 'DESC' }, | |||||
pagination: { rows: 10, page: this.page, sidx: 'READFLAG asc,SENDTIME desc', sord: 'DESC' }, | |||||
queryJson: JSON.stringify(this.searchData) | queryJson: JSON.stringify(this.searchData) | ||||
}, | }, | ||||
'加载数据时出错' | '加载数据时出错' | ||||
@@ -121,7 +121,7 @@ export default { | |||||
scheme: { | scheme: { | ||||
Sender: { type: 'text' }, | Sender: { type: 'text' }, | ||||
Title: { type: 'text' }, | Title: { type: 'text' }, | ||||
SendTime: { type: 'datetime', dateformat: '0' }, | |||||
SendTime: { type: 'datetime', dateformat: '1' }, | |||||
SendType: { type: 'select', itemCode: 'FileSendType', dataSource: '0' }, | SendType: { type: 'select', itemCode: 'FileSendType', dataSource: '0' }, | ||||
ReadFlag: { type: 'select', dataSource: '0' }, | ReadFlag: { type: 'select', dataSource: '0' }, | ||||
ReadTime: { type: 'datetime', dateformat: '1' }, | ReadTime: { type: 'datetime', dateformat: '1' }, | ||||
@@ -165,7 +165,7 @@ export default { | |||||
}, | }, | ||||
onShow() { | onShow() { | ||||
if(this.list.length){ | if(this.list.length){ | ||||
this.refreshList() | |||||
this.refreshList(false) | |||||
} | } | ||||
}, | }, | ||||
@@ -187,7 +187,7 @@ export default { | |||||
}, | }, | ||||
// 拉取列表 | // 拉取列表 | ||||
async fetchList() { | |||||
async fetchList(isConcat=true) { | |||||
if (this.page > this.total) { return } | 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( | const result = await this.HTTP_GET( | ||||
@@ -195,7 +195,7 @@ export default { | |||||
{ | { | ||||
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | // 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) | ||||
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | // 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 | ||||
pagination: { rows: 10, page: this.page, sidx: 'SendTime desc,SendStatus asc', sord: 'DESC' }, | |||||
pagination: { rows: 10, page: this.page, sidx: 'SendStatus asc,SendTime desc', sord: 'DESC' }, | |||||
queryJson: JSON.stringify(this.searchData) | queryJson: JSON.stringify(this.searchData) | ||||
}, | }, | ||||
'加载数据时出错' | '加载数据时出错' | ||||
@@ -205,19 +205,19 @@ export default { | |||||
this.total = result.total | this.total = result.total | ||||
this.page = result.page + 1 | this.page = result.page + 1 | ||||
this.list = this.list.concat(result.rows) | |||||
this.list = isConcat?this.list.concat(result.rows):result.rows | |||||
this.tips = `已加载 ${Math.min(result.page, result.total)} / ${result.total} 页,共 ${result.records} 项` | this.tips = `已加载 ${Math.min(result.page, result.total)} / ${result.total} 页,共 ${result.records} 项` | ||||
this.loadState = result.page >= result.total ? '已加载所有项目' : '向下翻以加载更多' | this.loadState = result.page >= result.total ? '已加载所有项目' : '向下翻以加载更多' | ||||
}, | }, | ||||
// 刷新清空列表 | // 刷新清空列表 | ||||
async refreshList() { | |||||
async refreshList(isConcat=true) { | |||||
this.page = 1 | this.page = 1 | ||||
this.total = 2 | this.total = 2 | ||||
this.list = [] | this.list = [] | ||||
await this.fetchList() | |||||
await this.fetchList(isConcat) | |||||
}, | }, | ||||
// 列表下拉 | // 列表下拉 | ||||
@@ -242,7 +242,7 @@ export default { | |||||
Object.assign(result, mapValues(queryObj, t => (Array.isArray(t) ? t.join(',') : t))) | Object.assign(result, mapValues(queryObj, t => (Array.isArray(t) ? t.join(',') : t))) | ||||
this.searchData = result | this.searchData = result | ||||
await this.refreshList() | |||||
await this.refreshList(false) | |||||
}, | }, | ||||
// 点击「清空查询条件」按钮 | // 点击「清空查询条件」按钮 | ||||
@@ -26,10 +26,14 @@ | |||||
{{ displayListItem(item, "MeetingTitle") }} | {{ displayListItem(item, "MeetingTitle") }} | ||||
</view> | </view> | ||||
<view class="customlist-item-field"> | |||||
<!-- <view class="customlist-item-field"> | |||||
<text class="customlist-item-field-title">会议地点:</text> | <text class="customlist-item-field-title">会议地点:</text> | ||||
{{ displayListItem(item, "MeetingPlace") }} | {{ displayListItem(item, "MeetingPlace") }} | ||||
</view> | |||||
</view> --> | |||||
<view class="customlist-item-field"> | |||||
<text class="customlist-item-field-title">会议地点:</text> | |||||
{{ displayListItem(item, "ConferenceRoomName") }} | |||||
</view> | |||||
<view class="customlist-item-field"> | <view class="customlist-item-field"> | ||||
<text class="customlist-item-field-title">开始时间:</text> | <text class="customlist-item-field-title">开始时间:</text> | ||||
@@ -159,7 +163,8 @@ export default { | |||||
// 数据项的数据类型、结构 | // 数据项的数据类型、结构 | ||||
scheme: { | scheme: { | ||||
MeetingTitle: { type: "text" }, | MeetingTitle: { type: "text" }, | ||||
MeetingPlace: { type: "select", dataSource: "0" }, | |||||
// MeetingPlace: { type: "select", dataSource: "0" }, | |||||
ConferenceRoomName: { type: "text"}, | |||||
BeginTime: { type: "datetime", dateformat: "1" }, | BeginTime: { type: "datetime", dateformat: "1" }, | ||||
EndTime: { type: "datetime", dateformat: "1" }, | EndTime: { type: "datetime", dateformat: "1" }, | ||||
RecordPerson: { type: "organize", dataType: "user" }, | RecordPerson: { type: "organize", dataType: "user" }, | ||||
@@ -180,7 +185,7 @@ export default { | |||||
// 数据源 | // 数据源 | ||||
dataSource: { | dataSource: { | ||||
MeetingPlace: [], | |||||
// MeetingPlace: [], | |||||
}, | }, | ||||
// 页面相关参数 | // 页面相关参数 | ||||
@@ -220,7 +225,7 @@ export default { | |||||
}, | }, | ||||
// 拉取列表 | // 拉取列表 | ||||
async fetchList() { | |||||
async fetchList(isConcat=true) { | |||||
if (this.page > this.total) { | if (this.page > this.total) { | ||||
return; | return; | ||||
} | } | ||||
@@ -248,7 +253,7 @@ export default { | |||||
this.total = result.total; | this.total = result.total; | ||||
this.page = result.page + 1; | this.page = result.page + 1; | ||||
this.list = this.list.concat(result.rows); | |||||
this.list = isConcat?this.list.concat(result.rows):result.rows; | |||||
this.tips = `已加载 ${Math.min(result.page, result.total)} / ${ | this.tips = `已加载 ${Math.min(result.page, result.total)} / ${ | ||||
result.total | result.total | ||||
@@ -258,12 +263,12 @@ export default { | |||||
}, | }, | ||||
// 刷新清空列表 | // 刷新清空列表 | ||||
async refreshList() { | |||||
async refreshList(isConcat=true) { | |||||
this.page = 1; | this.page = 1; | ||||
this.total = 2; | this.total = 2; | ||||
this.list = []; | this.list = []; | ||||
await this.fetchList(); | |||||
await this.fetchList(isConcat); | |||||
}, | }, | ||||
// 列表下拉 | // 列表下拉 | ||||
@@ -287,7 +292,7 @@ export default { | |||||
); | ); | ||||
this.searchData = result; | this.searchData = result; | ||||
await this.refreshList(); | |||||
await this.refreshList(false); | |||||
}, | }, | ||||
// 点击「清空查询条件」按钮 | // 点击「清空查询条件」按钮 | ||||
@@ -311,7 +316,6 @@ export default { | |||||
this.NAV_TO(`./single?type=edit&id=${id}`); | this.NAV_TO(`./single?type=edit&id=${id}`); | ||||
return; | return; | ||||
case "join": | case "join": | ||||
console.log(123); | |||||
this.NAV_TO(`/pages/PersonnelManagement/MeetingMinutes/list?meetId=${id}`); | this.NAV_TO(`/pages/PersonnelManagement/MeetingMinutes/list?meetId=${id}`); | ||||
return; | return; | ||||
@@ -7,13 +7,19 @@ | |||||
:disabled="!edit" | :disabled="!edit" | ||||
title="会议主题" | title="会议主题" | ||||
/> | /> | ||||
<l-select | |||||
<!-- <l-select | |||||
@input="setValue('MeetingManagement.MeetingPlace', $event)" | @input="setValue('MeetingManagement.MeetingPlace', $event)" | ||||
:value="getValue('MeetingManagement.MeetingPlace')" | :value="getValue('MeetingManagement.MeetingPlace')" | ||||
:disabled="!edit" | :disabled="!edit" | ||||
:range="dataSource.MeetingManagement.MeetingPlace" | :range="dataSource.MeetingManagement.MeetingPlace" | ||||
title="会议地点" | title="会议地点" | ||||
/> | |||||
/> --> | |||||
<l-input | |||||
@input="setValue('MeetingManagement.ConferenceRoomName', $event)" | |||||
:value="getValue('MeetingManagement.ConferenceRoomName')" | |||||
:disabled="!edit" | |||||
title="会议地点" | |||||
/> | |||||
<l-date-picker | <l-date-picker | ||||
@input="setValue('MeetingManagement.BeginTime', $event)" | @input="setValue('MeetingManagement.BeginTime', $event)" | ||||
:value="getValue('MeetingManagement.BeginTime')" | :value="getValue('MeetingManagement.BeginTime')" | ||||
@@ -123,7 +129,8 @@ export default { | |||||
scheme: { | scheme: { | ||||
MeetingManagement: { | MeetingManagement: { | ||||
MeetingTitle: { type: 'text', title: '会议主题' }, | MeetingTitle: { type: 'text', title: '会议主题' }, | ||||
MeetingPlace: { type: 'select', title: '会议地点', dataSource: '0' }, | |||||
// MeetingPlace: { type: 'select', title: '会议地点', dataSource: '0' }, | |||||
ConferenceRoomName: { type: "text"}, | |||||
BeginTime: { type: 'datetime', title: '开始时间', dateformat: '1' }, | BeginTime: { type: 'datetime', title: '开始时间', dateformat: '1' }, | ||||
EndTime: { type: 'datetime', title: '结束时间', dateformat: '1' }, | EndTime: { type: 'datetime', title: '结束时间', dateformat: '1' }, | ||||
RecordPerson: { type: 'organize', title: '会议记录者', dataType: 'user' }, | RecordPerson: { type: 'organize', title: '会议记录者', dataType: 'user' }, | ||||
@@ -137,7 +144,7 @@ export default { | |||||
// 数据源 | // 数据源 | ||||
dataSource: { | dataSource: { | ||||
MeetingManagement: { | MeetingManagement: { | ||||
MeetingPlace: [], | |||||
// MeetingPlace: [], | |||||
}, | }, | ||||
} | } | ||||