只能上传 jasper 文件,且不超过 2
+
只能上传 jasper 文件,且不超过 10
MB
{{ formData.path }}
@@ -160,7 +184,7 @@
选取文件
只能上传 jrxml
- 文件,且不超过 2 MB
+ 文件,且不超过 10 MB
{{ formData.jrxmlPath }}
@@ -268,6 +292,8 @@ const formJson = {
rowCount: 10,
qrcodeCount: 1,
remark: "",
+ bussinessType:null,
+ bussinessStatusList:[],
};
const moduleFormJson = {
id: "",
@@ -364,6 +390,12 @@ export default {
};
this.getList();
},
+ isCleck(){
+ if(this.formData.module!="2"){
+ this.formData.bussinessStatusList=[];
+ this.formData.bussinessType=null;
+ }
+ },
onSubmit() {
this.query.page = 1;
this.getList();
@@ -561,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 => {
@@ -590,9 +624,9 @@ export default {
return;
}
// 限制上传文件的大小
- const isLt = file.size / 1024 / 1024 / 2 <= 1;
+ const isLt = file.size / 1024 / 1024 / 30 <= 1;
if (!isLt) {
- this.$message.error("上传文件大小不能超过 2MB");
+ this.$message.error("上传文件大小不能超过 30MB");
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].uid === uid) {
fileList.splice(i, 1)
@@ -629,9 +663,9 @@ export default {
return;
}
// 限制上传文件的大小
- const isLt = file.size / 1024 / 1024 / 2 <= 1;
+ const isLt = file.size / 1024 / 1024 / 30 <= 1;
if (!isLt) {
- this.$message.error("上传文件大小不能超过 2MB");
+ this.$message.error("上传文件大小不能超过 30MB");
for (let i = 0; i < fileList.length; i++) {
if (fileList[i].uid === uid) {
fileList.splice(i, 1)