Browse Source

我准备开放token了

wjj 3 years ago
parent
commit
16b8c811a0

+ 7 - 3
src/pages/edit/components/Step2/index.jsx

@@ -474,6 +474,9 @@ const Step2 = (props) => {
                             <div className={styles.testBugItemTitleBlock}>
                               <span className={styles.testBugItemTitle}>标题:</span>
                               <span className={styles.testBugItemTitleDetail}>{item.title}</span>
+                            </div>
+                            <div className={styles.testBugItemTitleBlock}>
+                              <span className={styles.testBugItemTitle}>特征:</span>
                               <Tag color="cyan">{recurrent[item.recurrent - 1]}</Tag>
                               <Tag color="red">{severity[item.severity - 1]}</Tag>
                               <Tag color="geekblue">{item.bug_category}</Tag>
@@ -765,7 +768,7 @@ const Step2 = (props) => {
             name="testName"
           >
             <Upload
-              action='/api/upload/image'
+              action='/Bug/api/upload/image'
               data={file => ({ // data里存放的是接口的请求参数
                 file,
                 caseId: currentTestCaseRef.current.id,
@@ -826,14 +829,15 @@ const Step2 = (props) => {
           </Form>
         </div>
       </Modal>
-      <Modal title="任务推荐" visible={showTaskRecommendModal}
+      <Modal title="任务推荐"
+             visible={showTaskRecommendModal}
              destroyOnClose width={1000}
              onOk={() => setTaskRecommendModal(false)}
              onCancel={() => {
                setTaskRecommendModal(false);
              }
              }
-             className="addModal">
+             className={styles.recommendModal}>
         <div>
           <BugGuideTree />
         </div>

+ 8 - 1
src/pages/edit/components/Step2/index.less

@@ -143,7 +143,7 @@
       img {
         width: 100px;
         height: 100px;
-        margin:5px 10px;
+        margin:30px 10px;
       }
       span {
         display: inline-block;
@@ -191,6 +191,13 @@
   color: #1890ff;
   margin-top: -20px;
 }
+.recommendModal{
+  :global{
+    .ant-modal-header{
+      background-color: #94c879;
+    }
+  }
+}
 
 @media screen and (max-width: @screen-md) {
   .desc {