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
da4e7151
...
da4e71519b79906cfd22b5628243798a58a301a6
authored
2020-09-29 16:52:07 +0800
by
zhanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
643607c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
1 deletions
src/page/tool.vue
src/page/tool.vue
View file @
da4e715
...
...
@@ -188,6 +188,24 @@
</el-row>
<el-row
style=
"margin-bottom: 15px;"
>
<el-col
:span=
"8"
>
<el-form
ref=
"changeOrg"
:model=
"changeOrg"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
开通切换任意机构权限
</span>
</div>
<div
class=
"text item"
>
<el-form-item>
<el-input
placeholder=
"请输入手机号"
v-model=
"changeOrg.phone"
clearable
></el-input>
</el-form-item>
<div
style=
"margin: 15px 0;"
></div>
<el-form-item>
<el-button
round
@
click=
"changeOrgSubmit"
>
开通权限
</el-button>
</el-form-item>
</div>
</el-card>
</el-form>
</el-col>
<el-col
:span=
"8"
>
<el-form
ref=
"createAPI"
:model=
"createAPI"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -258,6 +276,8 @@
</el-card>
</el-form>
</el-col>
</el-row>
<el-row
style=
"margin-bottom: 15px;"
>
<el-col
:span=
"8"
>
<el-form
ref=
"deleteClues"
:model=
"deleteClues"
label-width=
"0px"
>
<el-card
class=
"darkred"
shadow=
"always"
>
...
...
@@ -434,7 +454,10 @@
dialogCreateApi
:
false
,
myApi
:
''
,
dialogQueryUserInfo
:
false
,
myQueryUserInfo
:
''
myQueryUserInfo
:
''
,
changeOrg
:
{
phone
:
''
}
// activityConfigRules: {
// id: [
// { required: true, message: '请输入活动ID', trigger: 'blur' }
...
...
@@ -742,6 +765,50 @@
});
})
loading
.
close
();
},
changeOrgSubmit
()
{
let
config
=
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
}
this
.
$http
.
get
(
'/tool/changeOrg?'
+
this
.
$qs
.
stringify
({
phone
:
this
.
changeOrg
.
phone
}),
config
).
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
data
==
'jobnull'
)
{
this
.
$message
({
showClose
:
true
,
message
:
'代理人手机号不存在'
,
type
:
'error'
});
}
else
if
(
res
.
data
==
'jobexist'
)
{
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
);
this
.
$message
({
showClose
:
true
,
message
:
'服务器处理失败,请核对参数!'
,
type
:
'error'
});
})
}
}
}
...
...
Please
register
or
sign in
to post a comment