|
@@ -171,7 +171,7 @@
|
|
<div class="detail-text">查看详情></div>
|
|
<div class="detail-text">查看详情></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div class="card-link" v-if="card.execute === 0 || card.execute === 2|| (card.execute === 3 && card.orderStatus === null)" @click.stop="handlePage(card)">
|
|
|
|
|
|
+ <div class="card-link" v-if="card.execute === 0 || card.execute === 2|| (card.execute === 3 && card.orderStatus === null) || card.orderStatus <0" @click.stop="handlePage(card)">
|
|
<!-- <img src="@/assets/img/weather_index/expert-icon.png" /> -->
|
|
<!-- <img src="@/assets/img/weather_index/expert-icon.png" /> -->
|
|
<img class="expert-icon" :src="card.expertIcon" />
|
|
<img class="expert-icon" :src="card.expertIcon" />
|
|
<div class="expert-name">
|
|
<div class="expert-name">
|
|
@@ -320,14 +320,6 @@ const toExpert = (expertName) =>{
|
|
eventBus.off('garden:organId', getListData)
|
|
eventBus.off('garden:organId', getListData)
|
|
eventBus.on('garden:organId', getListData)
|
|
eventBus.on('garden:organId', getListData)
|
|
|
|
|
|
-const areaIdVal = ref(2)
|
|
|
|
-eventBus.off('area:id')
|
|
|
|
-eventBus.on('area:id', ({areaId,farmId}) => {
|
|
|
|
- console.log('areaId', areaId);
|
|
|
|
- areaIdVal.value = areaId
|
|
|
|
- getFarmLog()
|
|
|
|
-})
|
|
|
|
-
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
// farmId.value = 88388;
|
|
// farmId.value = 88388;
|
|
|
|
|
|
@@ -339,20 +331,25 @@ onMounted(() => {
|
|
|
|
|
|
window.addEventListener("scroll", debouncedHandleScroll);
|
|
window.addEventListener("scroll", debouncedHandleScroll);
|
|
});
|
|
});
|
|
-eventBus.off("area:id", areaId);
|
|
|
|
-eventBus.on("area:id", areaId);
|
|
|
|
|
|
+eventBus.off("area:id", toggleAreaId);
|
|
|
|
+eventBus.on("area:id", toggleAreaId);
|
|
const regionId = ref(null)
|
|
const regionId = ref(null)
|
|
-function areaId({ areaId, farmId }) {
|
|
|
|
|
|
+function toggleAreaId({ areaId, farmId }) {
|
|
|
|
+ console.log('aaaaareid', areaId);
|
|
regionId.value = areaId
|
|
regionId.value = areaId
|
|
|
|
+
|
|
|
|
+ farmWorkList.value = []
|
|
getFarmWorkList(farmId)
|
|
getFarmWorkList(farmId)
|
|
|
|
+
|
|
|
|
+ getFarmLog()
|
|
// farmId.value = farmId
|
|
// farmId.value = farmId
|
|
}
|
|
}
|
|
|
|
|
|
function getListData(farmIdVal) {
|
|
function getListData(farmIdVal) {
|
|
farmId.value = farmIdVal
|
|
farmId.value = farmIdVal
|
|
getFarmDetail(farmId.value);
|
|
getFarmDetail(farmId.value);
|
|
- getFarmWorkList(farmId.value);
|
|
|
|
- getFarmLog()
|
|
|
|
|
|
+ // getFarmWorkList(farmId.value);
|
|
|
|
+ // getFarmLog()
|
|
}
|
|
}
|
|
|
|
|
|
const farmId = ref(null);
|
|
const farmId = ref(null);
|
|
@@ -366,7 +363,7 @@ onUnmounted(() => {
|
|
// 果园日志
|
|
// 果园日志
|
|
const indicatorChartData = ref({})
|
|
const indicatorChartData = ref({})
|
|
const getFarmLog = () => {
|
|
const getFarmLog = () => {
|
|
- VE_API.farm.fetchFarmLog({id: areaIdVal.value, farmId: farmId.value}).then(({data,code}) => {
|
|
|
|
|
|
+ VE_API.farm.fetchFarmLog({id: regionId.value, farmId: farmId.value}).then(({data,code}) => {
|
|
if(code === 0){
|
|
if(code === 0){
|
|
indicatorChartData.value = data
|
|
indicatorChartData.value = data
|
|
eventBus.emit('chart:updateOption', indicatorChartData.value)
|
|
eventBus.emit('chart:updateOption', indicatorChartData.value)
|
|
@@ -1024,7 +1021,7 @@ function addNsRecord(){
|
|
align-items: center;
|
|
align-items: center;
|
|
}
|
|
}
|
|
img {
|
|
img {
|
|
- width: 64px;
|
|
|
|
|
|
+ width: 36px;
|
|
}
|
|
}
|
|
.icon {
|
|
.icon {
|
|
padding-right: 2px;
|
|
padding-right: 2px;
|