瀏覽代碼

新增上传时间

dev01 4 周之前
父節點
當前提交
3388d6ec05
共有 2 個文件被更改,包括 38 次插入4 次删除
  1. 37 3
      js/component/manageCenter/index/contacts/index.jsx
  2. 1 1
      package.json

+ 37 - 3
js/component/manageCenter/index/contacts/index.jsx

@@ -162,6 +162,12 @@ class Content extends Component {
           }
         },
         {
+          title: "上传时间",
+          dataIndex: "createTimeStr",
+          key: "createTimeStr",
+          width: 120,
+        },
+        {
           title: "咨询师名称",
           dataIndex: "consultantName",
           key: "consultantName",
@@ -213,13 +219,13 @@ class Content extends Component {
                   this.loadData();
                 }
               } else {
-                message.success(data.error[0].message);
+                message.error(data.error[0].message);
               }
             }.bind(this)
           ).always(
             function (err) {
               if (err.status === 404) {
-                message.warning('数据错误');
+                message.error('数据错误');
               }
               this.setState({
                 upLoadFileLoading: false,
@@ -433,6 +439,34 @@ class Content extends Component {
                   });
                 }}
               />
+              <span>上传时间:</span>
+              <RangePicker
+                style={{ width: 200 }}
+                value={[
+                  searchInfor.startTime ? moment(searchInfor.startTime) : null,
+                  searchInfor.endTime ? moment(searchInfor.endTime) : null,
+                ]}
+                onChange={(data, dataString) => {
+                  this.setState({
+                    searchInfor: Object.assign(searchInfor, {
+                      startTime: dataString[0],
+                      endTime: dataString[1],
+                    }),
+                  });
+                }}
+              />
+              <Input
+                placeholder={"请输入单位名称"}
+                style={{ width: 180 }}
+                value={searchInfor.userName}
+                onChange={(e) => {
+                  this.setState({
+                    searchInfor: Object.assign(searchInfor, {
+                      userName: e.target.value,
+                    }),
+                  });
+                }}
+              />
               <Button
                 type="primary"
                 onClick={() => {
@@ -481,7 +515,7 @@ class Content extends Component {
                 size="middle"
                 bordered
                 columns={columns}
-                scroll={{ x: window.innerWidth > 1536 ? '130%' : window.innerWidth < 1152 ? '280%' : '200%' }}
+                scroll={{ x: window.innerWidth > 1536 ? '140%' : window.innerWidth < 1152 ? '290%' : '210%' }}
                 dataSource={this.state.dataSource}
                 pagination={this.state.pagination}
                 onRowDoubleClick={this.onRowDoubleClick.bind(this)}

+ 1 - 1
package.json

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