|
@@ -24,8 +24,21 @@
|
|
|
type="daterange"
|
|
|
value-format="yyyy-MM-dd"
|
|
|
start-placeholder="开始时间"
|
|
|
- end-placeholder="结束时间"
|
|
|
- ></el-date-picker>
|
|
|
+ end-placeholder="结束时间"></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="农户类型:">
|
|
|
+ <el-select
|
|
|
+ style="width: 100%;"
|
|
|
+ clearable
|
|
|
+ v-model="searchForm.shop_type"
|
|
|
+ placeholder="请选择农户类型">
|
|
|
+ <el-option
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.value"
|
|
|
+ v-for="item in arrShopType"
|
|
|
+ :key="item.value"></el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="ml-10">
|
|
|
<el-button
|
|
@@ -46,8 +59,8 @@
|
|
|
:max-height="vheight">
|
|
|
<el-table-column label="农户编号" prop="user_id"></el-table-column>
|
|
|
<el-table-column label="农户姓名" prop="user_name"></el-table-column>
|
|
|
- <el-table-column label="身份证号" prop="user_card"></el-table-column>
|
|
|
- <el-table-column label="手机号" prop="shop_phone"></el-table-column>
|
|
|
+ <el-table-column label="身份证号" prop="user_card" min-width="140"></el-table-column>
|
|
|
+ <el-table-column label="手机号" prop="shop_phone" min-width="120"></el-table-column>
|
|
|
<el-table-column label="村信息" prop="country_msg" show-overflow-tooltip></el-table-column>
|
|
|
<el-table-column label="详细地址" prop="shop_address" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
@@ -60,7 +73,7 @@
|
|
|
<el-table-column label="农户状态" prop="shop_status" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">{{ getShopStatusText(scope.row.shop_status) }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="入驻时间" prop="shop_check_at"></el-table-column>
|
|
|
+ <el-table-column label="入驻时间" prop="shop_check_at" min-width="140"></el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="edit(scope.row)">操作</el-button>
|
|
@@ -108,19 +121,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- // 店铺类型
|
|
|
- shopType() {
|
|
|
- return [
|
|
|
- {
|
|
|
- name: '普通',
|
|
|
- value: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '优秀',
|
|
|
- value: '1'
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
arrShopStatus() {
|
|
|
return [
|
|
|
{
|
|
@@ -136,6 +136,9 @@ export default {
|
|
|
value: '2'
|
|
|
}
|
|
|
]
|
|
|
+ },
|
|
|
+ arrShopType() {
|
|
|
+ return this.$store.state.common.arrShopType
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -151,9 +154,9 @@ export default {
|
|
|
return ''
|
|
|
},
|
|
|
getShopTypeText(val) {
|
|
|
- const index = this.shopType.findIndex(item => item.value === val + '')
|
|
|
+ const index = this.arrShopType.findIndex(item => item.value === val || item.value === val + '')
|
|
|
if (index > -1) {
|
|
|
- return this.shopType[index].name
|
|
|
+ return this.arrShopType[index].name
|
|
|
}
|
|
|
return ''
|
|
|
}
|