Sfoglia il codice sorgente

Merge remote-tracking branch 'origin/groupTypeStyle' into testedMerge

# Conflicts:
#	src/utils/config.js
zhouna 5 anni fa
parent
commit
da6ba53aee

+ 1 - 1
src/common/components/Textarea/index.jsx

@@ -167,7 +167,7 @@ class Textarea extends Component {
   componentDidMount(){
     const {value} = this.props;
     if(value){
-      this.$dom.current.innerText?(this.$dom.current.innerText = value||''):(this.$dom.current.innerText=value||'');
+      this.$dom.current.innerText?(this.$dom.current.innerText = value||''):(this.$dom.current.innerHTML=value||'');
     }
     if(isIE()){
       $(this.$dom.current).onIe8Input(function(e){

+ 1 - 1
src/components/Operation/index.jsx

@@ -375,9 +375,9 @@ class Operation extends Component {
     const { diagShowTmp } = this.props;
     const { type } = this.state;
     if (type == 3){
-      diagShowTmp(false)
       this.setState({ title: '',deptId:"",value:"",folderListShow:false,folderNameVal:'未分类文件夹',folderId:'',fstName:''})
     }
+    diagShowTmp(false)
   }
   setDeptId(id,name){
     this.props.handleClearValue()

+ 5 - 4
src/components/PushContainer/index.jsx

@@ -110,8 +110,9 @@ class PushContainer extends Component {
    * @param {tab组件切换id} id
    */
   handleActiveClick(id) {
+    store.dispatch(allCheckedShowAdmin(false))
     if (id == '2') {
-      document.getElementById("searchTmp").value = ""
+        document.getElementById("searchTmp").value = ""
       // let searchVal = document.getElementById("searchTmp").value
       store.dispatch(initItemList(1,0));
       store.dispatch(getFloderListAll())
@@ -650,9 +651,9 @@ class PushContainer extends Component {
             <div  className={style.iptWrap} onClick={()=>{this.hideFolderList()}}>
               <div className={style.male}>
                 <span className={style.leftName}>性别归属:</span>
-                <span className={style['commonSex']} id="commonSex" onClick={this.changeRadio.bind(this,1)}><img src={check_right} alt=""/><i style={{color:'#000'}}>通用</i></span>
-                <span id="maleSex" onClick={this.changeRadio.bind(this,2)}><img src={check_circle} alt=""/><i>男</i></span>
-                <span id="femaleSex" onClick={this.changeRadio.bind(this,3)}><img src={check_circle} alt=""/><i>女</i></span>
+                <span className={style['commonSex']} id="commonSex" onClick={this.changeRadio.bind(this,1)}><img src={this.state.sex == 3 ? check_right:check_circle } alt=""/><i style={{color:'#000'}}>通用</i></span>
+                <span id="maleSex" onClick={this.changeRadio.bind(this,2)}><img src={this.state.sex == 1 ? check_right:check_circle } alt=""/><i>男</i></span>
+                <span id="femaleSex" onClick={this.changeRadio.bind(this,3)}><img src={this.state.sex == 2 ? check_right:check_circle } alt=""/><i>女</i></span>
                 <span style={{paddingRight:0,color:'#777777'}}>(注:错误引用,显示可能有误)</span>
               </div>
             </div>

+ 2 - 2
src/components/TemplateItems/index.less

@@ -35,8 +35,8 @@
         .check-box {
             height: 14px;
             // width: 18px;
-            margin-top: 10px;
-            padding-right: 10px;
+            margin: 10px 10px 0 0;
+            // padding-right: 10px;
             box-sizing: content-box;
             float: left;
         }

+ 3 - 2
src/utils/config.js

@@ -1,8 +1,9 @@
 // const host='http://192.168.3.1:5050';//赵
 // const host='http://192.168.3.100:5050';//王峰
 // const host='http://192.168.2.121:5050';//后端接口访问地址
-const host='http://192.168.2.236:5050';//后端接口访问地址
-// const host='http://192.168.2.241:5050';//后端接口访问地址
+// const host='http://192.168.2.236:5050';//后端接口访问地址
+// const host='http://223.93.170.82:23650';//后端接口访问地址外网
+const host='http://192.168.2.241:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