mirror of
https://github.com/veops/cmdb.git
synced 2025-09-14 23:46:55 +08:00
feat(cmdb-ui):ci type import&export,pref(cmdb-ui):download ci xlsx name, pref(cmdb-ui):ci detail history merge row method (#331)
* pref(cmdb-ui):download ci xlsx name * pref(cmdb-ui):ci detail history merge row method * feat(cmdb-ui):ci type import&export
This commit is contained in:
@@ -111,12 +111,14 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
...mapMutations('cmdbStore', ['SET_IS_TABLE_LOADING']),
|
||||
open({ preferenceAttrList }) {
|
||||
open({ preferenceAttrList, ciTypeName = undefined }) {
|
||||
this.preferenceAttrList = preferenceAttrList
|
||||
this.visible = true
|
||||
this.$nextTick((res) => {
|
||||
this.form.setFieldsValue({
|
||||
filename: `cmdb-${moment().format('YYYYMMDDHHmmss')}`,
|
||||
filename: ciTypeName
|
||||
? `cmdb-${ciTypeName}-${moment().format('YYYYMMDDHHmmss')}`
|
||||
: `cmdb-${moment().format('YYYYMMDDHHmmss')}`,
|
||||
})
|
||||
if (this.treeType === 'tree') {
|
||||
const _check = ['ci_type_alias']
|
||||
|
Reference in New Issue
Block a user