|  | @@ -381,10 +381,14 @@
 | 
	
		
			
				|  |  |        ref="qrCode"
 | 
	
		
			
				|  |  |      >
 | 
	
		
			
				|  |  |        <el-radio-group v-model="radio" @change="changeRadio">
 | 
	
		
			
				|  |  | -        <el-radio label="ORCHESTRA_LEADER">乐团领队</el-radio>
 | 
	
		
			
				|  |  | +        <el-radio :disabled="staffStat.orchestraLeaderNums > 0" label="ORCHESTRA_LEADER"
 | 
	
		
			
				|  |  | +          >乐团领队</el-radio
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  |          <el-radio label="SCHOOL_LEADER">分管领导</el-radio>
 | 
	
		
			
				|  |  |          <el-radio label="TEACHER">负责老师</el-radio>
 | 
	
		
			
				|  |  | -        <el-radio label="SCHOOLMASTER">校长</el-radio>
 | 
	
		
			
				|  |  | +        <el-radio :disabled="staffStat.schoolmasterNums > 0" label="SCHOOLMASTER"
 | 
	
		
			
				|  |  | +          >校长</el-radio
 | 
	
		
			
				|  |  | +        >
 | 
	
		
			
				|  |  |        </el-radio-group>
 | 
	
		
			
				|  |  |      </qr-code>
 | 
	
		
			
				|  |  |    </div>
 | 
	
	
		
			
				|  | @@ -407,6 +411,7 @@ import { isBoolean } from "@rongcloud/engine";
 | 
	
		
			
				|  |  |  import ImageCropper from "@/components/ImageCropper";
 | 
	
		
			
				|  |  |  import qrCode from "@/components/QrCode/index";
 | 
	
		
			
				|  |  |  import { vaildTeachingUrl } from "@/utils/validate";
 | 
	
		
			
				|  |  | +import { getCooperation } from "./api";
 | 
	
		
			
				|  |  |  let validPhone = (rule, value, callback) => {
 | 
	
		
			
				|  |  |    if (!value) {
 | 
	
		
			
				|  |  |      callback(new Error("请输入电话号码"));
 | 
	
	
		
			
				|  | @@ -490,6 +495,14 @@ export default {
 | 
	
		
			
				|  |  |        codeStatus: false,
 | 
	
		
			
				|  |  |        codeUrl: "www.baidu.com",
 | 
	
		
			
				|  |  |        radio: "ORCHESTRA_LEADER",
 | 
	
		
			
				|  |  | +      staffStat: {
 | 
	
		
			
				|  |  | +        orchestraLeaderNums: 0,
 | 
	
		
			
				|  |  | +        orchestraNums: 0,
 | 
	
		
			
				|  |  | +        schoolLeaderNums: 0,
 | 
	
		
			
				|  |  | +        schoolmasterNums: 0,
 | 
	
		
			
				|  |  | +        studentNums: 0,
 | 
	
		
			
				|  |  | +        teacherNums: 0,
 | 
	
		
			
				|  |  | +      },
 | 
	
		
			
				|  |  |      };
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    async mounted() {
 | 
	
	
		
			
				|  | @@ -716,12 +729,18 @@ export default {
 | 
	
		
			
				|  |  |        this.form.logo = data.data.url;
 | 
	
		
			
				|  |  |        console.log(this.form.logo, "cropSuccess");
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  | -    rejuest(row) {
 | 
	
		
			
				|  |  | -      this.activeRow = row;
 | 
	
		
			
				|  |  | -      this.codeUrl = `${vaildTeachingUrl()}/school/#/school-register?id=${row.id}&type=${
 | 
	
		
			
				|  |  | -        this.radio
 | 
	
		
			
				|  |  | -      }`;
 | 
	
		
			
				|  |  | -      this.codeStatus = true;
 | 
	
		
			
				|  |  | +    async rejuest(row) {
 | 
	
		
			
				|  |  | +      // 查询该单位是否有 校长 乐团领队
 | 
	
		
			
				|  |  | +      try {
 | 
	
		
			
				|  |  | +        const res = await getCooperation({ id: row.id });
 | 
	
		
			
				|  |  | +        console.log(res, "rejuest");
 | 
	
		
			
				|  |  | +        this.staffStat = { ...res.data.staffStat };
 | 
	
		
			
				|  |  | +        this.activeRow = row;
 | 
	
		
			
				|  |  | +        this.codeUrl = `${vaildTeachingUrl()}/school/#/school-register?id=${
 | 
	
		
			
				|  |  | +          row.id
 | 
	
		
			
				|  |  | +        }&type=${this.radio}`;
 | 
	
		
			
				|  |  | +        this.codeStatus = true;
 | 
	
		
			
				|  |  | +      } catch (e) {}
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    watch: {
 |