ソースを参照

style: 调整表格背景为白色

ZhaoJun 1 年間 前
コミット
50271d9805
2 ファイル変更9 行追加5 行削除
  1. 5 1
      src/global.less
  2. 4 4
      src/pages/TaskManage/Detail/TaskDetail/TaskDetail.tsx

+ 5 - 1
src/global.less

@@ -74,6 +74,7 @@ a {
 table {
   border-collapse: collapse;
   border-spacing: 0;
+  background-color: white;
 }
 
 // Remove input styling for IE
@@ -187,7 +188,9 @@ input[type='reset'] {
   padding-top: 0;
   padding-bottom: 0;
 }
-.ant-table,
+.ant-table{
+  background-color: white!important;
+}
 .ant-table-cell,
 .ant-table-placeholder {
   background: transparent !important;
@@ -197,6 +200,7 @@ input[type='reset'] {
 .ant-table-wrapper table {
   border-radius: 0 !important;
 }
+
 .ant-table-container {
   border: none !important;
 }

+ 4 - 4
src/pages/TaskManage/Detail/TaskDetail/TaskDetail.tsx

@@ -135,10 +135,10 @@ function TaskDetail(props: IPropsType) {
                 <div className={styles.leftInfo}>
                   <Row style={{ marginBottom: '15px' }}>
                     <Col className={styles.fontS24} span={12}>
-                      工单编号:{record.Id}
+                      工单编号:{record.Id || '-'}
                     </Col>
                     <Col className={styles.fontS24} span={12}>
-                      时间:{record.CreateTime}
+                      时间:{record.CreateTime || '-'}
                     </Col>
                   </Row>
                   <Row>
@@ -147,14 +147,14 @@ function TaskDetail(props: IPropsType) {
                       <span style={{ color: '#5697e4' }}>
                         {typeof record.Status === 'number'
                           ? '-'
-                          : record.Status.label}
+                          : record.Status?.label}
                       </span>
                     </Col>
                     <Col className={styles.fontS24} span={12}>
                       工单负责人:
                       {typeof record.Responsible === 'number'
                         ? '-'
-                        : record.Responsible.CName}
+                        : record.Responsible?.CName}
                     </Col>
                   </Row>
                 </div>