|
|
@@ -103,6 +103,14 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</popup>
|
|
|
+
|
|
|
+ <tip-popup v-model:show="showSuccessPopup" type="executeSuccess" text="物候期已确认" text2="正在生成专属农事方案" hideBtn>
|
|
|
+ <template #footer>
|
|
|
+ <div class="bottom-btn-container">
|
|
|
+ <div class="bottom-btn primary-btn" @click="showSuccessPopup=false">完成</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </tip-popup>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -112,6 +120,7 @@ import { Check } from "@element-plus/icons-vue";
|
|
|
import { ElMessage } from "element-plus";
|
|
|
import { useI18n } from "@/i18n";
|
|
|
import { base_img_url2 } from "@/api/config";
|
|
|
+import tipPopup from "@/components/popup/tipPopup.vue";
|
|
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
|
@@ -164,7 +173,7 @@ const sampleImage = ref(DEFAULT_SAMPLE_IMAGE);
|
|
|
const phenologyQuestion = ref("");
|
|
|
const phenologyHighlight = ref("");
|
|
|
const phenologyImage = ref(DEFAULT_PHENOLOGY_IMAGE);
|
|
|
-
|
|
|
+const showSuccessPopup = ref(false);
|
|
|
// ---------------------------------------------------------------------------
|
|
|
// 计算属性
|
|
|
// ---------------------------------------------------------------------------
|
|
|
@@ -422,6 +431,7 @@ const submitInteractResult = async (type = "time", { closeOnSuccess = true } = {
|
|
|
showMessage(res.msg || "提交成功", "success");
|
|
|
visible.value = false;
|
|
|
resetForm();
|
|
|
+ showSuccessPopup.value = true;
|
|
|
emit("success");
|
|
|
}
|
|
|
return true;
|
|
|
@@ -546,12 +556,14 @@ defineExpose({
|
|
|
margin: 12px 0;
|
|
|
border-radius: 8px;
|
|
|
overflow: hidden;
|
|
|
- background: #dfeaf5;
|
|
|
+ height: 148px;
|
|
|
+ // background: #dfeaf5;
|
|
|
|
|
|
img {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
height: 148px;
|
|
|
+ border-radius: 8px;
|
|
|
object-fit: cover;
|
|
|
}
|
|
|
|
|
|
@@ -676,6 +688,31 @@ defineExpose({
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+.bottom-btn-container {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ gap: 12px;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .bottom-btn {
|
|
|
+ padding: 0 25px;
|
|
|
+ border-radius: 4px;
|
|
|
+ font-size: 16px;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-weight: 500;
|
|
|
+ text-align: center;
|
|
|
+
|
|
|
+ &.primary-btn {
|
|
|
+ flex: 1;
|
|
|
+ background: #2199f8;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|
|
|
|
|
|
<!-- 日期面板 / 图片预览 / Message teleport 到 body,需高于弹窗 z-index: 20000 -->
|