|  | @ -15,7 +15,6 @@ | 
		
	
		
			
				|  |  |           </el-button> |  |  |           </el-button> | 
		
	
		
			
				|  |  |         </el-form-item> |  |  |         </el-form-item> | 
		
	
		
			
				|  |  |       </el-form> |  |  |       </el-form> | 
		
	
		
			
				|  |  | 
 |  |  |  | 
		
	
		
			
				|  |  |       <el-table :data="doctorList"> |  |  |       <el-table :data="doctorList"> | 
		
	
		
			
				|  |  |         <el-table-column prop="userName" label="用户名" header-align="center" align="center" /> |  |  |         <el-table-column prop="userName" label="用户名" header-align="center" align="center" /> | 
		
	
		
			
				|  |  |         <el-table-column prop="realName" label="真实姓名" header-align="center" align="center" /> |  |  |         <el-table-column prop="realName" label="真实姓名" header-align="center" align="center" /> | 
		
	
	
		
			
				|  | @ -33,23 +32,23 @@ | 
		
	
		
			
				|  |  |             </div> |  |  |             </div> | 
		
	
		
			
				|  |  |           </template> |  |  |           </template> | 
		
	
		
			
				|  |  |         </el-table-column> |  |  |         </el-table-column> | 
		
	
		
			
				|  |  |         <el-table-column prop="status" label="状态" header-align="center" align="center"> |  |  |  | 
		
	
		
			
				|  |  |           <template slot-scope="scope"> |  |  |  | 
		
	
		
			
				|  |  |             <span |  |  |  | 
		
	
		
			
				|  |  |               :class="scope.row.status=='1' ? 'state-circle state-circle-green' :'state-circle state-circle-red'" |  |  |  | 
		
	
		
			
				|  |  |             /> |  |  |  | 
		
	
		
			
				|  |  |             <span>{{ scope.row.status == '1' ? '正常':'停用' }}</span> |  |  |  | 
		
	
		
			
				|  |  |           </template> |  |  |  | 
		
	
		
			
				|  |  |         </el-table-column> |  |  |  | 
		
	
		
			
				|  |  |  |  |  | <!--        <el-table-column prop="status" label="状态" header-align="center" align="center">--> | 
		
	
		
			
				|  |  |  |  |  | <!--          <template slot-scope="scope">--> | 
		
	
		
			
				|  |  |  |  |  | <!--            <span--> | 
		
	
		
			
				|  |  |  |  |  | <!--              :class="scope.row.status=='1' ? 'state-circle state-circle-green' :'state-circle state-circle-red'"--> | 
		
	
		
			
				|  |  |  |  |  | <!--            />--> | 
		
	
		
			
				|  |  |  |  |  | <!--            <span>{{ scope.row.status == '1' ? '正常':'停用' }}</span>--> | 
		
	
		
			
				|  |  |  |  |  | <!--          </template>--> | 
		
	
		
			
				|  |  |  |  |  | <!--        </el-table-column>--> | 
		
	
		
			
				|  |  |         <el-table-column prop="operation" label="操作" header-align="center" align="center"> |  |  |         <el-table-column prop="operation" label="操作" header-align="center" align="center"> | 
		
	
		
			
				|  |  |           <template slot-scope="scope"> |  |  |           <template slot-scope="scope"> | 
		
	
		
			
				|  |  |             <span v-if="opPermission(scope.row)"> |  |  |             <span v-if="opPermission(scope.row)"> | 
		
	
		
			
				|  |  |               <el-dropdown trigger="click" @command="handleRoleCommand(scope.row,$event)"> |  |  |  | 
		
	
		
			
				|  |  |                 <span class="el-dropdown-link" style="padding-right:8px;cursor: pointer;">更改角色</span> |  |  |  | 
		
	
		
			
				|  |  |                 <el-dropdown-menu slot="dropdown"> |  |  |  | 
		
	
		
			
				|  |  |                   <el-dropdown-item v-for="item in roleList" :key="item.roleId" :command="item.id">{{ item.name }}</el-dropdown-item> |  |  |  | 
		
	
		
			
				|  |  |                 </el-dropdown-menu> |  |  |  | 
		
	
		
			
				|  |  |               </el-dropdown> |  |  |  | 
		
	
		
			
				|  |  |  |  |  | <!--              <el-dropdown trigger="click" @command="handleRoleCommand(scope.row,$event)">--> | 
		
	
		
			
				|  |  |  |  |  | <!--                <span class="el-dropdown-link" style="padding-right:8px;cursor: pointer;">更改角色</span>--> | 
		
	
		
			
				|  |  |  |  |  | <!--                <el-dropdown-menu slot="dropdown">--> | 
		
	
		
			
				|  |  |  |  |  | <!--                  <el-dropdown-item v-for="item in roleList" :key="item.roleId" :command="item.id">{{ item.name }}</el-dropdown-item>--> | 
		
	
		
			
				|  |  |  |  |  | <!--                </el-dropdown-menu>--> | 
		
	
		
			
				|  |  |  |  |  | <!--              </el-dropdown>--> | 
		
	
		
			
				|  |  |               <span |  |  |               <span | 
		
	
		
			
				|  |  |                 style="color:#FF4D4F" |  |  |                 style="color:#FF4D4F" | 
		
	
		
			
				|  |  |                 class="operation-delete" |  |  |                 class="operation-delete" | 
		
	
	
		
			
				|  | @ -75,7 +74,7 @@ | 
		
	
		
			
				|  |  |           :render-content="renderFunc" |  |  |           :render-content="renderFunc" | 
		
	
		
			
				|  |  |           :format="{noChecked: '${total}',hasChecked: '${checked}/${total}'}" |  |  |           :format="{noChecked: '${total}',hasChecked: '${checked}/${total}'}" | 
		
	
		
			
				|  |  |           :titles="['未加入', '已加入课题']" |  |  |           :titles="['未加入', '已加入课题']" | 
		
	
		
			
				|  |  |           :props="{key: 'userId', label: 'realName'}" |  |  |  | 
		
	
		
			
				|  |  |  |  |  |           :props="{key: 'doctorId', label: 'doctorName'}" | 
		
	
		
			
				|  |  |           :data="AllJoinedPeopleList" |  |  |           :data="AllJoinedPeopleList" | 
		
	
		
			
				|  |  |           @change="handleChange" |  |  |           @change="handleChange" | 
		
	
		
			
				|  |  |         /> |  |  |         /> | 
		
	
	
		
			
				|  | @ -107,7 +106,7 @@ export default { | 
		
	
		
			
				|  |  |       inputSearchValue: '', |  |  |       inputSearchValue: '', | 
		
	
		
			
				|  |  |       transferData: generateData(), |  |  |       transferData: generateData(), | 
		
	
		
			
				|  |  |       renderFunc(h, option) { |  |  |       renderFunc(h, option) { | 
		
	
		
			
				|  |  |         return <span>{option.realName}</span> |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         return <span>{option.doctorName}</span> | 
		
	
		
			
				|  |  |       }, |  |  |       }, | 
		
	
		
			
				|  |  |       dialogFormVisible: false, |  |  |       dialogFormVisible: false, | 
		
	
		
			
				|  |  |       projectId: '', |  |  |       projectId: '', | 
		
	
	
		
			
				|  | @ -125,7 +124,8 @@ export default { | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |   }, |  |  |   }, | 
		
	
		
			
				|  |  |   created() { |  |  |   created() { | 
		
	
		
			
				|  |  |     this.projectId = window.SITE_CONFIG['projectId'] |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     // this.projectId = window.SITE_CONFIG['projectId'] | 
		
	
		
			
				|  |  |  |  |  |     this.projectId = this.$route.query.projectId | 
		
	
		
			
				|  |  |     this.getDoctorList() |  |  |     this.getDoctorList() | 
		
	
		
			
				|  |  |     this.getProjectUser() |  |  |     this.getProjectUser() | 
		
	
		
			
				|  |  |     this.getRoleList() |  |  |     this.getRoleList() | 
		
	
	
		
			
				|  | @ -144,32 +144,39 @@ export default { | 
		
	
		
			
				|  |  |     assignPeopleClick() { |  |  |     assignPeopleClick() { | 
		
	
		
			
				|  |  |       this.dialogFormVisible = true |  |  |       this.dialogFormVisible = true | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |     // 获取人员列表 |  |  |  | 
		
	
		
			
				|  |  |     getProjectUser() { |  |  |  | 
		
	
		
			
				|  |  |       this.$http.get(`/projectUser/getUserList/${this.projectId}`) |  |  |  | 
		
	
		
			
				|  |  |         .then(({ data: res }) => { |  |  |  | 
		
	
		
			
				|  |  |           this.JoinedPeopleList = res.data.joinedList |  |  |  | 
		
	
		
			
				|  |  |           this.notJoinedPeopleList = res.data.notJoined |  |  |  | 
		
	
		
			
				|  |  |           // 已加入 |  |  |  | 
		
	
		
			
				|  |  |           if (res.data.joinedList.length > 0) { |  |  |  | 
		
	
		
			
				|  |  |             res.data.joinedList.forEach(item => { |  |  |  | 
		
	
		
			
				|  |  |               this.rightValue.push(item.userId) |  |  |  | 
		
	
		
			
				|  |  |               if (item.isAdmin === 1) { |  |  |  | 
		
	
		
			
				|  |  |                 item.disabled = true |  |  |  | 
		
	
		
			
				|  |  |               } |  |  |  | 
		
	
		
			
				|  |  |             }) |  |  |  | 
		
	
		
			
				|  |  |           } |  |  |  | 
		
	
		
			
				|  |  |           // 未加入 |  |  |  | 
		
	
		
			
				|  |  |           if (res.data.notJoined.length > 0) { |  |  |  | 
		
	
		
			
				|  |  |             res.data.notJoined.forEach(item => { |  |  |  | 
		
	
		
			
				|  |  |               if (item.isAdmin === 1) { |  |  |  | 
		
	
		
			
				|  |  |                 item.disabled = true |  |  |  | 
		
	
		
			
				|  |  |               } |  |  |  | 
		
	
		
			
				|  |  |             }) |  |  |  | 
		
	
		
			
				|  |  |  |  |  |     // 获取医生列表 | 
		
	
		
			
				|  |  |  |  |  |     async getProjectUser() { | 
		
	
		
			
				|  |  |  |  |  |       const { data: res } = await this.$http.get('/dp/getDoctorList') | 
		
	
		
			
				|  |  |  |  |  |       if (res.code === 0) { | 
		
	
		
			
				|  |  |  |  |  |         this.AllJoinedPeopleList = res.data | 
		
	
		
			
				|  |  |       } |  |  |       } | 
		
	
		
			
				|  |  |           this.AllJoinedPeopleList = [...res.data.joinedList, ...res.data.notJoined] |  |  |  | 
		
	
		
			
				|  |  |         }) |  |  |  | 
		
	
		
			
				|  |  |     }, |  |  |     }, | 
		
	
		
			
				|  |  |  |  |  |     // 获取人员列表 | 
		
	
		
			
				|  |  |  |  |  |     // getProjectUser() { | 
		
	
		
			
				|  |  |  |  |  |     //   this.$http.get(`/projectUser/getUserList/${this.projectId}`) | 
		
	
		
			
				|  |  |  |  |  |     //     .then(({ data: res }) => { | 
		
	
		
			
				|  |  |  |  |  |     //       this.JoinedPeopleList = res.data.joinedList | 
		
	
		
			
				|  |  |  |  |  |     //       this.notJoinedPeopleList = res.data.notJoined | 
		
	
		
			
				|  |  |  |  |  |     //       // 已加入 | 
		
	
		
			
				|  |  |  |  |  |     //       if (res.data.joinedList.length > 0) { | 
		
	
		
			
				|  |  |  |  |  |     //         res.data.joinedList.forEach(item => { | 
		
	
		
			
				|  |  |  |  |  |     //           this.rightValue.push(item.userId) | 
		
	
		
			
				|  |  |  |  |  |     //           if (item.isAdmin === 1) { | 
		
	
		
			
				|  |  |  |  |  |     //             item.disabled = true | 
		
	
		
			
				|  |  |  |  |  |     //           } | 
		
	
		
			
				|  |  |  |  |  |     //         }) | 
		
	
		
			
				|  |  |  |  |  |     //       } | 
		
	
		
			
				|  |  |  |  |  |     //       // 未加入 | 
		
	
		
			
				|  |  |  |  |  |     //       if (res.data.notJoined.length > 0) { | 
		
	
		
			
				|  |  |  |  |  |     //         res.data.notJoined.forEach(item => { | 
		
	
		
			
				|  |  |  |  |  |     //           if (item.isAdmin === 1) { | 
		
	
		
			
				|  |  |  |  |  |     //             item.disabled = true | 
		
	
		
			
				|  |  |  |  |  |     //           } | 
		
	
		
			
				|  |  |  |  |  |     //         }) | 
		
	
		
			
				|  |  |  |  |  |     //       } | 
		
	
		
			
				|  |  |  |  |  |     //       this.AllJoinedPeopleList = [...res.data.joinedList, ...res.data.notJoined] | 
		
	
		
			
				|  |  |  |  |  |     //     }) | 
		
	
		
			
				|  |  |  |  |  |     // }, | 
		
	
		
			
				|  |  |     // 分配人员变化时 |  |  |     // 分配人员变化时 | 
		
	
		
			
				|  |  |     handleChange(value) { |  |  |     handleChange(value) { | 
		
	
		
			
				|  |  |       this.joinedListUserId = value |  |  |       this.joinedListUserId = value | 
		
	
	
		
			
				|  | 
 |