提交 45a27555 编写于 作者: changdi.hao's avatar changdi.hao

优化

上级 c83341b5
......@@ -221,6 +221,7 @@ export default {
})
},
cancel(){
this.formData.outsideDoctor = '';
this.$emit('update:diagnosisDoctorVisible', false);
},
doctorChanged(value) {
......
......@@ -26,7 +26,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>
......@@ -53,6 +53,7 @@ export default {
confirmTxt: '确定',
cancleTxt: '',
_promise: null,
isClick: false,
model:{
refundReason:""
},
......@@ -75,7 +76,9 @@ export default {
bizType: 2,
refundReason: this.model.refundReason
}
vm.isClick = true
updateDiagnosis(req).then(function (res) {
vm.isClick = false
if (res.code == "000000") {
vm.cancel();
vm.$emit('search');
......@@ -83,6 +86,7 @@ export default {
vm.$message.error(res.message);
}
}).catch(function (error) {
vm.isClick = false
vm.$message.error(res.message);
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册