|  | @@ -329,6 +329,34 @@
 | 
	
		
			
				|  |  |            >解绑AI客服</el-button>
 | 
	
		
			
				|  |  |          </template>
 | 
	
		
			
				|  |  |        </el-table-column>
 | 
	
		
			
				|  |  | +      <el-table-column label="医生" align="center" class-name="small-padding fixed-width" width="100px" fixed="right">
 | 
	
		
			
				|  |  | +        <template slot-scope="scope">
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +            size="mini"
 | 
	
		
			
				|  |  | +            type="text"
 | 
	
		
			
				|  |  | +            icon="el-icon-connection"
 | 
	
		
			
				|  |  | +            plain
 | 
	
		
			
				|  |  | +            v-if="scope.row.doctorId!=null"
 | 
	
		
			
				|  |  | +            @click="handleUpdateDoctor(scope.row)"
 | 
	
		
			
				|  |  | +          >换绑医生</el-button>
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +            size="mini"
 | 
	
		
			
				|  |  | +            type="text"
 | 
	
		
			
				|  |  | +            plain
 | 
	
		
			
				|  |  | +            icon="el-icon-link"
 | 
	
		
			
				|  |  | +            v-else
 | 
	
		
			
				|  |  | +            @click="handleUpdateDoctor(scope.row)"
 | 
	
		
			
				|  |  | +          >绑定医生</el-button>
 | 
	
		
			
				|  |  | +          <el-button
 | 
	
		
			
				|  |  | +            size="mini"
 | 
	
		
			
				|  |  | +            type="text"
 | 
	
		
			
				|  |  | +            icon="el-icon-unlock"
 | 
	
		
			
				|  |  | +            plain
 | 
	
		
			
				|  |  | +            v-if="scope.row.doctorId!=null"
 | 
	
		
			
				|  |  | +            @click="handleUnBindUserId(scope.row)"
 | 
	
		
			
				|  |  | +          >解绑医生</el-button>
 | 
	
		
			
				|  |  | +        </template>
 | 
	
		
			
				|  |  | +      </el-table-column>
 | 
	
		
			
				|  |  |      </el-table>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <pagination
 | 
	
	
		
			
				|  | @@ -531,6 +559,10 @@
 | 
	
		
			
				|  |  |          <el-button type="primary" @click="submitUpdateSendTypeForm">确 定</el-button>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |      </el-dialog>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    <el-dialog :title="doctor.title" :visible.sync="doctor.open" width="800px" append-to-body>
 | 
	
		
			
				|  |  | +      <selectDoctor ref="selectDoctor" @bindCompanyUserDoctorId="bindCompanyUserDoctorId"></selectDoctor>
 | 
	
		
			
				|  |  | +    </el-dialog>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -556,13 +588,26 @@ import {
 | 
	
		
			
				|  |  |    qwBindCloudHost, qwUnbindCloudHost, handleAuthAppKey, handleInputAuthAppKey, selectCloudAP, staffListUser
 | 
	
		
			
				|  |  |  } from '../../../api/qw/user'
 | 
	
		
			
				|  |  |  import fastGptRole from "@/views/fastGpt/fastGptRole/fastGptRole";
 | 
	
		
			
				|  |  | +import  selectDoctor  from "@/views/qw/user/selectDoctor.vue";
 | 
	
		
			
				|  |  | +import {
 | 
	
		
			
				|  |  | +  bindDoctorId,
 | 
	
		
			
				|  |  | +  unBindDoctorId
 | 
	
		
			
				|  |  | +} from '@/api/company/companyUser'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    name: "cuDeptIdIndex",
 | 
	
		
			
				|  |  | -  components: { fastGptRole},
 | 
	
		
			
				|  |  | +  components: { fastGptRole, selectDoctor},
 | 
	
		
			
				|  |  |    data() {
 | 
	
		
			
				|  |  |      return {
 | 
	
		
			
				|  |  |        isAutoOptions:[],
 | 
	
		
			
				|  |  | +      doctor: {
 | 
	
		
			
				|  |  | +        open: false,
 | 
	
		
			
				|  |  | +        title: '绑定医生'
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  | +      doctorForm: {
 | 
	
		
			
				|  |  | +        userId: null,
 | 
	
		
			
				|  |  | +        doctorId: null
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |        updateIp:{
 | 
	
		
			
				|  |  |          open:false,
 | 
	
		
			
				|  |  |          title: "修改云主机IP"
 | 
	
	
		
			
				|  | @@ -748,6 +793,46 @@ export default {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    handleUpdateDoctor(row){
 | 
	
		
			
				|  |  | +        this.doctor.title="绑定医生"
 | 
	
		
			
				|  |  | +        this.doctor.open=true;
 | 
	
		
			
				|  |  | +        this.doctorForm.userId=row.companyUserId;
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    bindCompanyUserDoctorId(row){
 | 
	
		
			
				|  |  | +      console.log(row)
 | 
	
		
			
				|  |  | +      this.doctorForm.doctorId=row;
 | 
	
		
			
				|  |  | +      bindDoctorId(this.doctorForm).then(res=>{
 | 
	
		
			
				|  |  | +         if (res.code==200){
 | 
	
		
			
				|  |  | +           this.$message.success('绑定成功')
 | 
	
		
			
				|  |  | +         }else {
 | 
	
		
			
				|  |  | +           this.$message.error('绑定失败:',res.msg)
 | 
	
		
			
				|  |  | +         }
 | 
	
		
			
				|  |  | +         this.getList()
 | 
	
		
			
				|  |  | +         this.doctor.open=false;
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    handleUnBindUserId(val){
 | 
	
		
			
				|  |  | +      this.$confirm(
 | 
	
		
			
				|  |  | +        '确认解绑医生:<span style="color: green;">' + val.qwUserName + '' +
 | 
	
		
			
				|  |  | +        '</span> 的医生?',
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +          confirmButtonText: "确定",
 | 
	
		
			
				|  |  | +          cancelButtonText: "取消",
 | 
	
		
			
				|  |  | +          type: "warning",
 | 
	
		
			
				|  |  | +          dangerouslyUseHTMLString: true // 允许使用 HTML 字符串
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      ).then(() => {
 | 
	
		
			
				|  |  | +        return unBindDoctorId(val.companyUserId);
 | 
	
		
			
				|  |  | +      }).then(response => {
 | 
	
		
			
				|  |  | +        this.getList();
 | 
	
		
			
				|  |  | +        this.msgSuccess("解绑成功");
 | 
	
		
			
				|  |  | +      }).finally(res=>{
 | 
	
		
			
				|  |  | +        this.getList();
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      handleAppellation(val) {
 | 
	
		
			
				|  |  |        this.callOpen.open = true;
 | 
	
		
			
				|  |  |        this.callOpenFrom.welcomeText = val.welcomeText;
 |