智慧农业大数据平台
xiebin
2022-09-29 be639aa0a6b20c34168815f16fc2829271acf150
监测设备土壤数据不显示问题
3 files modified
11 ■■■■ changed files
src/views/equipment/index.vue 3 ●●●● patch | view | raw | blame | history
src/views/farm/index.vue 2 ●●● patch | view | raw | blame | history
src/views/home/index.vue 6 ●●●● patch | view | raw | blame | history
src/views/equipment/index.vue
@@ -216,7 +216,7 @@
                                </div>
                            </div>
                            <!-- 土壤监测 -->
                            <div v-for="(item, index) in stationData.soliList" :key="index">
                            <div v-for="(item, index) in stationData.soilList" :key="index">
                                <div class="top">
                                    <div class="l">
                                        <img
@@ -935,7 +935,6 @@
            const startTime = dateUtils.getSpecifyDayDate(10)// 获取10天前时间
            const endTime = dateUtils.getDayLast()// 获取今天最后日期
            getStationDateByStcd(stcd, startTime, endTime).then((res) => {
                console.log(res.data.data, '1111111111111111111234')
                // 遍历气象大集合
                res.data.data.weatherList.forEach(function (item, index) {
                    // 把气象无效数据过滤掉
src/views/farm/index.vue
@@ -545,7 +545,7 @@
                    <!-- 土壤监测 -->
                    <div
                        class="item"
                        v-for="(item, staListIndex) in stationData.soliList"
                        v-for="(item, staListIndex) in stationData.soilList"
                        :key="'soliList' + staListIndex"
                    >
                        <div class="itemTitle">
src/views/home/index.vue
@@ -712,8 +712,8 @@
                    <!-- 土壤监测 -->
                    <div
                        class="item"
                        v-for="(item, staListIndex) in stationData.soliList"
                        :key="'soliList' + staListIndex"
                        v-for="(item, staListIndex) in stationData.soilList"
                        :key="'soilList' + staListIndex"
                    >
                        <div class="itemTitle">
                            <img
@@ -2058,7 +2058,7 @@
            this.staInfo = item
            this.stationData = {}
            this.staionDetail = true
            let loadingInstance = Loading.service({ fullscreen: false, target: '.publicStaBox', text: '正在加载数据...', background: 'rgba(25, 67, 94,0.5)' })
            const loadingInstance = Loading.service({ fullscreen: false, target: '.publicStaBox', text: '正在加载数据...', background: 'rgba(25, 67, 94,0.5)' })
            this.$nextTick(() => {
                setTimeout(() => {
                    loadingInstance.close()