dev01 3 years ago
parent
commit
2c93a5cfcb

+ 5 - 4
js/component/administration/business/firmList.jsx

@@ -67,7 +67,7 @@ const PicturesWall = React.createClass({
   },
   componentWillReceiveProps(nextProps) {
     this.state.fileList = nextProps.pictureUrl;
-    console.log(nextProps.pictureUrl);
+    // console.log(nextProps.pictureUrl);
   },
   render() {
     const { previewVisible, previewImage, fileList } = this.state;
@@ -386,6 +386,7 @@ const FirmList = Form.create()(
     //编辑按钮操作
     tableRowClick(record) {
       this.setState({
+        flag: true,
         editvisible: true,
       });
       this.edit(record);
@@ -465,7 +466,7 @@ const FirmList = Form.create()(
             content: this.state.editorcontext,
             status: this.state.status,
             releaseTimes: this.state.time,
-            releaseStatus: flag ? flag : undefined,
+            releaseStatus: flag,
             keywords: this.state.keywords,
           },
           success: function (data) {
@@ -497,7 +498,7 @@ const FirmList = Form.create()(
             pictureUrl: this.state.pictureUrl[0].response.data,
             sort: this.state.sort,
             content: this.state.editorcontext,
-            releaseStatus: flag ? flag : undefined,
+            releaseStatus: flag,
             status: 0,
             releaseTimes: this.state.time,
             keywords: this.state.keywords,
@@ -809,7 +810,7 @@ const FirmList = Form.create()(
                           }
                           onChange={(e, f) => {
                             this.setState({ time: f });
-                            console.log(e, f);
+                            // console.log(e, f);
                           }}
                           style={{ width: "240px" }}
                         />

File diff suppressed because it is too large
+ 780 - 616
js/component/administration/business/newList.jsx


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "afanti",
-  "version": "1.0.5",
+  "version": "1.0.6",
   "description": "",
   "main": "index.js",
   "scripts": {