通信模块配置软件

This commit is contained in:
2025-12-31 15:17:05 +08:00
parent 0a1fb3eeb3
commit 267462fc3f
48 changed files with 8632 additions and 505 deletions

View File

@@ -1,23 +1,23 @@
import store from '../store'
import store from '../store';
let entities = []
let entities = [];
const load = (value) => {
entities = value
entities = value;
// 将卫星状态信息存储到store中
const satellites = filter('Satellite')
const satellite_state_arr = satellites.map(({ id, show }) => { return { id, show } })
const satellites = filter('Satellite');
const satellite_state_arr = satellites.map(({ description, id, show }) => { return { description: description._value, id, show } });
store.dispatch('satelliteSystem/setSatellites', {
satellites: satellite_state_arr
})
}
});
};
const get = id => entities.find(entity => entity.id === id)
const get = id => entities.find(entity => entity.id === id);
const find = keyword => entities.find(entity => entity.id.startsWith(keyword))
const find = keyword => entities.find(entity => entity.id.startsWith(keyword));
const filter = keyword => entities.filter(entity => entity.id.startsWith(keyword))
const filter = keyword => entities.filter(entity => entity.id.startsWith(keyword));
export default { get, load, find }
export default { get, load, find };