Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
liyeyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cfld-frontend
liyeyun
Commits
9cec705a
Commit
9cec705a
authored
Dec 05, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 头部名称搜索
parent
5efa3645
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
61 additions
and
40 deletions
+61
-40
CommonTitle.vue
src/components/common/CommonTitle.vue
+51
-0
DetailMain.vue
src/components/detail/DetailMain.vue
+2
-40
CarrierList.vue
src/views/carrier/CarrierList.vue
+2
-0
DevelopZoneList.vue
src/views/develop/DevelopZoneList.vue
+2
-0
IndustrialParkList.vue
src/views/industrial-park/IndustrialParkList.vue
+2
-0
LandList.vue
src/views/land/LandList.vue
+2
-0
No files found.
src/components/common/CommonTitle.vue
0 → 100644
View file @
9cec705a
<
template
>
<div
class=
"flex h-12 items-center justify-between"
>
<div
class=
"flex h-full items-center"
>
<div>
<img
class=
"h-10 w-auto"
src=
"@/assets/images/logo-head.png"
alt=
"立业云"
/>
</div>
<div
class=
"ml-4 flex h-8 items-center px-4 font-yahei text-base text-[#C0322B] outline outline-1 outline-[#C0322B]"
>
{{
typeName
}}
</div>
</div>
<div
class=
"h-full"
>
<div
class=
"search-input-shadow flex h-full items-center overflow-hidden rounded"
>
<div
class=
"flex flex-1 items-center justify-center"
>
<input
class=
"search-input h-full w-[375px] px-3 py-[14px] text-sm"
type=
"text"
:placeholder=
"`请输入$
{typeName}名称进行搜索`"
/>
</div>
<div
class=
"flex h-full w-[70px] items-center justify-center bg-[#C0322B]"
>
<img
class=
"h-[30px] w-[30px]"
src=
"@/assets/images/icon-search.png"
alt=
"search"
/>
</div>
</div>
</div>
</div>
</
template
>
<
script
setup
lang=
"ts"
>
withDefaults
(
defineProps
<
{
typeName
:
string
;
}
>
(),
{},
);
</
script
>
<
style
lang=
"scss"
>
.search-input-shadow
{
box-shadow
:
0px
2px
8px
0px
rgba
(
90
,
0
,
0
,
0
.1
);
}
.search-input
{
&
:focus
{
outline
:
none
;
}
&
:
:
placeholder
{
@apply
text-
[
#999999
]
;
}
}
</
style
>
src/components/detail/DetailMain.vue
View file @
9cec705a
<!-- 主图部分 -->
<!-- 主图部分 -->
<
template
>
<
template
>
<div
v-if=
"detail"
>
<div
v-if=
"detail"
>
<div
class=
"flex h-12 items-center justify-between"
>
<CommonTitle
:type-name=
"headerType"
></CommonTitle>
<div
class=
"flex h-full items-center"
>
<div>
<img
class=
"h-10 w-auto"
src=
"@/assets/images/logo-head.png"
alt=
"立业云"
/>
</div>
<div
class=
"ml-4 flex h-8 items-center px-4 font-yahei text-base text-[#C0322B] outline outline-1 outline-[#C0322B]"
>
{{
headerType
}}
</div>
</div>
<div
class=
"h-full"
>
<div
class=
"search-input-shadow flex h-full items-center overflow-hidden rounded"
>
<div
class=
"flex flex-1 items-center justify-center"
>
<input
class=
"search-input h-full w-[375px] px-3 py-[14px] text-sm"
type=
"text"
:placeholder=
"`请输入$
{headerType}名称进行搜索`"
/>
</div>
<div
class=
"flex h-full w-[70px] items-center justify-center bg-[#C0322B]"
>
<img
class=
"h-[30px] w-[30px]"
src=
"@/assets/images/icon-search.png"
alt=
"search"
/>
</div>
</div>
</div>
</div>
<div
class=
"mt-5 py-5"
>
<div
class=
"mt-5 py-5"
>
<div
class=
"flex h-10 items-center"
>
<div
class=
"flex h-10 items-center"
>
<div
class=
"font-yahei text-[32px] font-bold leading-10 text-[#333333]"
>
<div
class=
"font-yahei text-[32px] font-bold leading-10 text-[#333333]"
>
...
@@ -95,6 +70,7 @@ import { computed } from 'vue';
...
@@ -95,6 +70,7 @@ import { computed } from 'vue';
import
ImageList
from
'@/components/common/ImageList.vue'
;
import
ImageList
from
'@/components/common/ImageList.vue'
;
import
type
{
Investment
}
from
'@/types/common.ts'
;
import
type
{
Investment
}
from
'@/types/common.ts'
;
import
{
haveValue
}
from
'@/utils/filters.ts'
;
import
{
haveValue
}
from
'@/utils/filters.ts'
;
import
CommonTitle
from
'@/components/common/CommonTitle.vue'
;
export
interface
HeaderDetail
{
export
interface
HeaderDetail
{
name
:
string
;
name
:
string
;
...
@@ -143,17 +119,3 @@ const area = computed(() => {
...
@@ -143,17 +119,3 @@ const area = computed(() => {
return
[
provinceName
,
cityName
,
regionName
].
filter
(
haveValue
).
join
(
'-'
);
return
[
provinceName
,
cityName
,
regionName
].
filter
(
haveValue
).
join
(
'-'
);
});
});
</
script
>
</
script
>
<
style
lang=
"scss"
>
.search-input-shadow
{
box-shadow
:
0px
2px
8px
0px
rgba
(
90
,
0
,
0
,
0
.1
);
}
.search-input
{
&
:focus
{
outline
:
none
;
}
&
:
:
placeholder
{
@apply
text-
[
#999999
]
;
}
}
</
style
>
src/views/carrier/CarrierList.vue
View file @
9cec705a
<!-- 载体 -->
<!-- 载体 -->
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<CommonTitle
class=
"my-[30px]"
type-name=
"载体"
></CommonTitle>
<FilterView
<FilterView
class=
"mb-6"
class=
"mb-6"
:filter-key-list=
"filterKeyList"
:filter-key-list=
"filterKeyList"
...
@@ -36,6 +37,7 @@ import { RouteName } from '@/router/router.ts';
...
@@ -36,6 +37,7 @@ import { RouteName } from '@/router/router.ts';
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
CarrierListItemView
from
'@/components/list/list-carrier-item.vue'
;
import
CarrierListItemView
from
'@/components/list/list-carrier-item.vue'
;
import
CommonTitle
from
'@/components/common/CommonTitle.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
type
{
CarrierListCondition
,
CarrierListItem
}
from
'@/types/api/carrierList'
;
import
type
{
CarrierListCondition
,
CarrierListItem
}
from
'@/types/api/carrierList'
;
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
...
...
src/views/develop/DevelopZoneList.vue
View file @
9cec705a
<!-- 开发区列表 -->
<!-- 开发区列表 -->
<
template
>
<
template
>
<div
class=
"main-width mx-auto"
>
<div
class=
"main-width mx-auto"
>
<CommonTitle
class=
"my-[30px]"
type-name=
"开发区"
></CommonTitle>
<FilterView
<FilterView
:filter-key-list=
"filterKeyList"
:filter-key-list=
"filterKeyList"
class=
"mb-6"
class=
"mb-6"
...
@@ -33,6 +34,7 @@ import { RequestUrl } from '@/types/api.ts';
...
@@ -33,6 +34,7 @@ import { RequestUrl } from '@/types/api.ts';
import
type
{
DevelopZoneItem
,
DevelopZoneListCondition
}
from
'@/types/api/developZoneList'
;
import
type
{
DevelopZoneItem
,
DevelopZoneListCondition
}
from
'@/types/api/developZoneList'
;
import
{
ParkItemType
}
from
'@/types/enum.ts'
;
import
{
ParkItemType
}
from
'@/types/enum.ts'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
CommonTitle
from
'@/components/common/CommonTitle.vue'
;
// 筛选项列表
// 筛选项列表
const
filterKeyList
=
[
const
filterKeyList
=
[
...
...
src/views/industrial-park/IndustrialParkList.vue
View file @
9cec705a
<!-- 产业园列表 -->
<!-- 产业园列表 -->
<
template
>
<
template
>
<div
class=
"main-width mx-auto"
>
<div
class=
"main-width mx-auto"
>
<CommonTitle
class=
"my-[30px]"
type-name=
"产业园"
></CommonTitle>
<FilterView
<FilterView
class=
"mb-6"
class=
"mb-6"
:filter-key-list=
"filterKeyList"
:filter-key-list=
"filterKeyList"
...
@@ -33,6 +34,7 @@ import { RouteName } from '@/router/router.ts';
...
@@ -33,6 +34,7 @@ import { RouteName } from '@/router/router.ts';
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
CommonTitle
from
'@/components/common/CommonTitle.vue'
;
import
ParkItem
from
'@/components/list/ParkItem.vue'
;
import
ParkItem
from
'@/components/list/ParkItem.vue'
;
import
type
{
import
type
{
IndustrialParkItem
,
IndustrialParkItem
,
...
...
src/views/land/LandList.vue
View file @
9cec705a
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div>
<div>
<CommonTitle
class=
"my-[30px]"
type-name=
"土地"
></CommonTitle>
<FilterView
<FilterView
:filter-key-list=
"filterKeyList"
:filter-key-list=
"filterKeyList"
class=
"mb-6"
class=
"mb-6"
...
@@ -29,6 +30,7 @@ import { RouteName } from '@/router/router.ts';
...
@@ -29,6 +30,7 @@ import { RouteName } from '@/router/router.ts';
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
{
RequestUrl
}
from
'@/types/api.ts'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
ListPagination
from
'@/components/list/ListPagination.vue'
;
import
LandListItemView
from
'@/components/list/list-land-item.vue'
;
import
LandListItemView
from
'@/components/list/list-land-item.vue'
;
import
CommonTitle
from
'@/components/common/CommonTitle.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
FilterView
from
'@/components/filter/filter-view.vue'
;
import
type
{
LandListCondition
,
LandListItem
}
from
'@/types/api/landList'
;
import
type
{
LandListCondition
,
LandListItem
}
from
'@/types/api/landList'
;
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment