Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
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
张伯涛
NLT-e-cigarette
Commits
61a19100
Commit
61a19100
authored
May 25, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c881dff4
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
213 additions
and
86 deletions
+213
-86
role.js
src/api/system/role.js
+8
-0
user.js
src/api/system/user.js
+16
-8
index.vue
src/views/system/dept/index.vue
+16
-0
data.vue
src/views/system/dict/data.vue
+7
-7
index.vue
src/views/system/dict/index.vue
+6
-6
index.vue
src/views/system/user/index.vue
+160
-65
No files found.
src/api/system/role.js
View file @
61a19100
...
...
@@ -8,6 +8,14 @@ export function listRole(query) {
params
:
query
})
}
// 查询角色信息select
export
function
roleSelect
(
query
)
{
return
request
({
url
:
'/system/role/listAll'
,
method
:
'get'
,
params
:
query
})
}
// 查询角色详细
export
function
getRole
(
businessId
)
{
...
...
src/api/system/user.js
View file @
61a19100
...
...
@@ -37,21 +37,29 @@ export function addUser(data) {
}
})
}
// 修改用户
export
function
updateUser
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/system/user/update
/'
+
businessId
,
url
:
'/system/user/update
'
,
method
:
'put'
,
data
:
data
,
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
data
:
data
})
}
// 修改用户
// export function updateUser(data) {
// const businessId = data.businessId
// data = Qs.stringify(data)
// return request({
// url: '/system/user/update/' + businessId,
// method: 'put',
// data: data,
// headers: {
// 'Content-Type': 'application/x-www-form-urlencoded'
// }
// })
// }
// 删除用户
export
function
delUser
(
userId
)
{
return
request
({
...
...
src/views/system/dept/index.vue
View file @
61a19100
...
...
@@ -75,6 +75,12 @@
<div>
Dept Name
</div>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
:show-overflow-tooltip=
"true"
prop=
"deptCode"
label=
"部门编码"
width=
"260"
>
<
template
slot=
"header"
>
<div>
部门编码
</div>
<div>
Dept Number
</div>
</
template
>
</el-table-column>
<el-table-column
:show-overflow-tooltip=
"true"
prop=
"orderNum"
align=
"center"
width=
"200"
>
<
template
slot=
"header"
>
<div>
排序
</div>
...
...
@@ -187,6 +193,15 @@
<el-input
v-model
.
trim=
"form.deptName"
placeholder=
"请输入部门名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"部门编码"
prop=
"deptCode"
>
<div
slot=
"label"
class=
"labelClass"
>
<div>
部门编码
</div>
<div>
Dept Number
</div>
</div>
<el-input
v-model
.
trim=
"form.deptCode"
placeholder=
"请输入部门编码"
maxlength=
"20"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"部门排序"
prop=
"orderNum"
>
<div
slot=
"label"
style=
"position: relative;bottom: 17px"
class=
"labelClass"
>
...
...
@@ -389,6 +404,7 @@ export default {
parentId
:
undefined
,
deptName
:
undefined
,
orderNum
:
undefined
,
deptCode
:
undefined
,
leader
:
undefined
,
phone
:
undefined
,
email
:
undefined
,
...
...
src/views/system/dict/data.vue
View file @
61a19100
...
...
@@ -76,13 +76,13 @@
@
click=
"handleDelete"
>
删除 Delete
</el-button>
<el-button
v-has-permi=
"['sys:dict:export']"
type=
"warning"
size=
"mini"
@
click=
"handleExport"
>
导出 Export
</el-button
>
<!--
<el-button-->
<!-- v-has-permi="['sys:dict:export']"-->
<!-- type="warning"-->
<!-- size="mini"-->
<!-- @click="handleExport"-->
<!-- >导出 Export-->
<!--
</el-button>
--
>
<right-toolbar
:show-search
.
sync=
"showSearch"
@
queryTable=
"getList"
/>
</div>
<div
class=
"mb12 font-small-bold"
>
字典参数列表
</div>
...
...
src/views/system/dict/index.vue
View file @
61a19100
...
...
@@ -102,12 +102,12 @@
@
click=
"handleDelete"
>
删除 Delete
</el-button>
<el-button
v-hasPermi=
"['sys:dict:export']"
type=
"success"
size=
"small"
@
click=
"handleExport"
>
导出 Export
</el-button
>
<!--
<el-button-->
<!-- v-hasPermi="['sys:dict:export']"-->
<!-- type="success"-->
<!-- size="small"-->
<!-- @click="handleExport"-->
<!-- >导出 Export
</el-button>
--
>
</div>
<div
class=
"mb12 font-small-bold"
style=
"margin: 0 0 12px 0;font-size: 14px"
>
字典管理列表
</div>
<el-table
v-loading=
"loading"
border
:data=
"typeList"
@
selection-change=
"handleSelectionChange"
>
...
...
src/views/system/user/index.vue
View file @
61a19100
This diff is collapsed.
Click to expand it.
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