+
+

+
+
+
+
+
+ 【
+ {data && data.issue_classify === "issue"
+ ? data.tracker
+ ? data.tracker
+ : "缺陷"
+ : "合并请求"}
+ 】
+
+ {data && data.subject}
+
-
-
- {data && data.issue_status === "关闭" ? "关闭中" : "开启中"}
-
- 由 {data && data.author_name} 于 {data && data.created_at}创建{data && data.journals_count && data.journals_count > 0 ? ` · ${data.journals_count} 条评论` : ""}
-
- {
- data && data.user_permission ?
-
- 复制
- this.deletedetail(orderId)}>
- 删除
+ {data && data.priority && (
+ {data.priority}
+ )}
+
+
+
由
+
+ {data && data.author_name}
+
+
+ 添加于 {data && data.created_at}
+
+ {data && data.user_permission ? (
+
+
+ 复制
+
+ this.deletedetail(orderId)}
+ >
+
+ 删除
+
- 编辑
+
+ 编辑
+
- :
+ ) : (
""
- }
-
-
-
-
-
-
-

-
-
- {data && data.description && (data.description.length > 0) ? this.commentCtx(data.description) : 没有描述}
-
- {
- data && data.attachments && data.attachments.length > 0 ?
-
- :
- ""
- }
-
+ )}
-
-
-
-
-
- {Paginations}
- {
- current_user && current_user.login ?
-
-
-
-

-
-
-
- :
-
登录并参与到对话中
- }
-
-
-
- 分支
- {
- data && data.branch_name ? data.branch_name : "--"
- }
-
-
- 标签
- {
- data && data.issue_tags ? {data.issue_tags[0].name} : "--"
- }
-
-
- 里程碑
- {
- data && data.version ? data.version : "--"
- }
-
-
- 当前状态
- {
- data && data.issue_status ? data.issue_status : "--"
- }
-
-
- 分类
- {
- data && data.tracker ? data.tracker : "--"
- }
-
-
- 指派给
- {data && data.assign_user_name ? data.assign_user_name : "--"}
-
-
- 优先级
- {data && data.priority ? data.priority : "--"}
-
-
- 完成度
- {data && data.done_ratio ? data.done_ratio : "--"}
-
-
+
+
+
+ {data && data.description && data.description.length > 0 ? (
+ this.commentCtx(data.description)
+ ) : (
+ 没有描述
+ )}
+ {data && data.attachments && data.attachments.length > 0 ? (
+
+ ) : (
+ ""
+ )}
+
+
+
+
+
+ 分支:
+ {data && data.branch_name ? data.branch_name : "--"}
+
+
+ 标签:
+
+ {data && data.issue_tags ? (
+
+ {data.issue_tags[0].name}
+
+ ) : (
+ "--"
+ )}
+
+
+
+ 里程碑:
+
+ {data && data.version ? data.version : "--"}
+
+
+
+ 状态:
+
+ {data && data.issue_status ? data.issue_status : "--"}
+
+
+
+ 分类:
+ {data && data.tracker ? data.tracker : "--"}
+
+
+ 负责人:
+
+ {data && data.assign_user_name ? data.assign_user_name : "--"}
+
+
+
+ 开始日期:
+ {data && data.start_date ? data.start_date : "--"}
+
+
+ 结束日期:
+ {data && data.due_date ? data.due_date : "--"}
+
+
+ token值:
+ {data && data.token ? data.token : "--"}
+
+
+ 完成度:
+ {data && data.done_ratio ? data.done_ratio : "--"}
+
-
-
-
- )
+ //
+ // {visible &&
}
+ //
+ //
+ //
+ // {
+ // data ?
+ // 【{data.issue_classify === "issue" ? (data.tracker ? data.tracker : "缺陷") : "合并请求"}】
+ // :
+ // ""
+ // }
+ // {data && data.subject}
+
+ //
+ //
+ // {data && data.issue_status === "关闭" ? "关闭中" : "开启中"}
+ //
+ // 由 {data && data.author_name} 于 {data && data.created_at}创建{data && data.journals_count && data.journals_count > 0 ? ` · ${data.journals_count} 条评论` : ""}
+ //
+ // {
+ // data && data.user_permission ?
+ //
+ // 复制
+ // this.deletedetail(orderId)}>
+ // 删除
+ //
+
+ // 编辑
+ //
+ // :
+ // ""
+ // }
+ //
+
+ //
+ //
+ //
+ //
+ //

+ //
+ //
+ // {data && data.description && (data.description.length > 0) ? this.commentCtx(data.description) : 没有描述}
+ //
+ // {
+ // data && data.attachments && data.attachments.length > 0 ?
+ //
+ // :
+ // ""
+ // }
+ //
+ //
+ //
+ //
+ //
+ //
+
+ // {Paginations}
+ // {
+ // current_user && current_user.login ?
+ //
+ //
+ //
+ //

