822

parent 5cdc6d96
...@@ -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
}) })
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment