Quellcode durchsuchen

Merge branch 'qhse_cert' of shuzhihua/pms-iot-vue into master

yanghao vor 1 Tag
Ursprung
Commit
a9ef3fe2a2

+ 3 - 2
src/views/pms/qhse/faultReport/QhseFaultReportInfo.vue

@@ -137,7 +137,7 @@ defineOptions({ name: 'QhseFaultReportInfo' })
 const message = useMessage() // 消息弹窗
 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
 
-const { params } = useRoute() // 查询参数
+const route = useRoute() // 查询参数
 const props = defineProps<{ id?: number }>()
 const formData = ref({
   actualTime: null, // 使用时间戳格式
@@ -152,7 +152,8 @@ const formData = ref({
   remark: ''
 })
 onMounted(async () => {
-  const id = props.id || params.id
+  const id = route.query.id
+
   if (!id) {
     message.warning('参数错误,事故事件上报不能为空!')
     close()

+ 3 - 3
src/views/pms/qhse/faultReport/index.vue

@@ -12,7 +12,7 @@
           </template>
         </el-alert>
 
-        <el-alert title="" type="warning" :closable="false" style="margin-top: 5px">
+        <el-alert title="" type="error" :closable="false" style="margin-top: 5px">
           <template #default>
             <div class="text-[16px]">
               <p>发生B级事故,应半小时内上报到专业公司,12小时内上报到集团运营共享中心及总裁;</p>
@@ -22,7 +22,7 @@
 
         <el-alert title="" type="error" :closable="false" style="margin-top: 5px">
           <template #default>
-            <div class="text-[16px]">
+            <div class="text-[16px] text-[#d84c07]">
               <p>发生A级事故,应立即上报到专业公司,2小时内上报到集团运营共享中心及总裁;</p>
             </div>
           </template>
@@ -33,7 +33,7 @@
             <Icon icon="ep:info-filled" />
           </template>
           <template #default>
-            <div class="text-[17px]">
+            <div class="text-[17px] text-[#d84c07]">
               <p>严谨迟报、漏报、瞒报!!!</p>
             </div>
           </template>