|
@@ -57,6 +57,7 @@
|
|
</div>
|
|
</div>
|
|
<div slot="slot0">
|
|
<div slot="slot0">
|
|
<el-button v-if="tool.checkAuth($route.name,'agentTeamTable')" size="small" type="primary" @click="createAgentAccount" class="normal-margin">创建团队账号</el-button>
|
|
<el-button v-if="tool.checkAuth($route.name,'agentTeamTable')" size="small" type="primary" @click="createAgentAccount" class="normal-margin">创建团队账号</el-button>
|
|
|
|
+ <el-button v-if="tool.checkAuth($route.name,'agentTeamTable')" size="small" type="primary" @click="createAgentSubAccount" class="normal-margin">创建团队子账号</el-button>
|
|
<tableLayout :layout="tablecols" :data="mainData.hrs" :custom="true" height="calc(100vh - 425px)">
|
|
<tableLayout :layout="tablecols" :data="mainData.hrs" :custom="true" height="calc(100vh - 425px)">
|
|
<template v-slot:customcol="scope">
|
|
<template v-slot:customcol="scope">
|
|
<div v-if="scope.column.columnname === 'name'">
|
|
<div v-if="scope.column.columnname === 'name'">
|
|
@@ -321,6 +322,33 @@ export default {
|
|
message: '取消创建'
|
|
message: '取消创建'
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
+ },
|
|
|
|
+ createAgentSubAccount () {
|
|
|
|
+ this.$confirm('是否继续创建团队子账户?', '提示', {
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ }).then(async () => {
|
|
|
|
+ const res = await this.$api.requested({
|
|
|
|
+ "id": 20220920084301,
|
|
|
|
+ "content": {
|
|
|
|
+ "sys_enterpriseid":this.mainData.sys_enterpriseid,
|
|
|
|
+ "usertype":22
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ this.tool.showMessage(res,()=>{
|
|
|
|
+ this.queryMainData()
|
|
|
|
+ })
|
|
|
|
+ /*this.$message({
|
|
|
|
+ type: 'success',
|
|
|
|
+ message: '创建成功!'
|
|
|
|
+ });*/
|
|
|
|
+ }).catch(() => {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: 'info',
|
|
|
|
+ message: '取消创建'
|
|
|
|
+ });
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|