From 7fe20ed67f4d07cad9e80a7b58fd42a27f8cab7a Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 24 Jan 2024 15:26:19 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-3394=20fix:=20software=20asset=20=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=88=A0=E9=99=A4form=E8=A1=A8=E5=8D=95=E5=A4=96?= =?UTF-8?q?=E5=85=B6=E5=AE=83=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/asset/software/softwareAsset.vue | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/nezha-fronted/src/components/page/asset/software/softwareAsset.vue b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue index 7a94433a6..9ba2ff43d 100644 --- a/nezha-fronted/src/components/page/asset/software/softwareAsset.vue +++ b/nezha-fronted/src/components/page/asset/software/softwareAsset.vue @@ -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 () { }