mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-23 03:57:34 +00:00
Merge branch 'master' of https://github.com/jumpserver/lina
This commit is contained in:
@@ -20,7 +20,7 @@ export default {
|
||||
const url = col.deleteUrl + cellValue
|
||||
this.$axios.delete(url).then(res => {
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
window.location.reload()
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}).catch(error => {
|
||||
this.$message.error(this.$t('common.deleteErrorMsg' + ' ' + error))
|
||||
})
|
||||
|
@@ -112,7 +112,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const itemId = item.value
|
||||
@@ -128,7 +129,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
systemUserReletionConfig: {
|
||||
@@ -161,7 +163,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const itemId = item.value
|
||||
@@ -179,7 +182,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -95,7 +95,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
groupReletionConfig: {
|
||||
@@ -125,7 +126,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
onDeleteSuccess: (obj, that) => {
|
||||
const theRemoveIndex = that.iHasObjects.findIndex((v) => v.value === obj.value)
|
||||
@@ -135,7 +137,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -49,7 +49,8 @@ export default {
|
||||
type: Function,
|
||||
default(that) {
|
||||
this.$log.debug('AssetSelect value', that.assets)
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@@ -87,7 +87,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
systemUserReletionConfig: {
|
||||
@@ -120,7 +121,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const itemId = item.value
|
||||
@@ -136,7 +138,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -96,7 +96,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
groupReletionConfig: {
|
||||
@@ -121,7 +122,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const objectId = this.object.id
|
||||
@@ -136,7 +138,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
systemUserReletionConfig: {
|
||||
@@ -103,7 +104,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const objectId = this.object.id
|
||||
@@ -121,7 +123,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -80,7 +80,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
},
|
||||
groupReletionConfig: {
|
||||
@@ -102,7 +103,8 @@ export default {
|
||||
this.$log.debug('Select value', that.select2.value)
|
||||
that.iHasObjects = [...that.iHasObjects, ...objects]
|
||||
that.$refs.select2.clearSelected()
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.updateSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
},
|
||||
performDelete: (item) => {
|
||||
const objectId = this.object.id
|
||||
@@ -120,7 +122,8 @@ export default {
|
||||
this.$log.debug('disabled values remove index: ', i)
|
||||
that.select2.disabledValues.splice(i, 1)
|
||||
}
|
||||
window.location.reload()
|
||||
this.$message.success(this.$t('common.deleteSuccessMsg'))
|
||||
setTimeout(() => location.reload(), 500)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user