forked from drone/command-center-dashboard

chenyao
2025-04-19 80a8ec1cad76dc707ed2b6fc6d57e117b5f78bad
feat:更新当前任务详情和历史详情
4 files modified
2 files added
140 ■■■■■ changed files
src/assets/images/home/useUavHome/Group_1321315503.svg 99 ●●●●● patch | view | raw | blame | history
src/assets/images/home/useUavHome/eventAggregationImg.png patch | view | raw | blame | history
src/assets/images/home/useUavHome/eventAggregationImg1 (3).png patch | view | raw | blame | history
src/components/CurrentTaskDetails/TaskDetailsLeft.vue 2 ●●● patch | view | raw | blame | history
src/views/SignMachineNest/MachineRight/InspectionRaskList.vue 37 ●●●●● patch | view | raw | blame | history
src/views/TaskManage/TaskIntermediateContent/TaskIntermediateContent.vue 2 ●●● patch | view | raw | blame | history
src/assets/images/home/useUavHome/Group_1321315503.svg
New file
@@ -0,0 +1,99 @@
<svg width="65" height="51" viewBox="0 0 65 51" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="Group 1321315504">
<g id="Vector">
<path d="M46.1734 14.1245L35.6399 9.31365L40.1213 1.70947L50.6548 6.52028L46.1734 14.1245Z" fill="#DBA237"/>
<path d="M46.1734 14.1245L35.6399 9.31365L40.1213 1.70947L50.6548 6.52028L46.1734 14.1245Z" fill="url(#paint0_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M46.1734 14.1245L35.6399 9.31365L40.1213 1.70947L50.6548 6.52028L46.1734 14.1245Z" fill="url(#paint1_linear_167_1217)" style="mix-blend-mode:overlay"/>
</g>
<g id="Vector_2">
<path d="M50.6544 6.52037L40.1209 1.70957L53.7036 0.118896L64.2371 4.9297L50.6544 6.52037Z" fill="#B98B35"/>
<path d="M50.6544 6.52037L40.1209 1.70957L53.7036 0.118896L64.2371 4.9297L50.6544 6.52037Z" fill="url(#paint2_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M50.6544 6.52037L40.1209 1.70957L53.7036 0.118896L64.2371 4.9297L50.6544 6.52037Z" fill="url(#paint3_linear_167_1217)" fill-opacity="0.5" style="mix-blend-mode:overlay"/>
</g>
<g id="Vector_3">
<path d="M28.6635 16.2193L18.13 11.4085L35.6397 9.31348L46.1732 14.1243L28.6635 16.2193Z" fill="#B98B35"/>
<path d="M28.6635 16.2193L18.13 11.4085L35.6397 9.31348L46.1732 14.1243L28.6635 16.2193Z" fill="url(#paint4_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M28.6635 16.2193L18.13 11.4085L35.6397 9.31348L46.1732 14.1243L28.6635 16.2193Z" fill="url(#paint5_linear_167_1217)" fill-opacity="0.5" style="mix-blend-mode:overlay"/>
</g>
<g id="Vector_4">
<path d="M10.6457 11.2535L0.112183 6.44272L13.6949 4.85205L24.2284 9.66286L10.6457 11.2535Z" fill="#B98B35"/>
<path d="M10.6457 11.2535L0.112183 6.44272L13.6949 4.85205L24.2284 9.66286L10.6457 11.2535Z" fill="url(#paint6_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M10.6457 11.2535L0.112183 6.44272L13.6949 4.85205L24.2284 9.66286L10.6457 11.2535Z" fill="url(#paint7_linear_167_1217)" fill-opacity="0.5" style="mix-blend-mode:overlay"/>
</g>
<g id="Vector_5">
<path d="M37.3491 50.5939L26.8156 45.7831L0.112183 6.44312L10.6457 11.2539L37.3491 50.5939Z" fill="#B9831F"/>
<path d="M37.3491 50.5939L26.8156 45.7831L0.112183 6.44312L10.6457 11.2539L37.3491 50.5939Z" fill="url(#paint8_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M37.3491 50.5939L26.8156 45.7831L0.112183 6.44312L10.6457 11.2539L37.3491 50.5939Z" fill="url(#paint9_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M37.3491 50.5939L26.8156 45.7831L0.112183 6.44312L10.6457 11.2539L37.3491 50.5939Z" fill="url(#paint10_linear_167_1217)" style="mix-blend-mode:overlay"/>
</g>
<g id="Vector_6">
<path d="M37.3189 49.6584L11.522 11.6536L23.9839 10.1946L28.2496 16.5002L28.4205 16.7522L28.7232 16.7161L46.233 14.6213L46.4791 14.592L46.6041 14.3782L50.9595 6.98755L63.2955 5.54321L37.3189 49.6584Z" fill="#503C17"/>
<path d="M37.3189 49.6584L11.522 11.6536L23.9839 10.1946L28.2496 16.5002L28.4205 16.7522L28.7232 16.7161L46.233 14.6213L46.4791 14.592L46.6041 14.3782L50.9595 6.98755L63.2955 5.54321L37.3189 49.6584Z" fill="url(#paint11_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M37.3189 49.6584L11.522 11.6536L23.9839 10.1946L28.2496 16.5002L28.4205 16.7522L28.7232 16.7161L46.233 14.6213L46.4791 14.592L46.6041 14.3782L50.9595 6.98755L63.2955 5.54321L37.3189 49.6584Z" fill="url(#paint12_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M37.3189 49.6584L11.522 11.6536L23.9839 10.1946L28.2496 16.5002L28.4205 16.7522L28.7232 16.7161L46.233 14.6213L46.4791 14.592L46.6041 14.3782L50.9595 6.98755L63.2955 5.54321L37.3189 49.6584Z" fill="url(#paint13_linear_167_1217)" style="mix-blend-mode:overlay"/>
<path d="M37.3189 49.6584L11.522 11.6536L23.9839 10.1946L28.2496 16.5002L28.4205 16.7522L28.7232 16.7161L46.233 14.6213L46.4791 14.592L46.6041 14.3782L50.9595 6.98755L63.2955 5.54321L37.3189 49.6584Z" stroke="url(#paint14_linear_167_1217)" style="mix-blend-mode:overlay"/>
</g>
</g>
<defs>
<linearGradient id="paint0_linear_167_1217" x1="43.1473" y1="1.70947" x2="43.1473" y2="14.1245" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint1_linear_167_1217" x1="43.1473" y1="1.70947" x2="43.1473" y2="14.1245" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint2_linear_167_1217" x1="52.179" y1="0.118896" x2="52.179" y2="6.52037" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint3_linear_167_1217" x1="52.179" y1="0.118896" x2="52.179" y2="6.52037" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint4_linear_167_1217" x1="32.1516" y1="9.31348" x2="32.1516" y2="16.2193" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint5_linear_167_1217" x1="32.1516" y1="9.31348" x2="32.1516" y2="16.2193" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint6_linear_167_1217" x1="12.1703" y1="4.85205" x2="12.1703" y2="11.2535" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint7_linear_167_1217" x1="12.1703" y1="4.85205" x2="12.1703" y2="11.2535" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0"/>
</linearGradient>
<linearGradient id="paint8_linear_167_1217" x1="18.7306" y1="6.44312" x2="18.7306" y2="50.5939" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint9_linear_167_1217" x1="18.7306" y1="6.44312" x2="18.7306" y2="50.5939" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint10_linear_167_1217" x1="18.7306" y1="6.44312" x2="18.7306" y2="50.5939" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint11_linear_167_1217" x1="37.4418" y1="4.92993" x2="37.4418" y2="50.5938" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint12_linear_167_1217" x1="37.4418" y1="4.92993" x2="37.4418" y2="50.5938" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint13_linear_167_1217" x1="37.4418" y1="4.92993" x2="37.4418" y2="50.5938" gradientUnits="userSpaceOnUse">
<stop stop-color="white" stop-opacity="0"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
<linearGradient id="paint14_linear_167_1217" x1="37.4418" y1="4.92993" x2="37.4418" y2="50.5938" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white"/>
</linearGradient>
</defs>
</svg>
src/assets/images/home/useUavHome/eventAggregationImg.png