+ //
+ //
+ //
+ // :
+ //
登录并参与到对话中
+ // }
+
+ //
+ //
+ //
+ // 分支
+ // {
+ // data && data.branch_name ? data.branch_name : "--"
+ // }
+ //
+ //
+ // 标签
+ // {
+ // data && data.issue_tags ? {data.issue_tags[0].name} : "--"
+ // }
+ //
+ //
+ // 里程碑
+ // {
+ // data && data.version ? data.version : "--"
+ // }
+ //
+ //
+ // 当前状态
+ // {
+ // data && data.issue_status ? data.issue_status : "--"
+ // }
+ //
+ //
+ // 分类
+ // {
+ // data && data.tracker ? data.tracker : "--"
+ // }
+ //
+ //
+ // 指派给
+ // {data && data.assign_user_name ? data.assign_user_name : "--"}
+ //
+ //
+ // 优先级
+ // {data && data.priority ? data.priority : "--"}
+ //
+ //
+ // 完成度
+ // {data && data.done_ratio ? data.done_ratio : "--"}
+ //
+
+ //
+ //
+ //
+ //
+ //
+ //
+ //
+ );
}
}
-const WrappedDetailForm = Form.create({ name: 'DetailOrderForm' })(Detail);
-export default WrappedDetailForm;
\ No newline at end of file
+const WrappedDetailForm = Form.create({ name: "DetailOrderForm" })(Detail);
+export default WrappedDetailForm;
diff --git a/src/forge/Order/order.css b/src/forge/Order/order.css
index 4d91b372..c083942b 100644
--- a/src/forge/Order/order.css
+++ b/src/forge/Order/order.css
@@ -503,7 +503,7 @@
/*text-align: right;*/
/*}*/
.span_title{
- min-width: 90px;
+ min-width: 40px;
margin-right: 15px;
text-align: right;
color: rgba(0, 0, 0, 0.65);
@@ -532,6 +532,8 @@ a.issue-type-button.active:hover{background: #f4f4f4; color: #4CACFF;}
.attachment-list-a{color: rgba(0, 0, 0, 0.65) !important;}
.btp1{border-top: 1px solid #f4f4f4;}
.grid-item{display: grid; align-items: center; grid-template-columns: max-content 1fr;}
+.grid-item-left{display: grid; align-items: center; grid-template-columns: 1fr max-content ;}
+
.fwb{font-weight: bold;}
/* 发布人、指派人数量过多时要出现滚动条 */
@@ -555,4 +557,13 @@ a.issue-type-button.active:hover{background: #f4f4f4; color: #4CACFF;}
.amplifyContent{
text-align: center;
}
-.mb-0{margin-bottom: 0 !important;}
\ No newline at end of file
+.mb-0{margin-bottom: 0 !important;}
+.text-yellow{color: #FF6E21;}
+.border-1f{border-bottom: 1px solid #f4f4f4;}
+.background-f{background: #fff;}
+.issue_detail_info{
+ width: 65px;
+ margin-right: 15px;
+ text-align: right;
+ color:#888888;
+}
\ No newline at end of file
diff --git a/src/forge/Order/order.js b/src/forge/Order/order.js
index 3051f17d..80ff7396 100644
--- a/src/forge/Order/order.js
+++ b/src/forge/Order/order.js
@@ -1,8 +1,7 @@
import React, { Component } from "react";
-import { Input, Dropdown, Menu, Icon, Pagination, Spin, Button, DatePicker } from "antd";
+import { Input, Dropdown, Menu, Icon, Pagination, Spin } from "antd";
import "./order.css";
-const { RangePicker } = DatePicker;
import NoneData from "../Nodata";
import OrderItem from "./OrderItem";
@@ -60,8 +59,6 @@ class order extends Component {
order_name: undefined,
order_type: undefined,
search: undefined,
- start_date:undefined,
- due_date: undefined,
page: 1,
limit: 15,
},
@@ -158,20 +155,13 @@ class order extends Component {
this.state.select_params.page = 1;
this.state[`${id}s`] = name;
if (current_user) {
- if (
- this.state.select_params.author_id &&
- parseInt(this.state.select_params.author_id) === current_user.user_id
- ) {
+ if ( this.state.select_params.author_id && parseInt(this.state.select_params.author_id) === current_user.user_id) {
this.state.author_id = current_user.user_id;
} else {
this.state.author_id = undefined;
}
- if (
- this.state.select_params.assigned_to_id &&
- parseInt(this.state.select_params.assigned_to_id) ===
- current_user.user_id
- ) {
+ if (this.state.select_params.assigned_to_id && parseInt(this.state.select_params.assigned_to_id) === current_user.user_id ) {
this.state.assigned_to_id = current_user.user_id;
} else {
this.state.assigned_to_id = undefined;
@@ -228,8 +218,6 @@ class order extends Component {
});
if (type) {
this.setState({
- author_id: undefined,
- assigned_to_id: undefined,
status_type: type,
issue_tag_ids: "标签",
tracker_ids: "所有分类",
@@ -377,42 +365,8 @@ class order extends Component {
);
return (
-
-
-
- 所有:
-
-
-
- 开启中:
-
-
-
- 已关闭:
-
-
-
-
-
-
-
-
-
-
-
-
- {/*
+
this.openorder("1")}
@@ -425,9 +379,9 @@ class order extends Component {
>
{data && data.close_count}个已关闭
- */}
+
- {/*
+
this.islogin()}>
创建任务
-
*/}
+