浏览代码

起始图标颜色。

jxq 1 月之前
父节点
当前提交
9e94815ce7
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/process/components/steps.vue

+ 6 - 2
src/views/process/components/steps.vue

@@ -21,8 +21,11 @@
               <span :class="selectStepIndex == index ? 'indexText hoverTextColor' : 'indexText'">{{ index + 1 }}</span>
             </div>
             <div class="midTextBox">
-              <div :class="selectStepIndex == index ? 'stepName stepNameHover' : 'stepName'">
-                {{ item.operationName }}{{ item?.isFirst ? "(起始)" : "" }}
+              <div
+                :class="selectStepIndex == index ? 'stepName stepNameHover' : 'stepName'"
+                style="display: flex; align-items: center; justify-content: center"
+              >
+                {{ item.operationName }}<el-icon v-if="item?.isFirst" color="#008000FF"><Discount /></el-icon>
               </div>
               <div :class="selectStepIndex == index ? 'stepStation stepStationHover' : 'stepStation'">
                 {{ item.operationCode }}
@@ -62,6 +65,7 @@
 
 <script lang="ts" setup>
 import { useProcessStore } from "@/store";
+import { Discount } from "@element-plus/icons-vue";
 import { emitter, EventsNames } from "@/utils/common";
 import { getScan } from "@/api/process";
 import { Transition } from "vue";