晒农产品
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
<ai-search-bar bottomBorder>
|
<ai-search-bar bottomBorder>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-select v-model="search.type" clearable @change="search.current = 1, getList()" :selectList="dict.getDict('agriculturalType')"></ai-select>
|
<ai-select v-model="search.type" clearable @change="search.current = 1, getList()" :selectList="dict.getDict('agriculturalType')"></ai-select>
|
||||||
|
<el-button icon="iconfont iconDelete" size="small" @click="removeAll" :disabled="ids.length == 0">删除 </el-button>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
style="margin-top: 16px;"
|
style="margin-top: 16px;"
|
||||||
:current.sync="search.current"
|
:current.sync="search.current"
|
||||||
:size.sync="search.size"
|
:size.sync="search.size"
|
||||||
|
@selection-change="v => (ids = v.map((e) => e.id))"
|
||||||
@getList="getList">
|
@getList="getList">
|
||||||
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
|
<el-table-column slot="options" width="120px" fixed="right" label="操作" align="center">
|
||||||
<template slot-scope="{ row }">
|
<template slot-scope="{ row }">
|
||||||
@@ -67,6 +69,7 @@
|
|||||||
computed: {
|
computed: {
|
||||||
colConfigs () {
|
colConfigs () {
|
||||||
return [
|
return [
|
||||||
|
{ type: 'selection' },
|
||||||
{ prop: 'title', label: '标题' },
|
{ prop: 'title', label: '标题' },
|
||||||
{ prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('agriculturalType', v) },
|
{ prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('agriculturalType', v) },
|
||||||
{ prop: 'phone', align: 'center', label: '联系电话' },
|
{ prop: 'phone', align: 'center', label: '联系电话' },
|
||||||
|
|||||||
Reference in New Issue
Block a user