Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
2cc08fc6
Commit
2cc08fc6
authored
Aug 22, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
822
parent
5cdc6d96
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
index.vue
src/components/user/index.vue
+1
-2
index.js
src/service/index.js
+2
-0
No files found.
src/components/user/index.vue
View file @
2cc08fc6
...
@@ -55,7 +55,6 @@
...
@@ -55,7 +55,6 @@
<user-detail
:parentDetail=
"dialogDetail"
></user-detail>
<user-detail
:parentDetail=
"dialogDetail"
></user-detail>
</div>
</div>
</el-dialog>
</el-dialog>
<!--用户移交-->
<!--用户移交-->
<el-dialog
append-to-body
:visible
.
sync=
"addShow"
top=
"5vh"
:title=
"`把 ${userObj.transfer_user_name} 转移为`"
>
<el-dialog
append-to-body
:visible
.
sync=
"addShow"
top=
"5vh"
:title=
"`把 ${userObj.transfer_user_name} 转移为`"
>
<el-form
label-width=
"90px"
inline
>
<el-form
label-width=
"90px"
inline
>
...
@@ -161,7 +160,6 @@
...
@@ -161,7 +160,6 @@
this
.
getUser
()
this
.
getUser
()
},
},
methods
:
{
methods
:
{
userTransfer
(
row
)
{
userTransfer
(
row
)
{
this
.
addShow
=
true
;
this
.
addShow
=
true
;
this
.
userObj
.
total
=
0
;
this
.
userObj
.
total
=
0
;
...
@@ -295,6 +293,7 @@
...
@@ -295,6 +293,7 @@
json
.
level
=
this
.
searchFrom
.
level
json
.
level
=
this
.
searchFrom
.
level
}
}
getUserListApi
(
json
).
then
(
res
=>
{
getUserListApi
(
json
).
then
(
res
=>
{
// debugger
this
.
userList
=
res
.
list
;
this
.
userList
=
res
.
list
;
this
.
total
=
res
.
total
this
.
total
=
res
.
total
})
})
...
...
src/service/index.js
View file @
2cc08fc6
...
@@ -222,6 +222,7 @@ export function fetch(url,params={}){
...
@@ -222,6 +222,7 @@ export function fetch(url,params={}){
params
:
params
params
:
params
})
})
.
then
(
response
=>
{
.
then
(
response
=>
{
// debugger
if
(
response
.
data
.
code
===
200
){
if
(
response
.
data
.
code
===
200
){
resolve
(
response
.
data
.
data
);
resolve
(
response
.
data
.
data
);
}
else
if
(
response
.
data
.
code
===
501
||
response
.
data
.
code
===
504
){
}
else
if
(
response
.
data
.
code
===
501
||
response
.
data
.
code
===
504
){
...
@@ -237,6 +238,7 @@ export function fetch(url,params={}){
...
@@ -237,6 +238,7 @@ export function fetch(url,params={}){
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
// debugger
reject
(
err
);
reject
(
err
);
let
message
=
'请求失败!请检查网络'
;
let
message
=
'请求失败!请检查网络'
;
if
(
err
.
response
)
message
=
err
.
response
.
data
.
message
;
if
(
err
.
response
)
message
=
err
.
response
.
data
.
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