浏览代码

feat:新增内嵌静态共通页面(注:单点登录不可用)

韩帛霖 1 年之前
父节点
当前提交
924caf9bc8

+ 0 - 1
zkqy-ui/src/layout/components/Sidebar/SidebarItem.vue

@@ -90,7 +90,6 @@ export default {
       return false
     },
     resolvePath(routePath, routeQuery) {
-
       if (isExternal(routePath)) {
         return routePath
       }

+ 40 - 0
zkqy-ui/src/views/tablelist/commonTable/embeddedIndex.vue

@@ -0,0 +1,40 @@
+<template>
+  <IFRAME
+    :src="url"
+    frameBorder=0 marginwidth=0 marginheight=0 scrolling=no
+    style="margin-left: 0px;padding: 0px; width: 100%;height: 1280px"
+    ALLOWTRANSPARENCY="true"></IFRAME>
+</template>
+<script>
+
+export default {
+  name: 'embeddedIndex',
+  data() {
+    return {
+      url: "",
+      // 参数实例
+      data: {
+        "uri": "http://192.168.110.59:8066/oauth2/authorize",
+        "client_id": "htmes",
+        "redirect_uri": "http://192.168.110.76:8087/oauth/callback",
+        "key": "asd",
+        "tenantCode": "huaxian"
+      }
+    }
+  },
+  computed: {},
+  mounted() {
+    let {
+      uri,
+      client_id,
+      redirect_uri,
+      key,
+      tenantCode
+    } = this.$route.query;
+    key = window.localStorage.getItem("setoauthUUID" + this.userInfo.name);
+    this.url = uri + "?client_id=" + client_id + "&scope=basic&response_type=code&state=AB1357&redirect_uri=" + redirect_uri + "&tenantCode=" + tenantCode + "&key=" + key;
+    console.log("最终:", this.url)
+  },
+  methods: {}
+}
+</script>