Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-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
刘怀志
qr-consistency-vue3
Commits
41278f3d
Commit
41278f3d
authored
Apr 17, 2025
by
Mr.Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
角色管理操作修改 国内车型页面
parent
d663358f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
577 additions
and
26 deletions
+577
-26
domestic.js
src/api/vehicleModelData/domestic.js
+44
-0
index.vue
src/views/baseData/vehicleModelData/domestic/index.vue
+467
-0
index.vue
src/views/baseData/vehicleModelData/international/index.vue
+13
-0
index.vue
src/views/system/basicdata/businessunit/index.vue
+2
-2
index.vue
src/views/system/role/index.vue
+51
-24
No files found.
src/api/vehicleModelData/domestic.js
0 → 100644
View file @
41278f3d
import
request
from
'@/utils/request'
// 查询国内车型列表
export
function
listModel
(
query
)
{
return
request
({
url
:
'/control/model/list'
,
method
:
'get'
,
params
:
query
,
})
}
// 查询国内车型详细
export
function
getModel
(
id
)
{
return
request
({
url
:
'/control/model/'
+
id
,
method
:
'get'
,
})
}
// 新增国内车型
export
function
addModel
(
data
)
{
return
request
({
url
:
'/control/model'
,
method
:
'post'
,
data
:
data
,
})
}
// 修改国内车型
export
function
updateModel
(
data
)
{
return
request
({
url
:
'/control/model'
,
method
:
'put'
,
data
:
data
,
})
}
// 删除国内车型
export
function
delModel
(
id
)
{
return
request
({
url
:
'/control/model/'
+
id
,
method
:
'delete'
,
})
}
src/views/baseData/vehicleModelData/domestic/index.vue
0 → 100644
View file @
41278f3d
This diff is collapsed.
Click to expand it.
src/views/baseData/vehicleModelData/international/index.vue
0 → 100644
View file @
41278f3d
<
template
>
国际车型
</
template
>
<
script
>
export
default
{
name
:
'index'
,
}
</
script
>
<
style
scoped
>
</
style
>
src/views/system/basicdata/businessunit/index.vue
View file @
41278f3d
<
template
>
<div
class=
"app-container"
>
<div>
<el-button
type=
"primary"
plain
style=
"float: right;margin: 12px 0;border: 1px solid #0154fb;color: #0154fb;"
@
click=
"handleAdd"
>
新建
</el-button>
<el-button
style=
"float: right;margin: 12px 0;border: 1px solid #0154fb;color: #0154fb;"
@
click=
"handleAdd"
>
新建
</el-button>
</div>
<el-table
v-loading=
"loading"
:data=
"unitList"
@
selection-change=
"handleSelectionChange"
border
>
...
...
@@ -56,8 +56,8 @@
</el-form>
<
template
#
footer
>
<div
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
保 存
</el-button>
</div>
</
template
>
</el-dialog>
...
...
src/views/system/role/index.vue
View file @
41278f3d
...
...
@@ -7,7 +7,7 @@
:inline=
"true"
label-width=
"68px"
>
<el-form-item
label=
"
角色名称
"
prop=
"roleName"
>
<el-form-item
label=
""
prop=
"roleName"
>
<el-input
v-model=
"queryParams.roleName"
placeholder=
"角色名称"
...
...
@@ -16,7 +16,7 @@
@
keyup
.
enter=
"handleQuery"
/>
</el-form-item>
<el-form-item
label=
"
状态
"
prop=
"status"
>
<el-form-item
label=
""
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"角色状态"
...
...
@@ -32,28 +32,35 @@
</el-select>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"Search"
@
click=
"handleQuery"
style=
'background: #0154fb;'
>
查询
</el-button>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<el-button
v-hasPermi=
"['system:role:add']"
type=
"primary"
icon=
"Plus"
@
click=
"handleAdd"
style=
"float: right;background: #0154fb;"
>
新建角色
</el-button>
<!--
<el-button
type=
"primary"
plain
@
click=
"handleAdd"
>
新建
</el-button>
-->
icon=
"Search"
style=
"background: #0154fb"
@
click=
"handleQuery"
>
查询
</el-button
>
<el-button
icon=
"Refresh"
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
<el-button
v-hasPermi=
"['system:role:add']"
type=
"primary"
icon=
"Plus"
style=
"float: right; background: #0154fb"
@
click=
"handleAdd"
>
新建角色
</el-button
>
<!--
<el-button
type=
"primary"
plain
@
click=
"handleAdd"
>
新建
</el-button>
-->
</el-form>
<!-- 表格数据 -->
<el-table
v-loading=
"loading"
:data=
"roleList"
border
@
selection-change=
"handleSelectionChange"
border
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
label=
"序号"
prop=
"roleId"
width=
"120"
align=
"center"
/>
>
<!--
<el-table-column
type=
"selection"
width=
"55"
align=
"center"
/>
-->
<el-table-column
label=
"序号"
prop=
"roleId"
width=
"120"
align=
"center"
/>
<el-table-column
label=
"角色名称"
prop=
"roleName"
...
...
@@ -68,7 +75,12 @@
width=
"150"
align=
"center"
/>
<el-table-column
label=
"显示顺序"
prop=
"roleSort"
width=
"100"
align=
"center"
/>
<el-table-column
label=
"显示顺序"
prop=
"roleSort"
width=
"100"
align=
"center"
/>
<el-table-column
label=
"角色状态"
align=
"center"
width=
"150"
sortable
>
<template
#
default=
"scope"
>
<el-switch
...
...
@@ -79,12 +91,24 @@
></el-switch>
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"200"
sortable
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
width=
"200"
sortable
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
createTime
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"修改时间"
align=
"center"
prop=
"updateTime"
width=
"200"
sortable
>
<el-table-column
label=
"修改时间"
align=
"center"
prop=
"updateTime"
width=
"200"
sortable
>
<
template
#
default=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
updateTime
)
}}
</span>
</
template
>
...
...
@@ -106,7 +130,8 @@
type=
"primary"
icon=
"Edit"
@
click=
"handleUpdate(scope.row)"
>
编辑
</el-button>
>
编辑
</el-button
>
</el-tooltip>
<el-tooltip
v-if=
"scope.row.roleId !== 1"
...
...
@@ -119,9 +144,10 @@
type=
"primary"
icon=
"CircleCheck"
@
click=
"handleDataScope(scope.row)"
>
分配菜单
</el-button>
>
分配菜单
</el-button
>
</el-tooltip>
<el-tooltip
<
!--
<
el-tooltip
v-if=
"scope.row.roleId !== 1"
content=
"分配用户"
placement=
"top"
...
...
@@ -133,7 +159,7 @@
icon=
"User"
@
click=
"handleAuthUser(scope.row)"
>
分配用户
</el-button>
</el-tooltip>
</el-tooltip>
-->
<el-tooltip
v-if=
"scope.row.roleId !== 1"
content=
"删除"
...
...
@@ -145,7 +171,8 @@
type=
"danger"
icon=
"Delete"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
>
删除
</el-button
>
</el-tooltip>
</
template
>
</el-table-column>
...
...
@@ -674,7 +701,7 @@ function cancelDataScope() {
getList
()
</
script
>
<
style
scoped
>
.addRoleBtn
{
.addRoleBtn
{
margin-left
:
420px
;
margin-right
:
0px
;
}
...
...
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