测试问题修改

This commit is contained in:
zzyuan 2024-10-14 09:28:29 +08:00
parent fe90286fd8
commit ae0a8d27a5
2 changed files with 6 additions and 6 deletions

View File

@ -905,13 +905,13 @@
handleExport() { handleExport() {
if(this.ids.length == 0){ if(this.ids.length == 0){
exportDevice(this.queryParams).then(res => { exportDevice(this.queryParams).then(res => {
downloadFile({ fileName: `设备_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) downloadFile({ fileName: `设备_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' })
}) })
}else{ }else{
const ids = this.ids.join(',') const ids = this.ids.join(',')
exportDeviceSome({ids:ids}).then(res => { exportDeviceSome({ids:ids}).then(res => {
downloadFile({ fileName: `设备_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' }) downloadFile({ fileName: `设备_${new Date().getTime()}.xlsx`, fileData: res, fileType: 'application/vnd.ms-excel;charset=utf-8' })
}) })
} }
}, },
// //

View File

@ -387,8 +387,8 @@
</el-dialog> </el-dialog>
<!-- 图片查看弹窗 --> <!-- 图片查看弹窗 -->
<el-dialog :visible.sync="dialogVisible"> <el-dialog :visible.sync="dialogVisible" width="500px" height="500px">
<img width="100%" height="650px" :src="dialogImageUrl" /> <img width="100%" height="500px" :src="dialogImageUrl" />
</el-dialog> </el-dialog>
</div> </div>
</template> </template>