Commit 59aa3320 by cwq0219

编辑商品-关联门店

1 parent bee21ca8
...@@ -91,8 +91,10 @@ ...@@ -91,8 +91,10 @@
></el-option> ></el-option>
</el-select> --> </el-select> -->
<template v-else-if="item.type === 'button'"> <template v-else-if="item.type === 'button'">
<div v-if="item.name === 'linkMerchantIds'"> <div
<div v-if="item.name === 'linkMerchantIds'"
>
<!-- <div
v-for="subItem in formData[item.name]" v-for="subItem in formData[item.name]"
:key="subItem.merchantId" :key="subItem.merchantId"
> >
...@@ -102,7 +104,40 @@ ...@@ -102,7 +104,40 @@
style="margin-left: 20px;" style="margin-left: 20px;"
@click="handleDelete(item, subItem)" @click="handleDelete(item, subItem)"
></span> ></span>
</div> </div> -->
<el-table
:data="formData[item.name]"
style="width: 600px"
stripe
border
>
<el-table-column
prop="merchantName"
label="商户名称"
align="center"
>
</el-table-column>
<el-table-column
prop="merchantId"
label="商户号"
align="center"
>
</el-table-column>
<el-table-column
label="操作"
align="center"
>
<template slot-scope="scope">
<el-button
class="el-icon-delete"
@click="handleDelete(item, scope.row)"
type="text"
size="small"
>
</el-button>
</template>
</el-table-column>
</el-table>
</div> </div>
<el-button @click="handleClick(item.handleName)">{{item.btnTxt}}</el-button> <el-button @click="handleClick(item.handleName)">{{item.btnTxt}}</el-button>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!