|
|
@@ -274,11 +274,13 @@
|
|
|
: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>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-edit" @click="checkBindSipCallUser(scope.row)" v-if="scope.row.aiSipCallUserId==null">绑定sip角色</el-button>
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-search" @click="checkChangeSipCallUser(scope.row)" v-if="scope.row.aiSipCallUserId">修改sip角色</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -704,6 +706,8 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <ai-sip-call-user ref="aiSipCallUser" v-show="false" @refreshParentData="getList" />
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -739,10 +743,11 @@ 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"
|
|
|
+import {bindCidServer,unbindCidServer} from "@/api/company/companyAiWorkflowServer";
|
|
|
+import AiSipCallUser from "../../aiSipCall/aiSipCallUser.vue";
|
|
|
export default {
|
|
|
name: "User",
|
|
|
- components: {selectDoctor, Treeselect ,selectUser},
|
|
|
+ components: {selectDoctor, Treeselect ,selectUser,AiSipCallUser},
|
|
|
data() {
|
|
|
return {
|
|
|
bindCidServerLoading:false,
|
|
|
@@ -1759,7 +1764,7 @@ export default {
|
|
|
this.$message.success('解绑成功');
|
|
|
this.getList();
|
|
|
}).catch(res=>{
|
|
|
- this.bindCidServerLoading = false;
|
|
|
+ this.bindCidServerLoading = false;
|
|
|
console.log(res)
|
|
|
});
|
|
|
},
|
|
|
@@ -1852,6 +1857,12 @@ export default {
|
|
|
this.boundUsersList = [];
|
|
|
this.bindUserLoading = false;
|
|
|
},
|
|
|
+ checkBindSipCallUser(row){
|
|
|
+ this.$refs.aiSipCallUser.handleAddCompanyUserOnSip(row.userName,row.nickName,row.userId);
|
|
|
+ },
|
|
|
+ checkChangeSipCallUser(row){
|
|
|
+ this.$refs.aiSipCallUser.handleUpdateById(row.aiSipCallUserId);
|
|
|
+ }
|
|
|
},
|
|
|
}
|
|
|
</script>
|