Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c694769a
authored
Jul 19, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改转移提示
1 parent
a75b5f50
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
src/views/accountInterface/index.vue
src/views/accountInterface/viewConfig.vue
src/views/accountInterface/index.vue
View file @
c694769
...
...
@@ -185,7 +185,6 @@ export default {
methods
:
{
// 查看配置
viewConfig
(
row
)
{
console
.
log
(
row
)
const
{
merchantId
,
corpId
,
merchantName
}
=
row
this
.
$router
.
push
({
path
:
'/accountInterface/viewConfig'
,
...
...
@@ -215,14 +214,12 @@ export default {
},
// 一键激活许可
handelActivate
(
scope
)
{
console
.
log
(
scope
)
this
.
loading
=
true
const
{
corpId
,
merchantId
}
=
scope
var
params
=
{
corpId
,
merchantId
}
console
.
log
(
params
)
this
.
$apis
.
accountConfig
.
activeAccount
(
params
).
then
(
res
=>
{
this
.
loading
=
false
if
(
res
.
code
==
-
1
)
{
...
...
src/views/accountInterface/viewConfig.vue
View file @
c694769
...
...
@@ -19,7 +19,8 @@
<span
v-if=
"scope.scope.status == 4"
>
待转移
</span>
<span
v-if=
"scope.scope.status == 5"
>
已合并
</span>
</div>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
v-if=
"scope.scope.staffName"
>
<!-- v-if="scope.scope.staffName" -->
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope.scope"
></GLTableButton>
-->
<el-button
type=
"text"
@
click=
"handelTransfer(scope.scope)"
>
转移
</el-button>
</
template
>
...
...
@@ -177,7 +178,6 @@ export default {
},
methods
:
{
getListApi
()
{
console
.
log
(
this
.
searchForm
)
const
{
status
,
staffName
}
=
this
.
searchForm
const
{
merchantId
,
corpId
}
=
this
.
routerInfo
let
params
=
{
...
...
@@ -189,25 +189,31 @@ export default {
params
.
pageSize
=
this
.
$refs
.
accountCodeTable
.
page
.
pageSize
params
.
pageNum
=
this
.
$refs
.
accountCodeTable
.
page
.
pageNum
this
.
$apis
.
accountConfig
.
listAccountCodeWithPage
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
accountTableData
=
res
.
list
this
.
tableTotal
=
res
.
total
})
},
// 账号许可转移弹窗
handelTransfer
(
scope
)
{
console
.
log
(
scope
)
const
{
merchantId
,
corpId
}
=
this
.
routerInfo
let
params
=
{
merchantId
,
corpId
}
this
.
handoverUserid
=
scope
.
userid
this
.
dialogTransferVisible
=
true
this
.
expireTime
=
scope
.
expireTime
this
.
$apis
.
accountConfig
.
findNotActiveStaff
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
this
.
notActiveStaffList
=
res
if
(
res
.
data
)
{
this
.
dialogTransferVisible
=
true
this
.
notActiveStaffList
=
res
}
else
{
this
.
$confirm
(
'无可用的用户转移'
,
'提示'
,
{
confirmButtonText
:
'我知道了'
,
dangerouslyUseHTMLString
:
true
,
showClose
:
true
,
showCancelButton
:
false
})
}
})
},
// 选择转移员工
...
...
@@ -223,7 +229,6 @@ export default {
}
params
.
handoverUserid
=
this
.
handoverUserid
params
.
takeoverUserid
=
this
.
takeoverUserid
console
.
log
(
params
)
this
.
$apis
.
accountConfig
.
transferLicenseAccount
(
params
).
then
(
res
=>
{
if
(
res
)
{
this
.
$message
({
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment