@@ -1016,6 +1016,7 @@
:visible.sync="editDiDialogVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
+ :before-close="this.cancelDialog"
width="70%"
v-if="editDiDialogVisible"
>
diff --git a/src/views/system/print/pdfTmpleateManage.vue b/src/views/system/print/pdfTmpleateManage.vue
index 9af3071..5ed0ae5 100644
--- a/src/views/system/print/pdfTmpleateManage.vue
+++ b/src/views/system/print/pdfTmpleateManage.vue
@@ -36,7 +36,7 @@
{{ moduleNameMap[scope.row.module] }}
-
+
@@ -593,9 +593,11 @@ export default {
submitUpload() {
if (this.$refs.uploadJasper.uploadFiles.length < 1 && !this.uploadDisabled) {
this.$message.warning(`请选择jasper文件`);
+ return
}
if (this.$refs.uploadJrxml.uploadFiles.length < 1 && !this.uploadDisabled) {
this.$message.warning(`请选择jasper文件`);
+ return
}
console.log(this.formName)
this.$refs["dataForm"].validate(valid => {