perf: 修改布局

This commit is contained in:
ibuler
2024-05-16 13:31:47 +08:00
parent 333c68e33f
commit 2fd2fc5f62
7 changed files with 13 additions and 7 deletions

View File

@@ -127,7 +127,7 @@ export default {
&__footer {
border-top: 1px solid #dee2e6;
padding: 16px;
padding: 16px 25px;
justify-content: flex-end;
}
}

View File

@@ -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

View File

@@ -221,7 +221,7 @@ $headerHeight: 30px;
}
.mobile .right-side {
padding-top: 10px;
padding-top: 3px;
}
@media (max-width: 481px) {

View File

@@ -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)

View File

@@ -13,7 +13,6 @@ export default {
components: {
Page, GenericListTable
},
methods: {
reloadTable() {
this.$refs.ListTable.reloadTable()

View File

@@ -173,6 +173,7 @@ $height: 28px;
.org-select >>> .el-input.is-disabled .el-input__inner {
color: #ffffff !important;
background-color: transparent;
}
.icon {

View File

@@ -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() {