|
@@ -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)
|