dedsudiyu 1 月之前
父节点
当前提交
d3b634eb74

+ 26 - 3
src/views/integratedManagement/laboratoryManagement/subject/index.vue

@@ -312,6 +312,7 @@
   import admissionConfiguration from './admissionConfiguration.vue'
   import associationConfiguration from './associationConfiguration.vue'
   import infoPage from './infoPage.vue'
+  import { menuLinkPost } from "@/api/commonality/permission";
 
   export default {
     name: 'subject',
@@ -400,7 +401,6 @@
           if (this.codeList.length > 0) {
             let list = []
             this.codeList.forEach((item) => {
-              console.log('item', item)
               list.push({
                 code: item.infoId + '&subId=' + item.subId,
                 name: item.subName,
@@ -527,13 +527,36 @@
             break
           case '6':
             //跳转实验室设备第三方页面
-            console.log('row',row);
-            window.open('http://www.baidu.com','_blank','noreferrer');
+            let obj = {
+              //访问地址
+              linkUrl: "http://labcontrol.nwafu.edu.cn/ysms/admin/#/generator-fac/Fac",
+              // linkUrl: "https://lab.xf100.net/ysms-web/#/generator-fac/Fac",
+              //请求地址
+              reqApi: "labcontrol.nwafu.edu.cn/ysms/auth/ticket",
+              // reqApi: "lab.xf100.net/ysms/auth/ticket",
+            };
+            this.isAuthCarryLink(obj);
             break
           default:
             break
         }
       },
+      isAuthCarryLink(item) {
+        let urlText = window.location.href.split('://')[0]+'://';
+        let obj = {
+          appId:'550e8400-e29b-41d4-a716-446655440000',
+          appSecret:'Y3RpdGhpZXMpcmlzY2hlZGFwc2VjcmV0MGI3MzA1Mjc3Y2I0OTFlNGRhM2Q5ZTN6',
+          timeStamp:Date.parse(new Date()),
+          userId:localStorage.getItem('userId')
+        };
+        menuLinkPost(urlText+item.reqApi,obj).then(response => {
+          this.carryLink(item.linkUrl,response.data)
+        })
+      },
+      carryLink(linkUrl,data){
+        let argument = '?ticket='+data.ticket;
+        window.open(linkUrl+argument,'_blank','noreferrer')
+      },
       //电子信息牌导出关闭按钮
       dialogOff() {
         this.$set(this, 'dialogType', false)

+ 0 - 4
src/views/integratedManagement/laboratoryManagement/subject/infoPage.vue

@@ -160,10 +160,6 @@
               <p>离开检查是否上传照片:</p>
               <p>{{checkInData.checkOutUpload?'是':'否'}}</p>
             </div>
-            <div v-if="checkInData.signTime">
-              <p>签到有效时间:</p>
-              <p>{{checkInData.signTime}}小时</p>
-            </div>
           </div>
           <div class="inspection-right-box">
             <div v-if="checkInData.inspectCheckIn">