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
43a2981c
Commit
43a2981c
authored
Jun 09, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
811b7174
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
37 deletions
+53
-37
request.js
src/utils/request.js
+1
-1
index.vue
src/views/system/user/index.vue
+52
-36
No files found.
src/utils/request.js
View file @
43a2981c
...
...
@@ -108,7 +108,7 @@ service.interceptors.response.use(res => {
type
:
'error'
})
return
Promise
.
reject
(
new
Error
(
message
))
}
else
if
(
code
!==
200
&&
code
!==
'E004'
&&
code
!==
4006
)
{
}
else
if
(
code
!==
200
&&
code
!==
'E004'
&&
code
!==
4006
&&
code
!==
4007
)
{
Message
({
message
:
message
,
type
:
'error'
,
...
...
src/views/system/user/index.vue
View file @
43a2981c
...
...
@@ -159,7 +159,7 @@
{{
scope
.
row
.
username
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"name"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
prop=
"name"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
姓名
</div>
<div>
Name
</div>
...
...
@@ -168,43 +168,43 @@
{{
scope
.
row
.
name
||
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"sex"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
prop=
"sex"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
性别
</div>
<div>
Sex
</div>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
sex
===
'0'
?
'男'
:
scope
.
row
.
sex
===
'1'
?
'女'
:
'-'
}}
{{
scope
.
row
.
sex
===
'0'
?
'男'
:
scope
.
row
.
sex
===
'1'
?
'女'
:
'-'
}}
</
template
>
</el-table-column>
<el-table-column
align=
"center"
prop=
"deptId"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
prop=
"deptId"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
部门
</div>
<div>
C/C
</div>
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
deptName
}}
{{
scope
.
row
.
deptName
}}
</
template
>
</el-table-column>
<!-- <el-table-column align="center" width="120" :show-overflow-tooltip="true">-->
<!-- <template slot="header">-->
<!-- <div>用户编号</div>-->
<!-- <div>User Number</div>-->
<!-- </template>-->
<!-- <template v-slot:default="scope">-->
<!-- {{ scope.row.businessId || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column align="center" width="120" :show-overflow-tooltip="true">-->
<!-- <template slot="header">-->
<!-- <div>用户编号</div>-->
<!-- <div>User Number</div>-->
<!-- </template>-->
<!-- <template v-slot:default="scope">-->
<!-- {{ scope.row.businessId || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column align="center" width="120" prop="phone" :show-overflow-tooltip="true">-->
<!-- <template slot="header">-->
<!-- <div>手机号</div>-->
<!-- <div>Phone Number</div>-->
<!-- </template>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.phone || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column align="center" width="120" prop="phone" :show-overflow-tooltip="true">-->
<!-- <template slot="header">-->
<!-- <div>手机号</div>-->
<!-- <div>Phone Number</div>-->
<!-- </template>-->
<!-- <template slot-scope="scope">-->
<!-- {{ scope.row.phone || '-' }}-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column
align=
"center"
prop=
"nltBz"
:show-overflow-tooltip=
"true"
>
<
template
slot=
"header"
>
<div>
班组
</div>
...
...
@@ -1068,22 +1068,38 @@ export default {
if
(
this
.
form
.
businessId
!==
undefined
)
{
console
.
log
(
'form'
,
this
.
form
)
updateUser
(
this
.
form
).
then
(
response
=>
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
})
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
if
(
response
.
code
===
200
)
{
this
.
$message
({
message
:
'修改成功'
,
type
:
'success'
})
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
}
else
if
(
response
.
code
===
4007
)
{
this
.
confirmLoading
=
false
this
.
$message
({
type
:
'error'
,
message
:
response
.
message
})
}
})
}
else
{
addUser
(
this
.
form
).
then
(
response
=>
{
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
})
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
if
(
response
.
code
===
200
)
{
this
.
$message
({
message
:
'新增成功'
,
type
:
'success'
})
this
.
open
=
false
this
.
confirmLoading
=
false
this
.
getList
()
}
else
if
(
response
.
code
===
4007
)
{
this
.
confirmLoading
=
false
this
.
$message
({
type
:
'error'
,
message
:
response
.
message
})
}
})
}
}
...
...
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