src/assets/images/home/useUavHome/eventAggregationImg1 (3).png
src/components/CurrentTaskDetails/TaskDetailsLeft.vue
@@ -273,7 +273,7 @@
    getFileList();
}
// 获取文件列表
// 获取音频文件列表
function getFileList() {
    getVoiceFile(searchParams.value).then((res) => {
        if (res.data.code !== 0) return ElMessage.error(res.data.msg);
src/views/SignMachineNest/MachineRight/InspectionRaskList.vue
@@ -22,7 +22,7 @@
        :infinite-scroll-disabled="busy"
        infinite-scroll-immediate="true">>
        <div class="item" v-for="(item,index) in tableList">
          <div class="left">
          <div class="left" @click="taskClick(item)">
            <div class="left-t">
              <span>{{ index+1 }}.</span>{{ item.name }}
              <span class="status" :class="item.status===2?'active':''">
@@ -51,16 +51,34 @@
      </el-empty>
    </div>
  </div>
  <!-- 当前任务详情 -->
  <CurrentTaskDetails
        v-if="isShowCurrentTaskDetails"
        v-model:show="isShowCurrentTaskDetails"
        :id="currentInfoId"/>
    <!-- 历史任务详情 -->
  <DeviceJobDetails
        v-if="isShowDeviceJobDetails"
        v-model:show="isShowDeviceJobDetails"
        :wayLineJodInfoId="wayLineJodInfoId"/>
</template>
<script setup>
import { Search } from '@element-plus/icons-vue';
import { ElMessage } from 'element-plus';
import CommonTitle from '@/components/CommonTitle.vue';
import CurrentTaskDetails from '@/components/CurrentTaskDetails/CurrentTaskDetails.vue';
import DeviceJobDetails from '@/components/DeviceJobDetails/DeviceJobDetails.vue'
import { getBeforeJob, getTodayJob, flyByJobId, returnHome } from '@/api/home';
import { useStore } from 'vuex';
const store = useStore();
// 设备任务详情
let currentInfoId = ref('');
let isShowCurrentTaskDetails = ref(false);
let wayLineJodInfoId = ref('');
let isShowDeviceJobDetails = ref(false);
// 单个机巢信息
const singleUavHome = computed(() => store.state.home.singleUavHome);
@@ -166,6 +184,20 @@
  });
};
// 点击当前任务显示当前任务详情
const taskClick = (item) => {
  if (tabIndex.value === 1) {
    // 展示当前任务详情
    currentInfoId.value = item.wayline_job_info_id;
    isShowCurrentTaskDetails.value = true;
  } else {
    // 展示历史任务详情
    wayLineJodInfoId.value = item.wayline_job_info_id;
    isShowDeviceJobDetails.value = true;
  }
};
onMounted(() => {
  getJobList();
});
@@ -252,8 +284,9 @@
        color: #fff;
        display: flex;
        justify-content: space-between;
background: linear-gradient( 90deg, rgba(71,157,255,0) 0%, rgba(71, 157, 255, 0.12) 50%, rgba(71,157,255,0) 100%);
        background: linear-gradient( 90deg, rgba(71,157,255,0) 0%, rgba(71, 157, 255, 0.12) 50%, rgba(71,157,255,0) 100%);
        .left {
          cursor: pointer;
          .left-t {
            height: 24px;
            font-size: 16px;
src/views/TaskManage/TaskIntermediateContent/TaskIntermediateContent.vue
@@ -63,7 +63,7 @@
        v-if="isShowCurrentTaskDetails"
        v-model:show="isShowCurrentTaskDetails"
        :id="rowData.id"/>
    <!-- 历史人物详情 -->
    <!-- 历史任务详情 -->
  <DeviceJobDetails
        v-if="isShowDeviceJobDetails"
        v-model:show="isShowDeviceJobDetails"