|
@@ -52,7 +52,7 @@
|
|
|
</div>
|
|
|
<div align="center">
|
|
|
<el-button size="small" type="primary" @click="gou_out()">上一步</el-button>
|
|
|
- <el-button size="small" type="primary" @click="sendReport(form)">发送</el-button>
|
|
|
+ <el-button :disabled="send" :loading="send" size="small" type="primary" @click="sendReport(form)">发送</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -80,6 +80,7 @@ export default {
|
|
|
Acceptance1: false,
|
|
|
ClientAcceptance1: false,
|
|
|
showTow: false,
|
|
|
+ send: false,
|
|
|
showThree: false,
|
|
|
Client: false,
|
|
|
clienData: {},
|
|
@@ -224,13 +225,8 @@ export default {
|
|
|
},
|
|
|
sendReport(e) {
|
|
|
if (e.name !== undefined) {
|
|
|
- const loading = this.$loading({
|
|
|
- lock: true,
|
|
|
- text: '正在发送中...',
|
|
|
- spinner: 'el-icon-loading',
|
|
|
- background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- })
|
|
|
const ele = this.report
|
|
|
+ this.send = true
|
|
|
const targetDom = document.getElementById('resumeId1')
|
|
|
const copyDom = targetDom.cloneNode(true)
|
|
|
document.querySelector('body').appendChild(copyDom)
|
|
@@ -243,7 +239,7 @@ export default {
|
|
|
res.code === 200 ? this.$message.success('发送测试报告成功') : this.$message.error('发送测试报告失败,请联系管理员!')
|
|
|
this.handleClose()
|
|
|
document.querySelector('body').removeChild(copyDom)
|
|
|
- loading.close()
|
|
|
+ this.send = false
|
|
|
})
|
|
|
})
|
|
|
}, 500)
|