Merge pull request #392 from jumpserver/dev

Merge Dev
This commit is contained in:
Jiangjie.Bai
2020-09-17 12:11:23 +08:00
committed by GitHub
3 changed files with 7 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<ActionsGroup :is-fa="true" :actions="rightSideActions" class="right-side-actions right-side-item" /> <ActionsGroup :is-fa="true" :actions="rightSideActions" class="right-side-actions right-side-item" />
<ImExportDialog :selected-rows="selectedRows" :url="tableUrl" /> <ImExportDialog :selected-rows="selectedRows" :url="tableUrl" v-bind="$attrs" />
</div> </div>
</template> </template>
@@ -119,7 +119,7 @@ export default {
} }
.right-side-actions >>> .el-button:hover { .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 { .action-search >>> .el-input__suffix i {

View File

@@ -36,13 +36,16 @@ function hasCurrentOrgPermission() {
return orgInList return orgInList
} }
function changeOrg(orgId) { async function changeOrg(orgId) {
const org = getOrgIdMapper()[orgId] const org = getOrgIdMapper()[orgId]
if (!org) { if (!org) {
console.debug('Error: org not found') console.debug('Error: org not found')
} else { } else {
console.debug('Change to org: ', org) console.debug('Change to org: ', org)
} }
// 重置Role为空
await store.dispatch('users/setCurrentRole', null)
store.dispatch('users/setCurrentOrg', org).then(() => { store.dispatch('users/setCurrentOrg', org).then(() => {
console.log('Set current org to: ', org) console.log('Set current org to: ', org)
if (hasUUID(location.href)) { if (hasUUID(location.href)) {

View File

@@ -87,6 +87,7 @@ export default {
hasLeftActions: false, hasLeftActions: false,
hasImport: false, hasImport: false,
hasDatePicker: true, hasDatePicker: true,
canExportSelected: false,
datePicker: { datePicker: {
dateStart: dateFrom, dateStart: dateFrom,
dateEnd: dateTo dateEnd: dateTo