Merge branch 'master' of http://122.114.176.216:7070/r/CustomForm-publish
| | |
| | | fileSingleSizeLimit: 20 * 1024 * 1024, // 50 M |
| | | accept: {// 只允许选择图片文件格式 |
| | | title: 'File', |
| | | extensions: 'zip,rar,xls,xlsx,doc,docx,ppt,pptx,rtf', |
| | | extensions: 'zip,rar,mp3,mp4,xls,xlsx,doc,docx,ppt,pptx,rtf', |
| | | mimeTypes: '' |
| | | }, |
| | | |
| | |
| | | }); |
| | | uploader.on('error', function (type) { |
| | | if (type == "Q_TYPE_DENIED") { |
| | | customBase.alert("myModal", "请上传zip,rar,xls,xlsx,doc,docx,ppt,pptx,rtf格式文件", ""); |
| | | customBase.alert("myModal", "请上传zip,rar,mp3,mp4,xls,xlsx,doc,docx,ppt,pptx,rtf格式文件", ""); |
| | | } |
| | | }); |
| | | // 当有文件添加进来的时候 |
| | |
| | | |
| | | } |
| | | for (i in value) { |
| | | var $li = $( |
| | | '<div class="">' + |
| | | // '<div class="info"><a href="' + value[i].path + '" >' + value[i].oldName + '</a></div>' + |
| | | // '<div class="info info-box"><div class="info_box">' + value[i].oldName + |
| | | // '<span class="x_box" style="display:none;">×</span>' + |
| | | // '<img class="img_box" style="display:none;" src="' + value[i].path + '">' + |
| | | |
| | | '<div><a href="' + value[i].path + '" >' + value[i].oldName + '</a></div>' + |
| | | '</div>' |
| | | ); |
| | | var fileDir = value[i].path; |
| | | var suffix = fileDir.substr(fileDir.lastIndexOf(".")+1); |
| | | if(suffix == "mp4"){ |
| | | var $li = $( |
| | | '<div class="">' + |
| | | '<div><a href="' + value[i].path + '" target="_blank">' + value[i].oldName + ' </a></div>' + |
| | | '</div>' |
| | | ); |
| | | }else{ |
| | | var $li = $( |
| | | '<div class="">' + |
| | | // '<div class="info"><a href="' + value[i].path + '" >' + value[i].oldName + '</a></div>' + |
| | | // '<div class="info info-box"><div class="info_box">' + value[i].oldName + |
| | | // '<span class="x_box" style="display:none;">×</span>' + |
| | | // '<img class="img_box" style="display:none;" src="' + value[i].path + '">' + |
| | | |
| | | '<div><a href="' + value[i].path + '" >' + value[i].oldName + '</a></div>' + |
| | | '</div>' |
| | | ); |
| | | } |
| | | $li.appendTo($list); |
| | | }; |
| | | } |
| | |
| | | if (code != "") { |
| | | var dataObj = {}; |
| | | dataObj.tenantIDForMaster = 1; |
| | | dataObj.code = code; |
| | | if(_.isString(code)){ |
| | | dataObj.code = code; |
| | | }else{ |
| | | dataObj.code = JSON.stringify(code); |
| | | } |
| | | dataObj.callbackId = callbackId; |
| | | //console.log(dataObj); |
| | | let customlocalStorage = window.localStorage.getItem("bussinessSystem"); |