ArchivesFarmTimeLine.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729
  1. <template>
  2. <div class="timeline-container" ref="timelineContainerRef">
  3. <div class="timeline-list">
  4. <empty v-if="isEmpty" image="https://birdseye-img.sysuimars.com/birdseye-look-mini/custom-empty-image.png"
  5. image-size="80" description="暂无数据" class="empty-state" />
  6. <template v-else>
  7. <div v-for="(p, idx) in phenologyList" :key="`phenology-${uniqueTimestamp}-${idx}`"
  8. class="phenology-bar">
  9. <div class="phenology-title" :class="{
  10. 'phenology-red': isPhenologyBarGrayByWorkStatus(p),
  11. 'phenology-blue': !isPhenologyBarGrayByWorkStatus(p),
  12. }" v-if="shouldShowPhenologyBarTitle(idx)">
  13. {{ p.phenologyName }}
  14. </div>
  15. <div v-for="(r, rIdx) in Array.isArray(p.reproductiveList) ? p.reproductiveList : []"
  16. :key="`reproductive-${uniqueTimestamp}-${idx}-${rIdx}`" class="reproductive-item">
  17. <div class="arranges">
  18. <div v-for="(fw, aIdx) in Array.isArray(r.farmWorkArrangeList) ? r.farmWorkArrangeList : []"
  19. :key="`arrange-${uniqueTimestamp}-${idx}-${rIdx}-${aIdx}`" class="arrange-card" :class="[
  20. getArrangeStatusClass(fw),
  21. {
  22. 'last-card':
  23. aIdx === r.farmWorkArrangeList.length - 1 &&
  24. rIdx !== r.farmWorkArrangeList.length - 1,
  25. },
  26. ]" @click="handleRowClick(fw)">
  27. <div class="card-content">
  28. <div class="card-left" @click.stop="handleStatusDetail(fw)" style="width: 100%">
  29. <div class="left-info">
  30. <div class="left-date">{{ formatDate(fw.createTime) }}</div>
  31. <div class="text">
  32. <span class="van-ellipsis">{{ fw.title }}</span>
  33. <el-icon>
  34. <ArrowRight />
  35. </el-icon>
  36. </div>
  37. </div>
  38. <div class="farm-info" v-if="fw.work_status === 0 || fw.work_status === 1">
  39. <div class="info-left">
  40. <div>{{ fw.work_reason }}</div>
  41. </div>
  42. <div class="info-right">{{ fw.interaction_issue }}</div>
  43. </div>
  44. <div class="title-text van-ellipsis">{{ fw.work_time }} ({{ fw.crop_type_name
  45. }})</div>
  46. </div>
  47. <div class="status-right" :style="statusColorObj[fw.work_status]"
  48. v-if="fw.work_status !== 3 && fw.work_status !== 5">{{
  49. workStatusObj[fw.work_status] }}</div>
  50. </div>
  51. </div>
  52. </div>
  53. <template v-if="!shouldShowPhenologyBarTitle(idx)">
  54. <div class="phenology-name" :class="{
  55. 'phenology-red': isPhenologyRowGrayByWorkStatus(r),
  56. 'text-blue': !isPhenologyRowGrayByWorkStatus(r),
  57. }">
  58. {{ p.phenologyName }}
  59. </div>
  60. </template>
  61. </div>
  62. </div>
  63. </template>
  64. </div>
  65. </div>
  66. </template>
  67. <script setup>
  68. import { ref, nextTick, watch, onMounted, onUnmounted, onActivated, onDeactivated } from "vue";
  69. import { useRouter, useRoute, onBeforeRouteLeave } from "vue-router";
  70. import { ElMessage } from "element-plus";
  71. import { Empty } from "vant";
  72. const router = useRouter();
  73. const route = useRoute();
  74. const props = defineProps({
  75. // 农场 ID,用于请求农事规划数据
  76. farmId: {
  77. type: [String, Number],
  78. default: null,
  79. },
  80. });
  81. const emits = defineEmits(["row-click", "card-click"]);
  82. const phenologyList = ref([]);
  83. const timelineContainerRef = ref(null);
  84. const getTimelineScrollKey = () =>
  85. `timelineScrollTop:${props.farmId ?? "none"}:${route.path}`;
  86. const saveTimelineScrollTop = () => {
  87. if (!timelineContainerRef.value) return;
  88. const scrollTop = timelineContainerRef.value.scrollTop || 0;
  89. sessionStorage.setItem(getTimelineScrollKey(), scrollTop.toString());
  90. };
  91. const restoreTimelineScrollTop = () => {
  92. if (!timelineContainerRef.value) return false;
  93. const savedScrollTop = sessionStorage.getItem(getTimelineScrollKey());
  94. if (savedScrollTop == null) return false;
  95. const scrollTop = Number(savedScrollTop);
  96. if (Number.isNaN(scrollTop)) return false;
  97. const maxScrollTop = Math.max(
  98. 0,
  99. (timelineContainerRef.value.scrollHeight || 0) - (timelineContainerRef.value.clientHeight || 0)
  100. );
  101. timelineContainerRef.value.scrollTop = Math.min(scrollTop, maxScrollTop);
  102. return true;
  103. };
  104. const restoreTimelineScrollTopWithRetry = (retryCount = 4) => {
  105. const restored = restoreTimelineScrollTop();
  106. if (restored || retryCount <= 0) return restored;
  107. setTimeout(() => {
  108. restoreTimelineScrollTopWithRetry(retryCount - 1);
  109. }, 60);
  110. return false;
  111. };
  112. // 生成唯一的时间戳,用于确保 key 的唯一性
  113. const uniqueTimestamp = ref(Date.now());
  114. // 标记是否为空数据
  115. const isEmpty = ref(false);
  116. // 标记是否正在请求数据,防止重复请求
  117. const isRequesting = ref(false);
  118. // 记录上一次请求作用域,避免相同参数重复请求
  119. const lastRequestedFarmId = ref(null);
  120. const farmWorkPlanScopeKey = () => JSON.stringify([props.farmId ?? null]);
  121. const resetTimelineData = () => {
  122. phenologyList.value = [];
  123. };
  124. const setEmptyTimelineData = () => {
  125. resetTimelineData();
  126. isEmpty.value = true;
  127. };
  128. const safeParseDate = (val) => {
  129. if (!val) return NaN;
  130. if (val instanceof Date) return val.getTime();
  131. if (typeof val === "number") return val;
  132. if (typeof val === "string") {
  133. // 兼容 "YYYY-MM-DD HH:mm:ss" -> Safari
  134. const s = val.replace(/-/g, "/").replace("T", " ");
  135. const d = new Date(s);
  136. return isNaN(d.getTime()) ? NaN : d.getTime();
  137. }
  138. return NaN;
  139. };
  140. // 顶部物候标题:相邻两段 phenologyName 相同时只显示一次(保留第一段)
  141. const shouldShowPhenologyBarTitle = (idx) => {
  142. const list = phenologyList.value;
  143. if (!list?.length || idx < 0 || idx >= list.length) return false;
  144. if (idx === 0) return true;
  145. return list[idx]?.phenologyName !== list[idx - 1]?.phenologyName;
  146. };
  147. const archiveTypeObj = {
  148. 1: "管理信息",
  149. 2: "物候进程",
  150. 3: "物候进程",
  151. 4: "异常发现",
  152. 5: "气象风险",
  153. 6: "农事进度",
  154. };
  155. const workStatusObj = {
  156. 0: "待校准",
  157. 1: "机动执行",
  158. 2: "待执行",
  159. 3: "未激活",
  160. 4: "已认证",
  161. 5: "已失效",
  162. };
  163. const statusColorObj = {
  164. 2: {
  165. color: "#fff",
  166. background: "#2199F8",
  167. },
  168. 4: {
  169. color: "#4ABF32",
  170. background: "rgba(74, 191, 50, 0.2)",
  171. },
  172. };
  173. // 农事卡片状态样式(work_status)
  174. const getArrangeStatusClass = (fw) => {
  175. const t = fw?.work_status;
  176. if (t == 0 || t == 1) return "status-orange";
  177. if (t == 2) return "status-normal";
  178. if (t == 4) return "status-green-info";
  179. if (t == 6) return "status-normal-farm";
  180. return "future-card";
  181. };
  182. const handleRowClick = (item) => {
  183. // 跳转前记录当前滚动位置
  184. saveTimelineScrollTop();
  185. emits("row-click", item);
  186. };
  187. /**
  188. * 新接口 farm_works:`data` 为物候阶段数组,每项含 `phenology_name`、`works`(农事明细)。
  189. * 转为本组件使用的 phenologyName + reproductiveList[].farmWorkArrangeList 结构。
  190. */
  191. const pickPhenologyStageName = (stage) => {
  192. const candidates = [stage.phenology_name, stage.phenelogy_name, stage.phenologyName];
  193. for (const c of candidates) {
  194. if (c != null && String(c).trim() !== "") return String(c).trim();
  195. }
  196. return "";
  197. };
  198. const workTimeToCreateTimeIso = (workTime) => {
  199. if (workTime == null || workTime === "") return null;
  200. const s = String(workTime).trim();
  201. if (!s) return null;
  202. const y = new Date().getFullYear();
  203. const parts = s.split(/[-/]/).map((p) => p.trim());
  204. if (parts.length >= 3 && parts[0].length === 4) {
  205. const yy = parts[0];
  206. const mo = parts[1].padStart(2, "0");
  207. const da = parts[2].padStart(2, "0");
  208. return `${yy}-${mo}-${da}`;
  209. }
  210. if (parts.length >= 2) {
  211. const mo = parts[0].padStart(2, "0");
  212. const da = parts[1].padStart(2, "0");
  213. return `${y}-${mo}-${da}`;
  214. }
  215. return null;
  216. };
  217. const mapWorkStatusToArchiveType = (workStatus) => {
  218. const n = Number(workStatus);
  219. // 新接口 work_status 与档案 archiveType 含义不一定一致;仅对「待执行」沿用原 UI
  220. if (n === 2) return 2;
  221. return 6;
  222. };
  223. const normalizeFarmWorksPhenologyList = (data) => {
  224. const list = Array.isArray(data) ? data : [];
  225. return list.map((stage, idx) => {
  226. const name = pickPhenologyStageName(stage);
  227. const works = Array.isArray(stage.works) ? stage.works : [];
  228. const farmWorkArrangeList = works.map((w) => {
  229. const title = String(w.work_name ?? "").trim();
  230. const iso = workTimeToCreateTimeIso(w.work_time);
  231. return {
  232. ...w,
  233. createTime: iso,
  234. title: title || "农事",
  235. archiveType: mapWorkStatusToArchiveType(w.work_status),
  236. };
  237. });
  238. const timesMs = farmWorkArrangeList
  239. .map((fw) => safeParseDate(fw.createTime))
  240. .filter((ms) => !Number.isNaN(ms) && ms > 0);
  241. const minMs = timesMs.length ? Math.min(...timesMs) : NaN;
  242. const startDate =
  243. !Number.isNaN(minMs) && minMs > 0
  244. ? (() => {
  245. const d = new Date(minMs);
  246. const m = `${d.getMonth() + 1}`.padStart(2, "0");
  247. const day = `${d.getDate()}`.padStart(2, "0");
  248. return `${d.getFullYear()}-${m}-${day}`;
  249. })()
  250. : null;
  251. return {
  252. id: stage.id ?? works[0]?.phenology_code ?? `phenology-${idx}`,
  253. phenologyName: name || `物候期${idx + 1}`,
  254. startDate,
  255. startTimeMs: !Number.isNaN(minMs) && minMs > 0 ? minMs : undefined,
  256. reproductiveList: [
  257. {
  258. phenologyName: name || `物候期${idx + 1}`,
  259. farmWorkArrangeList,
  260. },
  261. ],
  262. };
  263. });
  264. };
  265. /** 侧栏物候条颜色:该组内所有农事 work_status 均为 3 时为灰,否则为蓝 */
  266. const isPhenologyRowGrayByWorkStatus = (reproductive) => {
  267. const fws = Array.isArray(reproductive?.farmWorkArrangeList) ? reproductive.farmWorkArrangeList : [];
  268. if (fws.length === 0) return false;
  269. return fws.every((fw) => Number(fw?.work_status) === 3);
  270. };
  271. /** 顶部物候标题条:同一物候下全部农事 work_status 均为 3 时为灰,否则为蓝 */
  272. const isPhenologyBarGrayByWorkStatus = (phenology) => {
  273. const reps = Array.isArray(phenology?.reproductiveList) ? phenology.reproductiveList : [];
  274. const all = reps.flatMap((r) => (Array.isArray(r?.farmWorkArrangeList) ? r.farmWorkArrangeList : []));
  275. if (all.length === 0) return false;
  276. return all.every((fw) => Number(fw?.work_status) === 3);
  277. };
  278. // 获取农事规划数据
  279. const getFarmWorkPlan = () => {
  280. resetTimelineData();
  281. if (!props.farmId) return;
  282. const scopeKey = farmWorkPlanScopeKey();
  283. if (isRequesting.value || lastRequestedFarmId.value === scopeKey) return;
  284. isRequesting.value = true;
  285. lastRequestedFarmId.value = scopeKey;
  286. uniqueTimestamp.value = Date.now();
  287. isEmpty.value = false;
  288. const params = {
  289. farm_id: props.farmId,
  290. crop_variety: JSON.parse(localStorage.getItem("selectedFarmData")).farm_variety,
  291. };
  292. VE_API.monitor.getPhenologyList(params)
  293. .then(({ data, code }) => {
  294. const ok = code === 200 || code === 0;
  295. if (ok) {
  296. phenologyList.value = normalizeFarmWorksPhenologyList(data);
  297. isEmpty.value = phenologyList.value.length === 0;
  298. } else {
  299. setEmptyTimelineData();
  300. }
  301. })
  302. .catch((error) => {
  303. console.error("获取农事规划数据失败:", error);
  304. ElMessage.error("获取农事规划数据失败");
  305. setEmptyTimelineData();
  306. })
  307. .finally(() => {
  308. isRequesting.value = false;
  309. });
  310. };
  311. const updateFarmWorkPlan = () => {
  312. resetTimelineData();
  313. isEmpty.value = false;
  314. getFarmWorkPlan();
  315. };
  316. watch(
  317. () => props.farmId,
  318. (val, oldVal) => {
  319. if (!props.farmId) return;
  320. const changed = oldVal == null || val !== oldVal;
  321. if (changed) {
  322. lastRequestedFarmId.value = null;
  323. }
  324. updateFarmWorkPlan();
  325. },
  326. { immediate: true }
  327. );
  328. const handleStatusDetail = (fw) => {
  329. saveTimelineScrollTop();
  330. emits('card-click');
  331. if (fw?.work_status === 4) {
  332. router.push({
  333. path: "/work_detail",
  334. query: {
  335. title: fw?.title,
  336. },
  337. });
  338. }
  339. // if (fw?.archiveType === 2) {
  340. // return;
  341. // }
  342. // if (fw?.archiveType === 6) {
  343. // router.push({
  344. // path: "/work_detail",
  345. // query: {
  346. // miniJson: JSON.stringify({
  347. // paramsPage: JSON.stringify({
  348. // farmId: 98570,
  349. // farmWorkLibId: '832268348690534411',
  350. // recordId: "832268363366404096",
  351. // reproductiveId: 149,
  352. // }),
  353. // }),
  354. // },
  355. // });
  356. // } else {
  357. // router.push({
  358. // path: "/agricultural_detail",
  359. // query: {
  360. // id: fw?.id,
  361. // title: archiveTypeObj[fw?.archiveType],
  362. // content: fw?.title,
  363. // },
  364. // });
  365. // }
  366. };
  367. // 格式化日期为 MM-DD 格式
  368. const formatDate = (dateStr) => {
  369. if (!dateStr) return "--";
  370. const date = new Date(dateStr);
  371. if (Number.isNaN(date.getTime())) return dateStr;
  372. const m = `${date.getMonth() + 1}`.padStart(2, "0");
  373. const d = `${date.getDate()}`.padStart(2, "0");
  374. return `${m}-${d}`;
  375. };
  376. defineExpose({
  377. updateFarmWorkPlan,
  378. });
  379. onMounted(() => {
  380. nextTick(() => {
  381. requestAnimationFrame(() => {
  382. restoreTimelineScrollTopWithRetry();
  383. });
  384. });
  385. });
  386. onUnmounted(() => {
  387. saveTimelineScrollTop();
  388. });
  389. onActivated(() => {
  390. nextTick(() => {
  391. requestAnimationFrame(() => {
  392. restoreTimelineScrollTopWithRetry();
  393. });
  394. });
  395. });
  396. onDeactivated(() => {
  397. saveTimelineScrollTop();
  398. });
  399. onBeforeRouteLeave(() => {
  400. saveTimelineScrollTop();
  401. });
  402. </script>
  403. <style scoped lang="scss">
  404. @mixin arrange-card-status($color, $content-color: null, $border-color: null, $content-bg: null, $text-color: null) {
  405. border-color: $color;
  406. @if $content-bg !=null {
  407. background: $content-bg;
  408. }
  409. .card-content {
  410. @if $text-color !=null {
  411. color: $text-color;
  412. }
  413. }
  414. .card-left {
  415. .left-info {
  416. .left-date {
  417. color: $text-color;
  418. border-color: $text-color;
  419. }
  420. .text {
  421. color: $text-color;
  422. }
  423. }
  424. .title-text {
  425. @if $color !=null {
  426. color: $color;
  427. }
  428. @if $content-color !=null {
  429. background: $content-color;
  430. }
  431. @if $border-color !=null {
  432. border-color: $border-color;
  433. }
  434. }
  435. }
  436. &::before {
  437. border-right-color: $color;
  438. }
  439. }
  440. .timeline-container {
  441. height: 100%;
  442. overflow: auto;
  443. position: relative;
  444. box-sizing: border-box;
  445. .timeline-list {
  446. position: relative;
  447. }
  448. .phenology-bar {
  449. align-items: stretch;
  450. justify-content: center;
  451. box-sizing: border-box;
  452. position: relative;
  453. .phenology-title {
  454. width: 18px;
  455. top: 0;
  456. bottom: 0;
  457. left: 0;
  458. height: auto;
  459. color: #fff;
  460. font-size: 12px;
  461. position: absolute;
  462. z-index: 10;
  463. text-align: center;
  464. display: flex;
  465. align-items: baseline;
  466. justify-content: center;
  467. writing-mode: vertical-rl;
  468. text-orientation: upright;
  469. letter-spacing: 3px;
  470. word-break: break-all;
  471. &.phenology-blue {
  472. background: #2199f8;
  473. }
  474. &.phenology-red {
  475. background: #f1f1f1;
  476. color: #808080;
  477. }
  478. }
  479. .reproductive-item {
  480. font-size: 12px;
  481. text-align: center;
  482. word-break: break-all;
  483. writing-mode: vertical-rl;
  484. text-orientation: upright;
  485. letter-spacing: 3px;
  486. width: 100%;
  487. line-height: 23px;
  488. color: inherit;
  489. position: relative;
  490. .phenology-name {
  491. width: 18px;
  492. line-height: 16px;
  493. height: 100%;
  494. color: #fff;
  495. padding: 4px 0;
  496. font-size: 12px;
  497. box-sizing: border-box;
  498. writing-mode: vertical-rl;
  499. text-orientation: upright;
  500. top: 0;
  501. bottom: 0;
  502. left: 0;
  503. position: absolute;
  504. &.phenology-red {
  505. background: #f1f1f1;
  506. color: #808080;
  507. }
  508. &.text-blue {
  509. background: rgba(33, 153, 248, 0.15);
  510. color: #2199f8;
  511. border: 1px solid #2199f8;
  512. line-height: 16px;
  513. box-sizing: border-box;
  514. }
  515. }
  516. .arranges {
  517. display: flex;
  518. max-width: calc(100vw - 63px);
  519. min-width: calc(100vw - 58px);
  520. gap: 5px;
  521. letter-spacing: 0px;
  522. .arrange-card {
  523. width: 95%;
  524. border: 0.5px solid #2199f8;
  525. border-radius: 8px;
  526. background: #fff;
  527. box-sizing: border-box;
  528. position: relative;
  529. padding: 8px 15px 8px 10px;
  530. writing-mode: horizontal-tb;
  531. margin-bottom: 10px;
  532. .card-content {
  533. color: #242424;
  534. display: flex;
  535. justify-content: space-between;
  536. align-items: center;
  537. font-size: 14px;
  538. .card-left {
  539. width: 100%;
  540. .left-info {
  541. display: flex;
  542. align-items: center;
  543. gap: 6px;
  544. .left-date {
  545. color: rgba(0, 0, 0, 0.4);
  546. border: 0.5px solid rgba(0, 0, 0, 0.4);
  547. border-radius: 2px;
  548. font-size: 12px;
  549. width: 36px;
  550. height: 20px;
  551. line-height: 20px;
  552. }
  553. .text {
  554. display: flex;
  555. align-items: center;
  556. gap: 2px;
  557. color: rgba(0, 0, 0, 0.4);
  558. width: calc(100% - 90px);
  559. }
  560. }
  561. .title-text {
  562. margin-top: 5px;
  563. width: fit-content;
  564. max-width: 100%;
  565. text-align: left;
  566. color: rgba(0, 0, 0, 0.4);
  567. padding: 0 6px;
  568. border-radius: 2px;
  569. font-size: 12px;
  570. box-sizing: border-box;
  571. border: 0.5px solid rgba(0, 0, 0, 0.4);
  572. }
  573. .farm-info {
  574. font-size: 12px;
  575. color: #626262;
  576. background: #F7F7F7;
  577. padding: 5px;
  578. border-radius: 5px;
  579. display: flex;
  580. align-items: center;
  581. justify-content: space-between;
  582. text-align: left;
  583. margin-top: 6px;
  584. .info-right {
  585. background: #FF953D;
  586. border-radius: 2px;
  587. padding: 1px 5px;
  588. color: #fff;
  589. }
  590. }
  591. }
  592. .status-right {
  593. position: absolute;
  594. right: 0;
  595. top: 0;
  596. font-size: 12px;
  597. color: #fff;
  598. background: #FF953D;
  599. border-radius: 2px;
  600. padding: 0 5px;
  601. }
  602. }
  603. &::before {
  604. content: "";
  605. position: absolute;
  606. left: -5px;
  607. top: 50%;
  608. transform: translateY(-50%);
  609. width: 0;
  610. height: 0;
  611. border-top: 5px solid transparent;
  612. border-bottom: 5px solid transparent;
  613. border-right: 5px solid #2199f8;
  614. }
  615. }
  616. .arrange-card.status-normal {
  617. @include arrange-card-status(#2199F8, null, #2199F8, null, #000);
  618. }
  619. .arrange-card.status-green-info {
  620. @include arrange-card-status(#4ABF32, #ECFFE8, rgba(74, 191, 50, 0.5), rgba(28, 169, 0, 0.1), rgba(0, 0, 0, 0.4));
  621. }
  622. .arrange-card.status-orange {
  623. @include arrange-card-status(#FF953D, null, #FF953D, #fff, #000);
  624. }
  625. .arrange-card.status-normal-farm {
  626. @include arrange-card-status(#2199F8, #E9F5FF, #2199F8, rgba(33, 153, 248, 0.1), rgba(0, 0, 0, 0.4));
  627. }
  628. // 未激活等:灰色描边卡片
  629. .arrange-card.future-card {
  630. @include arrange-card-status(rgba(187, 187, 187, 0.6), null, rgba(187, 187, 187, 0.6), #fff, rgba(187, 187, 187, 0.6));
  631. }
  632. }
  633. }
  634. }
  635. .reproductive-item+.reproductive-item {
  636. margin-top: 4px;
  637. padding-top: 0;
  638. }
  639. .phenology-bar+.phenology-bar {
  640. margin-top: 4px;
  641. padding-top: 0;
  642. }
  643. .empty-state {
  644. display: flex;
  645. justify-content: center;
  646. align-items: center;
  647. min-height: 200px;
  648. width: 100%;
  649. }
  650. }
  651. </style>