Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
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
office
haoban-4
Commits
cfe1690f
Commit
cfe1690f
authored
Aug 07, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改接口返回状态码
parent
b3cedfae
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
10 deletions
+35
-10
edit-admin.js
src/api/edit-admin.js
+3
-2
enterprise.js
src/api/enterprise.js
+2
-2
request.js
src/utils/request.js
+2
-2
audit-log.vue
src/views/business/audit-log.vue
+5
-1
new-auth-merchant.vue
src/views/business/new-auth-merchant.vue
+6
-1
edit-admin.vue
src/views/enterprise/edit-admin.vue
+6
-1
unreview.vue
src/views/reviewCenter/unreview.vue
+11
-1
No files found.
src/api/edit-admin.js
View file @
cfe1690f
...
@@ -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-0
6 12:57:4
1
* @LastEditTime: 2020-08-0
7 15:22:1
1
*/
*/
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
}
}
}
}
...
...
src/api/enterprise.js
View file @
cfe1690f
...
@@ -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-0
4 11:31:25
* @LastEditTime: 2020-08-0
7 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
},
},
...
...
src/utils/request.js
View file @
cfe1690f
...
@@ -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-0
6 09:55:55
* @LastEditTime: 2020-08-0
7 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
=>
{
...
...
src/views/business/audit-log.vue
View file @
cfe1690f
...
@@ -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 1
4:52:23
* @LastEditTime: 2020-08-07 1
5: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
();
}
}
...
...
src/views/business/new-auth-merchant.vue
View file @
cfe1690f
...
@@ -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 1
4:36:54
* @LastEditTime: 2020-08-07 1
5: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
)
{
...
...
src/views/enterprise/edit-admin.vue
View file @
cfe1690f
...
@@ -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 1
4:43:21
* @LastEditTime: 2020-08-07 1
5: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
)
{
...
...
src/views/reviewCenter/unreview.vue
View file @
cfe1690f
...
@@ -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 1
4:38:51
* @LastEditTime: 2020-08-07 1
5: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
)
{
...
...
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