分类查询

This commit is contained in:
liuye
2022-06-10 11:18:19 +08:00
parent e6fe7b224b
commit 438a24101d

View File

@@ -8,10 +8,12 @@
<el-button type="primary" icon="iconfont iconAdd" @click="dialog=true">添加</el-button> <el-button type="primary" icon="iconfont iconAdd" @click="dialog=true">添加</el-button>
<el-button icon="iconfont iconDelete" :disabled="!search.ids" @click="handleDelete(search.ids)">删除</el-button> <el-button icon="iconfont iconDelete" :disabled="!search.ids" @click="handleDelete(search.ids)">删除</el-button>
</template> </template>
<template #right>
<ai-select v-model="search.type" :selectList="typeList" placeholder="请选择推送分类" @change="page.current=1,getTableData()"/>
</template>
</ai-search-bar> </ai-search-bar>
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" <ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" @getList="getTableData"
@getList="getTableData" :col-configs="colConfigs" :dict="dict" :col-configs="colConfigs" :dict="dict" @selection-change="v=>search.ids=v.map(e=>e.id).toString()">
@selection-change="v=>search.ids=v.map(e=>e.id).toString()">
<el-table-column slot="type" label="推送分类" align="center" width="200"> <el-table-column slot="type" label="推送分类" align="center" width="200">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.type == 15" style="color:#42D784;">核酸监测</span> <span v-if="row.type == 15" style="color:#42D784;">核酸监测</span>
@@ -91,7 +93,7 @@ export default {
msgBtnText: {required: true, message: "请输入按钮标题"}, msgBtnText: {required: true, message: "请输入按钮标题"},
}, },
typeList: [{dictName: '核酸监测', dictValue: '15' }, {dictName: '主动报备提醒', dictValue: '10' }], typeList: [{dictName: '核酸监测', dictValue: '15' }, {dictName: '主动报备提醒', dictValue: '10' }],
search: {ids: []} search: {ids: [], type: ''}
} }
}, },
methods: { methods: {