diff --git a/client/containers/Project/Activity/Activity.scss b/client/containers/Project/Activity/Activity.scss index 4740cd60..7fb277c3 100755 --- a/client/containers/Project/Activity/Activity.scss +++ b/client/containers/Project/Activity/Activity.scss @@ -86,9 +86,9 @@ border-radius: 8px; .logMesHeade{ - color: white; - padding: 16px 8px 8px 8px; - background-color: rgb(91, 104, 117); + padding: 8px 8px 8px 8px; + line-height: 24px; + background-color: #eceef1; border-top-left-radius: 4px; border-top-right-radius: 4px; } diff --git a/client/containers/Project/Interface/InterfaceList/View.js b/client/containers/Project/Interface/InterfaceList/View.js index b251148b..d884d999 100755 --- a/client/containers/Project/Interface/InterfaceList/View.js +++ b/client/containers/Project/Interface/InterfaceList/View.js @@ -39,11 +39,13 @@ class View extends Component { const columns = [{ title: '参数名称', dataIndex: 'name', - key: 'name' + key: 'name', + width: 140 }, { title: '参数类型', dataIndex: 'type', key: 'type', + width: 100, render: (text) => { text = text || ""; return text.toLowerCase() === "text" ? T文本 : 文件 @@ -51,22 +53,21 @@ class View extends Component { }, { title: '是否必须', dataIndex: 'required', - key: 'required' + key: 'required', + width: 100 }, { title: '示例', dataIndex: 'example', key: 'example', - width: 4, render(_, item) { - return
{item.example}
; + return

{item.example}

; } }, { title: '备注', dataIndex: 'value', key: 'value', - width: 4, render(_, item) { - return
{item.value}
; + return

{item.value}

; } }]; @@ -121,28 +122,26 @@ class View extends Component { const columns = [{ title: '参数名称', dataIndex: 'name', - width: 4, + width: 140, key: 'name' }, { title: '是否必须', - width: 4, + width: 100, dataIndex: 'required', key: 'required' }, { title: '示例', dataIndex: 'example', key: 'example', - width: 4, render(_, item) { - return
{item.example}
; + return

{item.example}

; } }, { title: '备注', dataIndex: 'value', key: 'value', - width: 4, render(_, item) { - return
{item.value}
; + return

{item.value}

; } }]; @@ -229,50 +228,60 @@ class View extends Component { req_dataSource.push({ key: i, name: item.name, - value: item.desc + desc: item.desc, + example: item.example }) }) } const req_params_columns = [{ title: '参数名称', dataIndex: 'name', - key: 'name' + key: 'name', + width: 140 + }, { + title: '示例', + dataIndex: 'example', + key: 'example', + render(_, item) { + return

{item.example}

; + } }, { title: '备注', - dataIndex: 'value', - key: 'value' + dataIndex: 'desc', + key: 'desc', + render(_, item) { + return

{item.desc}

; + } }]; const columns = [{ title: '参数名称', dataIndex: 'name', key: 'name', - width: 2 + width: '100px' }, { title: '参数值', dataIndex: 'value', key: 'value', - width: 2 + width: '100px' }, { title: '是否必须', dataIndex: 'required', key: 'required', - width: 1 + width: '100px' }, { title: '示例', dataIndex: 'example', key: 'example', - width: 4, render(_, item) { - return
{item.example}
; + return

{item.example}

; } }, { - title: '备注', + title: '备注', dataIndex: 'desc', key: 'desc', - width: 4, render(_, item) { - return
{item.desc}
; + return

{item.desc}

; } }]; let status = { diff --git a/client/containers/Project/Interface/InterfaceList/View.scss b/client/containers/Project/Interface/InterfaceList/View.scss index 108e193f..4f4ddb64 100755 --- a/client/containers/Project/Interface/InterfaceList/View.scss +++ b/client/containers/Project/Interface/InterfaceList/View.scss @@ -17,6 +17,7 @@ padding-left: 10px; } } + .col-title{margin-bottom: 5px} .colValue.href { color: #2395f1; cursor: pointer;