|
@@ -1,9 +1,72 @@
|
|
|
<template>
|
|
|
- <div class="container"></div>
|
|
|
+ <div class="container">
|
|
|
+ <div class="operator active" v-for="(item, index) in stepComponents" :key="index">
|
|
|
+ <div class="operatorText">{{ item.compentName }}</div>
|
|
|
+ <div class="operatorIcon">
|
|
|
+ <svg-icon :icon-class="item.compentType" size="45" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
const input = ref("");
|
|
|
+const stepComponents = ref([
|
|
|
+ {
|
|
|
+ compentName: "叫料",
|
|
|
+ compentType: "jiaoliao",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ compentName: "工位上料",
|
|
|
+ compentType: "gongweishangliao",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ compentName: "物料流转",
|
|
|
+ compentType: "liuzhuan",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ compentName: "图纸",
|
|
|
+ compentType: "tuzhi",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ compentName: "报故",
|
|
|
+ compentType: "baogu",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ compentName: "报工",
|
|
|
+ compentType: "baogong",
|
|
|
+ },
|
|
|
+]);
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.container {
|
|
|
+ width: 100%;
|
|
|
+ font-weight: $Medium;
|
|
|
+
|
|
|
+ .operator {
|
|
|
+ width: 100%;
|
|
|
+ height: 88px;
|
|
|
+ border-radius: 16px;
|
|
|
+ background-color: white;
|
|
|
+ margin-top: 20px;
|
|
|
+ display: flex;
|
|
|
+ padding: 20px;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .operatorText {
|
|
|
+ font-size: $f24;
|
|
|
+ }
|
|
|
+
|
|
|
+ .operatorIcon {
|
|
|
+ font-weight: 800;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.active {
|
|
|
+ background-color: #64bb5c;
|
|
|
+ color: white;
|
|
|
+}
|
|
|
+</style>
|