修改接口的状态,增加"设计中","开发中", 删除"未开始"

This commit is contained in:
2024-03-01 20:31:34 +08:00
parent 076c21dc36
commit 5cc1c349cd
6 changed files with 40 additions and 14 deletions

View File

@@ -1078,8 +1078,10 @@ class InterfaceEditForm extends Component {
label='状态'>
{getFieldDecorator('status', { initialValue: this.state.status })(
<Select>
<Option value='designing'>设计中</Option>
<Option value='coding'>开发中</Option>
<Option value='done'>已完成</Option>
<Option value='undone'>未完成</Option>
{/*<Option value='undone'>未完成</Option>*/}
</Select>,
)}
</FormItem>
@@ -1542,4 +1544,4 @@ export default Form.create({
onValuesChange() {
EditFormContext.props.changeEditStatus(true)
}
})(InterfaceEditForm)
})(InterfaceEditForm)

View File

@@ -281,12 +281,21 @@ class InterfaceList extends Component {
className="select"
onChange={this.changeInterfaceStatus}
>
{/*<Option value={key + '-undone'}>*/}
{/* <span className="tag-status undone">未完成</span>*/}
{/*</Option>*/}
<Option value={key + '-designing'}>
<span className="tag-status designing">设计中</span>
</Option>
<Option value={key + '-coding'}>
<span className="tag-status coding">开发中</span>
</Option>
<Option value={key + '-done'}>
<span className="tag-status done">已完成</span>
</Option>
<Option value={key + '-undone'}>
<span className="tag-status undone">未完成</span>
</Option>
</Select>
);
},
@@ -295,9 +304,17 @@ class InterfaceList extends Component {
text: '已完成',
value: 'done'
},
// {
// text: '未完成',
// value: 'undone'
// },
{
text: '未完成',
value: 'undone'
text: '设计中',
value: 'designing'
},
{
text: '开发中',
value: 'coding'
}
],
onFilter: (value, record) => record.status.indexOf(value) === 0

View File

@@ -378,7 +378,8 @@ class View extends Component {
}
]
let status = {
undone: '未完成',
designing: '设计中',
coding: '开发中',
done: '已完成'
}
@@ -627,4 +628,4 @@ class View extends Component {
}
}
export default View
export default View