feat: 全局跨域公司选择器 + 权限页crossDomain开关

- 新增CompanySelector组件: 仅crossDomain权限或SUPER_ADMIN可见
- 权限分配页: 全局系统特权下新增"允许全局跨域"操作权限checkbox
- 入库汇总/出库记录搜索栏嵌入CompanySelector
- PermissionConfig: transformData识别crossDomain为操作权限码
This commit is contained in:
yueli
2026-07-15 11:11:49 +08:00
parent e1417d740a
commit 8d78ed9306
4 changed files with 99 additions and 14 deletions

View File

@ -1,6 +1,8 @@
<template>
<div class="app-container">
<div class="filter-container">
<CompanySelector v-model="listQuery.company" @change="fetchData" style="margin-right: 10px;" />
<el-input
v-model="listQuery.keyword"
placeholder="请输入关键词"
@ -135,6 +137,7 @@ import { ref, onMounted, reactive, onBeforeUnmount } from 'vue'
import { getOutboundList } from '@/api/outbound'
import { Picture } from '@element-plus/icons-vue'
import { useUserStore } from '@/stores/user'
import CompanySelector from '@/components/CompanySelector.vue'
const userStore = useUserStore()
@ -200,7 +203,8 @@ const listQuery = reactive({
limit: 10,
keyword: '',
search_type: 'all',
dateRange: []
dateRange: [],
company: '' as string
})
const fetchData = async () => {