diff --git a/src/components/ListTable/TableAction/RightSide.vue b/src/components/ListTable/TableAction/RightSide.vue index 85f59a692..dd81c40b7 100644 --- a/src/components/ListTable/TableAction/RightSide.vue +++ b/src/components/ListTable/TableAction/RightSide.vue @@ -1,7 +1,7 @@ @@ -119,7 +119,7 @@ export default { } .right-side-actions >>> .el-button:hover { - background-color: rgb(0, 0, 0, 0.05); + background-color: rgba(0, 0, 0, 0.05); } .action-search >>> .el-input__suffix i { diff --git a/src/utils/org.js b/src/utils/org.js index fcd0b0fba..d484506a7 100644 --- a/src/utils/org.js +++ b/src/utils/org.js @@ -36,13 +36,16 @@ function hasCurrentOrgPermission() { return orgInList } -function changeOrg(orgId) { +async function changeOrg(orgId) { const org = getOrgIdMapper()[orgId] if (!org) { console.debug('Error: org not found') } else { console.debug('Change to org: ', org) } + // 重置Role为空 + await store.dispatch('users/setCurrentRole', null) + store.dispatch('users/setCurrentOrg', org).then(() => { console.log('Set current org to: ', org) if (hasUUID(location.href)) { diff --git a/src/views/sessions/CommandList.vue b/src/views/sessions/CommandList.vue index f1ace032a..2ad54b35a 100644 --- a/src/views/sessions/CommandList.vue +++ b/src/views/sessions/CommandList.vue @@ -87,6 +87,7 @@ export default { hasLeftActions: false, hasImport: false, hasDatePicker: true, + canExportSelected: false, datePicker: { dateStart: dateFrom, dateEnd: dateTo