|
@@ -37,15 +37,36 @@
|
|
|
</template>
|
|
|
<!-- 操作 -->
|
|
|
<template slot="action" slot-scope="text, record">
|
|
|
- <a-button size="small" type="link" v-if="record.defaultFlag==0" @click="handleDefault(record)" id="chooseAddressList-default-btn">设置为默认地址</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleEdit(record)" id="chooseAddressList-edit-btn" style="margin-left: 5px;">编辑</a-button>
|
|
|
- <a-divider type="vertical" style="margin: 0;" />
|
|
|
- <a-button size="small" type="link" @click="handleDel(record)" id="chooseAddressList-del-btn" style="margin-left: 5px;">删除</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="button-success"
|
|
|
+ v-if="record.defaultFlag==0"
|
|
|
+ @click="handleDefault(record)"
|
|
|
+ id="chooseAddressList-default-btn">设为默认</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="button-info"
|
|
|
+ @click="handleEdit(record)"
|
|
|
+ id="chooseAddressList-edit-btn"
|
|
|
+ >编辑</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="button-error"
|
|
|
+ @click="handleDel(record)"
|
|
|
+ id="chooseAddressList-del-btn"
|
|
|
+ >删除</a-button>
|
|
|
</template>
|
|
|
<!-- 选择 -->
|
|
|
<template slot="choose" slot-scope="text, record">
|
|
|
- <a-button size="small" type="primary" @click="handleChoose(record)" id="chooseAddressList-choose-btn">选择</a-button>
|
|
|
+ <a-button
|
|
|
+ size="small"
|
|
|
+ type="primary"
|
|
|
+ class="button-primary"
|
|
|
+ @click="handleChoose(record)"
|
|
|
+ id="chooseAddressList-choose-btn">选择</a-button>
|
|
|
</template>
|
|
|
</s-table>
|
|
|
<!-- 新增/编辑地址 -->
|