|
|
@ -81,6 +81,12 @@ |
|
|
|
<div |
|
|
|
><span class="titleLabel">故障图片:</span> |
|
|
|
<a-upload v-model:file-list="fileLists" disabled> </a-upload> |
|
|
|
<a-button |
|
|
|
type="primary" |
|
|
|
@click="handleDownload(fileLists[0])" |
|
|
|
v-if="fileLists.length > 0" |
|
|
|
>下载</a-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
@ -119,6 +125,12 @@ |
|
|
|
<div |
|
|
|
><span class="titleLabel">处理图片:</span> |
|
|
|
<a-upload v-model:file-list="fileLists1" disabled> </a-upload> |
|
|
|
<a-button |
|
|
|
type="primary" |
|
|
|
@click="handleDownload(fileLists1[0])" |
|
|
|
v-if="fileLists1.length > 0" |
|
|
|
>下载</a-button |
|
|
|
> |
|
|
|
</div> |
|
|
|
</a-col> |
|
|
|
</a-row> |
|
|
@ -166,6 +178,8 @@ |
|
|
|
import { getInfo, getDealInfo, queryProcess, getOrderDelayHistory } from './handleApi'; |
|
|
|
import AMapLoader from '@amap/amap-jsapi-loader'; |
|
|
|
import Icon from '@/components/Icon/Icon.vue'; |
|
|
|
import { ossDownload } from '@/api/system/oss'; |
|
|
|
import { downloadByData } from '@/utils/file/download'; |
|
|
|
export default defineComponent({ |
|
|
|
components: { Icon }, |
|
|
|
setup(props, { emit }) { |
|
|
@ -312,6 +326,7 @@ |
|
|
|
fileLists.value.push({ |
|
|
|
url: i.url, |
|
|
|
name: i.name, |
|
|
|
ossId: i.ossId, |
|
|
|
status: 'done', |
|
|
|
}); |
|
|
|
}); |
|
|
@ -340,7 +355,10 @@ |
|
|
|
} |
|
|
|
initMap(detail.longitude, detail.latitude, detail.faultLocation); |
|
|
|
}; |
|
|
|
|
|
|
|
const handleDownload = async (record) => { |
|
|
|
const data = await ossDownload(record.ossId); |
|
|
|
downloadByData(data, record.name); |
|
|
|
}; |
|
|
|
// 关闭抽屉的方法 |
|
|
|
const onClose = () => { |
|
|
|
visible.value = false; |
|
|
@ -393,6 +411,7 @@ |
|
|
|
progress, |
|
|
|
fileLists, |
|
|
|
fileLists1, |
|
|
|
handleDownload, |
|
|
|
}; |
|
|
|
}, |
|
|
|
}); |
|
|
|