mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-22 08:36:42 +00:00
perf: change dumplidate title to -dumplicate
This commit is contained in:
parent
2c9e1f6d3a
commit
3e00c06766
@ -123,6 +123,12 @@ export default {
|
|||||||
return method === 'post' ? this.createSuccessNextRoute : this.updateSuccessNextRoute
|
return method === 'post' ? this.createSuccessNextRoute : this.updateSuccessNextRoute
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
cloneNameSuffix: {
|
||||||
|
type: String,
|
||||||
|
default: function() {
|
||||||
|
return this.$t('Duplicate').toLowerCase()
|
||||||
|
}
|
||||||
|
},
|
||||||
// 获取提交的方法
|
// 获取提交的方法
|
||||||
submitMethod: {
|
submitMethod: {
|
||||||
type: [Function, String],
|
type: [Function, String],
|
||||||
@ -366,7 +372,7 @@ export default {
|
|||||||
name = object['hostname']
|
name = object['hostname']
|
||||||
attr = 'hostname'
|
attr = 'hostname'
|
||||||
}
|
}
|
||||||
object[attr] = name + ' ' + this.$t('Duplicate')
|
object[attr] = name + '-' + this.cloneNameSuffix
|
||||||
} else {
|
} else {
|
||||||
object = await this.getObjectDetail(this.iUrl)
|
object = await this.getObjectDetail(this.iUrl)
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ export default {
|
|||||||
]
|
]
|
||||||
|
|
||||||
for (const preTab of preActiveTabs) {
|
for (const preTab of preActiveTabs) {
|
||||||
const currentTab = typeof preTab === 'object' ? preTab?.name : preTab
|
const currentTab = typeof preTab === 'object' ? preTab?.name || '' : preTab
|
||||||
for (const tabName of this.tabIndices) {
|
for (const tabName of this.tabIndices) {
|
||||||
const currentTabName = tabName?.name || ''
|
const currentTabName = tabName?.name || ''
|
||||||
if (currentTab?.toLowerCase() === currentTabName?.toLowerCase()) {
|
if (currentTab?.toLowerCase() === currentTabName?.toLowerCase()) {
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
:after-get-form-value="afterGetFormValue"
|
:after-get-form-value="afterGetFormValue"
|
||||||
:after-get-remote-meta="handleAfterGetRemoteMeta"
|
:after-get-remote-meta="handleAfterGetRemoteMeta"
|
||||||
:clean-form-value="cleanFormValue"
|
:clean-form-value="cleanFormValue"
|
||||||
|
:clone-name-suffix="1"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
:fields-meta="fieldsMeta"
|
:fields-meta="fieldsMeta"
|
||||||
:has-detail-in-msg="false"
|
:has-detail-in-msg="false"
|
||||||
|
Loading…
Reference in New Issue
Block a user