NEZ-3394 fix: software asset 复制删除form表单外其它内容

This commit is contained in:
zyh
2024-01-24 15:26:19 +08:00
parent 792835e044
commit 7fe20ed67f

View File

@@ -167,6 +167,22 @@ export default {
mounted () {
},
methods: {
copy (u, copyParams) {
const copyName = this.$lodash.get(copyParams, 'copyName', '-copy')
this.object = {
name: u.name + copyName,
id: '',
typeId: u.typeId,
assetId: u.assetId,
remark: u.remark,
params: u.params
}
if (this.object.name.length > 64) {
const length = this.object.name.length - 64
this.object.name = u.name.substring(0, u.name.length - length) + copyName
}
this.rightBox.show = true
}
},
beforeDestroy () {
}