project_pack
杨树明 5 years ago
parent c687542483
commit b0910db0f6

@ -267,14 +267,7 @@ class PackageIndexNEIBannerConcent extends Component {
<MDEditors ref={this.contentMdRef} placeholder="请填写清晰完整的需求内容" mdID={'courseContentMD'} refreshTimeout={1500} <MDEditors ref={this.contentMdRef} placeholder="请填写清晰完整的需求内容" mdID={'courseContentMD'} refreshTimeout={1500}
watch={false} className="courseMessageMD" initValue={this.state.content}></MDEditors> watch={false} className="courseMessageMD" initValue={this.state.content}></MDEditors>
{/* 请求status 422 */} {/* 请求status 422 */}
<div className="df uploadBtn">
<a href="javascript:void(0);" className="fl" onClick={() => window.$('#_file').click()}
data-tip-down="请选择文件上传">
{/*<i className="fa fa-upload mr5 color-blue"></i>*/}
<span className="color-blue">上传附件</span>
</a>
<span style={{ fontSize: "14px"}}>(最多可添加 <span className={"color-orange06"}>5</span> / <span className={"color-orange06"}>10MB</span>)</span>
</div>
<form className="newForm newFormbox mt10 mb20"> <form className="newForm newFormbox mt10 mb20">
<span id={`attachments_fields`} className="attachments_fields" <span id={`attachments_fields`} className="attachments_fields"
@ -295,13 +288,22 @@ class PackageIndexNEIBannerConcent extends Component {
multiple="multiple" name="attachments[dummy][file]" multiple="multiple" name="attachments[dummy][file]"
onChange={() => { onChange={() => {
debugger; debugger;
console.log(window.$('.file_selector')[0])) console.log(window.$('.file_selector')[0])
window.addInputFiles(window.$('.file_selector')[0]) window.addInputFiles(window.$('.file_selector')[0])
}} }}
style={{'display': 'none'}} type="file"> style={{'display': 'none'}} type="file">
</input> </input>
</span> </span>
</form> </form>
<div className="df uploadBtn">
<a href="javascript:void(0);" className="fl" onClick={() => window.$('#_file').click()}
data-tip-down="请选择文件上传">
{/*<i className="fa fa-upload mr5 color-blue"></i>*/}
<span className="color-blue">上传附件</span>
</a>
<span style={{ fontSize: "14px"}}>(最多可添加 <span className={"color-orange06"}>5</span> / <span className={"color-orange06"}>10MB</span>)</span>
</div>
</div> </div>
</div> </div>

Loading…
Cancel
Save