Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张浩
/
br-client
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
17be2ca6
...
17be2ca60bfb44c84cf46a80b4c6dd54517bb39b
authored
2021-08-30 16:12:06 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
a129059a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
src/page/tool.vue
src/page/tool.vue
View file @
17be2ca
...
...
@@ -541,6 +541,7 @@
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"dongjieSubmit"
>
冻结账号
</el-button>
<el-button
round
@
click=
"jiedongSubmit"
>
解冻账号
</el-button>
</el-form-item>
</div>
</el-card>
...
...
@@ -1736,6 +1737,46 @@
}).
catch
(
error
=>
{
console
.
log
(
error
);
})
},
jiedongSubmit
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/jiedongquanxian?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
dongjie
.
phone
,
permission
:
this
.
dongjie
.
type
.
toString
()
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
'notnull'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'手机号或解冻类型不能为空'
,
type
:
'error'
});
}
else
if
(
res
.
data
==
'isnotjobnumber'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'工号冻结不支持解冻'
,
type
:
'error'
});
}
else
if
(
res
.
data
==
'success'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'解冻账号成功'
,
type
:
'success'
});
}
else
{
this
.
$message
({
showClose
:
true
,
message
:
'解冻账号失败'
,
type
:
'error'
});
}
}).
catch
(
error
=>
{
console
.
log
(
error
);
})
}
}
}
...
...
Please
register
or
sign in
to post a comment