Commit c5dbf237 authored by 赵啸非's avatar 赵啸非

添加上传附件限制

parent afe4dd3f
......@@ -112,26 +112,8 @@ export default {
watch: {
value: {
handler(val) {
if (val) {
if (val&&val!=='') {
this.showFileList();
// let temp = 1;
// // 首先将值转为数组
// const filePathlist = this.value.split(',');
// // 然后将数组转为对象数组
// const fileNamelist =this.fileName.split(',');
// for (var i = 0; i < filePathlist.length; i++) {
// let item = {}
// console.log(fileNamelist.length===filePathlist.length)
// if(fileNamelist.length===filePathlist.length){
// item.name = fileNamelist[i];
// }else{
// item.name = filePathlist[i];
// }
// item.url = filePathlist[i];
// item.uid = new Date().getTime() + temp++;
// this.fileList.push(item)
// }
} else {
this.fileList = [];
return [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment