Merge branch 'master-v32-lushangqing' into 'master'
文档管理 上传文件大小限制为200M See merge request !184
Showing
3 changed files
with
13 additions
and
2 deletions
@@ -154,8 +154,6 @@ export default { | @@ -154,8 +154,6 @@ export default { | ||
154 | historyNode.value = arr; | 154 | historyNode.value = arr; |
155 | } | 155 | } |
156 | breadcrumbList.value.push({data:item}); | 156 | breadcrumbList.value.push({data:item}); |
157 | - console.log("breadcrumbList",breadcrumbList.value) | ||
158 | - | ||
159 | currentNodeData.value = item; | 157 | currentNodeData.value = item; |
160 | } | 158 | } |
161 | 159 |
@@ -24,7 +24,11 @@ | @@ -24,7 +24,11 @@ | ||
24 | </div> | 24 | </div> |
25 | </template> | 25 | </template> |
26 | </el-upload> | 26 | </el-upload> |
27 | + <div class="text-tip" style="position: absolute;bottom:30px;left: 20px;color:#f78989"> | ||
28 | + 文件上传大小限制200M | ||
29 | + </div> | ||
27 | </template> | 30 | </template> |
31 | + | ||
28 | </cm-dialog> | 32 | </cm-dialog> |
29 | 33 | ||
30 | <!--页面嵌套方式--> | 34 | <!--页面嵌套方式--> |
@@ -121,6 +121,13 @@ export default { | @@ -121,6 +121,13 @@ export default { | ||
121 | docNo:props.docNo | 121 | docNo:props.docNo |
122 | } | 122 | } |
123 | 123 | ||
124 | + /*文件大小限制更改为200M | ||
125 | + * lu 20211206 | ||
126 | + */ | ||
127 | + if(fileObj.size>209715200){ | ||
128 | + proxy.$global.showMsg('文件最大为200M','warning'); | ||
129 | + | ||
130 | + }else{ | ||
124 | // 上传文件 | 131 | // 上传文件 |
125 | proxy.$http.uploadFile("/inspection-report/file/upload", params, function (res) { | 132 | proxy.$http.uploadFile("/inspection-report/file/upload", params, function (res) { |
126 | if (res && res.code == 0) { | 133 | if (res && res.code == 0) { |
@@ -132,6 +139,8 @@ export default { | @@ -132,6 +139,8 @@ export default { | ||
132 | }) | 139 | }) |
133 | } | 140 | } |
134 | 141 | ||
142 | + } | ||
143 | + | ||
135 | let fileChange = (file, fileList) =>{ | 144 | let fileChange = (file, fileList) =>{ |
136 | console.log(file, fileList); | 145 | console.log(file, fileList); |
137 | } | 146 | } |
-
Please register or login to post a comment