Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_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
赵啸非
smart_gov_platform
Commits
eaa4a276
Commit
eaa4a276
authored
Jul 17, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复菜单搜索异常
parent
e09647a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
portal-manager-ui/admin/src/assets/css/common.less
portal-manager-ui/admin/src/assets/css/common.less
+1
-0
portal-manager-ui/admin/src/views/thePlatformIsSet/components/menuManagement/menuMgmt.vue
...s/thePlatformIsSet/components/menuManagement/menuMgmt.vue
+9
-5
No files found.
portal-manager-ui/admin/src/assets/css/common.less
View file @
eaa4a276
...
@@ -553,4 +553,5 @@
...
@@ -553,4 +553,5 @@
.addclass {
.addclass {
background: linear-gradient(90deg, #5ab6ff 0%, #2e9aff 100%) !important;
background: linear-gradient(90deg, #5ab6ff 0%, #2e9aff 100%) !important;
color: #fff !important;
color: #fff !important;
border:none !important
}
}
portal-manager-ui/admin/src/views/thePlatformIsSet/components/menuManagement/menuMgmt.vue
View file @
eaa4a276
<
template
>
<
template
>
<div
class=
"menuMgmt"
>
<div
class=
"menuMgmt"
>
<div
class=
"header_box"
>
<div
class=
"header_box"
>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"showEditModal(1)"
>
新增
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"showEditModal(1)"
>
新增
</a-button
>
<span>
<span>
<a-input
v-model=
"searchForm.name"
placeholder=
"请输入菜单名称搜索"
>
<a-input
v-model=
"searchForm.name"
placeholder=
"请输入菜单名称搜索"
>
<a-icon
slot=
"prefix"
type=
"search"
/>
<a-icon
slot=
"prefix"
type=
"search"
/>
...
@@ -13,7 +15,9 @@
...
@@ -13,7 +15,9 @@
</a-select-option>
</a-select-option>
</a-select>
</a-select>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"searchData"
>
搜索
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"searchData"
>
搜索
</a-button
>
<a-button
@
click=
"resetSearch"
>
重置
</a-button>
<a-button
@
click=
"resetSearch"
>
重置
</a-button>
</span>
</span>
</div>
</div>
...
@@ -89,7 +93,7 @@ export default {
...
@@ -89,7 +93,7 @@ export default {
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
api
:
process
.
env
.
VUE_APP_API_IMG_URL
,
EditModalVisible
:
false
,
EditModalVisible
:
false
,
searchForm
:
{
searchForm
:
{
name
:
undefined
,
name
:
""
,
parentId
:
""
,
parentId
:
""
,
},
},
tableLoading
:
false
,
tableLoading
:
false
,
...
@@ -218,8 +222,8 @@ export default {
...
@@ -218,8 +222,8 @@ export default {
// 搜索
// 搜索
async
searchData
()
{
async
searchData
()
{
if
(
this
.
searchForm
.
parentId
||
this
.
searchForm
.
name
)
{
if
(
this
.
searchForm
.
parentId
||
this
.
searchForm
.
name
)
{
let
obj
=
{
...
this
.
searchForm
}
let
obj
=
{
...
this
.
searchForm
};
obj
.
name
=
'
%
'
+
this
.
searchForm
.
name
+
'
%
'
obj
.
name
=
"
%
"
+
this
.
searchForm
.
name
+
"
%
"
;
let
res
=
await
menuList
({
let
res
=
await
menuList
({
page
:
this
.
tablePagination
.
current
,
page
:
this
.
tablePagination
.
current
,
size
:
-
1
,
size
:
-
1
,
...
...
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