分类查询
This commit is contained in:
@@ -8,10 +8,12 @@
|
||||
<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>
|
||||
</template>
|
||||
<template #right>
|
||||
<ai-select v-model="search.type" :selectList="typeList" placeholder="请选择推送分类" @change="page.current=1,getTableData()"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict"
|
||||
@selection-change="v=>search.ids=v.map(e=>e.id).toString()">
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size" @getList="getTableData"
|
||||
:col-configs="colConfigs" :dict="dict" @selection-change="v=>search.ids=v.map(e=>e.id).toString()">
|
||||
<el-table-column slot="type" label="推送分类" align="center" width="200">
|
||||
<template slot-scope="{row}">
|
||||
<span v-if="row.type == 15" style="color:#42D784;">核酸监测</span>
|
||||
@@ -91,7 +93,7 @@ export default {
|
||||
msgBtnText: {required: true, message: "请输入按钮标题"},
|
||||
},
|
||||
typeList: [{dictName: '核酸监测', dictValue: '15' }, {dictName: '主动报备提醒', dictValue: '10' }],
|
||||
search: {ids: []}
|
||||
search: {ids: [], type: ''}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user