Преглед изворни кода

收件箱:修改排序 修改筛选bug 修改筛选字段

娄底高职分支
杨晓琪 пре 2 година
родитељ
комит
8e41777b70
1 измењених фајлова са 9 додато и 9 уклоњено
  1. +9
    -9
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue

+ 9
- 9
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/EducationalAdministration/SYS_ReceiveMessage/list.vue Прегледај датотеку

@@ -57,10 +57,10 @@
/>
<l-input
v-model="queryData.SENDER"
v-model="queryData.keyword"
@change="searchChange"
title ="发件人"
placeholder="按发件人查询"
title ="主题"
placeholder="按主题查询"
/>
<!-- 重置查询条件按钮 -->
@@ -116,7 +116,7 @@ export default {
searchData: {},
defaultQueryData: {},
queryData: {
SENDER: '',
keyword: '',
},
// 数据源
@@ -170,7 +170,7 @@ export default {
},
// 拉取列表
async fetchList() {
async fetchList(isConcat=true) {
if (this.page > this.total) { return }
this.searchData.userId=this.GET_GLOBAL('loginUser').userId;
@@ -189,19 +189,19 @@ export default {
this.total = result.total
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.loadState = result.page >= result.total ? '已加载所有项目' : '向下翻以加载更多'
},
// 刷新清空列表
async refreshList() {
async refreshList(isConcat=true) {
this.page = 1
this.total = 2
this.list = []
await this.fetchList()
await this.fetchList(isConcat)
},
// 列表下拉
@@ -226,7 +226,7 @@ export default {
Object.assign(result, mapValues(queryObj, t => (Array.isArray(t) ? t.join(',') : t)))
this.searchData = result
await this.refreshList()
await this.refreshList(false)
},
// 点击「清空查询条件」按钮


Loading…
Откажи
Сачувај