|
|
@@ -24,7 +24,44 @@ var bootstrap = function ($, learun) { |
|
|
|
// 上级公司 |
|
|
|
$('#F_ParentId').lrCompanySelect(); |
|
|
|
// 省市区 |
|
|
|
$('#area').lrAreaSelect(); |
|
|
|
$('#F_ProvinceId').lrDataSourceSelect({ |
|
|
|
code: 'DIC_PROVINCE', value: 'pcode', text: 'pname', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#F_CityId').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + "/DIC_CITY/GetListByProvinceCode", |
|
|
|
param: { ProvinceCode: item.pcode }, |
|
|
|
value: 'CCODE', |
|
|
|
text: 'CNAME' |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#F_CityId').lrselectRefresh({ |
|
|
|
url: "", |
|
|
|
data: [] |
|
|
|
}); |
|
|
|
} |
|
|
|
$('#F_CountyId').lrselectRefresh({ |
|
|
|
url: "", |
|
|
|
data: [] |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#F_CityId').lrselect({ |
|
|
|
value: 'ccode', text: 'cname', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#F_CountyId').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + "/DIC_AREA/GetAreasListByCityCode", |
|
|
|
param: { cityCode: item.CCODE }, |
|
|
|
value: 'ACODE', |
|
|
|
text: 'ANAME' |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#F_CountyId').lrselect({ |
|
|
|
value: 'ACODE', text: 'ANAME' |
|
|
|
}); |
|
|
|
$('#F_Photo').lrUploader(); |
|
|
|
F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction'); |
|
|
|
//$('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE; |
|
|
@@ -57,7 +94,7 @@ var bootstrap = function ($, learun) { |
|
|
|
if (!$('#form').lrValidform()) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
var postData = $('#form').lrGetFormData(keyValue); |
|
|
|
var postData = $('#form').lrGetFormData(); |
|
|
|
if (postData["F_ParentId"] == '' || postData["F_ParentId"] == ' ') { |
|
|
|
postData["F_ParentId"] = '0'; |
|
|
|
} |
|
|
|