Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue3
Project
Project
Details
Activity
Releases
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
张伯涛
91isoft_web_vue3
Commits
5616bb9a
Commit
5616bb9a
authored
Jan 31, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
47322a78
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
commonField.ts
src/utils/commonField.ts
+1
-1
index.vue
src/views/system/menu/index.vue
+3
-0
No files found.
src/utils/commonField.ts
View file @
5616bb9a
import
{
Plus
,
Delete
,
Edit
,
Search
,
Share
,
Upload
}
from
'@element-plus/icons-vue'
/** 公共字段*/
export
const
commonField
=
{
typeParent
:
'
text'
,
typeParent
:
'
primary'
,
// typeParent: 'text', type="text" 已在3.00移除,用了typeParent这个字段的需要在按钮用link设置链接按钮
typePrimary
:
'primary'
,
typeSuccess
:
'success'
,
typeWarning
:
'warning'
,
...
...
src/views/system/menu/index.vue
View file @
5616bb9a
...
...
@@ -288,6 +288,7 @@ onMounted(() => {
v-hasPermi=
"hasUpdateMenuPerm"
:class=
"commonField.updateClass"
:type=
"commonField.typeParent"
link
:size=
"commonField.size"
@
click=
"openDialog(scope.row.parentId, scope.row.businessId)"
>
{{
commonField
.
updateName
}}
</el-button>
...
...
@@ -310,6 +311,7 @@ onMounted(() => {
v-hasPermi=
"hasDelMenuPerm"
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
link
:size=
"commonField.size"
@
click=
"handleDelete(scope.row.businessId)"
>
{{
commonField
.
deleteName
}}
</el-button>
...
...
@@ -320,6 +322,7 @@ onMounted(() => {
v-hasPermi=
"hasAddMenuPerm"
:class=
"commonField.delClass"
:type=
"commonField.typeParent"
link
:size=
"commonField.size"
@
click=
"openDialog(scope.row.businessId)"
>
{{
commonField
.
addName
}}
</el-button>
...
...
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