| | |
| | | //周期 |
| | | 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()}`, |
| | |
| | | <el-form-item label="关联算法:"> |
| | | <el-select |
| | | :teleported="false" |
| | | v-model="searchForm.ai_types" |
| | | v-model="searchForm.ai_typesValue" |
| | | placeholder="请选择关联航线" |
| | | clearable> |
| | | <el-option |
| | |
| | | const cycleDateRange = ref('') |
| | | const searchForm = reactive({ |
| | | ai_types: [], |
| | | ai_typesValue: '', |
| | | deal_time: "", |
| | | file_id: "", |
| | | key_word: "", |
| | |
| | | start_date: cycleDateRange.value.length |
| | | ? dayjs(dateRange?.value[0]).startOf('day').format(timeFormat) |
| | | : null, |
| | | emd_date: cycleDateRange.value.length |
| | | end_date: cycleDateRange.value.length |
| | | ? dayjs(dateRange?.value[1]).startOf('day').format(timeFormat) |
| | | : null, |
| | | }; |
| | |
| | | |
| | | function handleReset () { |
| | | searchForm.ai_types = [] |
| | | searchForm.ai_typesValue = '' |
| | | searchForm.deal_time = "" |
| | | searchForm.file_id = "" |
| | | searchForm.key_word = "" |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="dept_name" label="所属单位" show-overflow-tooltip/> |
| | | <el-table-column prop="create_time" label="创建时间" show-overflow-tooltip/> |
| | | <el-table-column prop="create_time" label="创建时间" width="160" show-overflow-tooltip/> |
| | | <el-table-column prop="job_num" label="已执行次数" width="90" align="center" /> |
| | | <el-table-column prop="content" label="工单内容" show-overflow-tooltip align="center" /> |
| | | <el-table-column prop="wayline_name" label="关联航线" show-overflow-tooltip /> |
| | |
| | | import { cloneDeep } from 'lodash'; |
| | | import { computed, onMounted } from 'vue'; |
| | | import { ElMessage, ElMessageBox } from 'element-plus' |
| | | import { aiImagesPage } from '@/api/dataCenter/dataCenter'; |
| | | |
| | | const store = useStore() |
| | | |
| | |
| | | |
| | | const orderListTable = ref([]) |
| | | function getTableList() { |
| | | orderListParams.searchParams.ai_types = orderListParams.searchParams.ai_typesValue ? [ orderListParams.searchParams.ai_typesValue] : null |
| | | const apiParams = { |
| | | ...cloneDeep(orderListParams), |
| | | ...cloneDeep(orderListParams.searchParams) |
| | | } |
| | | getList(apiParams).then(res => { |
| | | getList(apiParams, orderListParams.current, orderListParams.size).then(res => { |
| | | orderListTable.value = res.data.data.records |
| | | total.value = res.data.data.total |
| | | // updateGlobalCounts() |
| | |
| | | |
| | | NProgress.start() |
| | | |
| | | orderListParams.searchParams.ai_types = orderListParams.searchParams.ai_typesValue ? [ orderListParams.searchParams.ai_typesValue] : null |
| | | const apiParams = { |
| | | ...cloneDeep(orderListParams), |
| | | searchParams: { |
| | | ...cloneDeep(orderListParams.searchParams) |
| | | }, |
| | | ...cloneDeep(orderListParams.searchParams) |
| | | } |
| | | const res = await orderLogExport(apiParams) |
| | | |
| | |
| | | } |
| | | |
| | | onMounted(() => { |
| | | getLines() |
| | | aitypeList() |
| | | filteredTabs() |
| | | getTableList() |
| | | updateGlobalCounts() |
| | | getLines() |
| | | aitypeList() |
| | | }) |
| | | </script> |
| | | |