issue任务:文案、跳转、样式细节修改

This commit is contained in:
yystopf 2021-09-16 10:12:41 +08:00
commit 7158eca4f6
6 changed files with 17 additions and 17 deletions

View File

@ -27,7 +27,7 @@ function Releases({owner,projectsId,releaseVersions , baseOperate , projectType}
}) })
: :
<div className="mt8"> <div className="mt8">
您暂未发布任何版本{baseOperate && projectType !==2 && <Link className="color-blue ml20" to={`/projects/${owner}/${projectsId}/releases/new`}>创建新版本</Link>} 您暂未发布任何版本{baseOperate && projectType !==2 && <Link className="color-blue ml20" to={`/${owner}/${projectsId}/releases/new`}>创建新版本</Link>}
</div> </div>
} }

View File

@ -329,7 +329,7 @@ class MergeForm extends Component {
placeholder={ placeholder={
issue_tags && issue_tags.length > 0 issue_tags && issue_tags.length > 0
? "未选择标签" ? "未选择标签"
: "请在仓库设置里添加标" : "请在仓库设置里添加标"
} }
showSearch showSearch
> >

View File

@ -219,7 +219,7 @@ class Index extends Component {
user_id:owners_id user_id:owners_id
}).then((result) => { }).then((result) => {
if (result && result.data.id) { if (result && result.data.id) {
projectsType && projectsType !== "mirror" && this.props.showNotification(`托管项目创建成功!`); projectsType && projectsType !== "mirror" && this.props.showNotification(`项目创建成功!`);
this.props.history.push(`/${result.data.login}/${result.data.identifier}`); this.props.history.push(`/${result.data.login}/${result.data.identifier}`);
} }
this.setState({ this.setState({
@ -351,7 +351,7 @@ class Index extends Component {
required: true, message: '请填写镜像版本库地址' required: true, message: '请填写镜像版本库地址'
}], }],
})( })(
<Input placeholder="输入需要同步到本项目的镜像版本库地址" onChange={this.ChangeAddr} /> <Input placeholder="请输入需要导入到本项目的仓库地址" onChange={this.ChangeAddr} />
)} )}
</Form.Item> </Form.Item>
<p className="formTip color-orange">示例https://github.com/facebook/reack.git</p> <p className="formTip color-orange">示例https://github.com/facebook/reack.git</p>
@ -386,7 +386,7 @@ class Index extends Component {
{getFieldDecorator('password', { {getFieldDecorator('password', {
rules: [], rules: [],
})( })(
<Input.Password placeholder="请输入对应平台的登录用户名" autocomplete='new-password' style={{width:"240px"}}/> <Input.Password placeholder="请输入对应平台的登录密码" autocomplete='new-password' style={{width:"240px"}}/>
)} )}
</Form.Item> </Form.Item>
</div> </div>

View File

@ -442,13 +442,13 @@ class order_form extends Component {
</Select> </Select>
)} )}
</Form.Item> </Form.Item>
<Form.Item label="标"> <Form.Item label="标">
{getFieldDecorator("issue_tag_ids", {rules: []})( {getFieldDecorator("issue_tag_ids", {rules: []})(
<Select> <Select>
<Option value={""}> <Option value={""}>
{issue_chosen && issue_chosen.issue_tag.length > 0 {issue_chosen && issue_chosen.issue_tag.length > 0
? "未选择标" ? "未选择标"
: "请在仓库设置里添加标"} : "请在仓库设置里添加标"}
</Option> </Option>
{this.renderSelect(issue_chosen && issue_chosen.issue_tag)} {this.renderSelect(issue_chosen && issue_chosen.issue_tag)}
</Select> </Select>

View File

@ -103,7 +103,7 @@ class Index extends Component {
<p> <p>
<Link to={`/${owner}/${projectsId}/settings/labels`} className="w-100"> <Link to={`/${owner}/${projectsId}/settings/labels`} className="w-100">
<i className="iconfont icon-biaoqian3 font-18 mr10 color-grey-6"></i> <i className="iconfont icon-biaoqian3 font-18 mr10 color-grey-6"></i>
项目标 项目标
</Link> </Link>
</p> </p>
</li> </li>

View File

@ -348,7 +348,7 @@ class NewTags extends Component {
</a> </a>
<Popconfirm <Popconfirm
placement="bottom" placement="bottom"
title={"删除标签会将其从所有引用中删除。继续?"} title={"删除标记会将其从所有引用中删除,是否继续?"}
okText="是" okText="是"
cancelText="否" cancelText="否"
onConfirm={() => this.deletetag(item.id)} onConfirm={() => this.deletetag(item.id)}
@ -383,7 +383,7 @@ class NewTags extends Component {
return ( return (
<div> <div>
<div className="topWrapper" style={{borderBottom:"1px solid #eee"}}> <div className="topWrapper" style={{borderBottom:"1px solid #eee"}}>
<span>{data && data.issue_tags_count}个标</span> <span>{data && data.issue_tags_count}个标</span>
<ul className="topWrapper_select"> <ul className="topWrapper_select">
<li> <li>
<Dropdown <Dropdown
@ -393,7 +393,7 @@ class NewTags extends Component {
placement="bottomCenter" placement="bottomCenter"
> >
<span> <span>
标签 标记
<Icon type="caret-down" className="ml5" /> <Icon type="caret-down" className="ml5" />
</span> </span>
</Dropdown> </Dropdown>
@ -423,11 +423,11 @@ class NewTags extends Component {
className="flex-a-center baseForm bbr" className="flex-a-center baseForm bbr"
style={{ "justify-content": "space-between" }} style={{ "justify-content": "space-between" }}
> >
<span className="font-18 text-black">项目标</span> <span className="font-18 text-black">项目标</span>
{data && data.user_admin_or_member ? ( {data && data.user_admin_or_member ? (
<Button type="primary" ghost onClick={this.newshow}> <Button type="primary" ghost onClick={this.newshow}>
<Icon type="plus"></Icon> <Icon type="plus"></Icon>
创建标 创建标
</Button> </Button>
) : ( ) : (
"" ""
@ -442,7 +442,7 @@ class NewTags extends Component {
rules: [ rules: [
{ {
required: true, required: true,
message: "请填写标名字", message: "请填写标名字",
}, },
], ],
})(<Input placeholder="名称10字以内" maxLength="10" />)} })(<Input placeholder="名称10字以内" maxLength="10" />)}
@ -481,7 +481,7 @@ class NewTags extends Component {
onClick={this.createtagpost} onClick={this.createtagpost}
className="fr" className="fr"
> >
创建标 创建标
</Button> </Button>
{/* <a onClick={this.createtagpost} className="topWrapper_btn fr" >创建标签</a> */} {/* <a onClick={this.createtagpost} className="topWrapper_btn fr" >创建标签</a> */}
<a onClick={this.newclose} className="a_btn cancel_btn fr"> <a onClick={this.newclose} className="a_btn cancel_btn fr">
@ -497,7 +497,7 @@ class NewTags extends Component {
</div> </div>
</div> </div>
<Modal <Modal
title="编辑标" title="编辑标"
onCancel={this.handleCancel} onCancel={this.handleCancel}
visible={this.state.isShow} visible={this.state.isShow}
onOk={this.handleok} onOk={this.handleok}