diff --git a/src/forge/Issues/Component/allMenus.jsx b/src/forge/Issues/Component/allMenus.jsx
index 90afca543..e4085a0b7 100644
--- a/src/forge/Issues/Component/allMenus.jsx
+++ b/src/forge/Issues/Component/allMenus.jsx
@@ -53,6 +53,12 @@ function AllMenus({owner,projectsId,chooseFunc,update,defaultNames,defaultIds,op
// 父组件按钮:清除筛选条件,将Ids\names里的字段全部改为undefined
setIds({author_id:undefined,issue_tag_ids:undefined,issue_priorities_id:undefined,milestone_id:undefined,sort_by:undefined,status_id:undefined,assigner_id:undefined});
setNames({author_name:undefined,issue_tag_name:undefined,issue_priorities_name:undefined,milestone_name:undefined,sortby_name:undefined,status_name:undefined,assigner_name:undefined});
+ },
+ setChooseTag: (info) => {
+ let copy = {...ids,issue_tag_ids:[info.id].join(",")};
+ let copyname = { ...names,issue_tag_name:info.name};
+ setIds(copy);setNames(copyname);
+ chooseFunc(copy,copyname);
}
}))
// 获取发布人列表
diff --git a/src/forge/Issues/Component/datas.jsx b/src/forge/Issues/Component/datas.jsx
index dba2ab56e..ea9ae9c6f 100644
--- a/src/forge/Issues/Component/datas.jsx
+++ b/src/forge/Issues/Component/datas.jsx
@@ -7,7 +7,7 @@ import { Tooltip } from 'antd';
// issue列表显示
-function Datas({checkbox ,item , projectsId,owner}){
+function Datas({checkbox ,item , projectsId,owner,chooseTagFunc}){
function statusTag(name){
switch (name) {
@@ -40,7 +40,7 @@ function Datas({checkbox ,item , projectsId,owner}){
item.tags && item.tags.length>0?
item.tags.map((i,k)=>{
return(
- {i.name}
+ chooseTagFunc(i)} style={{backgroundColor: `${i.color}`,cursor:"pointer"}} className="ml8 tagscolor task-hide" title={i.name}>{i.name}
)
})
:""
diff --git a/src/forge/Issues/Img/millestones-big.png b/src/forge/Issues/Img/millestones-big.png
new file mode 100644
index 000000000..b57f83f31
Binary files /dev/null and b/src/forge/Issues/Img/millestones-big.png differ
diff --git a/src/forge/Issues/Pages/list.jsx b/src/forge/Issues/Pages/list.jsx
index bc177ec84..bb751f803 100644
--- a/src/forge/Issues/Pages/list.jsx
+++ b/src/forge/Issues/Pages/list.jsx
@@ -340,6 +340,10 @@ function List(props){
setBegin(value[0] || '');
setEnd(value[1] || '');
}
+
+ function chooseTagFunc(taginfo){
+ menuRef.current && menuRef.current.setChooseTag(taginfo);
+ }
return(
setVisible(false)} onSuccess={onSuccess}/>
@@ -439,6 +443,7 @@ function List(props){
item={item}
owner={owner}
projectsId={projectsId}
+ chooseTagFunc={chooseTagFunc}
/>
)
})
diff --git a/src/forge/Merge/merge.js b/src/forge/Merge/merge.js
index 237a07338..d8d83e155 100644
--- a/src/forge/Merge/merge.js
+++ b/src/forge/Merge/merge.js
@@ -407,7 +407,7 @@ class merge extends Component {
-
+
{data && data.search_count && data.search_count > 0 ? (
@@ -427,7 +427,7 @@ class merge extends Component {
):""}
{search_count > select_params.limit ? (
-
+
{
- total === 0 &&
+ total === 0 &&
+
+

+
欢迎使用里程碑
+
里程碑用于集中归类管理项目的疑修及进度。在使用之前,您可以先{props.history.push(`/${owner}/${projectsId}/issues/${mileId}/new`)}} className="color-blue">创建一个疑修
+
}
{
total > 0 &&
diff --git a/src/forge/Server/pages/index.jsx b/src/forge/Server/pages/index.jsx
index 84c0abf1a..521304bc3 100644
--- a/src/forge/Server/pages/index.jsx
+++ b/src/forge/Server/pages/index.jsx
@@ -32,9 +32,11 @@ function Pages(props) {
// 获取站点列表
axios.get(`/site_pages/x.json`, {params:{owner, repo: projectsId}}).then(res=>{
if(res && res.status === 200){
- const {last_build_info} = res.data.data
setPageInfo(res.data.data);
- last_build_info && last_build_info.length && setResult(last_build_info);
+ if(res.data.data){
+ const {last_build_info} = res.data.data;
+ last_build_info && last_build_info.length && setResult(last_build_info);
+ }
}
setLoading(false);
})
diff --git a/src/forge/Team/List.jsx b/src/forge/Team/List.jsx
index ed5f3d7ce..c69910749 100644
--- a/src/forge/Team/List.jsx
+++ b/src/forge/Team/List.jsx
@@ -7,7 +7,7 @@ import Item from './ListItem';
import Right from './RightBox';
import NoData from '../Nodata';
import CheckProfile from '../Component/ProfileModal/Profile';
-import { Menu , Pagination , Dropdown , Spin , Tabs , Radio } from 'antd';
+import { Menu , Pagination , Dropdown , Spin , Tooltip , Radio } from 'antd';
import ConcentrateProject from '../users/GeneralView/ConcentrateProject';
import { getImageUrl } from 'educoder';
import RenderHtml from "../../components/render-html";
@@ -117,7 +117,11 @@ function List(props){
设置
:""}
-
{organizeDetail && organizeDetail.description}
+
+
+ {organizeDetail && organizeDetail.description}
+
+
diff --git a/src/home/Index.scss b/src/home/Index.scss
index 2a708cd50..daf4c1993 100644
--- a/src/home/Index.scss
+++ b/src/home/Index.scss
@@ -812,8 +812,13 @@ body{
text-decoration: underline;
}
}
- span{
+ span.listboxcount{
+ margin-left: 20px;
+ }
+ span.listboxtime{
margin-left: 40px;
+ width: 97px;
+ text-align: right;
}
.listboxcount{
min-width: 60px;
diff --git a/src/home/ThirdEdition.jsx b/src/home/ThirdEdition.jsx
index ffd8e6f70..9f6844eaa 100644
--- a/src/home/ThirdEdition.jsx
+++ b/src/home/ThirdEdition.jsx
@@ -1,5 +1,6 @@
import React,{ useState , useEffect , useMemo } from 'react';
import { Spin , Skeleton } from 'antd';
+import moment from 'moment';
import T311 from './Img/3-1-1.png';
import T312 from './Img/3-1-2.png';
import T321 from './Img/3-2-1.png';
@@ -29,18 +30,18 @@ function ThirdEdition() {
return flag;
},[flag])
- useEffect(()=>{
- let box = document.getElementById('thirdUl');
- var myTimer = setTimeout(intervalActive, 2500);
- box.onmouseover = () => {
- clearTimeout(myTimer);
- setFlag(false);
- }
- box.onmouseleave = () => {
- myTimer = setTimeout(intervalActive, 2500);
- setFlag(true);
- }
- },[active,flag])
+ // useEffect(()=>{
+ // let box = document.getElementById('thirdUl');
+ // var myTimer = setTimeout(intervalActive, 2500);
+ // box.onmouseover = () => {
+ // clearTimeout(myTimer);
+ // setFlag(false);
+ // }
+ // box.onmouseleave = () => {
+ // myTimer = setTimeout(intervalActive, 2500);
+ // setFlag(true);
+ // }
+ // },[active,flag])
function intervalActive() {
if(doubleFlag){
@@ -141,8 +142,8 @@ function ThirdEdition() {
return(
{i.title}
- {i.visits}
- {i.created_time && i.created_time.split(" ")[0]}
+ {i.from !== "other" && {i.visits} }
+ {i.from !== "other" && {i.created_time && moment(i.created_time).format("YYYY-MM-DD")} }
)
}):""
@@ -179,8 +180,8 @@ function ThirdEdition() {
return(
{i.title}
- {i.visits}
- {i.created_time && i.created_time.split(" ")[0]}
+ {i.from !== "other" && {i.visits} }
+ {i.from !== "other" && {i.created_time && moment(i.created_time).format("YYYY-MM-DD")} }
)
}):""
@@ -198,8 +199,8 @@ function ThirdEdition() {
return(
{i.title}
- {i.visits}
- {i.created_time && i.created_time.split(" ")[0]}
+ {i.from !== "other" && {i.visits} }
+ {i.from !== "other" && {i.created_time && moment(i.created_time).format("YYYY-MM-DD")} }
)
}):""
diff --git a/src/modules/tpm/challengesnew/css/newquestion.css b/src/modules/tpm/challengesnew/css/newquestion.css
index 400cd5123..51831434f 100644
--- a/src/modules/tpm/challengesnew/css/newquestion.css
+++ b/src/modules/tpm/challengesnew/css/newquestion.css
@@ -80,6 +80,6 @@
border: none;
margin:0px auto;
}
-.editormd-editing .quoteBox{
+.editormd-editing.quoteBox .editormd{
overflow: unset;
}
\ No newline at end of file
diff --git a/src/modules/tpm/challengesnew/tpm-md-editor.js b/src/modules/tpm/challengesnew/tpm-md-editor.js
index 6b835f373..0f36bda75 100644
--- a/src/modules/tpm/challengesnew/tpm-md-editor.js
+++ b/src/modules/tpm/challengesnew/tpm-md-editor.js
@@ -762,8 +762,8 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla
return (
-
-
+
+
{quoteVisible && QuoteDiv }
{atWhoVisible && atWhoList}