Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
sample-form-platform
Commits
33066c62
Commit
33066c62
authored
Dec 06, 2022
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改搜索和事项显示
parent
76333111
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
17 deletions
+42
-17
sample-form-client-ui/admin/src/components/SearchBox.vue
sample-form-client-ui/admin/src/components/SearchBox.vue
+23
-8
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
...-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
+9
-4
sample-form-client-ui/admin/src/pages/showpage/MatterList.vue
...le-form-client-ui/admin/src/pages/showpage/MatterList.vue
+7
-2
sample-form-client-ui/admin/src/pages/showpage/components/LeftMenus.vue
...ient-ui/admin/src/pages/showpage/components/LeftMenus.vue
+3
-3
No files found.
sample-form-client-ui/admin/src/components/SearchBox.vue
View file @
33066c62
<
template
>
<div
class=
"search-box"
:style=
"
{ width }">
<el-input
placeholder=
"输入关键词查询"
:value=
"value"
@
input=
"changeInput"
></el-input>
<el-input
placeholder=
"输入关键词查询"
:value=
"value"
@
input=
"changeInput"
>
<i
v-show=
"value"
slot=
"suffix"
class=
"el-icon-circle-close"
@
click=
"handleClose"
></i>
</el-input>
<el-button
class=
"search-btn"
@
click=
"handleSearch"
>
<span
class=
"flex aic jcc"
>
<img
class=
"mr10"
src=
"../assets/img/sousuo.png"
/>
搜索
...
...
@@ -40,6 +43,9 @@ export default {
handleSearch
()
{
this
.
$emit
(
"
click
"
);
},
handleClose
()
{
this
.
$emit
(
"
clear
"
);
},
},
};
</
script
>
...
...
@@ -65,10 +71,19 @@ export default {
right: 5px;
top: 5px;
}
/deep/.el-input__inner {
:deep(.el-input__suffix) {
display: flex;
align-items: center;
justify-content: center;
position: absolute;
right: 200px;
}
.el-icon-circle-close {
font-size: 20px;
}
:deep(.el-input__inner) {
height: 72px;
padding-right: 2
0
0px;
padding-right: 2
4
0px;
font-size: 24px;
border-radius: 8px;
color: #333;
...
...
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
View file @
33066c62
...
...
@@ -6,7 +6,7 @@
<div
class=
"main flex1 flex flexc"
>
<PageTop>
<div
slot=
"count"
class=
"count"
>
共计
<span
class=
"data-count"
>
{{
matterT
otal
}}
</span
共计
<span
class=
"data-count"
>
{{
t
otal
}}
</span
>
件事项
<!-- ,
<span
class=
"data-count"
>
{{
matterDatumTotal
}}
</span
>
份表单 -->
...
...
@@ -15,6 +15,7 @@
slot=
"search"
width=
"834px"
@
click=
"handleSearch"
@
clear=
"handleClear"
v-model=
"searchVal"
></SearchBox>
</PageTop>
...
...
@@ -140,7 +141,7 @@ export default {
}
);
let
{
total
,
matterDatumTotal
,
data
}
=
res
.
data
.
data
;
this
.
matterList
=
data
;
this
.
matterT
otal
=
total
;
this
.
t
otal
=
total
;
this
.
matterDatumTotal
=
matterDatumTotal
;
console
.
log
(
data
);
}
,
...
...
@@ -159,6 +160,10 @@ export default {
this
.
matterInfo
=
row
;
this
.
visible
=
true
;
}
,
// 重置搜索
handleClear
()
{
this
.
searchVal
=
""
;
}
,
}
,
}
;
<
/script
>
...
...
@@ -196,7 +201,7 @@ export default {
.
matter
-
item
{
width
:
426
px
;
height
:
200
px
;
padding
:
1
0
px
;
padding
:
2
0
px
;
margin
-
bottom
:
34
px
;
background
:
#
edf6fe
;
border
-
radius
:
16
px
;
...
...
@@ -228,7 +233,7 @@ export default {
color
:
#
333333
;
line
-
height
:
28
px
;
.
isMore
{
max
-
width
:
3
2
0
px
;
max
-
width
:
3
1
0
px
;
}
.
count
{
color
:
#
2878
ff
;
...
...
sample-form-client-ui/admin/src/pages/showpage/MatterList.vue
View file @
33066c62
...
...
@@ -22,6 +22,7 @@
width=
"834px"
v-model=
"searchVal"
@
click=
"handleSearch"
@
clear=
"handleClear"
></SearchBox>
</PageTop>
<!-- 事项列表 -->
...
...
@@ -145,6 +146,10 @@ export default {
this
.
matterInfo
=
row
;
this
.
visible
=
true
;
},
// 重置搜索
handleClear
()
{
this
.
searchVal
=
""
;
},
},
};
</
script
>
...
...
@@ -193,7 +198,7 @@ export default {
width: 460px;
height: 150px;
margin-bottom: 30px;
padding:
1
0px;
padding:
2
0px;
background: #edf6fe;
border-radius: 16px;
cursor: pointer;
...
...
@@ -224,7 +229,7 @@ export default {
letter-spacing: 1px;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp:
2
;
-webkit-line-clamp:
1
;
overflow: hidden;
}
.isRecommend {
...
...
sample-form-client-ui/admin/src/pages/showpage/components/LeftMenus.vue
View file @
33066c62
...
...
@@ -58,16 +58,16 @@ export default {
padding: 15px 0px;
overflow-y: auto;
&::-webkit-scrollbar {
width:
6
px;
width:
4
px;
overflow-y: auto;
}
&::-webkit-scrollbar-thumb {
border-radius:
6
px;
border-radius:
4
px;
background-color: rgba(144, 147, 153, 0.5);
}
&::-webkit-scrollbar-track {
border-radius:
6
px;
border-radius:
4
px;
background: #fff;
}
}
...
...
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