11e39d337cdba293e500df7c02285aef87b33e7b.svn-base 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <el-container class="base_info">
  3. <el-main style="padding:0 10px;" class="content_wrapper">
  4. <iframe :src="'/pageofficePath/pageoffice/show?rgstrId='+currentNodeId+'&type='+wordType+'&persId='+persId"
  5. frameborder="0" width="100%" height="100%" style="overflow: auto"></iframe>
  6. </el-main>
  7. </el-container>
  8. </template>
  9. <script>
  10. import request from "@util/gw_ajax_request.js";
  11. export default {
  12. components: {},
  13. props: ["currentNodeId","type"],
  14. data() {
  15. return {
  16. ywType:'1', // 业务类型 基础信息
  17. wordType:'',
  18. };
  19. },
  20. mounted: function() {
  21. },
  22. computed: {
  23. persId() {
  24. return localStorage.getItem("userid")
  25. ? localStorage.getItem("userid")
  26. : "1098101939614724096";
  27. },
  28. },
  29. methods: {
  30. async getBaseInfo() {
  31. await this.setWordType()
  32. },
  33. setWordType(){
  34. // 不足补零 1是基础信息
  35. if(this.type != undefined && this.type.length == 1){
  36. this.wordType = this.ywType + "0"+this.type;
  37. }else if(this.type.length == 2){
  38. this.wordType = this.ywType + this.type;
  39. }
  40. }
  41. },
  42. created: function() {
  43. this.getBaseInfo()
  44. },
  45. watch: {
  46. currentNodeId() {
  47. this.getBaseInfo();
  48. },
  49. type(){
  50. this.getBaseInfo();
  51. }
  52. }
  53. };
  54. </script>
  55. <style>
  56. .content_wrapper {
  57. height: calc(100vh - 190px);
  58. overflow-y: auto;
  59. }
  60. </style>