diff --git a/client/containers/Project/Activity/Activity.scss b/client/containers/Project/Activity/Activity.scss index fbee11fc..42aa8ab0 100644 --- a/client/containers/Project/Activity/Activity.scss +++ b/client/containers/Project/Activity/Activity.scss @@ -80,14 +80,15 @@ margin-left: 40px; padding: 0px; padding-bottom: 16px; - min-width: 300px; - max-width: 600px; + // min-width: 300px; + // max-width: 600px; + width: 625px; border-radius: 8px; .logMesHeade{ color: white; padding: 16px 8px 8px 8px; - background-color: gray; + background-color: rgba(35, 149, 241, 0.88); border-top-left-radius: 8px; border-top-right-radius: 8px; } @@ -107,7 +108,7 @@ padding: 0px; .ant-timeline-item-content{ padding: 0px; - min-width: auto; + width: auto; margin-top: 15px; .loggetMore{ margin: 0px; diff --git a/client/containers/Project/Interface/InterfaceList/View.js b/client/containers/Project/Interface/InterfaceList/View.js index 9c012e9c..e5a94616 100644 --- a/client/containers/Project/Interface/InterfaceList/View.js +++ b/client/containers/Project/Interface/InterfaceList/View.js @@ -173,7 +173,8 @@ class View extends Component { key: i, name: item.name, required: item.required, - value: item.value + value: item.value, + desc: item.desc }) }) } @@ -181,16 +182,23 @@ class View extends Component { const columns = [{ title: '参数名称', dataIndex: 'name', - key: 'name' + key: 'name', + width: 2 }, { title: '参数值', dataIndex: 'value', - key: 'value' + key: 'value', + width: 2 }, { - title: '备注', + title: '是否必须', dataIndex: 'required', key: 'required', - width: '45%' + width: 1 + },{ + title: '备注', + dataIndex: 'desc', + key: 'desc', + width: 4 }]; let status = { undone: "未完成", @@ -208,6 +216,14 @@ class View extends Component { get: { bac: "#cfefdf", color: "#00a854" + }, + input: { + bac: "#57cf27", + color: "#9c82a2" + }, + delete: { + bac: "#57cf27", + color: "#57cf27" } } methodColor = methodColor[this.props.curData.method?this.props.curData.method.toLowerCase():"get"]; diff --git a/client/containers/User/Profile.js b/client/containers/User/Profile.js index 766a3c92..07cf8c27 100644 --- a/client/containers/User/Profile.js +++ b/client/containers/User/Profile.js @@ -3,7 +3,7 @@ import { Row, Col, Input, Button, Select, message, Upload, Tooltip} from 'antd' import axios from 'axios'; import {formatTime} from '../../common.js' import PropTypes from 'prop-types' -import { Link } from 'react-router-dom' +// import { Link } from 'react-router-dom' import { connect } from 'react-redux' @connect(state=>{ @@ -40,7 +40,19 @@ class Profile extends Component { } componentDidMount(){ - const uid = this.props.match.params.uid; + this._uid = this.props.match.params.uid; + this.handleUserinfo(this.props) + } + + componentWillReceiveProps(nextProps){ + if(!nextProps.match.params.uid) return; + if(this._uid !== nextProps.match.params.uid){ + this.handleUserinfo(nextProps) + } + } + + handleUserinfo(props){ + const uid = props.match.params.uid; this.getUserInfo(uid) } @@ -253,33 +265,13 @@ class Profile extends Component { } - let bacToPer = ""; - if(userinfo.uid != this.props.curUid){ - bacToPer =
- } return