Kaynağa Gözat

1.添加工序svgs。2.工步头部布局。

jiaxiaoqiang 1 yıl önce
ebeveyn
işleme
4ef6d9475f

Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
src/assets/icons/ESOP.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 5 - 0
src/assets/icons/dianjian.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 3 - 0
src/assets/icons/duomeiticaiji.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 7 - 0
src/assets/icons/jiluxiang.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 7 - 0
src/assets/icons/jingu.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
src/assets/icons/mingpai.svg


Dosya farkı çok büyük olduğundan ihmal edildi
+ 10 - 0
src/assets/icons/shebeijilu.svg


+ 4 - 0
src/assets/icons/tiaoshipipei.svg

@@ -0,0 +1,4 @@
+<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path fill-rule="evenodd" clip-rule="evenodd" d="M19.1923 1.81634C19.4871 1.99855 19.6666 2.32042 19.6666 2.66699V8.00033H17.6666V4.28503L6.33325 9.95169V26.3823L12.886 23.1059L13.7805 24.8948L5.78047 28.8948C5.47048 29.0497 5.10234 29.0332 4.80752 28.851C4.5127 28.6688 4.33325 28.3469 4.33325 28.0003V9.33366C4.33325 8.95489 4.54725 8.60862 4.88604 8.43923L18.2194 1.77257C18.5294 1.61757 18.8975 1.63414 19.1923 1.81634Z" fill="black" fill-opacity="0.9"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M27.1923 3.14968C27.4871 3.33188 27.6666 3.65375 27.6666 4.00033V22.667C27.6666 23.0458 27.4526 23.392 27.1138 23.5614L13.7805 30.2281C13.4705 30.3831 13.1023 30.3665 12.8075 30.1843C12.5127 30.0021 12.3333 29.6802 12.3333 29.3337V10.667C12.3333 10.2882 12.5473 9.94196 12.886 9.77257L26.2194 3.1059C26.5294 2.95091 26.8975 2.96747 27.1923 3.14968ZM14.3333 11.285V27.7156L25.6666 22.049V5.61836L14.3333 11.285Z" fill="black" fill-opacity="0.9"/>
+</svg>

Dosya farkı çok büyük olduğundan ihmal edildi
+ 9 - 0
src/assets/icons/wuliaocaiji.svg


+ 4 - 0
src/styles/index.scss

@@ -43,3 +43,7 @@
   text-align: left;
   margin-bottom: 20px;
 }
+
+.elColClasss {
+  height: calc(100vh - 130px);
+}

+ 7 - 0
src/views/pro-steps/Jiluxiang.vue

@@ -0,0 +1,7 @@
+<template>
+  <div>jlx</div>
+</template>
+
+<script lang="ts" setup></script>
+
+<style lang="scss" scoped></style>

+ 7 - 0
src/views/pro-steps/MultimediaCapture.vue

@@ -0,0 +1,7 @@
+<template>
+  <div>src/views/pro-steps</div>
+</template>
+
+<script lang="ts" setup></script>
+
+<style lang="scss" scoped></style>

+ 109 - 3
src/views/pro-steps/index.vue

@@ -1,7 +1,113 @@
 <template>
-  <div class="mainContentBox">工步</div>
+  <div class="mainContentBox">
+    <el-row :gutter="20">
+      <el-col :span="4" class="elColClasss"> 对对对</el-col>
+      <el-col :span="20" class="elColClasss">
+        <div class="typeContainer">
+          <div
+            v-for="(item, index) in stepComponents"
+            :key="index"
+            :class="getNameClass(index)"
+            class="typeBox"
+            @click="clickToolCom(item, index)"
+          >
+            <svg-icon :icon-class="item.compentType" size="30" />
+            <div class="name">{{ item.compentName }}</div>
+          </div>
+        </div>
+      </el-col>
+    </el-row>
+  </div>
 </template>
 
-<script lang="ts" setup></script>
+<script setup>
+const stepComponents = ref([
+  {
+    compentName: "记录项",
+    compentType: "jiluxiang",
+    route: "",
+  },
+  {
+    compentName: "物料采集",
+    compentType: "wuliaocaiji",
+  },
+  {
+    compentName: "ESOP",
+    compentType: "ESOP",
+  },
+  {
+    compentName: "点检",
+    compentType: "dianjian",
+  },
+  {
+    compentName: "设备记录",
+    compentType: "shebeijilu",
+  },
+  {
+    compentName: "紧固",
+    compentType: "jingu",
+  },
+  {
+    compentName: "调试配对",
+    compentType: "tiaoshipipei",
+  },
+  {
+    compentName: "铭牌绑定",
+    compentType: "mingpai",
+  },
+  {
+    compentName: "多媒体采集",
+    compentType: "duomeiticaiji",
+  },
+]);
+const selectIndex = ref(-1);
+const currentCom = ref({});
 
-<style lang="scss" scoped></style>
+const clickToolCom = (com, index) => {
+  selectIndex.value = index;
+  currentCom.value = com;
+};
+const getNameClass = (index) => {
+  return index === selectIndex.value ? "typeBoxSelected" : "typeBoxNormal";
+};
+</script>
+
+<style lang="scss" scoped>
+.typeContainer {
+  width: 100%;
+  overflow-x: auto;
+  display: flex;
+  justify-content: flex-start;
+}
+
+.typeBox {
+  height: 80px;
+  width: 150px;
+  border-radius: 4px 4px 4px 4px;
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  align-items: center;
+
+  .name {
+    width: 70px;
+    height: 16px;
+    font-weight: 500;
+    font-size: 14px;
+    line-height: 16px;
+    text-align: center;
+    font-style: normal;
+    text-transform: none;
+  }
+}
+
+.typeBoxNormal {
+  background: transparent;
+  color: rgba(0, 0, 0, 0.9);
+}
+
+.typeBoxSelected {
+  background: $select-hover;
+  color: white;
+}
+</style>