ソースを参照

更改右侧列表样式,添加时间字段

hao lei 11 ヶ月 前
コミット
6503e943e5

+ 2 - 2
src/components/SearchBar/index.vue

@@ -189,8 +189,8 @@ export default {
 }
 
 .squareBtn{
-  height: 23px;
-  width: 23px;
+  height: 22px;
+  width: 22px;
   background-image: url(../../assets/square.png);
 }
 

+ 20 - 0
src/views/ordinaryPage/index.less

@@ -280,6 +280,26 @@
         text-overflow: ellipsis;
       }
     }
+
+    .item-time {
+      display: flex;
+      margin-top: 0.92vh;
+      color: #d1d1d1;
+      font-size: 12px;
+
+      .time {
+        white-space: nowrap;
+        color: #f2f2f2;
+      }
+
+      .time:nth-child(1) {
+        margin-right: 10px;
+      }
+
+      .time:nth-child(2) {
+        margin-left: 10px;
+      }
+    }
   }
 
   .item-tag {

+ 13 - 6
src/views/ordinaryPage/index.vue

@@ -835,7 +835,7 @@ export default {
     window.bmMapItemUnSelect = this.bmMapItemUnSelect.bind(this);
     window.handleClickIssue = this.handleClickIssue.bind(this);
     window.selectBench = this.selectBench.bind(this);
-    that.$store.dispatch("taskList/clearTaskList")
+    that.$store.dispatch("taskList/clearTaskList");
     that.$store.dispatch("taskList/fetchTaskList", {
       page_num: 1,
       page_size: 1000,
@@ -901,7 +901,8 @@ export default {
           let benchId = JSON.parse(JSON.stringify(objRBL[i]));
           setTimeout(() => {
             console.log("connect bench", benchId);
-            wsArray[i]?.connectBench({ bench_id: String(benchId) })
+            wsArray[i]
+              ?.connectBench({ bench_id: String(benchId) })
               .then((res) => {
                 console.log("connect bench success", benchId);
                 self.getBenchImage(benchId, 1, wsArray[i], () => {});
@@ -973,10 +974,10 @@ export default {
     bus.on("switchScreen", (param) => {
       this.currentScreen = param.currentScreen;
     });
-    bus.on("goHome", ()=>{
+    bus.on("goHome", () => {
       this.isConnected = false;
       this.$store.dispatch("common/setSquareStatus", false);
-    })
+    });
   },
   methods: {
     turnToNextManualCase() {},
@@ -1143,7 +1144,7 @@ export default {
       this.$store.commit("planList/setPlanList", manualList);
       that.taskName = task.name;
       this.$nextTick(() => {
-        that.$store.dispatch("planList/clearPlanList")
+        that.$store.dispatch("planList/clearPlanList");
         that.$store.dispatch("planList/fetchPlanList", {
           page_num: 1,
           page_size: 10000,
@@ -1187,6 +1188,11 @@ export default {
                     <div class="item-title">${item.name}</div>
                     <div class="item-description">${item.description}</div>
                   </div>
+                  <div class="item-time">
+                      <div class="time">${item.start_time}</div>
+                      to
+                      <div class="time"> ${item.end_time}</div>
+                  </div>
                   <div class="item-tag">
                       <div class="tag">${item.processor_name}</div>
                       <div class="tag">${item.sw}</div>
@@ -1392,7 +1398,8 @@ export default {
       wsArrayLength++;
       setTimeout(() => {
         console.log("connect bench", benchId);
-        wsArray[i]?.connectBench({ bench_id: String(benchId) })
+        wsArray[i]
+          ?.connectBench({ bench_id: String(benchId) })
           .then((res) => {
             console.log("connect bench success", benchId);
             self.getBenchImage(benchId, 1, wsArray[i], () => {});