|
@@ -1,4 +1,4 @@ |
|
|
<template> |
|
|
|
|
|
|
|
|
<template> |
|
|
<view class="page"> |
|
|
<view class="page"> |
|
|
<!-- 主列表页 --> |
|
|
<!-- 主列表页 --> |
|
|
<view |
|
|
<view |
|
@@ -41,33 +41,38 @@ |
|
|
{{ displayListItem(item, "EndTime") }} |
|
|
{{ displayListItem(item, "EndTime") }} |
|
|
</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, "CreateUser") }} |
|
|
{{ displayListItem(item, "CreateUser") }} |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="customlist-item-field"> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
<view class="customlist-item-field"> |
|
|
|
|
|
<text class="customlist-item-field-title">会议状态:</text> |
|
|
|
|
|
{{ displayListItem(item, "CheckStatus") }} |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="customlist-item-field"> |
|
|
<text class="customlist-item-field-title">会议记录者:</text> |
|
|
<text class="customlist-item-field-title">会议记录者:</text> |
|
|
{{ displayListItem(item, "RecordPerson") }} |
|
|
{{ displayListItem(item, "RecordPerson") }} |
|
|
</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, "Content") }} |
|
|
{{ displayListItem(item, "Content") }} |
|
|
</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, "Files") }} |
|
|
{{ displayListItem(item, "Files") }} |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- showButton |
|
|
|
|
|
buttonText="会议纪要" --> |
|
|
<l-customlist-action |
|
|
<l-customlist-action |
|
|
showButton |
|
|
|
|
|
buttonText="会议纪要" |
|
|
|
|
|
@join="action('join', item.Id)" |
|
|
@join="action('join', item.Id)" |
|
|
showEdit |
|
|
|
|
|
|
|
|
:showEdit="item.CheckStatus=='0'" |
|
|
@edit="action('edit', item.Id)" |
|
|
@edit="action('edit', item.Id)" |
|
|
showDelete |
|
|
|
|
|
|
|
|
:showDelete="item.CheckStatus=='0'" |
|
|
@delete="action('delete', item.Id)" |
|
|
@delete="action('delete', item.Id)" |
|
|
@view="action('view', item.Id)" |
|
|
@view="action('view', item.Id)" |
|
|
/> |
|
|
/> |
|
@@ -101,13 +106,13 @@ |
|
|
title="会议地点" |
|
|
title="会议地点" |
|
|
placeholder="按会议地点查询" |
|
|
placeholder="按会议地点查询" |
|
|
/> |
|
|
/> |
|
|
<l-organize-picker |
|
|
|
|
|
|
|
|
<!-- <l-organize-picker |
|
|
v-model="queryData.CreateUser" |
|
|
v-model="queryData.CreateUser" |
|
|
@change="searchChange" |
|
|
@change="searchChange" |
|
|
type="user" |
|
|
type="user" |
|
|
title="申请人" |
|
|
title="申请人" |
|
|
placeholder="按申请人查询" |
|
|
placeholder="按申请人查询" |
|
|
/> |
|
|
|
|
|
|
|
|
/> --> |
|
|
|
|
|
|
|
|
<!-- 重置查询条件按钮 --> |
|
|
<!-- 重置查询条件按钮 --> |
|
|
<view class="padding-tb"> |
|
|
<view class="padding-tb"> |
|
@@ -153,12 +158,13 @@ export default { |
|
|
scheme: { |
|
|
scheme: { |
|
|
MeetingTitle: { type: "text" }, |
|
|
MeetingTitle: { type: "text" }, |
|
|
MeetingPlace: { type: "select", dataSource: "0" }, |
|
|
MeetingPlace: { type: "select", dataSource: "0" }, |
|
|
BeginTime: { type: "datetime", dateformat: "0" }, |
|
|
|
|
|
EndTime: { type: "datetime", dateformat: "0" }, |
|
|
|
|
|
|
|
|
BeginTime: { type: "datetime", dateformat: "1" }, |
|
|
|
|
|
EndTime: { type: "datetime", dateformat: "1" }, |
|
|
RecordPerson: { type: "organize", dataType: "user" }, |
|
|
RecordPerson: { type: "organize", dataType: "user" }, |
|
|
Content: { type: "texteditor" }, |
|
|
Content: { type: "texteditor" }, |
|
|
Files: { type: "upload" }, |
|
|
Files: { type: "upload" }, |
|
|
CreateUser: { type: "organize", dataType: "user" }, |
|
|
|
|
|
|
|
|
// CreateUser: { type: "organize", dataType: "user" }, |
|
|
|
|
|
CheckStatus:{ type: "select"}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 查询条件 |
|
|
// 查询条件 |
|
@@ -167,12 +173,30 @@ export default { |
|
|
queryData: { |
|
|
queryData: { |
|
|
MeetingTitle: "", |
|
|
MeetingTitle: "", |
|
|
MeetingPlace: "", |
|
|
MeetingPlace: "", |
|
|
CreateUser: "", |
|
|
|
|
|
|
|
|
// CreateUser: "", |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 数据源 |
|
|
// 数据源 |
|
|
dataSource: { |
|
|
dataSource: { |
|
|
MeetingPlace: [], |
|
|
MeetingPlace: [], |
|
|
|
|
|
CheckStatus:[ |
|
|
|
|
|
{ |
|
|
|
|
|
value:'0', |
|
|
|
|
|
text:"未审核" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
value:'1', |
|
|
|
|
|
text:"已通过" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
value:'2', |
|
|
|
|
|
text:"未通过" |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
value:'3', |
|
|
|
|
|
text:"审核中" |
|
|
|
|
|
}, |
|
|
|
|
|
] |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 页面相关参数 |
|
|
// 页面相关参数 |
|
@@ -204,7 +228,11 @@ export default { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
// 拉取加载列表和数据源 |
|
|
// 拉取加载列表和数据源 |
|
|
await Promise.all([() => {}]); |
|
|
|
|
|
|
|
|
await Promise.all([ |
|
|
|
|
|
this.FETCH_DATASOURCE('ConferenceRoom').then(result => { |
|
|
|
|
|
this.dataSource.MeetingPlace = result.data.map(t => ({ text: t.name, value: t.id })) |
|
|
|
|
|
}), |
|
|
|
|
|
]); |
|
|
await this.fetchList(); |
|
|
await this.fetchList(); |
|
|
// 初始化查询条件 |
|
|
// 初始化查询条件 |
|
|
this.defaultQueryData = this.COPY(this.queryData); |
|
|
this.defaultQueryData = this.COPY(this.queryData); |
|
@@ -212,7 +240,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 拉取列表 |
|
|
// 拉取列表 |
|
|
async fetchList() { |
|
|
|
|
|
|
|
|
async fetchList(isConcat=true) { |
|
|
if (this.page > this.total) { |
|
|
if (this.page > this.total) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
@@ -222,7 +250,7 @@ export default { |
|
|
{ |
|
|
{ |
|
|
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) |
|
|
// 这里 sidx 表示排序字段,sord 表示排序方式(DESC=降序,ASC=升序) |
|
|
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 |
|
|
// 代码生成器生成时默认按照主键排序,您可以修改成按创建时间的字段降序 |
|
|
pagination: { rows: 10, page: this.page, sidx: "Id", sord: "DESC" }, |
|
|
|
|
|
|
|
|
pagination: { rows: 10, page: this.page, sidx: "CreateTime", sord: "DESC" }, |
|
|
queryJson: JSON.stringify(this.searchData), |
|
|
queryJson: JSON.stringify(this.searchData), |
|
|
}, |
|
|
}, |
|
|
"加载数据时出错" |
|
|
"加载数据时出错" |
|
@@ -234,7 +262,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 |
|
@@ -244,12 +272,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); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 列表下拉 |
|
|
// 列表下拉 |
|
@@ -273,7 +301,7 @@ export default { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
this.searchData = result; |
|
|
this.searchData = result; |
|
|
await this.refreshList(); |
|
|
|
|
|
|
|
|
await this.refreshList(false); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 点击「清空查询条件」按钮 |
|
|
// 点击「清空查询条件」按钮 |
|
|