1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <template>
- <list-test :bindData="siteListData" :bindUrl="linkUrl" :bindIcon="linkIcon" :bindNum="num" :bindType="type"
- :bindDetailUrl="detailUrl">
- </list-test>
- </template>
- <script>
- import json from '../../data/json.js';
- export default {
- data() {
- return {
- type: 1,
- linkUrl: '/pages/alarmingList/alarmingList',
- linkIcon: '../../static/site-icon-alarm.png',
- siteListData: [],
- num: ' 共3个未处理告警',
- detailUrl: '/pages/siteDetail/siteDetail'
- };
- },
- onPullDownRefresh() {
- console.log('refresh');
- setTimeout(function() {
- uni.stopPullDownRefresh();
- }, 1000);
- },
- computed: {
- },
- mounted() {
-
- },
- onLoad() {
- this.getSiteList()
- },
- methods: {
- getSiteList() {
-
- uni.request({
- url: 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/IntegratedAlarm/getSiteList',
- data: {
- "companyCode": "13"
- },
- header: {
- 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8'
- },
- method: 'POST',
- success: (res) => {
- console.log('res.data')
- console.log(res.data.data)
- this.siteListData=res.data.data
- }
- });
- }
- }
- }
- </script>
- <style>
- </style>
|