Browse Source

app流程发起增加分类筛选

黑艺新账号
yxq 1 year ago
parent
commit
7a6a296973
1 changed files with 39 additions and 5 deletions
  1. +39
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/list.vue

+ 39
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/nworkflow/releasetask/list.vue View File

@@ -1,15 +1,19 @@
<template> <template>
<view class="page" style="height: 100%; padding-top: 100rpx;">
<view>
<view :class="sideOpen ? 'show' : ''" class="page mainpage" style="height: 100%; padding-top: 100rpx;">
<!-- 顶部搜索栏 --> <!-- 顶部搜索栏 -->
<l-banner <l-banner
v-model="searchText" v-model="searchText"
@change="searchChange" @change="searchChange"
placeholder="搜索流程模板名" placeholder="搜索流程模板名"
type="search" type="search"
noSearchButton
noshadow
fill fill
fixed fixed
/>
>
<l-icon @click="sideOpen = true" slot="searchButton" type="searchlist" color="blue" class="text-xxl" />
</l-banner>


<!-- 下拉刷新滚动区 --> <!-- 下拉刷新滚动区 -->
<l-scroll-list @pullDown="pullDown" @toBottom="fetchList()" ref="list"> <l-scroll-list @pullDown="pullDown" @toBottom="fetchList()" ref="list">
@@ -29,20 +33,41 @@
</l-list> </l-list>
</l-scroll-list> </l-scroll-list>
</view> </view>
<view @click="sideOpen = false" :class="sideOpen ? 'show' : ''" class="sideclose">
<l-icon type="pullright" color="blue" />
</view>
<!-- 侧边栏 -->
<scroll-view :class="sideOpen ? 'show' : ''" class="sidepage" scroll-y>
<view class="padding">
<l-select v-model="query.category" @input="e=>{query.category=e}" @change="searchChange" title="流程分类" :range="FlowSortOptions"></l-select>
<!-- 重置查询条件按钮 -->
<view class="padding-tb">
<l-button @click="reset" line="orange" class="block" block>重置查询条件</l-button>
</view>
</view>
</scroll-view>
</view>
</template> </template>


<script> <script>
export default { export default {
data() { data() {
return { return {
query:{},
searchData: {}, searchData: {},
searchText: '', searchText: '',
loadState: '向下翻以加载更多', loadState: '向下翻以加载更多',
sideOpen: false,


page: 1, page: 1,
total: 2, total: 2,


list: []
list: [],
FlowSortOptions:[],
} }
}, },


@@ -53,6 +78,7 @@ export default {
methods: { methods: {
// 初始化页面 // 初始化页面
async init() { async init() {
this.FlowSortOptions = Object.values(this.GET_GLOBAL('dataDictionary').FlowSort)
await this.fetchList() await this.fetchList()
}, },


@@ -111,18 +137,26 @@ export default {
// 搜索框输入内容 // 搜索框输入内容
searchChange() { searchChange() {
const searchData = {} const searchData = {}
searchData.category = this.query.category
if (this.searchText) { if (this.searchText) {
searchData.keyword = this.searchText searchData.keyword = this.searchText
} }


this.searchData = searchData this.searchData = searchData
this.refresh() this.refresh()
}
},
// 点击「清空查询条件」按钮
reset() {
this.query.category = ''
this.searchChange()
},
} }
} }
</script> </script>


<style lang="less" scoped> <style lang="less" scoped>
@import '~@/common/css/sidepage.less';
.tasklist { .tasklist {
.item-img { .item-img {
display: inline-block; display: inline-block;


Loading…
Cancel
Save