mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
perf: 修改布局
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
||||
|
||||
&__footer {
|
||||
border-top: 1px solid #dee2e6;
|
||||
padding: 16px;
|
||||
padding: 16px 25px;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -428,7 +428,7 @@ export default {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
margin: 180px 8px;
|
||||
width: 100%;
|
||||
width: calc(100% - 10px);
|
||||
@media screen and (max-width: 992px) {
|
||||
margin: 8px 8px;
|
||||
text-align:start
|
||||
|
||||
@@ -221,7 +221,7 @@ $headerHeight: 30px;
|
||||
}
|
||||
|
||||
.mobile .right-side {
|
||||
padding-top: 10px;
|
||||
padding-top: 3px;
|
||||
}
|
||||
|
||||
@media (max-width: 481px) {
|
||||
|
||||
@@ -174,8 +174,8 @@ export default {
|
||||
if (!preURL || preURL === location.href) {
|
||||
return
|
||||
}
|
||||
this.tableUrl[this.tableUrl] = location.href
|
||||
this.$log.info('Reload the table get latest data: pre ', preURL, ' current: ', location.href)
|
||||
this.urlUpdated[this.tableUrl] = location.href
|
||||
this.$log.debug('Reload the table get latest data: pre ', preURL, ' current: ', location.href)
|
||||
setTimeout(() => {
|
||||
this.reloadTable()
|
||||
}, 500)
|
||||
|
||||
@@ -13,7 +13,6 @@ export default {
|
||||
components: {
|
||||
Page, GenericListTable
|
||||
},
|
||||
|
||||
methods: {
|
||||
reloadTable() {
|
||||
this.$refs.ListTable.reloadTable()
|
||||
|
||||
@@ -173,6 +173,7 @@ $height: 28px;
|
||||
|
||||
.org-select >>> .el-input.is-disabled .el-input__inner {
|
||||
color: #ffffff !important;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.icon {
|
||||
|
||||
@@ -305,6 +305,12 @@ export default {
|
||||
this.$refs.GenericListPage.reloadTable()
|
||||
},
|
||||
bulkActionCallback(selectedRows, reloadTable, actionType) {
|
||||
const msgs = {
|
||||
'disable': 'DisableSuccessMsg',
|
||||
'activate': 'ActivateSuccessMsg',
|
||||
'remove': 'RemoveSuccessMsg',
|
||||
'delete': 'DeleteSuccessMsg'
|
||||
}
|
||||
const vm = this
|
||||
const url = '/api/v1/users/users/'
|
||||
const data = selectedRows.map(row => {
|
||||
@@ -313,7 +319,7 @@ export default {
|
||||
if (data.length === 0) return
|
||||
this.$axios.patch(url, data).then(() => {
|
||||
reloadTable()
|
||||
vm.$message.success(vm.$t(`${actionType}SuccessMsg`))
|
||||
vm.$message.success(vm.$t(msgs[actionType]))
|
||||
})
|
||||
},
|
||||
handleInviteDialogClose() {
|
||||
|
||||
Reference in New Issue
Block a user