Commit cfe1690f by 无尘

fix: 修改接口返回状态码

parent b3cedfae
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-24 12:19:48 * @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-06 12:57:41 * @LastEditTime: 2020-08-07 15:22:11
*/ */
import getFetch from './getFetch.js'; import getFetch from './getFetch.js';
...@@ -15,7 +15,8 @@ let api = { ...@@ -15,7 +15,8 @@ let api = {
addAdmin: { addAdmin: {
url: '/role-range-save', // 提交审核 url: '/role-range-save', // 提交审核
method: 'post', method: 'post',
useFormData: true useFormData: true,
useIntercept: false
} }
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-24 12:19:48 * @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-04 11:31:25 * @LastEditTime: 2020-08-07 15:24:23
*/ */
import getFetch from './getFetch.js'; import getFetch from './getFetch.js';
...@@ -28,7 +28,7 @@ let api = { ...@@ -28,7 +28,7 @@ let api = {
useFormData: true useFormData: true
}, },
refreshSelfApp: { refreshSelfApp: {
url: '/setting/reflush-secret', // 删除自建应用 url: '/setting/reflush-secret', // 刷新自建应用
method: 'post', method: 'post',
useFormData: true useFormData: true
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-06 09:55:55 * @LastEditTime: 2020-08-07 15:14:17
*/ */
import axios from 'axios'; import axios from 'axios';
import qs from 'qs'; import qs from 'qs';
...@@ -59,7 +59,7 @@ const request = (opt, params) => { ...@@ -59,7 +59,7 @@ const request = (opt, params) => {
message: resp.message || '未知错误', message: resp.message || '未知错误',
type: 'warning' type: 'warning'
}); });
// return reject(resp); 还要处理错误逻辑 return reject(resp); // 还要处理错误逻辑
} }
resolve(resp); resolve(resp);
}).catch(error => { }).catch(error => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-07 14:52:23 * @LastEditTime: 2020-08-07 15:17:40
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -195,6 +195,10 @@ export default { ...@@ -195,6 +195,10 @@ export default {
if (res.code == '0000') { if (res.code == '0000') {
showMsg.showmsg('取消审核成功', 'success'); showMsg.showmsg('取消审核成功', 'success');
}else if( res.code == '100003' || res.code == '100004'){ }else if( res.code == '100003' || res.code == '100004'){
that.$message({
message: res.message || '未知错误',
type: 'warning'
});
that.currentPage = 1; that.currentPage = 1;
that.getTableList(); that.getTableList();
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-07 14:36:54 * @LastEditTime: 2020-08-07 15:17:15
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -307,6 +307,11 @@ export default { ...@@ -307,6 +307,11 @@ export default {
.then(res => { .then(res => {
if (res.code == '0000') { if (res.code == '0000') {
that.activeStep = 2; that.activeStep = 2;
}else {
that.$message({
message: res.message || '未知错误',
type: 'warning'
});
} }
}) })
.catch(function(error) { .catch(function(error) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-03-20 14:36:37 * @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-07 14:43:21 * @LastEditTime: 2020-08-07 15:21:39
--> -->
<template> <template>
<div class="my-customer-wrap common-set-wrap"> <div class="my-customer-wrap common-set-wrap">
...@@ -187,6 +187,11 @@ export default { ...@@ -187,6 +187,11 @@ export default {
showMsg.showmsg('保存成功', 'success'); showMsg.showmsg('保存成功', 'success');
that.$router.push('/admin-list'); that.$router.push('/admin-list');
that.loadBtn = false; that.loadBtn = false;
}else {
that.$message({
message: res.message || '未知错误',
type: 'warning'
});
} }
}) })
.catch(function(error) { .catch(function(error) {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2018-10-10 14:44:45 * @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-07 14:38:51 * @LastEditTime: 2020-08-07 15:19:42
--> -->
<template> <template>
<div class="unreview-wrap common-set-wrap"> <div class="unreview-wrap common-set-wrap">
...@@ -338,6 +338,11 @@ export default { ...@@ -338,6 +338,11 @@ export default {
that.approveVisible = false; that.approveVisible = false;
that.getTableList(); that.getTableList();
that.$forceUpdate(); that.$forceUpdate();
}else {
that.$message({
message: res.message || '未知错误',
type: 'warning'
});
} }
}) })
.catch(function(error) { .catch(function(error) {
...@@ -391,6 +396,11 @@ export default { ...@@ -391,6 +396,11 @@ export default {
that.timeFlag = null; that.timeFlag = null;
}); });
}) })
}else {
that.$message({
message: res.message || '未知错误',
type: 'warning'
});
} }
}) })
.catch(function(error) { .catch(function(error) {
......
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