| | |
| | | <el-select v-model="searchForm.status" placeholder="状态" clearable @change="search"> |
| | | <el-option :key="0" :value="0" label="启用"></el-option> |
| | | <el-option :key="1" :value="1" label="禁用"></el-option> |
| | | <el-option :key="2" :value="2" label="已注销"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="关联经销商" prop="shopName "> |
| | |
| | | <el-table-column prop="createDate" label="创建时间" align="center" min-width="140px"></el-table-column> |
| | | <el-table-column label="状态" align="center" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | <el-switch v-if="row.status !=2" |
| | | v-model="row.status" |
| | | active-color="#13ce66" |
| | | inactive-color="#999" |
| | |
| | | :inactive-value="1" |
| | | @change="statusChange(row)" |
| | | ></el-switch> |
| | | <span v-if="row.status==2" class="grey">已注销</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" min-width="200px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="showMemberDetail(row)">详情</el-button> |
| | | <el-button type="text" v-if="row.bindShopId !=null" @click="changeShop(row)">更换经销商</el-button> |
| | | <el-button type="text" v-if="row.bindShopId !=null && row.status!=2" @click="changeShop(row)">更换经销商</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |