dev_forum
hjm 6 years ago
parent 780b4d64ff
commit 2cc8de0898

@ -659,6 +659,8 @@ render(){
<Form.Item <Form.Item
label="内容" label="内容"
style={{marginBottom: '4px'}} style={{marginBottom: '4px'}}
className="mdInForm"
> >
{getFieldDecorator('description', { {getFieldDecorator('description', {
rules: [{ rules: [{

@ -41,11 +41,12 @@ function md_clear_data(k,mdu,id){
var id1 = "#e_tip_"+id; var id1 = "#e_tip_"+id;
var id2 = "#e_tips_"+id; var id2 = "#e_tips_"+id;
if(k == 'content'){ if(k == 'content'){
$(id2).html(""); $(id2).html(" ");
}else{ }else{
$(id1).html(""); $(id1).html(" ");
} }
} }
window.md_clear_data = md_clear_data
// editor 存在了jquery对象上应用不需要自己写md_rec_data方法了 // editor 存在了jquery对象上应用不需要自己写md_rec_data方法了
function md_rec_data(k, mdu, id) { function md_rec_data(k, mdu, id) {
if (window.sessionStorage.getItem(k + mdu) !== null) { if (window.sessionStorage.getItem(k + mdu) !== null) {
@ -80,8 +81,8 @@ function md_elocalStorage(editor,mdu,id){
var id1 = "#e_tip_"+id; var id1 = "#e_tip_"+id;
var id2 = "#e_tips_"+id; var id2 = "#e_tips_"+id;
$(id1).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 "); $(id2).html(" 数据已于 " + h + ':' + m + ':' + s +" 保存 ");
$(id2).html(""); // $(id2).html("");
} }
},10000); },10000);
@ -302,8 +303,8 @@ export default class TPMMDEditor extends Component {
</div> </div>
</div> </div>
<div className={"fr rememberTip"}> <div className={"fr rememberTip"}>
{noStorage == true ? ' ' : <p id={`e_tip_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"></p>} {noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"> </p>}
{noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"></p>} {/* {noStorage == true ? ' ' : <p id={`e_tips_mdEditor_${mdID}`} className="edu-txt-right color-grey-cd font-12"> </p>} */}
</div> </div>
</React.Fragment> </React.Fragment>
) )

Loading…
Cancel
Save