所有传orgId的地方修改

This commit is contained in:
mmc
2026-08-04 16:33:52 +08:00
parent 0116509dab
commit c9ed73bc6b
11 changed files with 36 additions and 32 deletions

View File

@@ -174,7 +174,7 @@ export default function StationDashboard() {
deviceType: 1, // 设备类型:电站
siteId: currentStation.id || '',
siteName: currentStation.siteName || '',
orgId: userInfo?.orgId || '',
orgId: currentStation?.orgId || '',
assigneeId: '',
assigneeName: '',
collaboratorIds: '',

View File

@@ -100,7 +100,7 @@ const WorkOrderPage = () => {
console.log(userInfo, 434234);
const isShowDispatch = userInfo?.roleId !== 26; //普通用户
const { stationId } = useSelector((state: RootState) => state.station);
const { stationId, currentStation } = useSelector((state: RootState) => state.station);
const [deviceAll, setDevicesAll] = useState([]);
// 查询表单状态
@@ -208,8 +208,8 @@ const WorkOrderPage = () => {
const params = {
pageNum: 1,
pageSize: 99999,
orgId: userInfo?.orgId,
siteId: userInfo?.siteId,
orgId: currentStation?.orgId,
siteId: stationId,
};
getUser(params).then(res => {
if (res.code === 200) {
@@ -379,7 +379,7 @@ const WorkOrderPage = () => {
try {
// 1. 同时发请求
const [deviceRes, planeRes] = await Promise.all([
getSiteDevice({ siteId: stationId, pageSize: 9999, pageNum: 1, orgId: userInfo.orgId }),
getSiteDevice({ siteId: stationId, pageSize: 9999, pageNum: 1, orgId: currentStation?.orgId }),
getSiteUAVList(stationId),
]);