| | |
| | | * 卫星遥测网格相关接口API |
| | | */ |
| | | export default { |
| | | fetchGridGroup(area, page, perPage) { |
| | | fetchGridGroup(area, type, page, perPage) { |
| | | return $http |
| | | .post(`air/satellite/grid/group`, area, { |
| | | params: { |
| | | type, |
| | | page: page, |
| | | per_page: perPage |
| | | } |
| | |
| | | .then((res) => res.data); |
| | | }, |
| | | |
| | | /** |
| | | * 获取网格组下的遥测aod |
| | | * @param {*} groupId |
| | | * @param {*} dataTime |
| | | * @returns |
| | | */ |
| | | fetchGridAod(groupId, dataTime) { |
| | | return $http |
| | | .get(`air/satellite/grid/aod`, { |
| | | params: { |
| | | groupId, |
| | | dataTime |
| | | } |
| | | }) |
| | | .then((res) => res.data); |
| | | }, |
| | | // /** |
| | | // * 获取网格组下的遥测aod |
| | | // * @param {*} groupId |
| | | // * @param {*} dataTime |
| | | // * @returns |
| | | // */ |
| | | // fetchGridAod(groupId, dataTime) { |
| | | // return $http |
| | | // .get(`air/satellite/grid/aod`, { |
| | | // params: { |
| | | // groupId, |
| | | // dataTime |
| | | // } |
| | | // }) |
| | | // .then((res) => res.data); |
| | | // }, |
| | | |
| | | fetchGridDataDetail(dataId, groupId, cellId) { |
| | | return $http |
| | |
| | | }) |
| | | .then((res) => res.data); |
| | | }, |
| | | |
| | | createGridDataAndDataDetail(groupId, dataTime, dataDetailList) { |
| | | return $http |
| | | .post(`air/satellite/grid/data/create`, { |
| | | params: { |
| | | groupId, |
| | | dataTime |
| | | }, |
| | | data: dataDetailList |
| | | }) |
| | | .then((res) => res.data); |
| | | }, |
| | | |
| | | downloadTemplate() { |
| | | return $http |
| | | .get(`air/satellite/import/grid/data/download/template`, { |
| | |
| | | return $http |
| | | .post(`air/satellite/import/grid/aod`, dataForm) |
| | | .then((res) => res.data); |
| | | }, |
| | | |
| | | mixGridData(dataIdList) { |
| | | return $http |
| | | .post(`air/satellite/grid/data/mix`, dataIdList) |
| | | .then((res) => res.data); |
| | | }, |
| | | |
| | | buildUnderwayProduct(missionCode, groupId) { |
| | | return $http.get(`air/satellite/import/grid/aod/download/template`, { |
| | | responseType: 'blob' |
| | | }); |
| | | } |
| | | }; |
| | | }; |