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 27478a14
authored
Aug 26, 2022
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
第一轮bug修复
1 parent
c8033a15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
121 deletions
src/views/accountInterface/activateDia.vue
src/views/accountInterface/index.vue
src/views/accountInterface/transferDia.vue
src/views/accountInterface/viewConfig.vue
src/views/appConfig/index.vue
src/views/accountInterface/activateDia.vue
View file @
27478a1
...
...
@@ -48,7 +48,7 @@
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"closeDia"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"activeStaff"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"activeStaff"
:loading=
"butLoading"
>
确 定
</el-button>
</span>
</GLDialog>
</div>
...
...
@@ -81,6 +81,7 @@ export default {
data
()
{
return
{
url
:
url
,
butLoading
:
false
,
searchForm
:
{
staffName
:
''
,
openJoinStatus
:
''
...
...
@@ -128,25 +129,17 @@ export default {
tableActiveData
:
[],
innerTags
:
[],
// 账号信息
activeInfo
:
{},
// 账号许可列表页面数据
tablePage
:
{}
activeInfo
:
{}
}
},
mounted
()
{},
methods
:
{
init
(
row
,
pageInfo
)
{
init
(
row
)
{
this
.
activeInfo
=
row
this
.
tablePage
=
pageInfo
this
.
dialogActivateVisible
=
true
this
.
findNotActiveStaff
()
// this.$nextTick(() => {
// console.log(row)
// this.findNotActiveStaff(row)
// })
},
selectionTable
(
val
)
{
console
.
log
(
val
)
this
.
innerTags
=
val
},
// 清空搜索条件
...
...
@@ -159,19 +152,13 @@ export default {
},
findNotActiveStaff
()
{
const
{
corpId
,
merchantId
}
=
this
.
activeInfo
// let pageSize = this.$refs.activateTable.page.pageSize
// let pageNum = this.$refs.activateTable.page.pageNum
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
)),
corpId
,
merchantId
// pageSize,
// pageNum
}
this
.
loading
=
true
console
.
log
(
params
)
this
.
$apis
.
accountConfig
.
findNotActiveStaff
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'======'
)
if
(
res
.
code
==
0
)
{
this
.
tableActiveData
=
res
.
data
this
.
loading
=
false
...
...
@@ -186,13 +173,11 @@ export default {
})
},
handleNodeClick
(
data
)
{
console
.
log
(
data
)
this
.
searchForm
.
department
=
data
.
departmentName
this
.
currentTreeData
=
data
this
.
onHidePopover
()
},
remove
(
item
)
{
console
.
log
(
item
)
this
.
$refs
.
activateTable
.
$refs
.
salelistMutiTable
.
toggleRowSelection
(
item
)
},
rowClick
(
row
)
{
...
...
@@ -200,10 +185,9 @@ export default {
},
// 激活员工
activeStaff
()
{
console
.
log
(
this
.
innerTags
,
this
.
activeInfo
)
if
(
!
this
.
innerTags
.
length
)
{
this
.
$message
({
message
:
'
请选择激活员工
'
,
message
:
'
未选中员工,无法激活
'
,
type
:
'error'
,
customClass
:
'global-messageZindex'
})
...
...
@@ -213,17 +197,17 @@ export default {
this
.
innerTags
.
forEach
(
item
=>
{
userIdList
.
push
(
item
.
userId
)
})
console
.
log
(
userIdList
)
const
{
merchantId
,
corpId
}
=
this
.
activeInfo
var
params
=
{
corpId
,
merchantId
,
userIdList
}
console
.
log
(
params
,
'+++++++'
)
this
.
butLoading
=
true
this
.
$apis
.
accountConfig
.
activeAccount
(
params
).
then
(
res
=>
{
if
(
res
)
{
// <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
if
(
res
.
code
==
'0'
)
{
this
.
butLoading
=
false
this
.
dialogActivateVisible
=
false
var
txt
=
'<p>已激活 '
+
`
${
res
.
data
?
res
.
data
:
0
}
`
+
' 个</p>'
this
.
$confirm
(
txt
,
'提示'
,
{
confirmButtonText
:
'我知道了'
,
...
...
@@ -234,14 +218,13 @@ export default {
customClass
:
'gl-message-box confirm-btn'
,
callback
:
action
=>
{
if
(
res
.
data
&&
res
.
data
>
0
)
{
this
.
dialogActivateVisible
=
false
var
pras
=
this
.
tablePage
this
.
$apis
.
accountConfig
.
listCustomizedAgentWithPage
(
pras
).
then
(
res
=>
{})
this
.
$emit
(
'activeStaff'
)
}
}
})
}
else
{
this
.
$message
.
error
(
'激活失败'
)
this
.
butLoading
=
false
this
.
$message
.
error
(
res
.
message
)
}
})
},
...
...
src/views/accountInterface/index.vue
View file @
27478a1
...
...
@@ -34,7 +34,7 @@
<!--
<el-button
type=
"text"
@
click=
"handelActivate(scope.scope)"
:loading=
"loading"
>
一键激活许可
</el-button>
-->
</
template
>
</GLTable>
<ActivateDia
ref=
"activateDia"
:dialogActivateVisible=
"dialogActivateVisible"
></ActivateDia>
<ActivateDia
ref=
"activateDia"
:dialogActivateVisible=
"dialogActivateVisible"
@
activeStaff=
"handleSearch"
></ActivateDia>
</div>
</div>
</template>
...
...
@@ -171,7 +171,7 @@ export default {
{
type
:
'el-button'
,
name
:
row
=>
{
return
'
一键
激活许可'
return
'
批量
激活许可'
},
attrs
:
{
type
:
'text'
,
...
...
@@ -217,16 +217,8 @@ export default {
},
// 一键激活许可
handelActivate
(
row
)
{
console
.
log
(
this
.
dialogActivateVisible
)
// 获取当前页面
var
pageInfo
=
{
pageSize
:
this
.
$refs
.
accountTable
.
page
.
pageSize
,
pageNum
:
this
.
$refs
.
accountTable
.
page
.
pageNum
}
this
.
dialogActivateVisible
=
true
console
.
log
(
this
.
dialogActivateVisible
)
this
.
$refs
.
activateDia
.
init
(
row
,
pageInfo
)
this
.
$refs
.
activateDia
.
init
(
row
)
},
// 同步购买订单
handleSync
()
{
...
...
src/views/accountInterface/transferDia.vue
View file @
27478a1
...
...
@@ -120,33 +120,26 @@ export default {
methods
:
{
init
(
scope
,
routerInfo
)
{
console
.
log
(
scope
,
routerInfo
)
this
.
transferInfo
=
scope
this
.
routerInfo
=
routerInfo
this
.
dialogTransferVisible
=
true
this
.
findNotActiveStaff
(
routerInfo
)
this
.
findNotActiveStaff
()
},
findNotActiveStaff
()
{
const
{
corpId
,
merchantId
}
=
this
.
routerInfo
// let pageSize = this.$refs.transferTable.page.pageSize
// let pageNum = this.$refs.transferTable.page.pageNum
var
params
=
{
...
JSON
.
parse
(
JSON
.
stringify
(
this
.
searchForm
)),
corpId
,
merchantId
// pageSize,
// pageNum
}
this
.
loading
=
true
this
.
$apis
.
accountConfig
.
findNotActiveStaff
(
params
).
then
(
res
=>
{
console
.
log
(
res
,
'======'
)
if
(
res
.
code
==
0
)
{
this
.
tableActiveData
=
res
.
data
let
num
=
0
this
.
tableActiveData
.
forEach
(
item
=>
{
item
.
num
=
++
num
})
console
.
log
(
this
.
tableActiveData
,
'+++++'
)
this
.
loading
=
false
}
else
{
this
.
loading
=
false
...
...
@@ -168,9 +161,7 @@ export default {
},
// 选择转移员工
getTransferInfo
()
{
console
.
log
(
this
.
associationRadio
)
let
inx
=
this
.
tableActiveData
.
filter
(
value
=>
value
.
id
==
this
.
associationRadio
)
console
.
log
(
inx
)
this
.
selectStaff
=
inx
[
0
]
},
// 转移员工
...
...
src/views/accountInterface/viewConfig.vue
View file @
27478a1
...
...
@@ -25,20 +25,6 @@
</GLTable>
</div>
</div>
<!-- <GLDialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible">
<el-form :model="transferForm">
<el-form-item label="转移员工:">
<el-select @change="selectTransferStaff" v-model="transferForm.staff" filterable :size="size" placeholder="请选择或输入关键字搜索">
<el-option v-for="item in notActiveStaffList" :key="item.userId" :label="item.staffName" :value="item.userId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="接口有效期至:">{{ expireTime }}</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleClose">取消</el-button>
<el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span>
</GLDialog> -->
<TransferDia
ref=
"TransferDia"
:dialogTransferVisible=
"dialogTransferVisible"
@
transferStaff=
"getListApi"
></TransferDia>
</div>
</template>
...
...
@@ -181,67 +167,11 @@ export default {
handelTransfer
(
scope
)
{
this
.
dialogTransferVisible
=
true
this
.
$refs
.
TransferDia
.
init
(
scope
,
this
.
routerInfo
)
// const { merchantId, corpId } = this.routerInfo
// let params = {
// merchantId,
// corpId
// }
// this.handoverUserid = scope.userid
// this.expireTime = scope.expireTime
// this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
// if (res) {
// this.dialogTransferVisible = true
// this.$refs.TransferDia.init(scope, res.data)
// // this.notActiveStaffList = res.data
// // console.log(res.data, '+++++')
// } else {
// // var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
// this.$confirm('无可用的用户转移', '提示', {
// confirmButtonText: '我知道了',
// dangerouslyUseHTMLString: true,
// showClose: true,
// showCancelButton: false,
// confirmButtonClass: 'confirmbtn',
// type: 'warning',
// customClass: 'gl-message-box confirm-btn'
// })
// }
// })
},
// 选择转移员工
selectTransferStaff
(
id
)
{
this
.
takeoverUserid
=
id
},
// 账号许可转移
// transferCount() {
// const { merchantId, corpId } = this.routerInfo
// let params = {
// merchantId,
// corpId
// }
// params.handoverUserid = this.handoverUserid
// params.takeoverUserid = this.takeoverUserid
// this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
// if (res.code == 0) {
// this.$message({
// message: '账号转移成功',
// type: 'success',
// customClass: 'global-messageZindex'
// })
// this.getListApi()
// this.dialogTransferVisible = false
// this.transferForm.staff = ''
// } else {
// this.$message({
// message: '账号转移失败,请联系管理员',
// type: 'error',
// customClass: 'global-messageZindex'
// })
// this.dialogTransferVisible = false
// this.transferForm.staff = ''
// }
// })
// },
// 关闭弹窗
handleClose
()
{
this
.
dialogTransferVisible
=
false
...
...
src/views/appConfig/index.vue
View file @
27478a1
...
...
@@ -13,7 +13,7 @@
<span
class=
"container-tip"
>
提供企微代开发应用的配置管理
</span>
</div>
<div
class=
"table-box"
>
<GLCombiForm
:formObj=
"searchForm.condition"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLCombiForm
:
rowNumber=
"1"
:
formObj=
"searchForm.condition"
:formData=
"searchFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
></GLCombiForm>
<GLTable
ref=
"accountTable"
:noDataImg=
"url"
:getListApi=
"getListApi"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<!--
<el-button
type=
"text"
@
click=
"viewConfig(scope.scope)"
>
查看配置
</el-button>
-->
...
...
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