|
@@ -45,7 +45,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" size="small" type="primary" @click="sendReport(form)">发送</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
@@ -66,6 +66,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ send: false,
|
|
|
form: {},
|
|
|
preview: {},
|
|
|
dailyNewData: {},
|
|
@@ -154,6 +155,7 @@ export default {
|
|
|
NextStep() {
|
|
|
switch (Number(this.radio)) {
|
|
|
case 1:
|
|
|
+ this.dailyNewData = {}
|
|
|
this.showOne = false
|
|
|
this.showTow = true
|
|
|
this.active = 2
|
|
@@ -165,6 +167,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
sendReport(e) {
|
|
|
+ this.send = true
|
|
|
var ele = this.preview
|
|
|
setTimeout(() => {
|
|
|
var targetDom = document.getElementById('Gambol')
|
|
@@ -178,6 +181,7 @@ export default {
|
|
|
// document.querySelector('body').removeChild(copyDom)
|
|
|
// copyDom = null
|
|
|
res.code === 200 ? this.$message({ type: 'success', message: '发送测试报告成功' }) : this.$message({ type: 'error', message: '发送测试报告失败,请联系管理员!' })
|
|
|
+ this.send = false
|
|
|
this.handleClose()
|
|
|
})
|
|
|
})
|