PMCORE-3282:Solve error when jumping to a case
This commit is contained in:
@@ -438,7 +438,6 @@ export default {
|
|||||||
if (err.response.data) {
|
if (err.response.data) {
|
||||||
that.showAlert(err.response.data.error.message, "danger");
|
that.showAlert(err.response.data.error.message, "danger");
|
||||||
}
|
}
|
||||||
throw new Error(err);
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
formatResponseCaseNotes(notes) {
|
formatResponseCaseNotes(notes) {
|
||||||
|
|||||||
@@ -24,6 +24,16 @@ export default {
|
|||||||
props: {
|
props: {
|
||||||
data: Object
|
data: Object
|
||||||
},
|
},
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
openDebug: false,
|
||||||
|
dataCase: null,
|
||||||
|
height: "100%",
|
||||||
|
width: "100%",
|
||||||
|
diffHeight: 10,
|
||||||
|
path: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let that = this;
|
let that = this;
|
||||||
this.height = window.innerHeight - this.diffHeight;
|
this.height = window.innerHeight - this.diffHeight;
|
||||||
@@ -41,24 +51,21 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
api.cases.debugStatus(this.dataCase).then((response) => {
|
let that = this;
|
||||||
|
if (this.dataCase.APP_UID) {
|
||||||
|
api.cases.debugStatus(this.dataCase)
|
||||||
|
.then((response) => {
|
||||||
if (response.data) {
|
if (response.data) {
|
||||||
that.openDebug = true;
|
that.openDebug = true;
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
.catch((error) => {
|
||||||
|
that.openDebug = false;
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}, 2000);
|
}, 2000);
|
||||||
window.addEventListener("resize", this.handleIframeResize);
|
window.addEventListener("resize", this.handleIframeResize);
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
openDebug: false,
|
|
||||||
dataCase: null,
|
|
||||||
height: "100%",
|
|
||||||
width: "100%",
|
|
||||||
diffHeight: 10,
|
|
||||||
path: "",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
classBtn(cls) {
|
classBtn(cls) {
|
||||||
return "btn v-btn-request " + cls;
|
return "btn v-btn-request " + cls;
|
||||||
|
|||||||
Reference in New Issue
Block a user