index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div id="screen" >
  3. <div class="hide_menu"></div>
  4. <iframe frameborder="no" width="100%" height="100%" :src="nlpSrc"></iframe>
  5. </div>
  6. </template>
  7. <script>
  8. import {getNLPAuthData} from "@/utils/auth";
  9. export default {
  10. name: "Index",
  11. data() {
  12. return {
  13. nlpAuthData: getNLPAuthData(),
  14. nlpSrc: 'http://10.70.192.135:8000/#/'
  15. }
  16. },
  17. created() {
  18. //带上authData 跳转到 nlp 系统
  19. if(this.nlpAuthData && this.nlpAuthData.length > 0) {
  20. this.nlpSrc = this.nlpSrc + "?authData=" + encodeURI(this.nlpAuthData)
  21. } else {
  22. // 提示nlp登录失败,请修改nlp系统密码与本系统一致
  23. this.$modal.msgError("智能数据搜索系统登录失败,请修改密码与本系统一致");
  24. }
  25. },
  26. }
  27. </script>
  28. <style>
  29. #screen{
  30. padding:0px;
  31. margin:0px;
  32. position:absolute;
  33. top:0px;
  34. left:0px;
  35. width:100%;
  36. height:100%;
  37. border:hidden;
  38. }
  39. .hide_menu {
  40. width:300px;
  41. height: 3.375rem !important;
  42. position: absolute;
  43. top:0;
  44. right: 12px;
  45. background: #f5f6f7;
  46. }
  47. </style>