|
|
@@ -24,11 +24,12 @@
|
|
|
<p>所属单位</p>
|
|
|
<p>{{userInfo.deptName}}</p>
|
|
|
</div>
|
|
|
- <div class="left-min-box" v-if="userInfo.userType == 2">
|
|
|
- <p>实验室信息</p>
|
|
|
- <p>{{userInfo.labName?userInfo.labName:'暂无绑定实验室'}}</p>
|
|
|
- <p @click="shadeButton(4)" v-show="!userInfo.bound">去绑定</p>
|
|
|
- <p v-if="userInfo.bound">{{userInfo.bindStatus}}</p>
|
|
|
+ <div class="left-sub-min-box" v-if="userInfo.userType == 2">
|
|
|
+ <p class="name-p">实验室信息</p>
|
|
|
+ <p class="text-p" v-if="userInfo.bound">{{userInfo.labName}}</p>
|
|
|
+ <p class="text-p" v-if="!userInfo.bound&&userInfo.educationType == 2">{{userInfo.isFinishExam?'暂无绑定实验室':'请先完成入学考试'}}</p>
|
|
|
+ <p class="button-p" v-if="!userInfo.bound&&(userInfo.educationType == 1 ||(userInfo.educationType == 2&&userInfo.isFinishExam))" @click="shadeButton(4)">去绑定</p>
|
|
|
+ <p class="sub-name-p" v-if="userInfo.bound">{{userInfo.bindStatus}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!--进度-->
|
|
|
@@ -170,7 +171,7 @@
|
|
|
<p class="shade-text-p">毕业论文或毕业设计,科创等相关需要在具体的实验室开展业务的情况可申请绑定实验室,绑定完毕后需要完成对应的分级考试。</p>
|
|
|
</div>
|
|
|
<!--研究生选项-->
|
|
|
- <div class="checkbox-box" v-if="userInfo.educationType == 1">
|
|
|
+ <div class="checkbox-box" v-if="userInfo.educationType == 1&&userInfo.isNew">
|
|
|
<el-form-item label="" label-width="0">
|
|
|
<el-checkbox v-model="shadeFormData.isEnter">无需进入实验室</el-checkbox>
|
|
|
<p class="checkbox-text-p">人文、体育等相关学院无需进入实验室的新研究生可选择此项,选择后学时要求为4小时,需通过应知应会考试。</p>
|
|
|
@@ -353,9 +354,18 @@ export default {
|
|
|
examElLabEduRelationBind(){
|
|
|
let obj = {
|
|
|
subId:this.shadeFormData.subId,
|
|
|
- reason:this.userInfo.educationType == 2?this.shadeFormData.reason:'',
|
|
|
- isEnter:this.userInfo.educationType == 1?(this.shadeFormData.isEnter?'1':'0'):'',
|
|
|
};
|
|
|
+ if(this.userInfo.educationType == 1&&this.userInfo.isNew){
|
|
|
+ obj.reason = '';
|
|
|
+ obj.isEnter = this.shadeFormData.isEnter?'0':'1';
|
|
|
+ }else if(this.userInfo.educationType == 1&&!this.userInfo.isNew){
|
|
|
+ obj.reason = '';
|
|
|
+ obj.isEnter = '0';
|
|
|
+ }else if(this.userInfo.educationType == 2){
|
|
|
+ obj.reason = this.shadeFormData.reason;
|
|
|
+ obj.isEnter = '1';
|
|
|
+ }
|
|
|
+
|
|
|
examElLabEduRelationBind(obj).then(response => {
|
|
|
this.msgSuccess(response.message);
|
|
|
this.$set(this,'shadeType',null);
|
|
|
@@ -434,6 +444,38 @@ export default {
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
}
|
|
|
+ .left-sub-min-box{
|
|
|
+ display: inline-block;
|
|
|
+ overflow:hidden;
|
|
|
+ width:198px;
|
|
|
+ margin-bottom:15px;
|
|
|
+ p{
|
|
|
+ line-height:30px;
|
|
|
+ }
|
|
|
+ .name-p{
|
|
|
+ font-size:14px;
|
|
|
+ color:#666;
|
|
|
+ }
|
|
|
+ .text-p{
|
|
|
+ font-size:16px;
|
|
|
+ font-weight:700;
|
|
|
+ display:block;
|
|
|
+ overflow:hidden;
|
|
|
+ text-overflow:ellipsis;
|
|
|
+ white-space:nowrap;
|
|
|
+ }
|
|
|
+ .button-p{
|
|
|
+ font-size:16px;
|
|
|
+ font-weight:700;
|
|
|
+ color: #0183fa;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+ .sub-name-p{
|
|
|
+ font-size:16px;
|
|
|
+ font-weight:700;
|
|
|
+ color: #0183fa;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
.center-max-box{
|
|
|
width:430px;
|