index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="content">
  3. <web-view :src="src"></web-view>
  4. </view>
  5. </template>
  6. <script>
  7. export default {
  8. data() {
  9. return {
  10. id: null,
  11. title: null,
  12. option: {},
  13. show: false,
  14. page: 1,
  15. limit: 10,
  16. recordList: [],
  17. src: null
  18. }
  19. },
  20. onLoad(options) {
  21. this.id = options.id
  22. this.title = options.title
  23. this.src = `/static/webview/report-wv.html?id=${this.id}`
  24. // this.getReportTable()
  25. },
  26. onReady() {
  27. setTimeout(() => {
  28. uni.setNavigationBarTitle({
  29. title: this.title
  30. });
  31. }, 500)
  32. },
  33. methods: {
  34. //返回按钮
  35. handelBack() {
  36. uni.switchTab({
  37. url: '/pages/reportForm/index'
  38. });
  39. },
  40. //报表详情
  41. getReportTable(){
  42. uni.$http.get('/reportTable/getReportTableById', {
  43. id: this.id
  44. }).then(res => {
  45. console.log(res, 'res');
  46. })
  47. }
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. ::v-deep .luckysheet_info_detail_back {
  53. display: none !important;
  54. }
  55. ::v-deep .u-button {
  56. width: 160rpx;
  57. height: 60rpx
  58. }
  59. .btn {
  60. position: absolute;
  61. left: 50%;
  62. bottom: 2%;
  63. margin-left: -80rpx;
  64. }
  65. .uni-td {
  66. width: 600rpx;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. }
  70. </style>