晒农产品
This commit is contained in:
		| @@ -4,13 +4,13 @@ | |||||||
|     <template slot="content"> |     <template slot="content"> | ||||||
|       <ai-search-bar bottomBorder> |       <ai-search-bar bottomBorder> | ||||||
|         <template #left> |         <template #left> | ||||||
|           <el-button icon="iconfont iconDelete" size="small" @click="removeAll" :disabled="ids.length == 0">删除 </el-button> |           <ai-select v-model="search.type" clearable @change="search.current = 1, getList()" :selectList="dict.getDict('agriculturalType')"></ai-select> | ||||||
|         </template> |         </template> | ||||||
|         <template #right> |         <template #right> | ||||||
|           <el-input |           <el-input | ||||||
|             v-model="search.title" |             v-model="search.title" | ||||||
|             size="small" |             size="small" | ||||||
|             placeholder="请输入名称或电话" |             placeholder="请输入名称" | ||||||
|             clearable |             clearable | ||||||
|             @keyup.enter.native="search.current = 1, getList()" |             @keyup.enter.native="search.current = 1, getList()" | ||||||
|             @clear="search.current = 1, search.title = '', getList()" |             @clear="search.current = 1, search.title = '', getList()" | ||||||
| @@ -26,7 +26,6 @@ | |||||||
|         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 }"> | ||||||
| @@ -55,16 +54,9 @@ | |||||||
|           current: 1, |           current: 1, | ||||||
|           status: '', |           status: '', | ||||||
|           size: 10, |           size: 10, | ||||||
|  |           type: '', | ||||||
|           title: '' |           title: '' | ||||||
|         }, |         }, | ||||||
|         colConfigs: [ |  | ||||||
|           { type: 'selection' }, |  | ||||||
|           { prop: 'name', label: '标题' }, |  | ||||||
|           { prop: 'status', align: 'center', label: '状态', formart: v => v === '1' ? '已开启' : '未开启' }, |  | ||||||
|           { prop: 'description', align: 'center', label: '联系电话' }, |  | ||||||
|           { prop: 'description', align: 'center', label: '发布人' }, |  | ||||||
|           { prop: 'createTime', align: 'center', label: '创建时间' } |  | ||||||
|         ], |  | ||||||
|         ids: [], |         ids: [], | ||||||
|         tableData: [], |         tableData: [], | ||||||
|         total: 0, |         total: 0, | ||||||
| @@ -72,8 +64,22 @@ | |||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|  |     computed: { | ||||||
|  |       colConfigs () { | ||||||
|  |         return [ | ||||||
|  |           { prop: 'title', label: '标题' }, | ||||||
|  |           { prop: 'type', align: 'center', label: '类型', formart: v => this.dict.getLabel('agriculturalType', v) }, | ||||||
|  |           { prop: 'phone', align: 'center', label: '联系电话' }, | ||||||
|  |           { prop: 'contactPerson', align: 'center', label: '发布人' }, | ||||||
|  |           { prop: 'createTime', align: 'center', label: '发布时间' } | ||||||
|  |         ] | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |  | ||||||
|     created () { |     created () { | ||||||
|       this.getList() |       this.dict.load('agriculturalType').then(() => { | ||||||
|  |         this.getList() | ||||||
|  |       }) | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|     mounted () { |     mounted () { | ||||||
| @@ -101,7 +107,7 @@ | |||||||
|  |  | ||||||
|       remove (id) { |       remove (id) { | ||||||
|         this.$confirm('确定删除该数据?').then(() => { |         this.$confirm('确定删除该数据?').then(() => { | ||||||
|           this.instance.post(`/app/appapplicationinfo/delete?ids=${id}`).then(res => { |           this.instance.post(`/app/appshowagriculturalproduce/delete?ids=${id}`).then(res => { | ||||||
|             if (res.code == 0) { |             if (res.code == 0) { | ||||||
|               this.$message.success('删除成功!') |               this.$message.success('删除成功!') | ||||||
|               this.getList() |               this.getList() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user