|
|
@ -4,6 +4,26 @@ |
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
<a-row :gutter="24"> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-form-item label="标题"> |
|
|
|
<a-input placeholder="请输入标题" v-model="queryParam.title"></a-input> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<a-form-item label="发布人"> |
|
|
|
<j-search-select-tag placeholder="请选择发布人" v-model="queryParam.userId" dict="han_hai_member,nick_name,id"/> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24"> |
|
|
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
|
|
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> |
|
|
|
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> |
|
|
|
<a @click="handleToggleSearch" style="margin-left: 8px"> |
|
|
|
{{ toggleSearchStatus ? '收起' : '展开' }} |
|
|
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/> |
|
|
|
</a> |
|
|
|
</span> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
|
</a-form> |
|
|
|
</div> |
|
|
@ -99,6 +119,7 @@ |
|
|
|
import { mixinDevice } from '@/utils/mixin' |
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
|
|
|
import AtTrendsModal from './modules/AtTrendsModal' |
|
|
|
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'AtTrendsList', |
|
|
@ -135,13 +156,36 @@ |
|
|
|
{ |
|
|
|
title:'发布人', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'userId' |
|
|
|
dataIndex: 'userId_dictText' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'点赞数', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'dropNum' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'动态详情', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'content' |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'是否置顶', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'isTop', |
|
|
|
customRender: (text) => (text ? filterMultiDictText(this.dictOptions['isTop'], text) : ''), |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'是否付费', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'isPay', |
|
|
|
customRender: (text) => (text ? filterMultiDictText(this.dictOptions['isPay'], text) : ''), |
|
|
|
}, |
|
|
|
{ |
|
|
|
title:'名片/帖子', |
|
|
|
align:"center", |
|
|
|
dataIndex: 'isCard', |
|
|
|
customRender: (text) => (text ? filterMultiDictText(this.dictOptions['isCard'], text) : ''), |
|
|
|
}, |
|
|
|
{ |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'action', |
|
|
@ -164,6 +208,9 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.$set(this.dictOptions, 'isTop', [{text:'是',value:'Y'},{text:'否',value:'N'}]) |
|
|
|
this.$set(this.dictOptions, 'isPay', [{text:'是',value:'Y'},{text:'否',value:'N'}]) |
|
|
|
this.$set(this.dictOptions, 'isCard', [{text:'是',value:'Y'},{text:'否',value:'N'}]) |
|
|
|
this.getSuperFieldList(); |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -178,8 +225,12 @@ |
|
|
|
let fieldList=[]; |
|
|
|
fieldList.push({type:'string',value:'title',text:'标题',dictCode:''}) |
|
|
|
fieldList.push({type:'string',value:'image',text:'图片',dictCode:''}) |
|
|
|
fieldList.push({type:'string',value:'userId',text:'发布人',dictCode:''}) |
|
|
|
fieldList.push({type:'sel_search',value:'userId',text:'发布人',dictTable:"han_hai_member", dictText:'nick_name', dictCode:'id'}) |
|
|
|
fieldList.push({type:'int',value:'dropNum',text:'点赞数',dictCode:''}) |
|
|
|
fieldList.push({type:'string',value:'content',text:'动态详情',dictCode:''}) |
|
|
|
fieldList.push({type:'switch',value:'isTop',text:'是否置顶'}) |
|
|
|
fieldList.push({type:'switch',value:'isPay',text:'是否付费'}) |
|
|
|
fieldList.push({type:'switch',value:'isCard',text:'名片/帖子'}) |
|
|
|
this.superFieldList = fieldList |
|
|
|
} |
|
|
|
} |
|
|
|