lipenghui 2 сар өмнө
parent
commit
8ceae448df

+ 11 - 2
src/views/pms/dingding.vue

@@ -51,10 +51,14 @@ const clickA = () =>{
 }
 
 onMounted(async () => {
-  const { type = '', id = '', userId='' } = route.query
+  const { type = '', id = '', userId='', deptId='',createTime='',orderStatus='' } = route.query
   const isValidType = Object.keys(businessRoutes).includes(type as string)
   if (isMobileDevice()) {
-    window.location.href = 'https://iot.deepoil.cc/deepoil/#/?type=' + type+'&id='+id+'&userId='+userId;
+    if (type==='generateOperation') {
+      window.location.href = 'https://iot.deepoil.cc/deepoil/#/?type=' + type+'&id='+id+'&userId='+userId+'&deptId='+deptId+'&createTime='+createTime+'&orderStatus='+orderStatus;
+    }else {
+      window.location.href = 'https://iot.deepoil.cc/deepoil/#/?type=' + type+'&id='+id+'&userId='+userId;
+    }
     // 移动端跳转deepoil协议
     // try{
     //   const typelower = type.toLowerCase();
@@ -91,6 +95,11 @@ onMounted(async () => {
           id: id
         }
       })
+    }else if(type === 'generateOperation'){
+      push({
+        name: 'IotOpeationFill',
+        params: { id }
+      })
     }
   } else {
     // 默认跳转

+ 1 - 0
src/views/pms/maintain/index.vue

@@ -151,6 +151,7 @@
           </el-table-column>
 <!--          <el-table-column label="故障编码" align="center" prop="failureCode" />-->
 <!--          <el-table-column label="故障名称" align="center" prop="failureName" />-->
+          <el-table-column :label="t('iotDevice.code')" align="center" prop="deviceCode" />
           <el-table-column :label="t('maintain.deviceName')" align="center" prop="deviceName" />
           <el-table-column :label="t('maintain.status')" align="center" prop="status" >
             <template #default="scope">