|
@@ -0,0 +1,198 @@
|
|
|
|
+<template>
|
|
|
|
+ <div class="farm-manage-content">
|
|
|
|
+ <el-input class="search" v-model="searchValue" placeholder="搜索位置" @search="search" :prefix-icon="Search" />
|
|
|
|
+ <div class="select-group">
|
|
|
|
+ <el-select class="select-item" v-model="dateValue" placeholder="Select">
|
|
|
|
+ <el-option v-for="item in dateOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-select class="select-item" v-model="areaValue" placeholder="Select">
|
|
|
|
+ <el-option v-for="item in areaOptions" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-select class="select-item" v-model="areaValue1" placeholder="Select">
|
|
|
|
+ <el-option v-for="item in areaOptions1" :key="item.value" :label="item.label" :value="item.value" />
|
|
|
|
+ </el-select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="farm-list">
|
|
|
|
+ <div :class="['farm-item', { 'is-default': item === 3 }]" v-for="item in 3" :key="item" @click="handleItemClick(item)">
|
|
|
|
+ <div class="item-top"><span class="num">2</span> 条农事待确认</div>
|
|
|
|
+ <div class="item-title">未命名农场</div>
|
|
|
|
+ <div class="item-desc">
|
|
|
|
+ <div class="desc-info">
|
|
|
|
+ <div class="desc-info-item">
|
|
|
|
+ <span>农场品种:</span>
|
|
|
|
+ <span class="value">荔枝-桂味</span>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="desc-info-item">
|
|
|
|
+ <span>农场面积:</span>
|
|
|
|
+ <span class="value">500亩</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="desc-info copy-info">
|
|
|
|
+ <div class="address van-ellipsis">
|
|
|
|
+ <span>农场位置:</span>
|
|
|
|
+ <span class="value">广东省广州市从化区市从化区从广东省广州市从化区市从化区从</span>
|
|
|
|
+ </div>
|
|
|
|
+ <span class="copy-text">点击复制</span>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+</template>
|
|
|
|
+
|
|
|
|
+<script setup>
|
|
|
|
+import { ref } from "vue";
|
|
|
|
+import { Search } from "@element-plus/icons-vue";
|
|
|
|
+import { useRouter } from "vue-router";
|
|
|
|
+
|
|
|
|
+const router = useRouter();
|
|
|
|
+const searchValue = ref("");
|
|
|
|
+const search = () => {
|
|
|
|
+ console.log(searchValue.value);
|
|
|
|
+};
|
|
|
|
+const dateValue = ref("1");
|
|
|
|
+const dateOptions = [
|
|
|
|
+ { value: "1", label: "农事类型" },
|
|
|
|
+ { value: "2", label: "2" },
|
|
|
|
+ { value: "3", label: "3" },
|
|
|
|
+];
|
|
|
|
+const areaValue = ref("1");
|
|
|
|
+const areaOptions = [
|
|
|
|
+ { value: "1", label: "距离" },
|
|
|
|
+ { value: "2", label: "2" },
|
|
|
|
+ { value: "3", label: "3" },
|
|
|
|
+];
|
|
|
|
+const areaValue1 = ref("1");
|
|
|
|
+const areaOptions1 = [
|
|
|
|
+ { value: "1", label: "区域筛选" },
|
|
|
|
+ { value: "2", label: "2" },
|
|
|
|
+ { value: "3", label: "3" },
|
|
|
|
+];
|
|
|
|
+
|
|
|
|
+const handleItemClick = (item) => {
|
|
|
|
+ console.log(item);
|
|
|
|
+ router.push(`/farm_manage_detail?type=EXPERT`);
|
|
|
|
+};
|
|
|
|
+</script>
|
|
|
|
+
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
+.farm-manage-content {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: calc(100vh - 52px - 50px);
|
|
|
|
+ background: #f5f7fb;
|
|
|
|
+ padding: 8px 12px;
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
+ .search {
|
|
|
|
+ ::v-deep {
|
|
|
|
+ .el-input__wrapper {
|
|
|
|
+ box-shadow: none;
|
|
|
|
+ border-radius: 20px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .select-group {
|
|
|
|
+ display: flex;
|
|
|
|
+ gap: 12px;
|
|
|
|
+ margin: 5px 0;
|
|
|
|
+ .select-item {
|
|
|
|
+ width: 100%;
|
|
|
|
+ ::v-deep {
|
|
|
|
+ .el-select__wrapper {
|
|
|
|
+ text-align: center;
|
|
|
|
+ gap: 2px;
|
|
|
|
+ box-shadow: none;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ background: none;
|
|
|
|
+ }
|
|
|
|
+ .el-select__selection {
|
|
|
|
+ flex: none;
|
|
|
|
+ width: fit-content;
|
|
|
|
+ }
|
|
|
|
+ .el-select__placeholder {
|
|
|
|
+ position: static;
|
|
|
|
+ transform: none;
|
|
|
|
+ width: fit-content;
|
|
|
|
+ color: rgba(0, 0, 0, 0.2);
|
|
|
|
+ }
|
|
|
|
+ .el-select__caret {
|
|
|
|
+ color: rgba(0, 0, 0, 0.2);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .farm-list {
|
|
|
|
+ .farm-item {
|
|
|
|
+ background: #fff;
|
|
|
|
+ border-radius: 10px;
|
|
|
|
+ padding: 10px 12px;
|
|
|
|
+ border: 1px solid rgba(255, 149, 61, 0.5);
|
|
|
|
+ .item-top {
|
|
|
|
+ background-image: linear-gradient(90deg, rgba(255, 149, 61, 0.3) 0%, transparent 88%);
|
|
|
|
+ color: #bf5600;
|
|
|
|
+ padding: 5px 10px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ position: relative;
|
|
|
|
+ &::before {
|
|
|
|
+ content: "";
|
|
|
|
+ width: 6px;
|
|
|
|
+ height: 6px;
|
|
|
|
+ background: #ff953d;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ top: 5px;
|
|
|
|
+ left: 110px;
|
|
|
|
+ position: absolute;
|
|
|
|
+ }
|
|
|
|
+ .num {
|
|
|
|
+ font-size: 18px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .item-title {
|
|
|
|
+ font-size: 16px;
|
|
|
|
+ font-weight: 500;
|
|
|
|
+ margin: 10px 0 5px 0;
|
|
|
|
+ }
|
|
|
|
+ .item-desc {
|
|
|
|
+ font-size: 13px;
|
|
|
|
+ color: #bbbbbb;
|
|
|
|
+ line-height: 18px;
|
|
|
|
+ .desc-info {
|
|
|
|
+ display: flex;
|
|
|
|
+ .desc-info-item {
|
|
|
|
+ flex: 1;
|
|
|
|
+ .value {
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .copy-info {
|
|
|
|
+ margin-top: 4px;
|
|
|
|
+ .address {
|
|
|
|
+ max-width: 80%;
|
|
|
|
+ .value {
|
|
|
|
+ color: #666666;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .copy-text {
|
|
|
|
+ margin-left: 8px;
|
|
|
|
+ color: #2199f8;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ &.is-default {
|
|
|
|
+ border-color: transparent;
|
|
|
|
+ .item-top {
|
|
|
|
+ color: #505050;
|
|
|
|
+ background-image: linear-gradient(90deg, rgba(171, 171, 171, 0.2) 0%, transparent 88%);
|
|
|
|
+ &::before {
|
|
|
|
+ background: #909090;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .farm-item + .farm-item {
|
|
|
|
+ margin-top: 10px;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+</style>
|