'文件上传后预览,案件缴费成功页面弹框关闭'

This commit is contained in:
hhl123456789
2023-09-30 18:12:56 +08:00
parent 8bbd1c6c1a
commit 353bbeecdc
3 changed files with 6 additions and 5 deletions
@@ -851,9 +851,9 @@ export default {
return window.location.origin + "/API/evidence/upload"; return window.location.origin + "/API/evidence/upload";
}, },
handlePreview(file) { handlePreview(file) {
if (file.certificatePath) { if (file && file.response.data.annexName) {
window.open( window.open(
window.location.origin + "/API" + file.certificatePath, window.location.origin + "/API" + file.response.data.annexName,
"_blank" "_blank"
); );
} else { } else {
@@ -71,9 +71,10 @@ export default {
selectCaseApplicationConfirmFn(parms) { selectCaseApplicationConfirmFn(parms) {
selectCaseApplicationConfirm(parms).then(res => { selectCaseApplicationConfirm(parms).then(res => {
console.log(res, this.form, "KKKKKKKKKKKKKKKKKKKK"); console.log(res, this.form, "KKKKKKKKKKKKKKKKKKKK");
if(res.data.paymentStatus == 1){ if(res && res.data && res.data.paymentStatus == 1){
clearInterval(this.timer); clearInterval(this.timer);
this.openPay = false; // this.openPay = false;
this.payCancel()
this.$message({ this.$message({
message: "缴费成功", message: "缴费成功",
type: "success", type: "success",
@@ -64,7 +64,7 @@ export default {
}; };
}, },
watch: { watch: {
openDialog: { detailform: {
handler(val) { handler(val) {
if (val) { if (val) {
setTimeout(() => { setTimeout(() => {