Преглед на файлове

feature/首页样式优化

dy преди 1 година
родител
ревизия
e723471daa
променени са 1 файла, в които са добавени 24 реда и са изтрити 4 реда
  1. 24 4
      src/views/process/components/transferNum.vue

+ 24 - 4
src/views/process/components/transferNum.vue

@@ -2,7 +2,18 @@
   <div class="commonTitle">流转卡号</div>
   <div class="body">
     <el-scrollbar class="scrollbar">
-      <Empty v-if="selectSeqArray.length < 1" />
+      <div
+        v-if="selectSeqArray.length < 1"
+        class="titleText"
+        style="
+          display: flex;
+          align-items: center;
+          justify-content: center;
+          min-height: calc(100vh - 216px);
+        "
+      >
+        请选择工序
+      </div>
       <div
         class="row"
         @click="clickCardNum(index)"
@@ -23,7 +34,14 @@
             >{{ item.seqNo }}</span
           >
         </el-tooltip>
-        <div class="status">
+        <div
+          :class="
+            dictS.getLableByValue('work_order_seq_state', String(item.state)) ==
+            '完成'
+              ? 'status success'
+              : 'status'
+          "
+        >
           {{
             dictS.getLableByValue("work_order_seq_state", String(item.state))
           }}
@@ -50,9 +68,11 @@ onMounted(() => {
 </script>
 
 <style lang="scss" scoped>
+.success {
+  color: #64BB5C;
+}
 .body {
   width: 100%;
-  max-height: calc(100% - 44px);
   background-color: white;
   border-radius: 16px;
   padding: 20px;
@@ -88,6 +108,6 @@ onMounted(() => {
 }
 
 .scrollbar {
-  min-height: calc(50vh - 85px);
+  height: calc(100vh - 210px);
 }
 </style>