|
@ -100,6 +100,12 @@
|
100
|
100
|
<input type="text" class="form-control" id="department" placeholder="部门">
|
101
|
101
|
</div>
|
102
|
102
|
</div>
|
|
103
|
<div class="form-group">
|
|
104
|
<label for="address" class="col-sm-2 control-label">住址</label>
|
|
105
|
<div class="col-sm-10">
|
|
106
|
<input type="text" class="form-control" id="address" placeholder="住址">
|
|
107
|
</div>
|
|
108
|
</div>
|
103
|
109
|
<div class="col-sm-2"></div>
|
104
|
110
|
<div class="col-sm-10">
|
105
|
111
|
<button id="saveProfessor" type="button" class="btn btn-default">保存</button>
|
|
@ -487,8 +493,7 @@
|
487
|
493
|
</div>
|
488
|
494
|
</div>
|
489
|
495
|
<div class="modal-footer">
|
490
|
|
|
491
|
|
<button type="button" class="btn btn-default" id="closedd"data-dismiss="modal">关闭</button>
|
|
496
|
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
492
|
497
|
<button id="raSubmit" type="button" class="btn btn-primary">提交更改</button>
|
493
|
498
|
</div>
|
494
|
499
|
</div>
|
|
@ -669,6 +674,7 @@
|
669
|
674
|
$("#department").val($info.department);
|
670
|
675
|
$("#subject").val($info.subject);
|
671
|
676
|
$("#industry").val($info.industry);
|
|
677
|
$("#address").val($info.address);
|
672
|
678
|
$("#descp").val($info.descp);
|
673
|
679
|
$("#headImage").attr("src","/images/head/"+professorId+"_l.jpg");
|
674
|
680
|
$("#orgImage").attr("src","/images/org/"+$info.orgId+".jpg");
|
|
@ -721,6 +727,20 @@
|
721
|
727
|
}
|
722
|
728
|
});
|
723
|
729
|
});
|
|
730
|
$("#saveAddress").on("click",function(){
|
|
731
|
$.ajax({"url" : "../ajax/professor/address",
|
|
732
|
"type" : "POST",
|
|
733
|
"data" : {"id":professorId,"address":$("#address").val()},
|
|
734
|
"contentType" : "application/x-www-form-urlencoded",
|
|
735
|
"success" : function($data) {
|
|
736
|
if ($data.success) {
|
|
737
|
alert("save address ok");
|
|
738
|
} else {
|
|
739
|
alert($data.msg);
|
|
740
|
}
|
|
741
|
}
|
|
742
|
});
|
|
743
|
});
|
724
|
744
|
$("#saveDescp").on("click",function(){
|
725
|
745
|
$.ajax({"url" : "../ajax/professor/descp",
|
726
|
746
|
"type" : "POST",
|
|
@ -739,12 +759,10 @@
|
739
|
759
|
$.get("../ajax/researchArea/"+professorId,function($data){
|
740
|
760
|
if($data.success){
|
741
|
761
|
if($data.data){
|
742
|
|
$('#raLists').empty();
|
743
|
762
|
var $ras = $data.data;
|
744
|
763
|
for(var i = 0 ; i < $ras.length;++i){
|
745
|
764
|
fillRA($ras[i].caption,$ras[i].descp);
|
746
|
765
|
}
|
747
|
|
|
748
|
766
|
}
|
749
|
767
|
}else{
|
750
|
768
|
alert($data.msg);
|
|
@ -758,11 +776,6 @@
|
758
|
776
|
$("#raDescp").val("");
|
759
|
777
|
return false;
|
760
|
778
|
});
|
761
|
|
|
762
|
|
|
763
|
|
|
764
|
|
|
765
|
|
|
766
|
779
|
$("#raSubmit").on("click",function(){
|
767
|
780
|
var $data=[];
|
768
|
781
|
$("#raLists > li").each(function(){
|
|
@ -790,16 +803,12 @@
|
790
|
803
|
});
|
791
|
804
|
|
792
|
805
|
});
|
793
|
|
setInterval(function(){
|
794
|
806
|
$(".raClose").on("click",function(){
|
795
|
|
|
|
807
|
alert(111);
|
796
|
808
|
$this=$(this);
|
797
|
809
|
$this.parent().remove();
|
798
|
810
|
return false;
|
799
|
|
})
|
800
|
|
},1000);
|
801
|
|
|
802
|
|
|
|
811
|
});
|
803
|
812
|
$("#jobLabel").on("click",function(){
|
804
|
813
|
$("#jobModal").data("pid", "");
|
805
|
814
|
$("#job_startMonth").val("");
|
|
@ -1237,6 +1246,7 @@
|
1237
|
1246
|
$data.orgName = $("#orgName").val();
|
1238
|
1247
|
$data.title = $("#title").val();
|
1239
|
1248
|
$data.department = $("#department").val();
|
|
1249
|
$data.address = $("#address").val();
|
1240
|
1250
|
if (professorId) {
|
1241
|
1251
|
$data.id = professorId;
|
1242
|
1252
|
}
|