mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-20 10:46:35 +00:00
@@ -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 {
|
||||||
|
@@ -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)) {
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user