Commit 89e3088d by xue_wengang

众创应用管理跳转修改

parent fa62f3c4
......@@ -11,6 +11,7 @@ let base = {
codeUrl: "",
BaseURL: "/apiAjzbGaw", //"/apiAjzbGaw", //基础查询页得ip apiAjzb
rzURL: "/apiXzxtGaw", // "/apiXzxtGaw", //刑专二期得(日志)ip
wokerURL:'/apiWoker', //工作桌面
ydjwURL: "/apiYdjw", //移动警务终端版本管理
qgcxURL: '/apiQgCx', // 全国查询
cadaURL:'/cadaURL',
......
......@@ -30,6 +30,9 @@ export default {
token: userToken,
appToken: appToken,
};
if(self.$route.query.info){
sessionStorage.setItem('zhyyToken',self.$route.query.info)
}
var params = new URLSearchParams();
var zjhm = "";
if (self.$route.query?.idcard) {
......
......@@ -22,6 +22,9 @@
<script>
import SelectTree from "@c/tree_components.vue";
import SelectTreeDialog from "@c/treeCode_components.vue";
import url from "@/api/base";
import request from "@/utils/axiosHttp.js";
import qs from "qs";
export default {
name: "ptCxForm",
components: {
......@@ -72,58 +75,53 @@ export default {
},
methods: {
goDetail(type) {
var url = "http://89.0.23.203:9047/api/sys/getTokenForUser"; //线上应用
$.ajax({
url: url,
type: "post",
xhrFields: {
withCredentials: true,
},
crossdomain: true,
success: function (data) {
var redirect = "";
if ("magl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/sso/xzxtSSO?systemID=MA0101000055";
} else if ("sqgl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/sheqiang/main?V=1&desktopAppId=4035";
} else if ("gmgl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/zxyw_gab_aly/zxywLink.jsp?biz=gmfnet";
} else if ("wzmstgl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/wmst/#/?desktopAppId=4045";
} else if ("szrygl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/szry/#/?desktopAppId=4044";
} else if ("rxbd" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/wjrxbd/index?desktopAppId=2901&desktopAppId=2901";
} else if ("zczl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/zcxz/zczl/request.do?desktopAppId=2321";
} else if ("shce" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/portal_shce/shce/index.jsp";
} else if ("wwfz" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/zxyw_ww/zxywLink.jsp?biz=wwfz&logo=wwfz&desktopAppId=2007";
} else if ("sdqpcl" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/zxyw_dqpcl/sendDimension/sendDimension.do?viewId=v_tb_sdqpcl&ywrk=ASJGLLB&xwzt=ASJGL001&jspUrl=/pages/sdqpcl/index.jsp&searchView=v_tb_sdqpcl~search&biz=dqpjdc&logo=sdqpjdcgl&desktopAppId=1769";
} else if ("qgztry" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/ztry/dist/index.html#/ztxxlr";
} else if ("shce" == type) {
redirect =
"&redirect_url=http://xz.xz.ga/portal_shce/shce/index_version2.jsp";
}
data = data + redirect;
window.open(data, "_blank");
},
error: function () {
console.log("获取部系统登录链接失败!");
this.getToken.then((res) => {
let path = "";
if ("magl" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/sso/xzxtSSO?systemID=MA0101000055";
} else if ("sqgl" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/sheqiang/main?V=1&desktopAppId=4035";
} else if ("gmgl" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/zxyw_gab_aly/zxywLink.jsp?biz=gmfnet";
} else if ("wzmstgl" == type) {
path = res.data.url + "&redirect_url=http://xz.xz.ga/wmst/#/?desktopAppId=4045";
} else if ("szrygl" == type) {
path = res.data.url + "&redirect_url=http://xz.xz.ga/szry/#/?desktopAppId=4044";
} else if ("rxbd" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/wjrxbd/index?desktopAppId=2901&desktopAppId=2901";
} else if ("zczl" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/zcxz/zczl/request.do?desktopAppId=2321";
} else if ("shce" == type) {
path = res.data.url + "&redirect_url=http://xz.xz.ga/portal_shce/shce/index.jsp";
} else if ("wwfz" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/zxyw_ww/zxywLink.jsp?biz=wwfz&logo=wwfz&desktopAppId=2007";
} else if ("sdqpcl" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/zxyw_dqpcl/sendDimension/sendDimension.do?viewId=v_tb_sdqpcl&ywrk=ASJGLLB&xwzt=ASJGL001&jspUrl=/pages/sdqpcl/index.jsp&searchView=v_tb_sdqpcl~search&biz=dqpjdc&logo=sdqpjdcgl&desktopAppId=1769";
} else if ("qgztry" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/ztry/dist/index.html#/ztxxlr";
} else if ("shce" == type) {
path = res.data.url +
"&redirect_url=http://xz.xz.ga/portal_shce/shce/index_version2.jsp";
}
window.open(path, "_blank");
});
},
getToken(params) {
return request({
url: url.wokerURL + "/api/sys/getTokenForUser",
params: qs.stringify(params),
method: "post",
headers: {
"content-type": "application/x-www-form-urlencoded",
"blade-auth": sessionStorage.getItem("zhyyToken"),
},
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment