|
@@ -50,6 +50,19 @@
|
|
|
@later="handleAgriLater"
|
|
@later="handleAgriLater"
|
|
|
@executed="handleAgriExecuted"
|
|
@executed="handleAgriExecuted"
|
|
|
/>
|
|
/>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 提醒时间选择弹窗 -->
|
|
|
|
|
+ <reminder-time-popup
|
|
|
|
|
+ v-model:show="showReminderTimePopup"
|
|
|
|
|
+ @confirm="handleReminderTimeConfirm"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 执行轨迹弹窗 -->
|
|
|
|
|
+ <execute-trace-popup
|
|
|
|
|
+ v-model:show="showExecuteTracePopup"
|
|
|
|
|
+ @later="handleTraceLater"
|
|
|
|
|
+ @confirm="handleTraceConfirm"
|
|
|
|
|
+ />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
@@ -61,6 +74,8 @@ import { useRouter, useRoute } from "vue-router";
|
|
|
import wx from "weixin-js-sdk";
|
|
import wx from "weixin-js-sdk";
|
|
|
import tipPopup from "@/components/popup/tipPopup.vue";
|
|
import tipPopup from "@/components/popup/tipPopup.vue";
|
|
|
import agriExecutePopup from "@/components/popup/agriExecutePopup.vue";
|
|
import agriExecutePopup from "@/components/popup/agriExecutePopup.vue";
|
|
|
|
|
+import reminderTimePopup from "@/components/popup/reminderTimePopup.vue";
|
|
|
|
|
+import executeTracePopup from "@/components/popup/executeTracePopup.vue";
|
|
|
import knowledgeCard from "./components/knowledgeCard.vue";
|
|
import knowledgeCard from "./components/knowledgeCard.vue";
|
|
|
|
|
|
|
|
const store = useStore();
|
|
const store = useStore();
|
|
@@ -75,31 +90,62 @@ const handleBtn = () => {
|
|
|
|
|
|
|
|
// 农事执行弹窗相关
|
|
// 农事执行弹窗相关
|
|
|
const showAgriExecutePopup = ref(false); // 农事执行弹窗
|
|
const showAgriExecutePopup = ref(false); // 农事执行弹窗
|
|
|
-// const agriExecuteData = ref({
|
|
|
|
|
-// expertName: "韦帮稳",
|
|
|
|
|
-// title: "梢期杀虫 农事执行",
|
|
|
|
|
-// abnormalText: "由于***异常的出现,由于***异常的出现,由于***异常的出现,由于***异常的出现,",
|
|
|
|
|
-// imageUrl: "",
|
|
|
|
|
-// laterBtn:true,
|
|
|
|
|
-// });
|
|
|
|
|
-
|
|
|
|
|
const agriExecuteData = ref({
|
|
const agriExecuteData = ref({
|
|
|
expertName: "韦帮稳",
|
|
expertName: "韦帮稳",
|
|
|
- title: "农情互动任务采集",
|
|
|
|
|
- abnormalText: "现在已处于 花芽分化期 ,上传照片反馈您的荔枝生长近况",
|
|
|
|
|
|
|
+ title: "梢期杀虫 农事执行",
|
|
|
|
|
+ abnormalText: "由于***异常的出现,由于***异常的出现,由于***异常的出现,由于***异常的出现,",
|
|
|
imageUrl: "",
|
|
imageUrl: "",
|
|
|
- executedButtonText:'查看任务',
|
|
|
|
|
|
|
+ laterBtn:true,
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+// const agriExecuteData = ref({
|
|
|
|
|
+// expertName: "韦帮稳",
|
|
|
|
|
+// title: "农情互动任务采集",
|
|
|
|
|
+// abnormalText: "现在已处于 花芽分化期 ,上传照片反馈您的荔枝生长近况",
|
|
|
|
|
+// imageUrl: "",
|
|
|
|
|
+// executedButtonText:'查看任务',
|
|
|
|
|
+// });
|
|
|
|
|
+
|
|
|
// 农事执行弹窗相关方法
|
|
// 农事执行弹窗相关方法
|
|
|
const handleAgriLater = () => {
|
|
const handleAgriLater = () => {
|
|
|
console.log("稍后执行");
|
|
console.log("稍后执行");
|
|
|
// 可以在这里添加稍后执行的逻辑
|
|
// 可以在这里添加稍后执行的逻辑
|
|
|
|
|
+ // 关闭当前弹窗
|
|
|
|
|
+ showAgriExecutePopup.value = false;
|
|
|
|
|
+ // 显示提醒时间选择弹窗
|
|
|
|
|
+ showReminderTimePopup.value = true;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const handleAgriExecuted = () => {
|
|
const handleAgriExecuted = () => {
|
|
|
console.log("我已执行");
|
|
console.log("我已执行");
|
|
|
- // 可以在这里添加执行完成的逻辑
|
|
|
|
|
|
|
+ // 关闭当前弹窗
|
|
|
|
|
+ showAgriExecutePopup.value = false;
|
|
|
|
|
+ // 显示执行轨迹弹窗
|
|
|
|
|
+ showExecuteTracePopup.value = true;
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// 提醒时间选择弹窗相关
|
|
|
|
|
+const showReminderTimePopup = ref(false);
|
|
|
|
|
+
|
|
|
|
|
+// 确认提醒时间
|
|
|
|
|
+const handleReminderTimeConfirm = (time) => {
|
|
|
|
|
+ console.log("选择的提醒时间:", time);
|
|
|
|
|
+ // 可以在这里添加提交提醒时间的逻辑
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// 执行轨迹弹窗相关
|
|
|
|
|
+const showExecuteTracePopup = ref(false);
|
|
|
|
|
+
|
|
|
|
|
+// 稍后上传
|
|
|
|
|
+const handleTraceLater = () => {
|
|
|
|
|
+ console.log("稍后上传");
|
|
|
|
|
+ // 可以在这里添加稍后上传的逻辑
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+// 确认上传
|
|
|
|
|
+const handleTraceConfirm = () => {
|
|
|
|
|
+ console.log("确认上传");
|
|
|
|
|
+ // 可以在这里添加确认上传的逻辑
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 显示农事执行弹窗的方法(可以在需要的地方调用)
|
|
// 显示农事执行弹窗的方法(可以在需要的地方调用)
|