PCqiandao
杨树明 5 years ago
parent cb5726e9ec
commit 1c79a27646

@ -55,7 +55,7 @@ export const formatDelta = (deltas) => {
*/ */
export const operate = (text, key, value) => { export const operate = (text, key, value) => {
let operatedText = null; let operatedText = null;
debugger;
switch (key) { switch (key) {
case 'bold': case 'bold':
operatedText = `<strong>${text}</strong>`; operatedText = `<strong>${text}</strong>`;

@ -34,7 +34,7 @@ class CompetitionContentsMd extends Component{
}else{ }else{
chart_rules.rule_contents.map((items,keys)=>{ chart_rules.rule_contents.map((items,keys)=>{
debugger
if(parseInt(this.props.tabkey)===items.competition_stage_id){ if(parseInt(this.props.tabkey)===items.competition_stage_id){
console.log(items) console.log(items)
this.contentMdRef.current.setValue(items.content); this.contentMdRef.current.setValue(items.content);

@ -96,7 +96,7 @@ class PublishRightnow extends Component{
} }
homeworkstartend=(arg_group_ids,endtime)=>{ homeworkstartend=(arg_group_ids,endtime)=>{
debugger
if (this.usingCheckBeforePost && this.props.checkBeforePost) { if (this.usingCheckBeforePost && this.props.checkBeforePost) {
const goOn = this.props.checkBeforePost(); const goOn = this.props.checkBeforePost();
if (!goOn) { if (!goOn) {
@ -104,7 +104,7 @@ class PublishRightnow extends Component{
return; return;
} }
} }
debugger
const isPublish = this.props.isPublish; const isPublish = this.props.isPublish;
let group_ids = arg_group_ids let group_ids = arg_group_ids
if (this.usingCheckBeforePost) { if (this.usingCheckBeforePost) {
@ -112,7 +112,7 @@ class PublishRightnow extends Component{
return item.id return item.id
}) })
} }
debugger
if(this.state.course_groups.length>0){ if(this.state.course_groups.length>0){
if (this.state.course_groups.length && (!group_ids || group_ids&&group_ids.length == 0)) { if (this.state.course_groups.length && (!group_ids || group_ids&&group_ids.length == 0)) {
this.props.showNotification('请至少选择一个分班'); this.props.showNotification('请至少选择一个分班');

@ -130,7 +130,7 @@ class UseBank extends Component{
}) })
} }
onSave = () => { onSave = () => {
debugger
const { checkBoxValues } = this.state; const { checkBoxValues } = this.state;
const { object_type,category_id } = this.props const { object_type,category_id } = this.props
if(checkBoxValues.length==0){ if(checkBoxValues.length==0){

@ -34,7 +34,7 @@ class CompetitionContentsMd extends Component{
}else{ }else{
chart_rules.rule_contents.map((items,keys)=>{ chart_rules.rule_contents.map((items,keys)=>{
debugger
if(parseInt(this.props.tabkey)===items.competition_stage_id){ if(parseInt(this.props.tabkey)===items.competition_stage_id){
console.log(items) console.log(items)
this.contentMdRef.current.setValue(items.content); this.contentMdRef.current.setValue(items.content);

@ -156,7 +156,7 @@ class Bullsubdirectory extends Component{
handleSubmit=(e) => { handleSubmit=(e) => {
e.preventDefault(); e.preventDefault();
this.props.form.validateFields((err, values) => { this.props.form.validateFields((err, values) => {
debugger
if (!err) { if (!err) {
console.log(values.description); console.log(values.description);
if(values.eduintits === undefined|| values.eduintits === "" || values.eduintits ===null){ if(values.eduintits === undefined|| values.eduintits === "" || values.eduintits ===null){

@ -144,7 +144,7 @@ class EditableCourseSupportSetting extends Component {
} }
for (let i = 0 ; i < keys.length - 1; i++) { for (let i = 0 ; i < keys.length - 1; i++) {
if (keys[i] == keys[i + 1]) { if (keys[i] == keys[i + 1]) {
debugger;
} }
} }
this.position2Target_idMap = this._reverseMap(reverseMap); this.position2Target_idMap = this._reverseMap(reverseMap);

@ -277,7 +277,7 @@ class EcStudentList extends Component {
}; };
//删除学生 //删除学生
deletelistbthenters=()=>{ deletelistbthenters=()=>{
debugger
let {Myschoolstudents,studentall} =this.state; let {Myschoolstudents,studentall} =this.state;
let major_id=this.props.match.params.majorId; let major_id=this.props.match.params.majorId;
let year_id=this.props.match.params.yearId; let year_id=this.props.match.params.yearId;

@ -668,7 +668,7 @@ class MemoDetail extends Component {
// --------------------------------------------------------------------------------------------帖子獎勵 END // --------------------------------------------------------------------------------------------帖子獎勵 END
showCommentInput = () => { showCommentInput = () => {
debugger
if (window.__useKindEditor === true) { if (window.__useKindEditor === true) {
this.refs.editor.showEditor(); this.refs.editor.showEditor();
} else { } else {

@ -469,7 +469,7 @@ class LoginDialog extends Component {
autologin:isGoingValue autologin:isGoingValue
} }
).then((response) => { ).then((response) => {
debugger;
if(response===undefined){ if(response===undefined){
return return
} }

@ -95,7 +95,7 @@ class SendTopics extends Component{
}catch (e) { }catch (e) {
} }
debugger
if(this.props.mysendall===true){ if(this.props.mysendall===true){
//详情页面跳过来的 //详情页面跳过来的
try { try {
@ -119,7 +119,7 @@ debugger
} }
}else{ }else{
//外部多个列表页跳过来的 //外部多个列表页跳过来的
debugger
try { try {
var rurls=""; var rurls="";
if(this.props.category==="normal"){ if(this.props.category==="normal"){

@ -16,7 +16,7 @@ class PackageIndexNEIBanner extends Component {
} }
onChange=(current)=>{ onChange=(current)=>{
debugger
console.log('onChange:', current); console.log('onChange:', current);
this.setState({ current }); this.setState({ current });
}; };

@ -63,7 +63,7 @@ class PaperDeletModel extends Component {
} }
NewknTypedeltyoedels=()=>{ NewknTypedeltyoedels=()=>{
debugger
if(this.state.newkntypeinput.length===0){ if(this.state.newkntypeinput.length===0){
this.setState({ this.setState({
errorestit:'请输入知识点', errorestit:'请输入知识点',

@ -475,7 +475,7 @@ class Comthetestpaperst extends Component {
//////console.log('Clicked! But prevent default.'); //////console.log('Clicked! But prevent default.');
} }
deletesobject = (item, index) => { deletesobject = (item, index) => {
debugger
var tmp = this.state.Knowpoints; var tmp = this.state.Knowpoints;
for (var i = 0; i < tmp.length; i++) { for (var i = 0; i < tmp.length; i++) {
if (i ===index) { if (i ===index) {

@ -123,7 +123,7 @@ class Paperreview_item extends Component {
} }
axios.post(url, data) axios.post(url, data)
.then((result) => { .then((result) => {
debugger
if (result.data.status == 0) { if (result.data.status == 0) {
// this.props.showNotification(`拖动成功`); // this.props.showNotification(`拖动成功`);
this.props.getdata(); this.props.getdata();

@ -106,7 +106,7 @@ class Audit_situationComponent extends Component {
} }
showModal = (id,status) => { showModal = (id,status) => {
debugger
this.setState({ this.setState({
visible: true, visible: true,
editid:id, editid:id,

@ -97,7 +97,7 @@ class Newshixuns extends Component {
}) })
const mdContnet = this.contentMdRef.current.getValue().trim(); const mdContnet = this.contentMdRef.current.getValue().trim();
this.props.form.validateFieldsAndScroll((err, values) => { this.props.form.validateFieldsAndScroll((err, values) => {
debugger
if (!err) { if (!err) {
console.log('Received values of form: ', values); console.log('Received values of form: ', values);

@ -94,7 +94,7 @@ class LoginRegisterComponent extends Component {
} }
//倒计时 //倒计时
getverificationcode = () => { getverificationcode = () => {
debugger
if(this.state.login === undefined || this.state.login.length===0){ if(this.state.login === undefined || this.state.login.length===0){
this.openNotification("请输入手机号或邮箱"); this.openNotification("请输入手机号或邮箱");
return; return;

@ -352,7 +352,7 @@ class LoginRegisterComponent extends Component {
login: this.state.login, login: this.state.login,
password: this.state.password, password: this.state.password,
}).then((response) => { }).then((response) => {
debugger
if (response === undefined) { if (response === undefined) {
return return
} }

Loading…
Cancel
Save