12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <template>
- <view class="content">
- <web-view :src="src"></web-view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- id: null,
- title: null,
- option: {},
- show: false,
- page: 1,
- limit: 10,
- recordList: [],
- src: null
- }
- },
- onLoad(options) {
- this.id = options.id
- this.title = options.title
- this.src = `/static/webview/report-wv.html?id=${this.id}`
- // this.getReportTable()
- },
- onReady() {
- setTimeout(() => {
- uni.setNavigationBarTitle({
- title: this.title
- });
- }, 500)
- },
- methods: {
- //返回按钮
- handelBack() {
- uni.switchTab({
- url: '/pages/reportForm/index'
- });
- },
- //报表详情
- getReportTable(){
- uni.$http.get('/reportTable/getReportTableById', {
- id: this.id
- }).then(res => {
- console.log(res, 'res');
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- ::v-deep .luckysheet_info_detail_back {
- display: none !important;
- }
- ::v-deep .u-button {
- width: 160rpx;
- height: 60rpx
- }
- .btn {
- position: absolute;
- left: 50%;
- bottom: 2%;
- margin-left: -80rpx;
- }
- .uni-td {
- width: 600rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- </style>
|