mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
Merge pull request #4174 from jumpserver/pr@dev@fix_user_remove
fixed: User group remove item. TAPD: 1043469
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<BaseList v-bind="config" />
|
||||
<BaseList v-bind="config" :table-config="tableConfig" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -14,6 +14,9 @@ export default {
|
||||
config: {
|
||||
url: '/api/v1/assets/devices/',
|
||||
category: 'device'
|
||||
},
|
||||
tableConfig: {
|
||||
columnsExclude: ['date_verified']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -340,11 +340,6 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
activated() {
|
||||
setTimeout(() => {
|
||||
this.$refs.ListTable.reloadTable()
|
||||
}, 300)
|
||||
},
|
||||
methods: {
|
||||
handleAssetBulkUpdate() {
|
||||
this.updateSelectedDialogSetting.visible = false
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<GenericListTable ref="listTable" :header-actions="headerActions" :table-config="tableConfig" />
|
||||
</el-col>
|
||||
<el-col :md="9" :sm="24">
|
||||
<RelationCard ref="relationCard" v-bind="relationConfig" @addSuccess="addSuccess" />
|
||||
<RelationCard :key="relationKey" v-bind="relationConfig" @addSuccess="addSuccess" />
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
@@ -95,11 +95,7 @@ export default {
|
||||
}
|
||||
).then(res => {
|
||||
this.$message.success(this.$tc('DeleteSuccessMsg'))
|
||||
|
||||
setTimeout(() => {
|
||||
this.$refs.relationCard.$refs.select2.refresh()
|
||||
}, 300)
|
||||
|
||||
this.relationKey += 1
|
||||
reload()
|
||||
}).catch(error => {
|
||||
this.$message.error(this.$tc('DeleteErrorMsg') + ' ' + error)
|
||||
@@ -152,7 +148,8 @@ export default {
|
||||
this.$message.success(this.$tc('AddSuccessMsg'))
|
||||
return this.$axios.post(relationUrl, data)
|
||||
}
|
||||
}
|
||||
},
|
||||
relationKey: 0
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user