| | |
| | | //周期 |
| | | const weeks = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日']) |
| | | |
| | | const lineList = inject('lineList') |
| | | const aiTypeList = inject('aiTypeList') |
| | | let lineList = inject('lineList') |
| | | let aiTypeList = inject('aiTypeList') |
| | | |
| | | // 获取航线 |
| | | // let lineList = ref([]) |
| | |
| | | // 关联机巢 |
| | | const drone_sns = ref([]) |
| | | function getFlyingNest (waylineId) { |
| | | console.log('选择航线', lineList.value) |
| | | // 选中航线对象 |
| | | initMapLine({}, polygon => { |
| | | const currentLine = lineList.value.find(item => item.wayline_id === waylineId) |
| | |
| | | const initMapLine = async (infos = {}, cb = () => {}) => { |
| | | const currentLine = lineList.value.find(item => item.wayline_id == formParams.value.file_id) |
| | | |
| | | |
| | | if (!currentLine) return |
| | | |
| | | await nextTick() |
| | | |
| | | if (mapContainerRef.value?.initAddEntity) { |
| | | mapContainerRef.value.initAddEntity('polyline', { |
| | | url: `${import.meta.env.VITE_APP_AIRLINE_URL + currentLine.object_key}?_t=${new Date().getTime()}`, |