|
@@ -15,7 +15,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
|
|
|
queryData['project'] = CONFIG.project_jbt;
|
|
|
queryData['type'] = $("#type").val();
|
|
|
$("#fileTable").bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/api/talentInfo/findUnCommonFileType",
|
|
|
+ url: Feng.ctxPath + "/common/api/findUnCommonFileType",
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
search: false,
|
|
@@ -48,7 +48,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
|
|
|
$("#fileTable").bootstrapTable('expandAllRows');
|
|
|
},
|
|
|
onExpandRow: function (index, row, $detail) {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/talentInfo/listTalentFile", function (data) {
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/common/api/listTalentFile", function (data) {
|
|
|
if(data==null||data.length==0){
|
|
|
return;
|
|
|
}
|
|
@@ -94,7 +94,7 @@ TalentAllowanceInfoDlg.initFileTable = function (){
|
|
|
TalentAllowanceInfoDlg.initContract = function(){
|
|
|
$("#projectTable").bootstrapTable("destroy",{});
|
|
|
$("#projectTable").bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/api/talentAllowance/findAllowanceContractDetail",
|
|
|
+ url: Feng.ctxPath + "/enterprise/talentAllowance/findAllowanceContractDetail",
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
search: false,
|
|
@@ -127,7 +127,7 @@ TalentAllowanceInfoDlg.initContract = function(){
|
|
|
var cur_table = $detail.html('<table id="'+enterpriseId+'" class="mytable-hover"></table>').find('table');
|
|
|
$(cur_table).bootstrapTable("destroy",{});
|
|
|
$(cur_table).bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/api/talentAllowance/findAllowanceProject",
|
|
|
+ url: Feng.ctxPath + "/enterprise/talentAllowance/findAllowanceProject",
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
search: false,
|
|
@@ -259,7 +259,7 @@ TalentAllowanceInfoDlg.showLog = function (id) {
|
|
|
maxmin: true,
|
|
|
success :function (layero, index) {
|
|
|
$('#'+id).bootstrapTable({
|
|
|
- url: Feng.ctxPath + "/api/talentChecklog/getJbtCheckLog",
|
|
|
+ url: Feng.ctxPath + "/common/api/getJbtCheckLog",
|
|
|
method: 'POST',
|
|
|
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
|
|
|
search: false,
|
|
@@ -307,7 +307,7 @@ TalentAllowanceInfoDlg.callBack = function (data){
|
|
|
layer.close(data.obj);
|
|
|
Feng.info(data.msg);
|
|
|
if (data.code == 200) {
|
|
|
- var ajax = new $ax(Feng.ctxPath + "/api/talentAllowance/updateSuppleState", function(data){
|
|
|
+ var ajax = new $ax(Feng.ctxPath + "/enterprise/talentAllowance/updateSuppleState", function(data){
|
|
|
if(data.code == 200){
|
|
|
|
|
|
}else{
|
|
@@ -336,11 +336,14 @@ $(function() {
|
|
|
"displayCode": "id",
|
|
|
"displayName": "name",
|
|
|
"type": "GET",
|
|
|
- "url": Feng.ctxPath + "/api/talentInfo/findTalentByEnterpriseInLibrary?type=1&year="+$("#year").val()
|
|
|
+ "url": Feng.ctxPath + "/enterprise/talent/findTalentByEnterpriseInLibrary?type=1&year="+$("#year").val()
|
|
|
});
|
|
|
if($("#type").val()==2){
|
|
|
$("#bankNumberSpan,#talentTypeSpan,#introductionModeSpan,#firstInJJTimeSpan").attr("style","display:none");
|
|
|
}
|
|
|
+ if ($("#allowanceType").val() == 1) {
|
|
|
+ $("#wageDiv").css("display", "block");
|
|
|
+ }
|
|
|
|
|
|
$(".date").each(function(){
|
|
|
laydate.render({elem: "#"+$(this).attr("id"),type: 'date',trigger: 'click'});
|