所有传orgId的地方修改
This commit is contained in:
@@ -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),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user