提交 80be433b 编写于 作者: changdi.hao's avatar changdi.hao

避免按钮重复点击

上级 0d704387
......@@ -43,7 +43,7 @@
<!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button>
<el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span>
</el-dialog>
</div>
......@@ -61,6 +61,7 @@ export default {
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick:false,
model: {
diagnoseChannel: 1,
appointBeginTime: "",
......@@ -125,7 +126,9 @@ export default {
appointBeginTime: this.rangeTime[0],
appointEndTime: this.rangeTime[1]
}
this.isClick = true;
updateDiagnosis(req).then(function (res) {
this.isClick = false;
if (res.code == "000000") {
vm.cancel();
vm.$emit('search');
......@@ -133,6 +136,7 @@ export default {
vm.$message.error(res.message);
}
}).catch(function (error) {
this.isClick = false;
vm.$message.error(res.message);
});
// }
......
......@@ -74,7 +74,7 @@
<!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button>
<el-button type="primary" @click="confirm" :disabled="isClick">确定</el-button>
</span>
</el-dialog>
</div>
......@@ -109,6 +109,7 @@ export default {
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
formData:{
receptionId:this.doctorId,
receptionName:"",
......@@ -203,7 +204,9 @@ export default {
receptionEndTime:this.rangeTime[1],
}
}
this.isClick = true
updateDiagnosis(req).then(function (res) {
this.isClick = false
if(res.code == "000000") {
vm.cancel();
vm.$emit('search');
......@@ -211,6 +214,7 @@ export default {
vm.$message.error(res.message);
}
}).catch(function (error) {
this.isClick = false
vm.$message.error(res.message);
});
}
......
......@@ -38,7 +38,7 @@
<!-- </el-row>-->
<span slot="footer" class="dialog-footer" style="text-align: center;">
<el-button @click="cancel">取 消</el-button>
<el-button type="primary" @click="confirm">确定</el-button>
<el-button type="primary" @click="confirm" :disabled-="isClick">确定</el-button>
</span>
</el-dialog>
</div>
......@@ -76,6 +76,7 @@ export default {
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
model: {
assistantRemark: ""
},
......@@ -116,6 +117,7 @@ export default {
vm.$message.warning("请选择助诊意向时间");
return;
}
this.isClick = true
let req = {
id:this.diagnoseLogId,
bizType:this.bizType,
......@@ -124,6 +126,7 @@ export default {
assistantRemark:this.model.assistantRemark
}
updateDiagnosis(req).then(function (res) {
this.isClick = false;
if(res.code == "000000") {
vm.cancel();
vm.$emit('search');
......@@ -131,6 +134,7 @@ export default {
vm.$message.error(res.message);
}
}).catch(function (error) {
this.isClick = false;
vm.$message.error(res.message);
});
// }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册