diff --git a/public/react/src/modules/question/NewMyShixunModel.js b/public/react/src/modules/question/NewMyShixunModel.js index e271857ba..8922abd76 100644 --- a/public/react/src/modules/question/NewMyShixunModel.js +++ b/public/react/src/modules/question/NewMyShixunModel.js @@ -930,6 +930,7 @@ class NewMyShixunModel extends Component { {/*头部*/} this.getitem_basketss(id)} selectallquestionsonthispage={()=>this.selectallquestionsonthispage()} getitem_baskets={(e)=>this.getitem_baskets(e)} diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index 47343e091..99cd6db37 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -907,6 +907,7 @@ class Question extends Component { /> {/*头部*/} this.chakanjiexibool(e)} getitem_basketss={(id)=>this.getitem_basketss(id)} diff --git a/public/react/src/modules/question/component/Contentpart.js b/public/react/src/modules/question/component/Contentpart.js index 5a50104a8..11305f3eb 100644 --- a/public/react/src/modules/question/component/Contentpart.js +++ b/public/react/src/modules/question/component/Contentpart.js @@ -214,11 +214,14 @@ class Contentpart extends Component { { defaultActiveKey===0||defaultActiveKey==="0"? isysladmins===true||(is_teacher===true&&professional_certification===true)? - this.xinzenw(e)}> -
-

新增

-
-
+ this.props.Isitapopup&&this.props.Isitapopup==="true"? + "" + : + this.xinzenw(e)}> +
+

新增

+
+
:"" :"" } @@ -241,6 +244,16 @@ class Contentpart extends Component { { defaultActiveKey===0||defaultActiveKey==="0"? + this.props.Isitapopup&&this.props.Isitapopup==="true"? + this.props.setdatafunsval(e)} + onSearch={ (value)=>this.props.setdatafuns(value)} /> + : { return ( this.chakanjiexibool(keindex)} listjihe={index+1} diff --git a/public/react/src/modules/question/component/Itembankstop.js b/public/react/src/modules/question/component/Itembankstop.js index 5a2fc7b9c..d931286b5 100644 --- a/public/react/src/modules/question/component/Itembankstop.js +++ b/public/react/src/modules/question/component/Itembankstop.js @@ -13,7 +13,7 @@ import { Input, Select, Cascader, - Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag + Col, Row, InputNumber, DatePicker, AutoComplete, Button, Tag,Tooltip } from "antd"; import './../questioncss/questioncom.css'; import Newknledpots from './Newknledpots' @@ -57,6 +57,7 @@ class Itembankstop extends Component { options: [], NewknTypedel:false, boolred:false, + boolnews:false, } } @@ -71,6 +72,23 @@ class Itembankstop extends Component { //初始化 componentDidMount() { + const params = this.props && this.props.match && this.props.match.params; + if (JSON.stringify(params) === "{}") { + // "新增" + this.setState({ + boolnews:false, + }) + } else { + if(params){ + if( params.id){ + this.setState({ + boolnews:true, + }) + } + } + } + + try { this.props.getcontentMdRef(this); @@ -754,6 +772,8 @@ class Itembankstop extends Component { } + + @@ -762,18 +782,16 @@ class Itembankstop extends Component { rules: [{required: true, message: '请选择题型'}], } )( - )} -