- {/* 评论 */}
- {/* 判断是否是编辑状态 */}
- {(showEdit === 2 && updateId === item.id) ?
-
-
-
-
-
})
-
{item.user.name}
-
{timeAgo(item.created_at)}
+
+
+ {journals && (journals.length > 0 && journals.map(item=>{return item.is_journal_detail ? (!item.closeAndSpan || item.id === item.start || open === item.start) ?
+ {/* 操作日志 */}
+
+
+
+
+
+
})
+
{item.user.name}
+ {(item.user.name.length + item.operate_content.length) > 62 ?
{item.user.name} }>
:
}
- {login &&
- {/* 平台管理员/仓库管理员/发布评论者/issue创建者 */}
- {(admin || isManager || login === item.user.login || user_id === author.id) &&
0 ? '子评论也将被一起删除。' : ''}`}
- okText="是"
- cancelText="否"
- onConfirm={() => deleteComment(item.id)}
- >
-
- }
- {/* 仅评论者可修改 */}
- {login === item.user.login &&
}
-
{setParentId(item.id); setReplyId(item.id); setShowEdit(3)}}>
-
}
+
{timeAgo(item.created_at)}
-
{commentCtx(item.notes)}
- {item && item.attachments && item.attachments.length > 0 &&
}
+ {(item.closeAndSpan && item.id === item.start) &&
{setOpen(open === item.id ? undefined : item.id)}}>{open === item.id ? `点击收起操作日志` : `已折叠${item.numCount}条, 点击查看`}}
-
}
- {showEdit === 3 && replyId === item.id &&
}
- {/* 评论回复部分 */}
- {item.children_journals.map(i =>{return
- {(showEdit === 4 && updateId === i.id) ?
:
-
-
-
})
-
{i.user.name}
-
回复
-
{i.reply_user.name}
-
{timeAgo(i.created_at)}
+
: '' :
+ {/* 评论 */}
+
+
})
+
+ {/* 判断是否是编辑状态 */}
+ {(showEdit === 2 && updateId === item.id) ?
:
+
+
+
+ {item.user.name}
+ {timeAgo(item.created_at)}
+
+ {login &&
+ {/* 平台管理员/仓库管理员/发布评论者/issue创建者 */}
+ {(admin || isManager || login === item.user.login || user_id === author.id) &&
0 ? '子评论也将被一起删除。' : ''}`}
+ okText="是"
+ cancelText="否"
+ onConfirm={() => deleteComment(item.id)}
+ >
+
+ }
+ {/* 仅评论者可修改 */}
+ {login === item.user.login &&
}
+
{setParentId(item.id); setReplyId(item.id); setShowEdit(3)}}>
+
}
+
+
{commentCtx(item.notes)}
+ {item && item.attachments && item.attachments.length > 0 &&
}
- {login &&
- {/* 平台管理员/仓库管理员/发布评论者/回复评论者/issue创建者 */}
- {(admin || isManager || login === i.user.login || login === i.reply_user.login || user_id === author.id) &&
deleteComment(i.id)}
- >
-
- }
- {/* 仅回复评论者可修改 */}
- {login === i.user.login &&
}
-
{setParentId(item.id);setReplyId(i.id); setShowEdit(5)}}>
-
-
+
}
+ {showEdit === 3 && replyId === item.id &&
}
+ {/* 评论回复部分 */}
+ {item.children_journals.map(i =>{return
+ {(showEdit === 4 && updateId === i.id) ?
:
+
+
+
})
+
{i.user.name}
+
回复
+
{i.reply_user.name}
+
{timeAgo(i.created_at)}
+
+ {login &&
+ {/* 平台管理员/仓库管理员/发布评论者/回复评论者/issue创建者 */}
+ {(admin || isManager || login === i.user.login || login === i.reply_user.login || user_id === author.id) &&
deleteComment(i.id)}
+ >
+
+ }
+ {/* 仅回复评论者可修改 */}
+ {login === i.user.login &&
}
+
{setParentId(item.id);setReplyId(i.id); setShowEdit(5)}}>
+
+
+
}
+
+
{commentCtx(i.notes)}
+ {i && i.attachments && i.attachments.length > 0 &&
}
}
-
-
{commentCtx(i.notes)}
- {i && i.attachments && i.attachments.length > 0 &&
}
-
}
- {showEdit === 5 && replyId === i.id &&
}
-
})}
-
}))}
-
+ {showEdit === 5 && replyId === i.id &&
}
+
})}
+
+ }))}
+
+
{/* 无数据 */}
{journals && !journals.length &&
}
diff --git a/src/forge/Issues/Component/comments/list.scss b/src/forge/Issues/Component/comments/list.scss
index 804e5fe9..3ae4c9d5 100644
--- a/src/forge/Issues/Component/comments/list.scss
+++ b/src/forge/Issues/Component/comments/list.scss
@@ -1,13 +1,22 @@
.typeActionBox{
- padding: 17px 20px 10px;
- background-color:#fafcff;
- border:1px solid rgba(42, 97, 255, 0.23);
+ padding: 10px 20px 4px;
+ background-color:rgba(241, 243, 252, 0.55);
border-radius:4px;
.typeActionRadio{
color: #333;
display: inline-flex;
align-items: center;
- margin-right: 35px;
+ margin-right: 25px;
+ &.ant-radio-wrapper-checked{
+ color: $primary-color;
+ }
+ }
+ .journalsCount{
+ color:#5e6685;
+ background-color:rgba(70, 106, 255, 0.09);
+ border-radius:10px;
+ display: inline-block;
+ padding: 0px 6px;
}
}
.commentUserImg{
@@ -16,7 +25,7 @@
border-radius: 50%;
object-fit: cover;
}
-.commentsBox{
+.issueCommentsBox{
.iconBackBox{
display: inline-block;
width:24px;
@@ -26,43 +35,115 @@
text-align: center;
background-color:#f2f3f5;
}
- .operationLogTopBor, .operationLogBottomBor{
- width: 1px;
- height: 20px;
- background-color:#eeeeee;
- margin-left: 12px;
+ .operationLog, .commentContentBox{
+ position: relative;
+ min-height: 62px;
+ display: flex;
+ >.flexCenter, >a{
+ z-index: 2;
+ }
+ &::before, &::after{
+ content: '';
+ width: 1px;
+ height: 50%;
+ position: absolute;
+ background: #eee;
+ left: 12px;
+ z-index: 1;
+ }
+ &::after{
+ background: #eee;
+ top: 50%;
+ }
}
- .operationLogTopBor{
- margin-bottom: -3px;
+ .commentContentBox+.operationLog .operationCommentBor, .operationLog+.commentContentBox .commentOperationBor{
+ border-top: 1px solid #eee;
+ width: 98.5%;
+ position: absolute;
+ left: 12px;
}
- .operationLogBottomBor{
- margin-top: -4px;
+ .operationLog+.commentContentBox{
+ &>a, &>.commentContentRight{
+ margin-top: 25px;
+ }
}
.timeAgo{
color:#acb0bf;
}
- .operationLog:last-child .operationLogBottomBor, .operationLog:first-child .operationLogTopBor{
+ .operationLog:last-child::after, .operationLog:first-child::before, .commentContentBox:last-child::after, &.justComment .commentContentBox::before, &.justComment .commentContentBox::after{
display: none;
}
- .commentContent, .commentContentBox+.operationLog{
- border-top: 1px solid #eeeeee;
+ .operationLog:first-child, .commentContentBox+.operationLog{
+ margin-top: -15px;
}
- .commentContentBox:first-of-type .commentContent{
- border-top: none;
+ .commentContentBox:last-child::before{
+ height: 35%;
}
.flexCenter{
display: flex;
align-items: center;
justify-content: space-between;
}
- .contentHtml, .commentReply{
- margin-left: 34px;
+ .commentRenderHtml.markdown-body p{
+ font-size: 13px !important;
}
.commentReply{
- padding: 15px 0 15px 20px;
+ padding: 15px 0 0 20px;
background-color: rgba(238, 240, 246, 0.41);
- &+.commentReply{
- border-top: 1px dashed #eeeeee;
+ &>div{
+ padding-bottom: 5px;
+ }
+ &+.commentReply>div{
+ margin-top: -15px;
+ padding-top: 15px;
+ border-top: 1px dashed #eee;
+ }
+ }
+ .opBox{
+ justify-content: flex-start;
+ // flex: 1;
+ // width: 100%;
+ }
+ .commentContentBox{
+ display: flex;
+ }
+ .commentContentRight{
+ flex: 1;
+ background-color:#fafafc;
+ border:1px solid rgba(42, 97, 255, 0.23);
+ border-radius:6px;
+ position: relative;
+ top: -6px;
+ padding: 10px 15px 16px;
+ &::before{
+ content: '';
+ display: block;
+ position: absolute;
+ top: 13px;
+ left: -14px;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+ font-size: 0;
+ line-height: 0;
+ border: 7px;
+ border-style: solid;
+ border-color: transparent rgba(42, 97, 255, 0.23) transparent transparent;
+ }
+ &::after{
+ content: '';
+ display: block;
+ width: 0;
+ height: 0;
+ overflow: hidden;
+ font-size: 0;
+ line-height: 0;
+ border: 6px;
+ border-style: solid;
+ border-color: transparent #fafafc transparent transparent;
+ position: absolute;
+ top: 14px;
+ left: -11px;
}
}
}
@@ -71,14 +152,12 @@
}
.attachmentBox{
margin-top: -8px;
- margin-left: 27px;
}
.color-grey-89{
color: #898d9d;
}
// 添加评论样式
.unLoginComment{
- width:871px;
height:58px;
line-height: 58px;
background-color:rgba(241, 243, 252, 0.55);
@@ -92,4 +171,22 @@
color: red;
margin-top: -10px;
margin-bottom: 5px !important;
+}
+.addComments{
+ display: flex;
+ align-items: center;
+ background-color:rgba(241, 243, 252, 0.55);
+ border-radius:4px;
+ padding:7px 10px;
+ &>img{
+ height: 26px;
+ width: 26px;
+ border-radius: 50%;
+ margin-right: 13px;
+ }
+}
+.addCommentBox{
+ width: 100%;
+ height: 30px;
+ border: none;
}
\ No newline at end of file
diff --git a/src/forge/Issues/index.scss b/src/forge/Issues/index.scss
index 8665daf9..8a6acf72 100644
--- a/src/forge/Issues/index.scss
+++ b/src/forge/Issues/index.scss
@@ -661,20 +661,7 @@
}
}
-// 评论相关
-.addcomments{
- display: flex;
- align-items: flex-start;
- background-color:rgba(241, 243, 252, 0.55);
- border-radius:4px;
- padding:11px 20px;
- &>img{
- height: 36px;
- width: 36px;
- border-radius: 50%;
- margin-right: 13px;
- }
-}
+
.overlaydrop{
&.large{
width: 260px;
diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx
index dbfe770f..5cf79b79 100644
--- a/src/forge/Main/tree/Index.jsx
+++ b/src/forge/Main/tree/Index.jsx
@@ -263,16 +263,10 @@ function Index(props) {
// 新建分支按钮点击函数
function addBranchBtn(){
setAddBranch(true);
- const url = `/v1/${owner}/${projectsId}/branches.json`;
- Axios.get(url,{
- params:{
- page: 1,
- limit: total
- }
- }).then(result=>{
+ const url = `/v1/${owner}/${projectsId}/branches/all.json`;
+ Axios.get(url).then(result=>{
if(result){
- const {branches} = result.data;
- setBranchList(branches);
+ setBranchList(result.data);
}
}).catch(error=>{console.log('error', error);})
}
@@ -393,7 +387,7 @@ function Index(props) {
{newBranchError}
分支起点
-
- {item.effective_date || "暂无截止时间"}
+ 0 ? 'outTime' : ''}`}>{item.effective_date || "暂无截止时间"}
{item.opened_issues_count || 0}个开启
diff --git a/src/forge/Order/milepost.scss b/src/forge/Order/milepost.scss
index b8aa29e1..5b5d122f 100644
--- a/src/forge/Order/milepost.scss
+++ b/src/forge/Order/milepost.scss
@@ -52,10 +52,13 @@
}
.milepostInfo{
display: inline-block;
- width: 500px;
+ width: 640px;
}
.actionMileBox{
width: 550px;
+ .outTime{
+ color: red;
+ }
}
}
.createMilepostBtn{
diff --git a/src/forge/users/Material/Phone.jsx b/src/forge/users/Material/Phone.jsx
index 8eb78ae2..bc355542 100644
--- a/src/forge/users/Material/Phone.jsx
+++ b/src/forge/users/Material/Phone.jsx
@@ -20,7 +20,7 @@ export default Form.create()(
function checkPsd(rule, value, callback){
const map = passMap;
if(value){
- current_user && Axios.post(`/v1/${current_user.login}/check_password.json`,{
+ current_user && value.length > 8 && Axios.post(`/v1/${current_user.login}/check_password.json`,{
password: value
}).then(res=>{
if(res && !res.data.status){
@@ -50,7 +50,7 @@ export default Form.create()(
callback("请先输入登录密码");
}
if(value){
- current_user && value && value.length > 4 && Axios.post(`/v1/${current_user.login}/check_phone_verify_code.json`,{
+ current_user && value && value.length > 5 && Axios.post(`/v1/${current_user.login}/check_phone_verify_code.json`,{
code_type: 4,
phone: phoneValue,
code: value
@@ -192,7 +192,7 @@ export default Form.create()(
{required:true,message:"请输入登录密码"},
{validator:(rule, value, callback)=>checkPsd(rule, value, callback)}
],
- validateTrigger:"onBlur",
+ validateTrigger:"onChange",
})(
)}
@@ -203,7 +203,7 @@ export default Form.create()(
{required:true,message:"请输入新手机号码"},
{validator:(rule, value, callback)=>checkPhone(rule, value, callback)}
],
- validateTrigger:"onBlur",
+ validateTrigger:"onChange",
})(
)}
@@ -215,7 +215,7 @@ export default Form.create()(
{required:true,message:"请输入短信验证码"},
{validator:(rule, value, callback)=>checkCode(rule, value, callback)}
],
- validateTrigger:"onBlur",
+ validateTrigger:"onChange",
})(
)}