无人机管理后台前端(已迁走)
罗广辉
2025-08-14 7402bd6525294c7b9c89598ed9ab9a85b6fe615a
feat: 没有数据不显示下载
1 files modified
18 ■■■■ changed files
src/views/job/components/DeviceJobDetails.vue 18 ●●●● patch | view | raw | blame | history
src/views/job/components/DeviceJobDetails.vue
@@ -34,7 +34,7 @@
                        <span>{{ total }}</span>
                        个
                    </p>
                    <div class="rightBox">
                    <div class="rightBox" v-if="total">
                        <div class="downloadBtn" @click="htlsrwxq === 100 && downloadFun()">
                            <el-progress v-if="htlsrwxq !== 100" :percentage="htlsrwxq" :show-text="false" striped striped-flow :duration="1" />
                            <div class="downloadBtnText">
@@ -95,7 +95,7 @@
                                :initial-index="index"
                                fit="cover"
                            />
                        <el-dialog
              class="ztzf-dialog"
              append-to-body
@@ -117,7 +117,7 @@
                </div>
            </el-dialog>
                        </div>
                    </template>
                </div>
@@ -128,7 +128,7 @@
                    @close="showViewer = false"
                />
            </div>
            <div class="content-right" v-if="isShow">
                <DeviceJobDetailsMap
                    :detailsData="detailsData"
@@ -217,7 +217,7 @@
)
const getAchievement = () => {
    if (!props.jobId) return
    const attachmentsParams = {
        'wayLineJobId': props.jobId,
        'resultTypes': [0, 1, 3, 4, 5],
@@ -272,8 +272,8 @@
        }).then(result => {
            if (result.data.code !== 200) return
            yuanImages.value = result.data.data.records
        })
        })
        // flystatus.value = res.data.data.ai_type_str
@@ -300,7 +300,7 @@
}
// 下载
const downloadFun = async () => {
    const list = achievementList.value.filter(i => i.checked)
    const list = achievementList.value.filter(i => i.checked)
    console.log('list',list);
    if (!list?.length) return ElMessage.warning('请选择文件')
    if (list.length === 1) {
@@ -330,7 +330,7 @@
// 从地图点击图片预览
const showViewer = ref(false)
const activeIndex = ref(0)
const previewUrls = ref([])
const previewUrls = ref([])
const showImageeclick = (list, index, categoriestype) => {
    if (categoriestype === 5) {
        panoramaParamsShow.value = true