Commit f1d24910 authored by 前端-彭佳文's avatar 前端-彭佳文

Merge branch 'jinfa-0518' into 'jinfa-0518'

Jinfa 0518 See merge request project/jinfa-platform!39
parents 5f98301c d914203a
...@@ -100,7 +100,7 @@ const RenderIcons: React.FC<RenderIconsProps> = props => { ...@@ -100,7 +100,7 @@ const RenderIcons: React.FC<RenderIconsProps> = props => {
// return <Space className={cx('god-tabtree-icons', props.nowKey === props.node.key ? 'show' : 'hide')}> // return <Space className={cx('god-tabtree-icons', props.nowKey === props.node.key ? 'show' : 'hide')}>
return ( return (
<Space className={cx('god-tabtree-icons')}> <Space className={cx('god-tabtree-icons')}>
<Tooltip title={intl.formatMessage({ id: 'components.xinzengjiedian' })}> {/* <Tooltip title={intl.formatMessage({ id: 'components.xinzengjiedian' })}>
<PlusCircleOutlined <PlusCircleOutlined
onClick={e => { onClick={e => {
e.stopPropagation(); e.stopPropagation();
...@@ -109,7 +109,7 @@ const RenderIcons: React.FC<RenderIconsProps> = props => { ...@@ -109,7 +109,7 @@ const RenderIcons: React.FC<RenderIconsProps> = props => {
toolsRender.addNode(props.node); toolsRender.addNode(props.node);
}} }}
/> />
</Tooltip> </Tooltip> */}
{/* <Tooltip title={intl.formatMessage({ id: 'components.xinzengzijiedian' })}> {/* <Tooltip title={intl.formatMessage({ id: 'components.xinzengzijiedian' })}>
<PlusCircleOutlined <PlusCircleOutlined
onClick={e => { onClick={e => {
......
...@@ -200,8 +200,8 @@ const ClassProperty: React.FC<{}> = () => { ...@@ -200,8 +200,8 @@ const ClassProperty: React.FC<{}> = () => {
syncTreeActions.setSelectKeys([]) syncTreeActions.setSelectKeys([])
} }
const connectCategory = <div className='connectBtn' onClick={handleConnectCategroyBtn}><LinkOutlined style={{ marginRight: 4 }} />{intl.formatMessage({ id: 'classAndProperty.class.connectCategory' })}</div> // const connectCategory = <div className='connectBtn' onClick={handleConnectCategroyBtn}><LinkOutlined style={{ marginRight: 4 }} />{intl.formatMessage({ id: 'classAndProperty.class.connectCategory' })}</div>
const connectCategory = <div className='connectBtn' ><LinkOutlined style={{ marginRight: 4 }} />{intl.formatMessage({ id: 'classAndProperty.class.connectCategory' })}</div>
return <PageHeaderWrapper return <PageHeaderWrapper
title={intl.formatMessage({ id: 'classAndProperty.class.title' })} title={intl.formatMessage({ id: 'classAndProperty.class.title' })}
className="useConnectBtnWrapper" className="useConnectBtnWrapper"
......
...@@ -25,6 +25,7 @@ export const classSchema: ISchema = { ...@@ -25,6 +25,7 @@ export const classSchema: ISchema = {
properties: { properties: {
name: { name: {
type: 'string', type: 'string',
editable:false,
title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name' }), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name' }),
'x-component-props': { 'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name.placeholder' }), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.name.placeholder' }),
...@@ -59,6 +60,7 @@ export const classSchema: ISchema = { ...@@ -59,6 +60,7 @@ export const classSchema: ISchema = {
}, },
type: { type: {
type: 'number', type: 'number',
editable:false,
title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type' }), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type' }),
'x-component-props': { 'x-component-props': {
placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.placeholder' }), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.type.placeholder' }),
...@@ -77,10 +79,15 @@ export const classSchema: ISchema = { ...@@ -77,10 +79,15 @@ export const classSchema: ISchema = {
], ],
}, },
imageUrl: { imageUrl: {
// editable:false,
title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.imageUrl' }), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.imageUrl' }),
'x-component': 'CustomUpload', 'x-component': 'CustomUpload',
'x-component-props':{
disabled: true,
}
}, },
category: { category: {
editable:false,
type: 'object', type: 'object',
visible: false, visible: false,
properties: { properties: {
...@@ -103,6 +110,7 @@ export const classSchema: ISchema = { ...@@ -103,6 +110,7 @@ export const classSchema: ISchema = {
title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort' }), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort' }),
required: true, required: true,
'x-component-props': { 'x-component-props': {
disabled: true,
placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort.placeholder' }), placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.sort.placeholder' }),
}, },
'x-rules': [ 'x-rules': [
...@@ -116,9 +124,10 @@ export const classSchema: ISchema = { ...@@ -116,9 +124,10 @@ export const classSchema: ISchema = {
type: 'string', type: 'string',
title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline' }), title: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline' }),
'x-component-props': { 'x-component-props': {
disabled: true,
prefix: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.prefix' }), prefix: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.prefix' }),
suffix: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.suffix' }), suffix: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.suffix' }),
placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.placeholder' }), // placeholder: getIntl().formatMessage({ id: 'classAndProperty.class.classSchema.deadline.placeholder' }),
}, },
'x-rules': [ 'x-rules': [
{ {
......
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