|
|
@@ -256,6 +256,26 @@
|
|
|
@click="handleBindUser(scope.row)"
|
|
|
>绑定用户</el-button>
|
|
|
|
|
|
+ <el-button
|
|
|
+ v-if="!!scope.row.cidServerId"
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-s-platform"
|
|
|
+ plain
|
|
|
+ :loading="bindCidServerLoading"
|
|
|
+ @click="handleUnbindCidServer(scope.row)"
|
|
|
+ >取消绑定cid服务</el-button>
|
|
|
+ <el-button
|
|
|
+ v-else
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-s-platform"
|
|
|
+ plain
|
|
|
+ :loading="bindCidServerLoading"
|
|
|
+ @click="handleBindCidServer(scope.row)"
|
|
|
+ >绑定cid服务</el-button>
|
|
|
+
|
|
|
+
|
|
|
<el-button v-if="scope.row.userType !== '00'" size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['company:user:edit']">修改</el-button>
|
|
|
<el-button v-if="scope.row.userType !== '00'" size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" v-hasPermi="['company:user:remove']">删除</el-button>
|
|
|
<el-button size="mini" type="text" icon="el-icon-key" @click="handleResetPwd(scope.row)" v-hasPermi="['company:user:resetPwd']">重置密码</el-button>
|
|
|
@@ -719,11 +739,13 @@ import { getConfigByKey } from "@/api/company/companyConfig";
|
|
|
import axios from "axios";
|
|
|
import {addCodeUrl} from "../../../api/company/companyUser";
|
|
|
import selectDoctor from "@/views/qw/user/selectDoctor.vue";
|
|
|
+import {bindCidServer,unbindCidServer} from "@/api/company/companyAiWorkflowServer"
|
|
|
export default {
|
|
|
name: "User",
|
|
|
components: {selectDoctor, Treeselect ,selectUser},
|
|
|
data() {
|
|
|
return {
|
|
|
+ bindCidServerLoading:false,
|
|
|
doctor: {
|
|
|
open: false,
|
|
|
title: '绑定医生'
|
|
|
@@ -1708,6 +1730,39 @@ export default {
|
|
|
// 查询已绑定的用户
|
|
|
this.loadBoundUsers(row.userId);
|
|
|
},
|
|
|
+ //用户绑定cidserver服务器
|
|
|
+ handleBindCidServer(row){
|
|
|
+ let param = {
|
|
|
+ userId : row.userId,
|
|
|
+ companyId : row.companyId
|
|
|
+ }
|
|
|
+ this.bindCidServerLoading = true;
|
|
|
+ bindCidServer(param).then(res=>{
|
|
|
+ console.log(res);
|
|
|
+ this.bindCidServerLoading = false;
|
|
|
+ this.$message.success('绑定成功');
|
|
|
+ this.getList();
|
|
|
+ }).catch(res=>{
|
|
|
+ this.bindCidServerLoading = false;
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //用户解绑cidserver服务器
|
|
|
+ handleUnbindCidServer(row){
|
|
|
+ let param = {
|
|
|
+ userId : row.userId,
|
|
|
+ companyId : row.companyId
|
|
|
+ }
|
|
|
+ this.bindCidServerLoading = true;
|
|
|
+ unbindCidServer(param).then(res=>{
|
|
|
+ this.bindCidServerLoading = false;
|
|
|
+ this.$message.success('解绑成功');
|
|
|
+ this.getList();
|
|
|
+ }).catch(res=>{
|
|
|
+ this.bindCidServerLoading = false;
|
|
|
+ console.log(res)
|
|
|
+ });
|
|
|
+ },
|
|
|
/** 查询已绑定的用户 */
|
|
|
loadBoundUsers(companyUserId) {
|
|
|
getBoundUsers(companyUserId).then(response => {
|