|
|
@@ -1,525 +1,330 @@
|
|
|
<template>
|
|
|
- <div class="home-index" :style="{ height: `calc(100vh - ${tabBarHeight}px)` }">
|
|
|
- <!-- <div class="banner-wrap" @click="handleBannerClick">
|
|
|
- <img class="banner-img" :src="bannerObj?.media?.[0]" alt="" />
|
|
|
- <div class="banner-title">
|
|
|
- <span class="van-multi-ellipsis--l2">{{ bannerObj?.title }}</span>
|
|
|
+ <div class="home-index">
|
|
|
+ <!-- 顶部:左侧搜索 + 右侧筛选 -->
|
|
|
+ <div class="top-row">
|
|
|
+ <div class="search-bar">
|
|
|
+ <input class="search-input" placeholder="搜索农场" />
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
- <!-- 天气遮罩 -->
|
|
|
- <div class="weather-mask" v-show="isExpanded" @click="handleMaskClick"></div>
|
|
|
- <!-- 天气 -->
|
|
|
- <weather-info ref="weatherInfoRef" class="weather-info" @weatherExpanded="weatherExpanded" :isGarden="false"
|
|
|
- @changeGarden="changeGarden"></weather-info>
|
|
|
- <div class="expert-home">
|
|
|
- <div class="expert-banner" @click="handleExpertBannerClick">
|
|
|
- <img class="expert-banner-img" src="@/assets/img/home/banner.png" alt="">
|
|
|
- <div class="expert-desc">
|
|
|
- <img class="expert-desc-icon" src="@/assets/img/home/expert-text.png" alt="">
|
|
|
- <!-- <div class="desc-text"><span class="dotted"></span>您有一条长势报告,请查看</div> -->
|
|
|
- <div class="desc-text"><span class="dotted"></span>点击查看农情互动采集</div>
|
|
|
- </div>
|
|
|
+ <div class="filter-row">
|
|
|
+ <button class="filter-btn">选择地区</button>
|
|
|
+ <button class="filter-btn">选择品类</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <!-- <div class="task-list">
|
|
|
- <div class="task-title">待办任务</div>
|
|
|
- <div class="bottom-tag">
|
|
|
- <div class="tag-card">
|
|
|
- <div class="card-content">
|
|
|
- <div class="card-main-text">干旱风险</div>
|
|
|
- <div class="card-sub-text">
|
|
|
- 气象风险
|
|
|
+ <!-- 农场信息卡片 -->
|
|
|
+ <div class="farm-card">
|
|
|
+ <div class="farm-header">
|
|
|
+ <div class="farm-header-left">
|
|
|
+ <div class="farm-title">
|
|
|
+ <span>{{ farmInfo.name }}</span>
|
|
|
+ <div class="title-tags">
|
|
|
+ <div class="title-tag">桂味</div>
|
|
|
+ <div class="title-tag tag-danger">
|
|
|
+ <span>干旱预警</span>
|
|
|
+ <el-icon>
|
|
|
+ <ArrowRight />
|
|
|
+ </el-icon>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="farm-subtitle">{{ farmInfo.address }}</div>
|
|
|
</div>
|
|
|
- <div class="tag-card active">
|
|
|
- <div class="card-content">
|
|
|
- <div class="card-main-text">当天</div>
|
|
|
- <div class="card-sub-text">新梢长势评估</div>
|
|
|
+ <div class="farm-more">详情</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="content-grid">
|
|
|
+ <div class="label-column">
|
|
|
+ <div class="label-cell" v-for="row in rows" :key="row.label">
|
|
|
+ {{ row.label }}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="tag-card">
|
|
|
- <div class="card-content">
|
|
|
- <div class="card-main-text">3天后</div>
|
|
|
- <div class="card-sub-text">白点催醒</div>
|
|
|
+ <div class="main-grid">
|
|
|
+ <div class="row" v-for="row in rows" :key="row.label">
|
|
|
+ <div v-for="card in row.cards" :key="card.id" class="status-card" :class="card.type"
|
|
|
+ @click="handleBlockClick(card)">
|
|
|
+ <div class="status-title">
|
|
|
+ {{ card.title }}
|
|
|
+ <span v-if="card.badge" class="badge-dot" />
|
|
|
+ </div>
|
|
|
+ <div class="status-sub" v-if="card.sub">
|
|
|
+ {{ card.sub }}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div> -->
|
|
|
-
|
|
|
- <knowledge-card />
|
|
|
- <!-- <template v-if="userType == 2">
|
|
|
- </template> -->
|
|
|
- <!-- <template v-else>
|
|
|
- <AgriculturalDynamics />
|
|
|
- </template> -->
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <tip-popup v-model:show="showTipPopup" type="warning" text="请设置" highlightText="种植方案" buttonText="去设置"
|
|
|
- @confirm="handleBtn" :closeOnClickOverlay="false" :zIndex="9999" />
|
|
|
-
|
|
|
- <tip-popup v-model:show="showDronePhotoPopup" font type="success" text="无人机照片已上传完毕请您确认" buttonText="去确认"
|
|
|
- @confirm="hanldeDrone" :zIndex="9999" />
|
|
|
-
|
|
|
- <!-- 农事执行弹窗 -->
|
|
|
- <agri-execute-popup v-model:show="showAgriExecutePopup" :popupData="agriExecuteData" @later="handleAgriLater"
|
|
|
- @executed="handleAgriExecuted" />
|
|
|
-
|
|
|
- <!-- 提醒时间选择弹窗 -->
|
|
|
- <reminder-time-popup v-model:show="showReminderTimePopup" @confirm="handleReminderTimeConfirm" />
|
|
|
-
|
|
|
- <!-- 执行轨迹弹窗 -->
|
|
|
- <execute-trace-popup v-model:show="showExecuteTracePopup" @later="handleTraceLater" @confirm="handleTraceConfirm" />
|
|
|
-
|
|
|
- <tip-popup v-model:show="showReportPopup" type="success" text="请查看" buttonText="去查看" @confirm="handleReportBtn"
|
|
|
- :zIndex="9999">
|
|
|
- <template #default>
|
|
|
- <div class="report-text">您的农情报告已生成</div>
|
|
|
- </template>
|
|
|
- </tip-popup>
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { ref, computed, onActivated, onMounted } from "vue";
|
|
|
-import { useStore } from "vuex";
|
|
|
-import weatherInfo from "@/components/weatherInfo.vue";
|
|
|
-import AgriculturalDynamics from "./components/AgriculturalDynamics.vue";
|
|
|
-import { useRouter, useRoute } from "vue-router";
|
|
|
-import wx from "weixin-js-sdk";
|
|
|
-import tipPopup from "@/components/popup/tipPopup.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";
|
|
|
-
|
|
|
-const store = useStore();
|
|
|
-const tabBarHeight = computed(() => store.state.home.tabBarHeight);
|
|
|
-const router = useRouter();
|
|
|
-const route = useRoute();
|
|
|
-
|
|
|
-const showDronePhotoPopup = ref(false)
|
|
|
-const hanldeDrone = () => {
|
|
|
- console.log('111')
|
|
|
-}
|
|
|
-
|
|
|
-const showTipPopup = ref(false);
|
|
|
-const handleBtn = () => {
|
|
|
- router.push("/plan?pageType=plant&headerTitle=请设置您的种植方案");
|
|
|
-};
|
|
|
-
|
|
|
-const handleReportBtn = () => {
|
|
|
- router.push({
|
|
|
- path: "/growth_report",
|
|
|
- query: { farmId: gardenId.value },
|
|
|
- });
|
|
|
-}
|
|
|
+import { ref } from "vue";
|
|
|
|
|
|
-// 农事执行弹窗相关
|
|
|
-const showAgriExecutePopup = ref(false); // 农事执行弹窗
|
|
|
-const agriExecuteData = ref({
|
|
|
- expertName: "韦帮稳",
|
|
|
- title: "梢期杀虫 农事执行",
|
|
|
- abnormalText: "由于***异常的出现,由于***异常的出现,由于***异常的出现,由于***异常的出现,",
|
|
|
- imageUrl: "",
|
|
|
- laterBtn: true,
|
|
|
+const farmInfo = ref({
|
|
|
+ name: "从化荔博园合作社",
|
|
|
+ address: "广东省广州市从化区某某街道",
|
|
|
});
|
|
|
|
|
|
-// 农事执行弹窗相关方法
|
|
|
-const handleAgriLater = () => {
|
|
|
- console.log("稍后执行");
|
|
|
- // 可以在这里添加稍后执行的逻辑
|
|
|
- // 关闭当前弹窗
|
|
|
- showAgriExecutePopup.value = false;
|
|
|
- // 显示提醒时间选择弹窗
|
|
|
- showReminderTimePopup.value = true;
|
|
|
-};
|
|
|
-
|
|
|
-const handleAgriExecuted = () => {
|
|
|
- if (agriExecuteData.value.executedButtonText === '开始采集') {
|
|
|
- router.push("/interaction_list?expertMiniUserId=81881&oldUser=true");
|
|
|
- } else {
|
|
|
- // 显示执行轨迹弹窗
|
|
|
- showExecuteTracePopup.value = true;
|
|
|
- }
|
|
|
- // 关闭当前弹窗
|
|
|
- showAgriExecutePopup.value = false;
|
|
|
-};
|
|
|
-
|
|
|
-// 提醒时间选择弹窗相关
|
|
|
-const showReminderTimePopup = ref(false);
|
|
|
-
|
|
|
-// 确认提醒时间
|
|
|
-const handleReminderTimeConfirm = (time) => {
|
|
|
- console.log("选择的提醒时间:", time);
|
|
|
- // 可以在这里添加提交提醒时间的逻辑
|
|
|
-};
|
|
|
-
|
|
|
-// 执行轨迹弹窗相关
|
|
|
-const showExecuteTracePopup = ref(false);
|
|
|
-
|
|
|
-// 稍后上传
|
|
|
-const handleTraceLater = () => {
|
|
|
- console.log("稍后上传");
|
|
|
- // 可以在这里添加稍后上传的逻辑
|
|
|
-};
|
|
|
-
|
|
|
-// 确认上传
|
|
|
-const handleTraceConfirm = () => {
|
|
|
- console.log("确认上传");
|
|
|
- // 可以在这里添加确认上传的逻辑
|
|
|
-};
|
|
|
-
|
|
|
-//判断是否存在可用方案
|
|
|
-async function checkExistsEnabledScheme() {
|
|
|
- const { data } = await VE_API.home.existsEnabledScheme({ containerId: null });
|
|
|
- if (!data && localStorage.getItem("SET_USER_CUR_ROLE") == 2) {
|
|
|
- showTipPopup.value = true;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-const gardenId = ref(null);
|
|
|
-const changeGarden = ({ id }) => {
|
|
|
- gardenId.value = id;
|
|
|
- getExpertByFarmId();
|
|
|
- getReport();
|
|
|
-};
|
|
|
-
|
|
|
-const expertInfo = ref({});
|
|
|
-const getExpertByFarmId = () => {
|
|
|
- VE_API.home.getExpertByFarmId({ farmId: gardenId.value }).then(({ data }) => {
|
|
|
- expertInfo.value = data || {};
|
|
|
- sessionStorage.setItem("expertId", data.appUserId);
|
|
|
- });
|
|
|
-};
|
|
|
-
|
|
|
-const showReportPopup = ref(false);
|
|
|
-const getReport = () => {
|
|
|
- if (!gardenId.value) return;
|
|
|
- VE_API.farm.growthReportByFarm({ farmId: gardenId.value, limit: 20, isRead: 0 ,generateStatus:1}).then(({ data }) => {
|
|
|
- if (data && data.length > 0) {
|
|
|
- showReportPopup.value = true;
|
|
|
- } else {
|
|
|
- showReportPopup.value = false;
|
|
|
- }
|
|
|
- });
|
|
|
-}
|
|
|
-
|
|
|
-// 监测卡片数据
|
|
|
-const monitorCards = ref({
|
|
|
- left: {
|
|
|
- title: "农情采集",
|
|
|
- content: "精准监测 科学决策",
|
|
|
- route: "/pest",
|
|
|
+const rows = ref([
|
|
|
+ {
|
|
|
+ label: "农情",
|
|
|
+ cards: [
|
|
|
+ {
|
|
|
+ id: 1,
|
|
|
+ title: "新梢萌动",
|
|
|
+ sub: "预计3天后进入",
|
|
|
+ type: "risk-strong",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 2,
|
|
|
+ title: "冲楸异常",
|
|
|
+ sub: "占比3%",
|
|
|
+ type: "normal",
|
|
|
+ badge: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 3,
|
|
|
+ title: "病虫风险",
|
|
|
+ sub: "一级风险",
|
|
|
+ type: "danger",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
- right: [
|
|
|
- {
|
|
|
- title: "病虫识别",
|
|
|
- content: "智能识别 快速诊断",
|
|
|
- route: "/pest",
|
|
|
- },
|
|
|
- // {
|
|
|
- // title: "新增客户",
|
|
|
- // content: "农情先知 高效管理",
|
|
|
- // route: "/create_farm?type=client&isReload=true&from=home",
|
|
|
- // },
|
|
|
- ],
|
|
|
-});
|
|
|
-
|
|
|
-// 卡片点击事件
|
|
|
-const handleCardClick = (card) => {
|
|
|
- const dropdownGardenItem = ref({
|
|
|
- organId: 766,
|
|
|
- periodId: 1,
|
|
|
- name: "荔博园",
|
|
|
- });
|
|
|
- if (card.title === "农情采集") {
|
|
|
- dropdownGardenItem.value.page = "create_farm";
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: `/pages/subPages/new_recognize/index?gardenData=${JSON.stringify(dropdownGardenItem.value)}`,
|
|
|
- });
|
|
|
- } else if (card.title === "病虫识别") {
|
|
|
- dropdownGardenItem.value.page = "album_recognize";
|
|
|
- wx.miniProgram.navigateTo({
|
|
|
- url: `/pages/subPages/new_recognize/index?gardenData=${JSON.stringify(dropdownGardenItem.value)}`,
|
|
|
- });
|
|
|
- } else {
|
|
|
- router.push(card.route);
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-onActivated(() => {
|
|
|
- getManagerList();
|
|
|
- // if (userType.value != 2) {
|
|
|
- // checkExistsEnabledScheme()
|
|
|
- // }
|
|
|
- getBannerList();
|
|
|
- // 检测是否从创建农场页面成功返回
|
|
|
- if (route.query.showSuccess === "true") {
|
|
|
- // 清除URL参数,避免刷新页面时再次显示弹窗
|
|
|
- router.replace({
|
|
|
- path: "/home",
|
|
|
- query: { reload: route.query.reload },
|
|
|
- });
|
|
|
- }
|
|
|
- sessionStorage.removeItem('interactionListScrollTop');
|
|
|
-});
|
|
|
-
|
|
|
-const userType = ref(localStorage.getItem("USER_TYPE"));
|
|
|
-onMounted(() => {
|
|
|
- if (userType.value != 2) {
|
|
|
- monitorCards.value.right.push({
|
|
|
- title: "新增客户",
|
|
|
- content: "农情先知 高效管理",
|
|
|
- route: "/create_farm?type=client&isReload=true&from=home",
|
|
|
- });
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
-// 查询当前农资店的成员列表(只保留有"任务接单"权限的成员)
|
|
|
-const getManagerList = async () => {
|
|
|
- const { data } = await VE_API.mine.listManagerList({ onlyExecutor: true });
|
|
|
- if (data && data.length > 0) {
|
|
|
- // 过滤 permissionList 中包含"任务接单"的成员,并过滤掉超管(role为1)
|
|
|
- const executorList = data.filter((item) => item.role !== 1);
|
|
|
- sessionStorage.setItem("executorList", JSON.stringify(executorList));
|
|
|
- }
|
|
|
-};
|
|
|
-
|
|
|
-const bannerObj = ref({});
|
|
|
-const getBannerList = () => {
|
|
|
- const params = {
|
|
|
- page: 1,
|
|
|
- limit: 1,
|
|
|
- topicId: 5,
|
|
|
- };
|
|
|
- VE_API.home.warningPageList(params).then(({ data }) => {
|
|
|
- bannerObj.value = data[0] || {};
|
|
|
- });
|
|
|
-};
|
|
|
-
|
|
|
-const isExpanded = ref(false);
|
|
|
-const weatherInfoRef = ref(null);
|
|
|
-const weatherExpanded = (isExpandedValue) => {
|
|
|
- isExpanded.value = isExpandedValue;
|
|
|
-};
|
|
|
-
|
|
|
-// 点击遮罩时收起天气
|
|
|
-const handleMaskClick = () => {
|
|
|
- if (weatherInfoRef.value && weatherInfoRef.value.toggleExpand) {
|
|
|
- weatherInfoRef.value.toggleExpand();
|
|
|
- }
|
|
|
-};
|
|
|
+ {
|
|
|
+ label: "农事",
|
|
|
+ cards: [
|
|
|
+ {
|
|
|
+ id: 4,
|
|
|
+ title: "第一段防治",
|
|
|
+ sub: "待完成",
|
|
|
+ type: "risk-strong",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 5,
|
|
|
+ title: "控梢",
|
|
|
+ sub: "待触发",
|
|
|
+ type: "normal",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 6,
|
|
|
+ title: "无",
|
|
|
+ sub: "",
|
|
|
+ type: "disabled",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+]);
|
|
|
|
|
|
-const handleExpertBannerClick = () => {
|
|
|
- // router.push("/consult?userId=81881");
|
|
|
- router.push("/interaction_list?expertMiniUserId=81881");
|
|
|
-};
|
|
|
|
|
|
-const handleBannerClick = () => {
|
|
|
- router.push(`/warning_detail?id=${bannerObj.value.id}`);
|
|
|
+const handleBlockClick = (block) => {
|
|
|
+ // 预留点击跳转/弹窗逻辑
|
|
|
+ console.log("点击卡片:", block);
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
.home-index {
|
|
|
width: 100%;
|
|
|
- height: 100vh;
|
|
|
- overflow: auto;
|
|
|
- position: relative;
|
|
|
- // background: linear-gradient(180deg, #f4f9fd 0%, #f9f9f9 100%);
|
|
|
- background: linear-gradient(180deg, #F9F9F9 0%, #F0F8FF 31.47%, #F9F9F9 46.81%, #F9F9F9 100%);
|
|
|
+ min-height: 100vh;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 12px 12px 24px;
|
|
|
+ background: #f5f7fa;
|
|
|
+}
|
|
|
|
|
|
- .banner-wrap {
|
|
|
- width: 100%;
|
|
|
- height: 200px;
|
|
|
- position: relative;
|
|
|
- z-index: 1;
|
|
|
-
|
|
|
- .banner-img {
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- object-fit: cover;
|
|
|
- }
|
|
|
+.top-row {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 8px;
|
|
|
+ margin-bottom: 12px;
|
|
|
+}
|
|
|
|
|
|
- .banner-title {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- padding: 10px 12px 34px 12px;
|
|
|
- box-sizing: border-box;
|
|
|
- background: linear-gradient(180deg,
|
|
|
- rgba(102, 102, 102, 0) -64.3%,
|
|
|
- rgba(0, 0, 0, 0.0074) -1.43%,
|
|
|
- rgba(0, 0, 0, 0.684747) 39.67%,
|
|
|
- rgba(0, 0, 0, 0.74) 40.09%,
|
|
|
- rgba(0, 0, 0, 0.74) 83.2%);
|
|
|
- color: #fff;
|
|
|
- font-weight: bold;
|
|
|
- backdrop-filter: blur(2px);
|
|
|
- }
|
|
|
- }
|
|
|
+.search-bar {
|
|
|
+ flex: 1;
|
|
|
|
|
|
- .weather-mask {
|
|
|
- position: fixed;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
+ .search-input {
|
|
|
width: 100%;
|
|
|
- height: 100%;
|
|
|
- background-color: rgba(0, 0, 0, 0.52);
|
|
|
- z-index: 2;
|
|
|
+ height: 32px;
|
|
|
+ border-radius: 16px;
|
|
|
+ border: none;
|
|
|
+ padding: 0 12px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ font-size: 14px;
|
|
|
+ background: #ffffff;
|
|
|
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- .weather-info {
|
|
|
- width: calc(100% - 20px);
|
|
|
- position: absolute;
|
|
|
- // top: calc(200px - 28px);
|
|
|
- top: 8px;
|
|
|
- left: 10px;
|
|
|
- z-index: 3;
|
|
|
+.filter-row {
|
|
|
+ display: flex;
|
|
|
+ gap: 8px;
|
|
|
+
|
|
|
+ .filter-btn {
|
|
|
+ width: 72px;
|
|
|
+ height: 30px;
|
|
|
+ border-radius: 15px;
|
|
|
+ border: none;
|
|
|
+ background: #ffffff;
|
|
|
+ font-size: 13px;
|
|
|
+ color: #4e5969;
|
|
|
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
|
|
|
}
|
|
|
+}
|
|
|
|
|
|
- .expert-home {
|
|
|
- padding: 90px 10px 10px 10px;
|
|
|
-
|
|
|
- .expert-banner {
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .expert-banner-img {
|
|
|
- width: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .expert-desc {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- border-radius: 0 0 8px 8px;
|
|
|
- padding: 6px 8px;
|
|
|
- box-sizing: border-box;
|
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
|
- color: #fff;
|
|
|
- backdrop-filter: blur(4px);
|
|
|
+.farm-card {
|
|
|
+ background: #ffffff;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 10px 12px;
|
|
|
+ border: 0.5px solid rgba(0, 0, 0, 0.2);
|
|
|
+
|
|
|
+ .farm-header {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ padding-bottom: 10px;
|
|
|
+ border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
|
|
|
+ margin-bottom: 10px;
|
|
|
+
|
|
|
+ .farm-header-left {
|
|
|
+ .farm-title {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
+ gap: 10px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #1D2129;
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
|
- .expert-desc-icon {
|
|
|
- width: 91px;
|
|
|
- }
|
|
|
-
|
|
|
- .desc-text {
|
|
|
- font-family: "PangMenZhengDao";
|
|
|
- font-size: 14px;
|
|
|
- color: #fff;
|
|
|
+ .title-tags {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- justify-content: center;
|
|
|
- gap: 6px;
|
|
|
-
|
|
|
- .dotted {
|
|
|
- width: 5px;
|
|
|
- height: 5px;
|
|
|
- background: #fff;
|
|
|
- border-radius: 50%;
|
|
|
+ gap: 4px;
|
|
|
+
|
|
|
+ .title-tag {
|
|
|
+ font-size: 13px;
|
|
|
+ padding: 2px 8px;
|
|
|
+ border-radius: 2px;
|
|
|
+ background: #E8F3FF;
|
|
|
+ color: #2199F8;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 2px;
|
|
|
+
|
|
|
+ &.tag-danger {
|
|
|
+ background: rgba(255, 149, 61, 0.2);
|
|
|
+ color: #FF953D;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
- .task-list {
|
|
|
- padding: 0 10px 10px;
|
|
|
-
|
|
|
- .task-title {
|
|
|
- color: #000;
|
|
|
- margin: 6px 0 14px 0;
|
|
|
- font-weight: 500;
|
|
|
- font-size: 16px;
|
|
|
- line-height: 22px;
|
|
|
- position: relative;
|
|
|
- padding-left: 9px;
|
|
|
-
|
|
|
- &::after {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- width: 3px;
|
|
|
- height: 15px;
|
|
|
- background: #2199f8;
|
|
|
- border-radius: 20px;
|
|
|
+ .farm-subtitle {
|
|
|
+ font-size: 12px;
|
|
|
+ color: rgba(32, 32, 32, 0.4);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .bottom-tag {
|
|
|
+ .farm-more {
|
|
|
+ font-size: 12px;
|
|
|
+ color: rgba(37, 47, 56, 0.5);
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+.content-grid {
|
|
|
+ display: flex;
|
|
|
+ gap: 8px;
|
|
|
+ .label-column {
|
|
|
+ // display: flex;
|
|
|
+ // flex-direction: column;
|
|
|
+ // justify-content: space-between;
|
|
|
+ padding: 6px 0;
|
|
|
+ padding-right: 4px;
|
|
|
+
|
|
|
+ .label-cell {
|
|
|
+ width: 28px;
|
|
|
+ height: 64px;
|
|
|
+ border-radius: 8px;
|
|
|
+ background: #f5f5f5;
|
|
|
+ color: #86909c;
|
|
|
+ font-size: 12px;
|
|
|
display: flex;
|
|
|
- gap: 4px;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ writing-mode: vertical-rl;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
- .tag-card {
|
|
|
- flex: 1;
|
|
|
- border-radius: 6px;
|
|
|
- padding: 8px 4px;
|
|
|
- box-sizing: border-box;
|
|
|
- background: rgba(201, 201, 201, 0.1);
|
|
|
- border: 0.5px solid transparent;
|
|
|
|
|
|
- .card-content {
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- text-align: center;
|
|
|
- height: 100%;
|
|
|
-
|
|
|
- .card-main-text {
|
|
|
- font-size: 18px;
|
|
|
- line-height: 28px;
|
|
|
- font-weight: 400;
|
|
|
- color: #1D2129;
|
|
|
- margin-bottom: 2px;
|
|
|
- }
|
|
|
+.main-grid {
|
|
|
+ flex: 1;
|
|
|
+}
|
|
|
|
|
|
- .card-sub-text {
|
|
|
- font-size: 14px;
|
|
|
- line-height: 22px;
|
|
|
- color: #4E5969;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- gap: 4px;
|
|
|
-
|
|
|
- .card-icon {
|
|
|
- display: inline-flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- width: 12px;
|
|
|
- height: 12px;
|
|
|
- color: #2199f8;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+.row {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: repeat(3, 1fr);
|
|
|
+ gap: 6px;
|
|
|
+ margin-bottom: 6px;
|
|
|
+}
|
|
|
|
|
|
- &.active {
|
|
|
- background: rgba(33, 153, 248, 0.1);
|
|
|
- border-color: #2199f8;
|
|
|
+.status-card {
|
|
|
+ border-radius: 10px;
|
|
|
+ padding: 8px 8px;
|
|
|
+ box-sizing: border-box;
|
|
|
+ background: #ffffff;
|
|
|
+ border: 0.5px solid #e5e6eb;
|
|
|
+
|
|
|
+ .status-title {
|
|
|
+ font-size: 14px;
|
|
|
+ font-weight: 500;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 4px;
|
|
|
+ margin-bottom: 2px;
|
|
|
+ }
|
|
|
|
|
|
- .card-content {
|
|
|
- .card-main-text {
|
|
|
- color: #2199f8;
|
|
|
- }
|
|
|
+ .status-sub {
|
|
|
+ font-size: 11px;
|
|
|
+ color: #86909c;
|
|
|
+ }
|
|
|
|
|
|
- .card-sub-text {
|
|
|
- color: #2199f8;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ &.risk-strong {
|
|
|
+ background: #FF6A6A;
|
|
|
+ border-color: #FF6A6A;
|
|
|
+
|
|
|
+ .status-title,
|
|
|
+ .status-sub {
|
|
|
+ color: #ffffff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.danger {
|
|
|
+ background: #ffecec;
|
|
|
+ border-color: #ff8e8e;
|
|
|
+
|
|
|
+ .status-title {
|
|
|
+ color: #ff4d4f;
|
|
|
+ }
|
|
|
+
|
|
|
+ .status-sub {
|
|
|
+ color: #ff7d4d;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &.disabled {
|
|
|
+ background: #f5f5f5;
|
|
|
+ border-color: #e5e6eb;
|
|
|
+
|
|
|
+ .status-title,
|
|
|
+ .status-sub {
|
|
|
+ color: #c0c4cc;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-.report-text {
|
|
|
- font-size: 20px;
|
|
|
+.badge-dot {
|
|
|
+ width: 6px;
|
|
|
+ height: 6px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background: #ff4d4f;
|
|
|
}
|
|
|
</style>
|