Commit 5953834c authored by 邓超's avatar 邓超

fix: 参数配置功能优化

parent 0eba078b
Pipeline #72009 passed with stages
......@@ -91,7 +91,7 @@ const EditableCell = ({
}
return (
<Input
readOnly={record.name && dataIndex !== 'defaultValue'}
readOnly={record.releaseDate && dataIndex !== 'defaultValue'}
ref={inputRef}
onPressEnter={save}
onBlur={save}
......@@ -222,17 +222,18 @@ const ParmarsModal = props => {
render: (text, record, index) => <span>{index + 1}</span>,
},
{
title: '参数名',
dataIndex: 'field',
width: 150,
title: '配置项',
dataIndex: 'name',
width: 250,
editable: true,
},
{
title: '参数名描述',
dataIndex: 'name',
width: 250,
title: '参数名',
dataIndex: 'field',
width: 150,
editable: true,
},
{
title: '参数值',
dataIndex: 'defaultValue',
......@@ -241,7 +242,7 @@ const ParmarsModal = props => {
},
{
title: '参数值描述',
title: '参数配置说明',
dataIndex: 'paramDesc',
width: 250,
editable: true,
......
......@@ -2,7 +2,7 @@ import React, { useState, useEffect, forwardRef, useImperativeHandle } from 'rea
import { GetWebMenuInfo } from '@/services/webConfig/api';
import { message, Input, Tree, Empty, Tooltip } from 'antd';
import lodash from 'lodash';
import { FolderFilled, FileOutlined, InfoCircleOutlined } from '@ant-design/icons';
import { FolderFilled, FileOutlined, InfoCircleOutlined, HomeOutlined } from '@ant-design/icons';
import styles from './TreeSelect.less';
const TreeSelect = (props, ref) => {
const { value, onChange, menuChange, code, initCurrentMenu } = props;
......@@ -97,7 +97,7 @@ const TreeSelect = (props, ref) => {
</Tooltip>
</div>
),
icon: <FileOutlined />,
icon: item.isHomePage ? <HomeOutlined /> : <FileOutlined />,
})),
})),
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment