mentoswzq 4 anni fa
parent
commit
8aa408531c

File diff suppressed because it is too large
+ 1312 - 584
js/component/manageCenter/statistics/personnel/personnelAll.jsx


+ 3 - 0
js/component/manageCenter/statistics/personnel/personnelList.less

@@ -53,3 +53,6 @@
 .ant-form-item {
     margin-bottom: 0px !important;
 }
+.half-item {
+    height: 35px;
+}

+ 7 - 7
js/component/manageCenter/statistics/personnel/picModal.jsx

@@ -27,15 +27,15 @@ const PicModal = React.createClass({
   },
   downImg() {
     let num = 0;
-    for (let i = 0; i < this.props.pictureUrl.length; i++) {
-      if (this.props.pictureUrl[i].url == this.state.previewImage) {
+    for (let i = 0; i < this.props.picUrl.length; i++) {
+      if (globalConfig.avatarHost + "/upload" + this.props.picUrl[i] == this.state.previewImage) {
         num = i;
       }
     }
-    if (num == this.props.pictureUrl.length - 1) {
+    if (num == this.props.picUrl.length - 1) {
       return message.warning("已经是最后一张了哦");
     }
-    this.state.previewImage = this.props.pictureUrl[num + 1].url;
+    this.state.previewImage = globalConfig.avatarHost + "/upload" + this.props.picUrl[num + 1];
     this.setState({
       previewImage: this.state.previewImage,
       rotateDeg: 0
@@ -43,15 +43,15 @@ const PicModal = React.createClass({
   },
   upImg() {
     let num = 0;
-    for (let i = 0; i < this.props.pictureUrl.length; i++) {
-      if (this.props.pictureUrl[i].url == this.state.previewImage) {
+    for (let i = 0; i < this.props.picUrl.length; i++) {
+      if (globalConfig.avatarHost + "/upload" + this.props.picUrl[i] == this.state.previewImage) {
         num = i;
       }
     }
     if (num == 0) {
       return message.warning("已经是第一张了哦");
     }
-    this.state.previewImage = this.props.pictureUrl[num - 1].url;
+    this.state.previewImage = globalConfig.avatarHost + "/upload" + this.props.picUrl[num - 1];
     this.setState({
       previewImage: this.state.previewImage,
       rotateDeg: 0

+ 0 - 2
js/component/manageCenter/statistics/personnel/picturesWall.js

@@ -29,8 +29,6 @@ class PicturesWall extends Component {
   }
 
   handleChange(info) {
-      console.log(info);
-      
     let fileList = info.fileList;
     this.setState({
       fileList,