Commit 72b7d526 by 胡悦

hebing

2 parents a489be49 99aaf13f
...@@ -191,6 +191,8 @@ export default { ...@@ -191,6 +191,8 @@ export default {
IdChange: [0, 0, 0], IdChange: [0, 0, 0],
activeName: 'first', activeName: 'first',
merchantInfo: {}, merchantInfo: {},
isEdit: false,
editOptions: ['address', 'merchantChannelName', 'contactor', 'contactPhone', 'phone', 'email'],
List: [ List: [
{ {
name: 'merchantName', name: 'merchantName',
...@@ -390,6 +392,16 @@ export default { ...@@ -390,6 +392,16 @@ export default {
this.activeName = 'first' this.activeName = 'first'
this.merchantId = row.merchantId this.merchantId = row.merchantId
}, },
// 编辑,取消
handleEdit(isCancel) {
// 保存
if (!isCancel && this.isEdit) {
console.log('调保存接口--')
this.isEdit = !this.isEdit
} else {
this.isEdit = !this.isEdit
}
},
// 切换tab // 切换tab
handleClick(tab, event) { handleClick(tab, event) {
switch (tab.name) { switch (tab.name) {
...@@ -538,5 +550,8 @@ export default { ...@@ -538,5 +550,8 @@ export default {
.el-tabs__header { .el-tabs__header {
background-color: #fafafa; background-color: #fafafa;
} }
.detail .el-input {
width: 80%;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!