Commit eed12c17 authored by 黄奎's avatar 黄奎

111

parent 5bfc9a5f
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
</template> </template>
</template> </template>
<!-- 可以让销售修改基本信息--> <!-- 可以让销售修改基本信息-->
<el-button v-if="orderId>0" type="primary" size="medium" value="修改信息" @click="editMsgShow=true"> <el-button v-if="orderId>0" type="primary" value="修改信息" @click="editMsgShow=true" style="margin-left:20px;">
修改信息</el-button> 修改信息</el-button>
</el-col> </el-col>
<el-col v-if="orderId<=0"> <el-col v-if="orderId<=0">
...@@ -532,7 +532,13 @@ ...@@ -532,7 +532,13 @@
method: 'get', method: 'get',
url: ocrUrl, url: ocrUrl,
data: {}, data: {},
responseType: 'arraybuffer' responseType: 'arraybuffer',
onDownloadProgress: (progressEvent) => {
const progress = Math.round((progressEvent.loaded / progressEvent.total) * 100);
that.loadingText = `正在下载` + (that.orderId > 0 ? "出团通知书" : "行程") + `文件` + progress +
`%,请勿关闭或刷新页面...`;
// 在这里处理下载进度, 如更新界面上的进度条
}
}).then(res => { }).then(res => {
that.pdfLoading = false; that.pdfLoading = false;
let blob = new Blob([res.data], { let blob = new Blob([res.data], {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment