| | |
| | | <template> |
| | | <div class="house">实有房屋</div> |
| | | <div class="comprehensive"> |
| | | <div class="menus"> |
| | | <the-a-cascader :data="cascaderData" placeholder="请选择" title="区域"></the-a-cascader> |
| | | <div><the-a-search placeholder="请输入" title="搜索"></the-a-search></div> |
| | | <div><the-a-change :data="changeData" default-value="custom"></the-a-change></div> |
| | | <div><a-time-picker type="time-range" style="width: 250px" /></div> |
| | | <div> |
| | | <a-button type="primary"> |
| | | <template #icon> |
| | | <icon-search /> |
| | | </template> |
| | | <template #default>搜索</template> |
| | | </a-button> |
| | | </div> |
| | | <div> |
| | | <a-button> |
| | | <template #icon> |
| | | <icon-refresh /> |
| | | </template> |
| | | <template #default>重置</template> |
| | | </a-button> |
| | | </div> |
| | | </div> |
| | | <div class="main"> |
| | | <div class="menus"> |
| | | <div> |
| | | <the-a-select :data="['1号楼', '2号楼']" placeholder="请选择" title="房屋地址"></the-a-select> |
| | | </div> |
| | | <div><the-a-select :data="['是', '否']" placeholder="请选择" title="房屋状态"></the-a-select></div> |
| | | <div> |
| | | <the-a-select :data="['正序', '倒序']" placeholder="请选择" title="排序"></the-a-select> |
| | | </div> |
| | | <div class="right"> |
| | | <div> |
| | | <icon-list size="20" /> |
| | | </div> |
| | | <div class="active"> |
| | | <icon-apps size="20" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="cards"> |
| | | <the-house-card |
| | | v-for="(item, index) in list" |
| | | :key="index" |
| | | :tag="item.tag" |
| | | :content="item.content" |
| | | :title="item.title" |
| | | @handleClick="handleClick(item)" |
| | | @handleDetails="handleDetails(item)" |
| | | ></the-house-card> |
| | | </div> |
| | | <a-pagination :total="50" show-total show-jumper show-page-size style="margin-top: 8px" /> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script lang="ts" setup name="house"></script> |
| | | <script lang="ts" setup name="comprehensive"> |
| | | import { Svg } from "@easyfe/admin-component"; |
| | | const changeData = reactive([ |
| | | { |
| | | name: "1天", |
| | | value: "1" |
| | | }, |
| | | { |
| | | name: "2天", |
| | | value: "2" |
| | | }, |
| | | { |
| | | name: "3天", |
| | | value: "3" |
| | | }, |
| | | { |
| | | name: "自定义", |
| | | value: "custom" |
| | | } |
| | | ]); |
| | | const cascaderData = reactive([ |
| | | { |
| | | value: "beijing", |
| | | label: "Beijing", |
| | | children: [ |
| | | { |
| | | value: "chaoyang", |
| | | label: "ChaoYang", |
| | | children: [ |
| | | { |
| | | value: "datunli", |
| | | label: "Datunli" |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | value: "haidian", |
| | | label: "Haidian" |
| | | }, |
| | | { |
| | | value: "dongcheng", |
| | | label: "Dongcheng" |
| | | }, |
| | | { |
| | | value: "xicheng", |
| | | label: "Xicheng", |
| | | children: [ |
| | | { |
| | | value: "jinrongjie", |
| | | label: "Jinrongjie" |
| | | }, |
| | | { |
| | | value: "tianqiao", |
| | | label: "Tianqiao" |
| | | } |
| | | ] |
| | | } |
| | | ] |
| | | }, |
| | | { |
| | | value: "shanghai", |
| | | label: "Shanghai", |
| | | children: [ |
| | | { |
| | | value: "huangpu", |
| | | label: "Huangpu" |
| | | } |
| | | ] |
| | | } |
| | | ]); |
| | | const list = reactive( |
| | | new Array(8) |
| | | .fill({ |
| | | title: "20-1", |
| | | content: "总/老/幼: 3/2/1人", |
| | | tag: { |
| | | text: "出租", |
| | | color: "rgba(227, 107, 77, 0.6)" |
| | | } |
| | | }) |
| | | .concat( |
| | | new Array(3).fill({ |
| | | title: "20-1", |
| | | content: "总/老/幼: 3/2/1人", |
| | | tag: { |
| | | text: "出租", |
| | | color: "rgba(50, 111, 255, 0.6)" |
| | | } |
| | | }) |
| | | ) |
| | | .concat( |
| | | new Array(5).fill({ |
| | | title: "20-1", |
| | | content: "总/老/幼: 3/2/1人", |
| | | tag: { |
| | | text: "出租", |
| | | color: "rgba(48, 193, 169, 0.6)" |
| | | } |
| | | }) |
| | | ) |
| | | ); |
| | | |
| | | <style lang="scss" scoped></style> |
| | | const handleClick = (item: any) => { |
| | | console.log(item, 888); |
| | | }; |
| | | const handleDetails = (item: any) => { |
| | | console.log(item, 666); |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .menus .right { |
| | | background: var(--color-fill-2); |
| | | padding: 2px; |
| | | display: flex; |
| | | position: absolute; |
| | | right: 0; |
| | | margin-right: 0; |
| | | > div { |
| | | width: 34px; |
| | | height: 34px; |
| | | cursor: pointer; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | &.active { |
| | | background: #1057fd; |
| | | color: #fff; |
| | | } |
| | | } |
| | | } |
| | | .main .menus { |
| | | padding: 0 !important; |
| | | margin-bottom: 20px; |
| | | } |
| | | .comprehensive { |
| | | display: flex; |
| | | flex-direction: column; |
| | | height: 100%; |
| | | padding: 20px; |
| | | .menus { |
| | | position: relative; |
| | | background: var(--color-bg-2); |
| | | margin-top: 8px; |
| | | padding: 14px 20px; |
| | | display: flex; |
| | | > div { |
| | | margin-left: 20px; |
| | | } |
| | | } |
| | | .main { |
| | | padding: 8px 20px; |
| | | background: var(--color-bg-2); |
| | | margin-top: 8px; |
| | | flex: 1; |
| | | .cards { |
| | | overflow: hidden; |
| | | > div { |
| | | float: left; |
| | | margin: 0 20px 20px 0; |
| | | } |
| | | } |
| | | } |
| | | .top-title { |
| | | display: flex; |
| | | } |
| | | .card-box { |
| | | border-radius: 5px; |
| | | } |
| | | .card-box-right { |
| | | margin-top: 10px; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | } |
| | | </style> |