Browse Source

问题单修改

dengrui 6 months ago
parent
commit
807ad63184

+ 1 - 0
src/store/modules/dictionary.ts

@@ -17,6 +17,7 @@ export const useDictionaryStore = defineStore("dictionaryStore", () => {
     "disposal_measures_type",
     "escalation_fault_state",
     "excel_type",
+    "device_type",
   ];
   const dicts = ref<{ [key: string]: any[] }>({});
 

+ 6 - 0
src/views/pro-steps/components/dianjian.vue

@@ -13,6 +13,9 @@
         <div class="msgHeader">
           <div class="titleText">{{ item.checkName }}</div>
           <div class="describeText">单位:{{ item.unit }}</div>
+          <div class="describeText">
+            内容:{{ item.content }}
+          </div>
         </div>
         <div class="msgFooter">
           <div class="describeText">标准值:{{ item.standard }}</div>
@@ -124,6 +127,9 @@ const buhege = async (index) => {
 onMounted(() => {
   getCheckList();
 });
+onActivated(() => {
+  getCheckList();
+});
 </script>
 
 <style lang="scss" scoped>

+ 6 - 1
src/views/pro-steps/components/shebeijilu.vue

@@ -1,7 +1,9 @@
 <template>
   <div class="stepsViewScroll">
     <div class="recordBox" v-for="(item, index) in equitListData" :key="index">
-      <div class="headerText titleText">{{ item.equitType }}</div>
+      <div class="headerText titleText">
+        {{ dictS.getLableByValue("device_type", item.equitType) }}
+      </div>
       <div class="describeBox">
         <div class="describeText">精度要求</div>
         <div class="describeText" style="color: black">
@@ -100,6 +102,9 @@ import {
 } from "@/api/prosteps/shebeijilu";
 import { useProcessStore } from "@/store";
 defineOptions({ name: "Shebeijilu" });
+import { useDictionaryStore } from "@/store";
+
+const dictS = useDictionaryStore();
 const selectStatus = ref(false);
 const scanStatus = ref(false);
 const binding = async (item: any) => {