|
|
@@ -44,7 +44,7 @@
|
|
|
goPage(path) {
|
|
|
this.$router.push(path)
|
|
|
},
|
|
|
- logout(){
|
|
|
+ logout() {
|
|
|
window.localStorage.removeItem('token')
|
|
|
window.localStorage.removeItem('authinfo')
|
|
|
window.location.reload()
|
|
|
@@ -56,28 +56,34 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- regNew(){
|
|
|
- this.$api.getPatientDoingCase({doctor_id:this.doctorInfo.id}).then(res=>{
|
|
|
- if(res.data.code==0 && res.data.data.id){
|
|
|
- MessageBox({
|
|
|
+ regNew() {
|
|
|
+ this.$api.getPatientDoingCase({
|
|
|
+ doctor_id: this.doctorInfo.id
|
|
|
+ }).then(res => {
|
|
|
+ if (res.data.code == 0 && res.data.data.id) {
|
|
|
+ MessageBox.confirm("", {
|
|
|
title: '提示',
|
|
|
message: '您有一个病例未完成',
|
|
|
showCancelButton: true,
|
|
|
- confirmButtonText:"继续录入",
|
|
|
- cancelButtonText:"重新录入",
|
|
|
- cancelButtonClass:"cancelBtn"
|
|
|
- },action=>{
|
|
|
+ confirmButtonText: "继续录入",
|
|
|
+ cancelButtonText: "重新录入",
|
|
|
+ cancelButtonClass: "cancelBtn",
|
|
|
+ confirmButtonClass: "confirmButtonClass"
|
|
|
+ }, action => {
|
|
|
console.log(action)
|
|
|
- if(action=="confirm"){
|
|
|
+ if (action == "confirm") {
|
|
|
this.$router.push({
|
|
|
- path:"/diagcalc",
|
|
|
- query:{id:res.data.data.id,patid:res.data.data.patient_id}
|
|
|
+ path: "/diagcalc",
|
|
|
+ query: {
|
|
|
+ id: res.data.data.id,
|
|
|
+ patid: res.data.data.patient_id
|
|
|
+ }
|
|
|
})
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$router.push("regpatinfo")
|
|
|
}
|
|
|
});
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
this.$router.push("regpatinfo")
|
|
|
}
|
|
|
})
|
|
|
@@ -90,7 +96,7 @@
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
+<style lang="scss">
|
|
|
.container {
|
|
|
.bgcolor {
|
|
|
width: 100%;
|
|
|
@@ -114,9 +120,10 @@
|
|
|
|
|
|
.docinfo {
|
|
|
position: absolute;
|
|
|
- top:30%;
|
|
|
- left:0;
|
|
|
+ top: 30%;
|
|
|
+ left: 0;
|
|
|
right: 0;
|
|
|
+
|
|
|
.docavatar {
|
|
|
border-radius: 60rem;
|
|
|
}
|
|
|
@@ -139,18 +146,17 @@
|
|
|
border-radius: 1rem;
|
|
|
background: #595758;
|
|
|
color: #fff;
|
|
|
- margin:2rem 1rem;
|
|
|
+ margin: 2rem 1rem;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- /deep/.cancelBtn{
|
|
|
- color:red!important;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
- /deep/ .mint-msgbox-cancel{
|
|
|
- font-size: 24px!important;
|
|
|
+
|
|
|
+ .cancelBtn {
|
|
|
+ font-size: 24px;
|
|
|
+ /* color: red !important; */
|
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
</style>
|