update:店铺数据库配置新增复制功能
This commit is contained in:
parent
d2cdd2af75
commit
d42c198a13
@ -97,7 +97,7 @@
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="250">
|
||||
<el-table-column label="操作" width="300">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
@ -106,6 +106,13 @@
|
||||
>
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="success"
|
||||
@click="openCopyDrawer(scope.row)"
|
||||
>
|
||||
复制
|
||||
</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="danger"
|
||||
@ -265,6 +272,18 @@
|
||||
this.$refs.storeConfDrawerRef.open()
|
||||
},
|
||||
|
||||
// 打开复制抽屉
|
||||
openCopyDrawer(row) {
|
||||
this.isEditMode = false
|
||||
this.currentFormData = { ...row } // 深拷贝避免直接修改原数据
|
||||
this.currentFormData.storeName = ''
|
||||
this.currentFormData.storeId = null
|
||||
this.currentFormData.id = null
|
||||
this.currentFormData.createTime = null
|
||||
this.currentFormData.updateTime = null
|
||||
this.$refs.storeConfDrawerRef.open()
|
||||
},
|
||||
|
||||
// 处理保存
|
||||
async handleSave(data) {
|
||||
let res = null
|
||||
|
||||
Loading…
Reference in New Issue
Block a user