restorePlantingPopup.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <template>
  2. <popup
  3. v-model:show="visible"
  4. round
  5. teleport="body"
  6. :z-index="20000"
  7. class="restore-planting-popup"
  8. :close-on-click-overlay="true"
  9. >
  10. <div class="popup-content">
  11. <img
  12. class="restore-planting-popup__decor"
  13. src="@/assets/img/agricultural/question.png"
  14. alt=""
  15. />
  16. <div class="restore-planting-popup__header">
  17. <div class="restore-planting-popup__title">
  18. <div>{{ t("agriFile.restoreFillQuestions") }}</div>
  19. <div>{{ t("agriFile.restorePlantingService") }}</div>
  20. </div>
  21. </div>
  22. <!-- 问题一:选择时间 -->
  23. <div v-if="questionType === 'time'" class="restore-planting-popup__card">
  24. <div class="restore-planting-popup__question">
  25. <template v-if="highlightWord && questionText.includes(highlightWord)">
  26. <span>{{ questionText.split(highlightWord)[0] }}</span>
  27. <span class="restore-planting-popup__keyword">{{ highlightWord }}</span>
  28. <span>{{ questionText.split(highlightWord).slice(1).join(highlightWord) }}</span>
  29. </template>
  30. <template v-else>{{ questionText }}</template>
  31. </div>
  32. <div class="restore-planting-popup__hint">{{ hintText }}</div>
  33. <div class="restore-planting-popup__photo">
  34. <img :src="sampleImage" alt="" />
  35. </div>
  36. <el-date-picker
  37. v-model="selectedDate"
  38. class="restore-planting-popup__date-picker"
  39. type="date"
  40. format="YYYY.MM.DD"
  41. value-format="YYYY.MM.DD"
  42. :placeholder="t('agriFile.selectTime')"
  43. :editable="false"
  44. :clearable="false"
  45. teleported
  46. popper-class="restore-planting-date-popper"
  47. style="width: 100%"
  48. />
  49. </div>
  50. <!-- 问题二:物候期选择 -->
  51. <div v-else class="restore-planting-popup__card">
  52. <div class="restore-planting-popup__question">
  53. <template v-if="phenologyHighlight && phenologyQuestion.includes(phenologyHighlight)">
  54. <span>{{ phenologyQuestion.split(phenologyHighlight)[0] }}</span>
  55. <span class="restore-planting-popup__keyword">{{ phenologyHighlight }}</span>
  56. <span>{{ phenologyQuestion.split(phenologyHighlight).slice(1).join(phenologyHighlight) }}</span>
  57. </template>
  58. <template v-else>{{ phenologyQuestion }}</template>
  59. </div>
  60. <div class="restore-planting-popup__photo restore-planting-popup__photo--guide">
  61. <img :src="phenologyImage" alt="" />
  62. <photo-provider :photo-closable="true">
  63. <photo-consumer :src="patrolGuideImage" :intro="patrolGuideImage">
  64. <div class="restore-planting-popup__guide-btn">
  65. {{ t("agriFile.viewPatrolGuide") }}
  66. </div>
  67. </photo-consumer>
  68. </photo-provider>
  69. </div>
  70. <div class="restore-planting-popup__options">
  71. <div
  72. v-for="item in phenologyOptions"
  73. :key="item.value"
  74. class="restore-planting-popup__option"
  75. :class="{ active: phenologyAnswer === item.value }"
  76. @click="handlePhenologySelect(item.value)"
  77. >
  78. <span>{{ item.label }}</span>
  79. <span v-if="phenologyAnswer === item.value" class="restore-planting-popup__option-check">
  80. <el-icon><Check /></el-icon>
  81. </span>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="restore-planting-popup__actions">
  86. <div
  87. class="restore-planting-popup__btn restore-planting-popup__btn--primary"
  88. :class="{ disabled: submitting }"
  89. @click="handleConfirm"
  90. >
  91. <span v-if="submitting" class="restore-planting-popup__btn-loading">
  92. <el-icon><Loading /></el-icon>
  93. </span>
  94. {{ questionType === "time" ? t("agriFile.confirmNow") : t("agriFile.submitInfo") }}
  95. </div>
  96. </div>
  97. </div>
  98. </popup>
  99. </template>
  100. <script setup>
  101. import { computed, onActivated, onDeactivated, ref } from "vue";
  102. import { Popup } from "vant";
  103. import { Check } from "@element-plus/icons-vue";
  104. import { ElMessage } from "element-plus";
  105. import { useI18n } from "@/i18n";
  106. import { base_img_url2 } from "@/api/config";
  107. const { t } = useI18n();
  108. const emit = defineEmits(["success"]);
  109. // ---------------------------------------------------------------------------
  110. // Props
  111. // ---------------------------------------------------------------------------
  112. const props = defineProps({
  113. /** 分区 id;不传则读当前选中农场缓存 */
  114. zoneId: { type: [Number, String], default: null },
  115. });
  116. // ---------------------------------------------------------------------------
  117. // 常量
  118. // ---------------------------------------------------------------------------
  119. const PHENOLOGY_PREFIX = "您的农场是否进入到 ";
  120. const DEFAULT_SAMPLE_IMAGE = require("@/assets/img/agricultural/baidian.png");
  121. const DEFAULT_PHENOLOGY_IMAGE = require("@/assets/img/common/sd-1.jpg");
  122. /** 巡园向导预览图 */
  123. const PATROL_GUIDE_IMAGE_PATH =
  124. "e84a8f1b-9842-434c-951f-068ff6963f31/6c8b7135-95b7-4c04-82ef-a2daeb674d0c/DJI_202608190758_001_6c8b7135-95b7-4c04-82ef-a2daeb674d0c/DJI_20260819080818_0085_V_code-ws0fsmg8zg8u.jpeg";
  125. const patrolGuideImage = base_img_url2 + PATROL_GUIDE_IMAGE_PATH;
  126. // ---------------------------------------------------------------------------
  127. // 页面状态
  128. // ---------------------------------------------------------------------------
  129. /** 弹窗显隐由接口数据控制,默认不展示 */
  130. const visible = ref(false);
  131. const questionType = ref("time"); // time | phenology
  132. const selectedDate = ref("");
  133. const phenologyAnswer = ref("");
  134. const submitting = ref(false);
  135. const hasDateInteract = ref(false);
  136. const hasOptionsInteract = ref(false);
  137. /** date_interact 原始数据,提交时可能用到 */
  138. const dateInteractData = ref(null);
  139. /** options_interact.interact 映射表,key 为 start_with 同类序号 */
  140. const interactMap = ref({});
  141. /** 当前展示的物候期序号(对应 interact 的 key) */
  142. const currentInteractKey = ref("");
  143. /** 用户确认「已到达」后写入,提交接口使用 */
  144. const selectedPeriodCode = ref("");
  145. const questionText = ref("");
  146. const highlightWord = ref("");
  147. const hintText = ref("");
  148. const sampleImage = ref(DEFAULT_SAMPLE_IMAGE);
  149. const phenologyQuestion = ref("");
  150. const phenologyHighlight = ref("");
  151. const phenologyImage = ref(DEFAULT_PHENOLOGY_IMAGE);
  152. // ---------------------------------------------------------------------------
  153. // 计算属性
  154. // ---------------------------------------------------------------------------
  155. const phenologyOptions = computed(() => [
  156. { value: "not_reached", label: t("agriFile.notReached") },
  157. { value: "reached", label: t("agriFile.reached") },
  158. { value: "passed", label: t("agriFile.passed") },
  159. ]);
  160. const interactKeys = computed(() =>
  161. Object.keys(interactMap.value).sort((a, b) => Number(a) - Number(b))
  162. );
  163. const getSelectedFarmId = () => {
  164. try {
  165. const farm = JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  166. return String(
  167. localStorage.getItem("selectedFarmId") || farm.farm_id || farm.id || ""
  168. );
  169. } catch {
  170. return String(localStorage.getItem("selectedFarmId") || "");
  171. }
  172. };
  173. const getSelectedZoneId = () => {
  174. try {
  175. const farm = JSON.parse(localStorage.getItem("selectedFarmData") || "{}");
  176. return farm.zone_id ?? farm.zoneId ?? null;
  177. } catch {
  178. return null;
  179. }
  180. };
  181. /** 每次实时读缓存,避免 computed 缓存旧 zone_id */
  182. const resolveZoneId = () => props.zoneId ?? getSelectedZoneId();
  183. /** 上次成功请求对应的农场/分区 */
  184. let lastFetchedFarmKey = "";
  185. /** 递增后旧请求的返回不再打开弹窗 */
  186. let requestSeq = 0;
  187. /** 当前页是否处于前台,离开后迟到的响应不展示 */
  188. let pageActive = false;
  189. const getFarmFetchKey = () => `${getSelectedFarmId()}|${resolveZoneId() ?? ""}`;
  190. // ---------------------------------------------------------------------------
  191. // 工具函数
  192. // ---------------------------------------------------------------------------
  193. /** 当天日期 YYYY-MM-DD */
  194. const formatToday = () => {
  195. const d = new Date();
  196. const y = d.getFullYear();
  197. const m = String(d.getMonth() + 1).padStart(2, "0");
  198. const day = String(d.getDate()).padStart(2, "0");
  199. return `${y}-${m}-${day}`;
  200. };
  201. /** 日期选择器 YYYY.MM.DD → 接口 YYYY-MM-DD */
  202. const toApiDate = (value) => (value ? String(value).replace(/\./g, "-") : "");
  203. /** 拼接 CDN 图片地址 */
  204. const resolveImageUrl = (path) => {
  205. if (!path) return "";
  206. if (/^https?:\/\//i.test(path)) return path;
  207. return base_img_url2 + String(path).replace(/^\//, "");
  208. };
  209. /** 从 interact_theme 引号中提取高亮词,如「来梢」 */
  210. const extractHighlightWord = (text) => {
  211. if (!text) return "";
  212. const match = String(text).match(/[“"「]([^”"」]+)[”"」]/);
  213. return match ? match[1] : "";
  214. };
  215. /** Message 需高于弹窗 z-index: 20000 */
  216. const showMessage = (message, type = "warning") => {
  217. ElMessage({
  218. message,
  219. type,
  220. customClass: "restore-planting-message",
  221. zIndex: 40000,
  222. });
  223. };
  224. const showWarning = (message) => showMessage(message, "warning");
  225. const resetForm = () => {
  226. questionType.value = hasDateInteract.value ? "time" : "phenology";
  227. selectedDate.value = "";
  228. phenologyAnswer.value = "";
  229. selectedPeriodCode.value = "";
  230. };
  231. // ---------------------------------------------------------------------------
  232. // 业务逻辑:填充问题 / 物候期切换
  233. // ---------------------------------------------------------------------------
  234. const applyDateInteract = (data) => {
  235. dateInteractData.value = data;
  236. questionText.value = data.interact_theme || "";
  237. highlightWord.value = extractHighlightWord(data.interact_theme);
  238. hintText.value = data.interact_reason || "";
  239. sampleImage.value = resolveImageUrl(data.guide_url) || DEFAULT_SAMPLE_IMAGE;
  240. };
  241. /** 按 interact key 刷新问题二文案与配图 */
  242. const applyPhenologyByKey = (key) => {
  243. const item = interactMap.value[key];
  244. if (!item) return;
  245. currentInteractKey.value = String(key);
  246. const name = item.period_name || "";
  247. phenologyHighlight.value = name;
  248. phenologyQuestion.value = `${PHENOLOGY_PREFIX}${name} ?`;
  249. phenologyImage.value = resolveImageUrl(item.pheno_pic_url) || DEFAULT_PHENOLOGY_IMAGE;
  250. selectedPeriodCode.value = "";
  251. };
  252. /** 暂未到达 → 前一个;已过 → 后一个 */
  253. const movePhenology = (direction) => {
  254. const keys = interactKeys.value;
  255. const idx = keys.indexOf(String(currentInteractKey.value));
  256. if (idx < 0) return false;
  257. const nextIdx = direction === "prev" ? idx - 1 : idx + 1;
  258. if (nextIdx < 0 || nextIdx >= keys.length) {
  259. showWarning(direction === "prev" ? "已是最早物候期" : "已是最晚物候期");
  260. return false;
  261. }
  262. applyPhenologyByKey(keys[nextIdx]);
  263. phenologyAnswer.value = "";
  264. return true;
  265. };
  266. const applyQuestionData = (data) => {
  267. hasDateInteract.value = !!data?.date_interact;
  268. hasOptionsInteract.value = !!data?.options_interact?.interact;
  269. if (hasDateInteract.value) {
  270. applyDateInteract(data.date_interact);
  271. }
  272. if (hasOptionsInteract.value) {
  273. interactMap.value = data.options_interact.interact || {};
  274. const startKey = String(data.options_interact.start_with ?? interactKeys.value[0] ?? "");
  275. applyPhenologyByKey(startKey);
  276. }
  277. // 有时间题优先展示;仅物候题则直接进入问题二
  278. questionType.value = hasDateInteract.value ? "time" : "phenology";
  279. visible.value = hasDateInteract.value || hasOptionsInteract.value;
  280. };
  281. /** 请求接口判断是否展示,并填充问题内容 */
  282. const checkShouldShow = async () => {
  283. const seq = ++requestSeq;
  284. const zoneId = resolveZoneId();
  285. const fetchKey = getFarmFetchKey();
  286. if (!pageActive) return;
  287. if (zoneId == null || zoneId === "") {
  288. visible.value = false;
  289. lastFetchedFarmKey = fetchKey;
  290. return;
  291. }
  292. try {
  293. const res = await VE_API.questionnaire.getInitialInteraction({
  294. zone_id: zoneId,
  295. date: formatToday(),
  296. });
  297. // 已切页或已有更新的请求时,丢弃这次结果,避免弹窗叠加
  298. if (seq !== requestSeq || !pageActive) return;
  299. if (res?.code === 200 && res.data) {
  300. applyQuestionData(res.data);
  301. } else {
  302. visible.value = false;
  303. }
  304. lastFetchedFarmKey = fetchKey;
  305. } catch (e) {
  306. if (seq !== requestSeq || !pageActive) return;
  307. visible.value = false;
  308. }
  309. };
  310. // ---------------------------------------------------------------------------
  311. // 事件处理 / 生命周期
  312. // ---------------------------------------------------------------------------
  313. // 进入 / 从其他页返回时重新请求;离开时已关弹窗,不能因「农场未变」跳过
  314. onActivated(() => {
  315. pageActive = true;
  316. visible.value = false;
  317. resetForm();
  318. checkShouldShow();
  319. });
  320. onDeactivated(() => {
  321. pageActive = false;
  322. requestSeq += 1;
  323. visible.value = false;
  324. lastFetchedFarmKey = "";
  325. });
  326. /**
  327. * 暂未到达 / 已过:立刻切到相邻物候期;
  328. * 已到达:选中并记下当前 period_code,供提交使用
  329. */
  330. const handlePhenologySelect = (value) => {
  331. if (value === "not_reached") {
  332. movePhenology("prev");
  333. return;
  334. }
  335. if (value === "passed") {
  336. movePhenology("next");
  337. return;
  338. }
  339. phenologyAnswer.value = "reached";
  340. const current = interactMap.value[currentInteractKey.value];
  341. selectedPeriodCode.value = current?.period_code || "";
  342. };
  343. /**
  344. * 组装保存感知结果载荷
  345. * @param {'time'|'phenology'} type 问题一不含 period_code;问题二不含 interact_code
  346. */
  347. const buildSubmitPayload = (type = "time") => {
  348. const payload = {
  349. zone_id: Number(resolveZoneId()) || resolveZoneId(),
  350. date: toApiDate(selectedDate.value) || formatToday(),
  351. };
  352. if (type === "time") {
  353. payload.interact_code = dateInteractData.value?.interact_code || "";
  354. } else {
  355. payload.period_code = selectedPeriodCode.value || "";
  356. }
  357. return payload;
  358. };
  359. /** 从 axios 错误中取出可读信息 */
  360. const getRequestErrorMessage = (err) => {
  361. const data = err?.response?.data;
  362. if (typeof data === "string" && data) return data;
  363. if (data?.msg) return data.msg;
  364. if (data?.message) return data.message;
  365. if (err?.message) return err.message;
  366. return "提交失败,请稍后再试";
  367. };
  368. /**
  369. * 调用保存感知结果接口
  370. * @param {'time'|'phenology'} type
  371. * @param {{ closeOnSuccess?: boolean }} options closeOnSuccess=false 时成功后不关弹窗(用于继续答问题二)
  372. */
  373. const submitInteractResult = async (type = "time", { closeOnSuccess = true } = {}) => {
  374. if (submitting.value) return false;
  375. submitting.value = true;
  376. try {
  377. const res = await VE_API.questionnaire.saveInteractResult(buildSubmitPayload(type));
  378. if (res?.code === 200) {
  379. if (closeOnSuccess) {
  380. showMessage(res.msg || "提交成功", "success");
  381. visible.value = false;
  382. resetForm();
  383. emit("success");
  384. }
  385. return true;
  386. }
  387. showMessage(res?.msg || "提交失败,请稍后再试", "error");
  388. return false;
  389. } catch (err) {
  390. showMessage(getRequestErrorMessage(err), "error");
  391. return false;
  392. } finally {
  393. submitting.value = false;
  394. }
  395. };
  396. const handleConfirm = async () => {
  397. if (submitting.value) return;
  398. // 问题一:立即确认 → 提交(不含 period_code)
  399. if (questionType.value === "time") {
  400. if (!selectedDate.value) {
  401. showWarning(t("agriFile.selectTime"));
  402. return;
  403. }
  404. const ok = await submitInteractResult("time", {
  405. // 还有问题二则提交成功后继续展示,不关弹窗
  406. closeOnSuccess: !hasOptionsInteract.value,
  407. });
  408. if (ok && hasOptionsInteract.value) {
  409. questionType.value = "phenology";
  410. }
  411. return;
  412. }
  413. // 问题二:需已选择「已到达」并写入 period_code;提交不含 interact_code
  414. if (phenologyAnswer.value !== "reached" || !selectedPeriodCode.value) {
  415. const current = interactMap.value[currentInteractKey.value];
  416. if (phenologyAnswer.value === "reached" && current?.period_code) {
  417. selectedPeriodCode.value = current.period_code;
  418. } else {
  419. showWarning("请确认当前物候期是否已到达");
  420. return;
  421. }
  422. }
  423. await submitInteractResult("phenology");
  424. };
  425. defineExpose({
  426. checkShouldShow,
  427. buildSubmitPayload,
  428. selectedPeriodCode,
  429. });
  430. </script>
  431. <style scoped lang="scss">
  432. .restore-planting-popup {
  433. width: 86%;
  434. padding: 18px 14px 16px;
  435. box-sizing: border-box;
  436. background: linear-gradient(180deg, #d7ecff 0%, #ffffff 28%);
  437. overflow: visible;
  438. &__header {
  439. display: flex;
  440. align-items: flex-start;
  441. justify-content: space-between;
  442. }
  443. &__title {
  444. font-size: 22px;
  445. line-height: 25px;
  446. color: #111;
  447. div {
  448. font-family: "PangMenZhengDao";
  449. }
  450. }
  451. .popup-content {
  452. position: relative;
  453. }
  454. &__decor {
  455. position: absolute;
  456. top: -8px;
  457. right: -4px;
  458. width: 78px;
  459. height: 78px;
  460. object-fit: contain;
  461. pointer-events: none;
  462. }
  463. &__card {
  464. margin-top: 12px;
  465. padding: 10px 12px 12px;
  466. border-radius: 12px;
  467. background: #eaf5ff;
  468. box-sizing: border-box;
  469. position: relative;
  470. z-index: 2;
  471. }
  472. &__question {
  473. font-size: 15px;
  474. line-height: 24px;
  475. color: #252525;
  476. font-weight: 500;
  477. }
  478. &__keyword {
  479. color: #2199f8;
  480. }
  481. &__hint {
  482. margin-top: 4px;
  483. font-size: 12px;
  484. line-height: 16px;
  485. color: #9e9e9e;
  486. }
  487. &__photo {
  488. position: relative;
  489. margin: 12px 0;
  490. border-radius: 8px;
  491. overflow: hidden;
  492. background: #dfeaf5;
  493. img {
  494. display: block;
  495. width: 100%;
  496. height: 148px;
  497. object-fit: cover;
  498. }
  499. &--guide img {
  500. height: 132px;
  501. }
  502. }
  503. &__guide-btn {
  504. position: absolute;
  505. top: 8px;
  506. right: 8px;
  507. height: 28px;
  508. padding: 0 10px;
  509. border-radius: 14px;
  510. background: rgba(0, 0, 0, 0.55);
  511. color: #fff;
  512. font-size: 12px;
  513. display: flex;
  514. align-items: center;
  515. justify-content: center;
  516. }
  517. &__options {
  518. margin-top: 12px;
  519. display: flex;
  520. gap: 8px;
  521. }
  522. &__option {
  523. position: relative;
  524. flex: 1;
  525. height: 36px;
  526. border-radius: 8px;
  527. background: #fff;
  528. border: 1px solid transparent;
  529. display: flex;
  530. align-items: center;
  531. justify-content: center;
  532. font-size: 13px;
  533. color: #333;
  534. box-sizing: border-box;
  535. &.active {
  536. border-color: #2199f8;
  537. color: #2199f8;
  538. }
  539. }
  540. &__option-check {
  541. position: absolute;
  542. top: 0;
  543. right: 0;
  544. width: 16px;
  545. height: 16px;
  546. border-radius: 0 6px 0 6px;
  547. background: #2199f8;
  548. color: #fff;
  549. display: flex;
  550. align-items: center;
  551. justify-content: center;
  552. font-size: 10px;
  553. }
  554. &__date-picker {
  555. width: 100%;
  556. :deep(.el-input__wrapper) {
  557. height: 40px;
  558. border-radius: 8px;
  559. box-shadow: none !important;
  560. background: #fff;
  561. padding: 0 12px;
  562. }
  563. :deep(.el-input__inner) {
  564. font-size: 14px;
  565. color: #333;
  566. }
  567. :deep(.el-input__prefix),
  568. :deep(.el-input__suffix) {
  569. color: rgba(0, 0, 0, 0.35);
  570. }
  571. }
  572. &__actions {
  573. margin-top: 12px;
  574. display: flex;
  575. align-items: center;
  576. justify-content: center;
  577. }
  578. &__btn {
  579. height: 40px;
  580. line-height: 40px;
  581. padding: 0 30px;
  582. border-radius: 20px;
  583. display: flex;
  584. align-items: center;
  585. justify-content: center;
  586. font-size: 16px;
  587. font-weight: 500;
  588. box-sizing: border-box;
  589. &--primary {
  590. // flex: 1;
  591. background: linear-gradient(180deg, #76c3ff 0%, #2199f8 100%);
  592. color: #fff;
  593. &.disabled {
  594. opacity: 0.6;
  595. pointer-events: none;
  596. }
  597. &-btn-loading {
  598. line-height: 16px;
  599. margin-right: 4px;
  600. }
  601. }
  602. }
  603. }
  604. </style>
  605. <!-- 日期面板 / 图片预览 / Message teleport 到 body,需高于弹窗 z-index: 20000 -->
  606. <style lang="scss">
  607. .restore-planting-date-popper {
  608. z-index: 30000 !important;
  609. }
  610. .PhotoSlider__Wrapper {
  611. z-index: 30001 !important;
  612. }
  613. .el-message.restore-planting-message {
  614. z-index: 40000 !important;
  615. }
  616. </style>