Commit c694769a by 匡雅琴

修改转移提示

1 parent a75b5f50
......@@ -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) {
......
......@@ -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({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!