Browse Source

bench详情页,最下方Issue右侧添加”新建“按钮

hao lei 1 year ago
parent
commit
0eff263b31
1 changed files with 23 additions and 2 deletions
  1. 23 2
      src/components/BenchDetail/index.vue

+ 23 - 2
src/components/BenchDetail/index.vue

@@ -72,7 +72,10 @@
           </el-row>
         </div>
         <div class="issue-ticket">
-          <div style="margin: 1.66vh auto 1.48vh auto">Issue Ticket</div>
+          <div style="margin: 1.66vh auto 1.48vh auto;display: flex;align-items: center;">
+            <span>Issue Ticket</span>
+            <div class="routerToBmtBtn" @click="routerToBmt">+</div>
+          </div>
           <my-table :columns="issueColumns" :table-data="issueTableData"></my-table>
         </div>
       </div>
@@ -210,7 +213,10 @@ export default {
         })
         this.$store.dispatch('common/setSquareStatus', false)
       }
-    }
+    },
+    routerToBmt(){
+      window.open("http://106.14.237.165/task/ticket/set?tab=1", "_blank");
+    },
   }
 };
 </script>
@@ -276,4 +282,19 @@ export default {
   right: 10px;
 }
 
+.routerToBmtBtn{
+  width: 24px;
+  height: 24px;
+  background: linear-gradient(180deg, #83cbfb 0%, #2e74b2 100%);
+  border-radius: 50%;
+  color: #fff;
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  font-size: 20px;
+  font-weight: bold;
+  margin-left: 10px;
+  padding-bottom: 2px;
+  cursor: pointer;
+}
 </style>