| | |
| | | <!-- 巡检任务 --> |
| | | <template> |
| | | <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/> |
| | | <view> |
| | | <WebViewPlus :src="`${viewUrl}`" @webMessage="onPostMessage"/> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup> |
| | |
| | | // 清除数据 |
| | | const encodedData = encodeURIComponent(JSON.stringify({ device_sn: '' })) |
| | | uni.setStorageSync('webview_params', encodedData); |
| | | |
| | | uni.setStorageSync('lastTab', 'task'); |
| | | uni.setTabBarItem({ |
| | | index: 2, // Tab 的索引(从0开始) |
| | | visible: true, |
| | | pagePath: "subPackages/taskDetail/addTask/index" |
| | | }); |
| | | uni.setTabBarItem({ |
| | | index: 3, // Tab |
| | | visible: false, |
| | | index: 2, |
| | | text: '', |
| | | iconPath: 'static/images/tabbar/add.png', |
| | | selectedIconPath: 'static/images/tabbar/add.png' |
| | | }); |
| | | }); |
| | | |
| | |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | |
| | | </style> |
| | | </style> |