|
|
@@ -10,7 +10,7 @@
|
|
|
<div class="archives-time-line">
|
|
|
<div class="archives-time-line-header" @click="handleJump">
|
|
|
<div class="line-title">作物档案</div>
|
|
|
- <el-date-picker style="width: 110px" v-model="date" type="year" placeholder="全部日期" />
|
|
|
+ <!-- <el-date-picker style="width: 110px" v-model="date" type="year" placeholder="全部日期" /> -->
|
|
|
</div>
|
|
|
<div class="archives-time-line-content">
|
|
|
<div class="report-box">
|
|
|
@@ -37,7 +37,7 @@
|
|
|
|
|
|
<!-- 农事执行弹窗 -->
|
|
|
<agri-execute-popup v-model:show="showAgriExecutePopup" :popupData="agriExecuteData"
|
|
|
- @executed="handleAgriExecuted" />
|
|
|
+ @executed="handleAgriExecuted" @close="handleClosePopup" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -62,13 +62,18 @@ const agriExecuteData = ref({});
|
|
|
const handleAgriExecuted = () => {
|
|
|
showAgriExecutePopup.value = false;
|
|
|
// router.push("/interaction_list?expertMiniUserId=81881&oldUser=true");
|
|
|
+ handleClosePopup();
|
|
|
router.push("/interaction_list?expertMiniUserId=81881");
|
|
|
};
|
|
|
|
|
|
+const expertInfo = ref({});
|
|
|
const checkHasUnrepliedTriggeredInteraction = async () => {
|
|
|
const { data } = await VE_API.home.hasUnrepliedTriggeredInteraction({ farmId: localStorage.getItem("selectedFarmId") });
|
|
|
if (data && data.id != null) {
|
|
|
+ expertInfo.value = data;
|
|
|
agriExecuteData.value = {
|
|
|
+ expertAvatar: data.expertAvatar,
|
|
|
+ expertName: data.expertName,
|
|
|
title: data.interactionTypeName,
|
|
|
abnormalText: data.reason,
|
|
|
exampleImg: JSON.parse(data.exampleImagesJson)[0],
|
|
|
@@ -319,8 +324,6 @@ onMounted(() => {
|
|
|
currentPage.value = 1;
|
|
|
finished.value = false;
|
|
|
broadcastList.value = [];
|
|
|
- getStayCount();
|
|
|
- checkHasUnrepliedTriggeredInteraction();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -356,6 +359,12 @@ function handleReportClick() {
|
|
|
query: { miniJson: JSON.stringify({ id: gardenId.value }) },
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+const handleClosePopup = () => {
|
|
|
+ VE_API.monitor.closeTodayPopup({
|
|
|
+ interactionId: expertInfo.value.id,
|
|
|
+ });
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|