|
@@ -60,7 +60,7 @@ const KeyWordTagGroup = React.createClass({
|
|
{isLongTag ? `${tag.slice(0, 10)}...` : tag}
|
|
{isLongTag ? `${tag.slice(0, 10)}...` : tag}
|
|
</Tag>
|
|
</Tag>
|
|
);
|
|
);
|
|
- return isLongTag ? <Tooltip title={tag}>{tagElem}</Tooltip> : tagElem;
|
|
|
|
|
|
+ return isLongTag ? <Tooltip key={tag} title={tag}>{tagElem}</Tooltip> : tagElem;
|
|
})}
|
|
})}
|
|
{inputVisible && (
|
|
{inputVisible && (
|
|
<Input
|
|
<Input
|
|
@@ -168,10 +168,11 @@ const AchievementDetailShow = Form.create()(React.createClass({
|
|
this.setState({
|
|
this.setState({
|
|
data: thisData,
|
|
data: thisData,
|
|
orgDisplay: thisData.ownerType,
|
|
orgDisplay: thisData.ownerType,
|
|
- tags: thisData.keyword ? thisData.keyword.split(",") : [],
|
|
|
|
|
|
+ tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
|
|
technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
|
|
maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
|
|
});
|
|
});
|
|
|
|
+ console.log(this.state.tags);
|
|
}.bind(this),
|
|
}.bind(this),
|
|
}).always(function () {
|
|
}).always(function () {
|
|
this.setState({
|
|
this.setState({
|
|
@@ -640,7 +641,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
|
|
this.setState({
|
|
this.setState({
|
|
data: thisData,
|
|
data: thisData,
|
|
orgDisplay: thisData.ownerType,
|
|
orgDisplay: thisData.ownerType,
|
|
- tags: thisData.keyword ? thisData.keyword.split(",") : [],
|
|
|
|
|
|
+ tags: thisData.keyword ? (thisData.keyword.replace(/(,|、)/g, ",")).split(',') : [],
|
|
technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
technicalPictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : [],
|
|
maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
|
|
maturityPictureUrl: thisData.maturityPictureUrl ? splitUrl(thisData.maturityPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
|
|
});
|
|
});
|