|
|
@@ -10,6 +10,8 @@ var acceptClick; |
|
|
|
var keyValue = ''; |
|
|
|
var bootstrap = function ($, learun) { |
|
|
|
"use strict"; |
|
|
|
var F_BriefIntroductionUE; |
|
|
|
var F_EnrollmentInformationUE; |
|
|
|
var selectedRow = learun.frameTab.currentIframe().selectedRow; |
|
|
|
var page = { |
|
|
|
init: function () { |
|
|
@@ -24,15 +26,32 @@ var bootstrap = function ($, learun) { |
|
|
|
// 省市区 |
|
|
|
$('#area').lrAreaSelect(); |
|
|
|
$('#F_Photo').lrUploader(); |
|
|
|
var F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction'); |
|
|
|
$('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE; |
|
|
|
var F_EnrollmentInformationUE = UE.getEditor('F_EnrollmentInformation'); |
|
|
|
$('#F_EnrollmentInformation')[0].ue = F_EnrollmentInformationUE; |
|
|
|
F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction'); |
|
|
|
//$('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE; |
|
|
|
|
|
|
|
F_EnrollmentInformationUE = UE.getEditor('F_EnrollmentInformation'); |
|
|
|
//$('#F_EnrollmentInformation')[0].ue = F_EnrollmentInformationUE; |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!selectedRow) { |
|
|
|
keyValue = selectedRow.F_CompanyId; |
|
|
|
$('#form').lrSetFormData(selectedRow); |
|
|
|
if (selectedRow.F_BriefIntroduction) { |
|
|
|
setTimeout(function () { |
|
|
|
F_BriefIntroductionUE.ready(function () { |
|
|
|
F_BriefIntroductionUE.setContent(selectedRow.F_BriefIntroduction); |
|
|
|
}); |
|
|
|
}, 100); |
|
|
|
|
|
|
|
}; |
|
|
|
if (selectedRow.F_EnrollmentInformation) { |
|
|
|
setTimeout(function () { |
|
|
|
F_EnrollmentInformationUE.ready(function () { |
|
|
|
F_EnrollmentInformationUE.setContent(selectedRow.F_EnrollmentInformation); |
|
|
|
}); |
|
|
|
}, 100); |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
@@ -45,7 +64,12 @@ var bootstrap = function ($, learun) { |
|
|
|
if (postData["F_ParentId"] == '' || postData["F_ParentId"] == ' ') { |
|
|
|
postData["F_ParentId"] = '0'; |
|
|
|
} |
|
|
|
$.lrSaveForm(top.$.rootUrl + '/LR_OrganizationModule/Company/SaveForm?keyValue=' + keyValue, postData, function (res) { |
|
|
|
postData["F_BriefIntroduction"] = F_BriefIntroductionUE.getContent(null, null, true); |
|
|
|
postData["F_EnrollmentInformation"] = F_EnrollmentInformationUE.getContent(null, null, true); |
|
|
|
var postDatas = { |
|
|
|
strEntity: JSON.stringify(postData) |
|
|
|
}; |
|
|
|
$.lrSaveForm(top.$.rootUrl + '/LR_OrganizationModule/Company/SaveForm?keyValue=' + keyValue, postDatas, function (res) { |
|
|
|
// 保存成功后才回调 |
|
|
|
if (!!callBack) { |
|
|
|
callBack(); |
|
|
|