feat: 表格 添加 copy功能

This commit is contained in:
zhangyu
2021-08-26 18:05:40 +08:00
parent 83e57eec1f
commit 3df236391c
15 changed files with 58 additions and 4 deletions

View File

@@ -57,7 +57,8 @@ export default {
obj: {
type: Object
},
detail: Boolean
detail: Boolean,
copyFlag: Boolean
},
mixins: [editRigthBox],
data () {
@@ -94,6 +95,10 @@ export default {
},
mounted () {
this.getMenus().then(() => {
console.log(this.copyFlag)
if (this.copyFlag) {
this.editRole.id = ''
}
if (this.$refs.menuTree && this.selectedIds && this.selectedIds.length > 0) {
this.$refs.menuTree.setCheckedKeys(this.selectedIds, true)
}