1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <div id="screen" >
- <div class="hide_menu"></div>
- <iframe frameborder="no" width="100%" height="100%" :src="nlpSrc"></iframe>
- </div>
- </template>
- <script>
- import {getNLPAuthData} from "@/utils/auth";
- export default {
- name: "Index",
- data() {
- return {
- nlpAuthData: getNLPAuthData(),
- nlpSrc: 'http://10.70.192.135:8000/#/'
- }
- },
- created() {
- //带上authData 跳转到 nlp 系统
- if(this.nlpAuthData && this.nlpAuthData.length > 0) {
- this.nlpSrc = this.nlpSrc + "?authData=" + encodeURI(this.nlpAuthData)
- } else {
- // 提示nlp登录失败,请修改nlp系统密码与本系统一致
- this.$modal.msgError("智能数据搜索系统登录失败,请修改密码与本系统一致");
- }
- },
- }
- </script>
- <style>
- #screen{
- padding:0px;
- margin:0px;
- position:absolute;
- top:0px;
- left:0px;
- width:100%;
- height:100%;
- border:hidden;
- }
- .hide_menu {
- width:300px;
- height: 3.375rem !important;
- position: absolute;
- top:0;
- right: 12px;
- background: #f5f6f7;
- }
- </style>
|