Commit 1c4b6f83 authored by Sixiang_Zzb's avatar Sixiang_Zzb

服务范围模块重构

parent 840e1386
...@@ -59,6 +59,7 @@ class TagSelect extends React.Component { ...@@ -59,6 +59,7 @@ class TagSelect extends React.Component {
let { value } = this.state; let { value } = this.state;
if (!inputValue.trim()) { if (!inputValue.trim()) {
message.error('Not Null!!!'); message.error('Not Null!!!');
this.setState({ inputVisible: false });
return; return;
} }
...@@ -130,6 +131,8 @@ class TagSelect extends React.Component { ...@@ -130,6 +131,8 @@ class TagSelect extends React.Component {
closable={index !== 0 && index !== 1} closable={index !== 0 && index !== 1}
onClose={(e) => this.handleClose(tag, e)} onClose={(e) => this.handleClose(tag, e)}
visible={true} visible={true}
color={index === 0 || index === 1 ? 'magenta' : ''}
style={index === 1 ? { marginBottom: 40 } : ''}
> >
<span <span
onDoubleClick={(e) => { onDoubleClick={(e) => {
...@@ -145,7 +148,14 @@ class TagSelect extends React.Component { ...@@ -145,7 +148,14 @@ class TagSelect extends React.Component {
</span> </span>
</Tag> </Tag>
); );
return isLongTag ? ( // return
return index === 0 || index === 1 ? (
<div style={{ marginBottom: 20 }}>
{tagElem}
<br />
</div>
) : isLongTag ? (
<Tooltip title={tag} key={tag}> <Tooltip title={tag} key={tag}>
{tagElem} {tagElem}
</Tooltip> </Tooltip>
......
...@@ -2,40 +2,45 @@ ...@@ -2,40 +2,45 @@
//基石 //基石
.base { .base {
width: 100%; width: 100%;
background-color: #ffffff; background-color: #ffffff;
padding: 34px; padding: 34px;
min-width: 1020px; min-width: 1020px;
} }
.item0{ .item0 {
float: left; float: left;
} }
.item0_1{ .item0_1 {
float: left; float: left;
line-height: 32px; line-height: 32px;
margin-left: 38px; margin-left: 38px;
} }
.item1{ .item1 {
float: left; float: left;
width: 120px; width: 120px;
} }
.item1_1{ .item1_1 {
float: left; float: left;
margin-left: 16px; margin-left: 16px;
} }
.item2{ .item2 {
float: right; float: right;
} }
.clear{ .clear {
clear: both; clear: both;
} }
.clear0{ .clear0 {
.clear(); .clear();
margin-bottom: 35px; margin-bottom: 35px;
}
.clear1 {
.clear();
margin-bottom: 16px;
}
.title {
position: absolute;
top: 185px;
left: 155px;
} }
.clear1{
.clear();
margin-bottom: 16px;
}
\ No newline at end of file
...@@ -84,6 +84,7 @@ const Services = (props: any) => { ...@@ -84,6 +84,7 @@ const Services = (props: any) => {
{DataServices !== null ? ( {DataServices !== null ? (
<Form ref={formRef} name="basic"> <Form ref={formRef} name="basic">
<div className={styles.title}>General Service Provider :</div>
<Form.Item label="Available Services" name="serviceName"> <Form.Item label="Available Services" name="serviceName">
<TagSelect onAdd={Add} onRemove={Remove} /> <TagSelect onAdd={Add} onRemove={Remove} />
</Form.Item> </Form.Item>
......
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