Ver a proveniência

校区管理富文本编辑功能调整

金隅分支
liangkun há 3 anos
ascendente
cometimento
aa5b2744e1
2 ficheiros alterados com 90 adições e 83 eliminações
  1. +77
    -70
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml
  2. +13
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js

+ 77
- 70
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.cshtml Ver ficheiro

@@ -2,78 +2,85 @@
ViewBag.Title = "学校添加";
Layout = "~/Views/Shared/_Form.cshtml";
}
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学校名称<font face="宋体">*</font></div>
<input id="F_FullName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校编码<font face="宋体">*</font></div>
<input id="F_EnCode" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校简称<font face="宋体">*</font></div>
<input id="F_ShortName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">上级学校</div>
<div id="F_ParentId"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">成立时间</div>
<input id="F_FoundedTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker()" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">负责人</div>
<input id="F_Manager" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">电话</div>
<input id="F_OuterPhone" type="text" class="form-control" />
</div>
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学校名称<font face="宋体">*</font></div>
<input id="F_FullName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校编码<font face="宋体">*</font></div>
<input id="F_EnCode" type="text" class="form-control" isvalid="yes" checkexpession="Num" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校简称<font face="宋体">*</font></div>
<input id="F_ShortName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">上级学校</div>
<div id="F_ParentId"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">成立时间</div>
<input id="F_FoundedTime" type="text" class="form-control lr-input-wdatepicker" onfocus="WdatePicker()" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">负责人</div>
<input id="F_Manager" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">电话</div>
<input id="F_OuterPhone" type="text" class="form-control" />
</div>

<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">电子邮箱</div>
<input id="F_Email" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">照片</div>
<div id="F_Photo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">校区简介</div>
<div id="F_BriefIntroduction" style="height:200px;"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">招生简介</div>
<div id="F_EnrollmentInformation" style="height:200px;"></div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">传真</div>
<input id="F_Fax" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学校地点</div>
<div id="area" class="col-xs-6 lr-form-area">
<div id="F_ProvinceId" placeholder="省" class="col-xs-4"></div>
<div id="F_CityId" placeholder="市" class="col-xs-4"></div>
<div id="F_CountyId" placeholder="县/区" class="col-xs-4"></div>
</div>
<div class="col-xs-6">
<input id="F_Address" type="text" placeholder="请输入详细地址" class="form-control" />
</div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">邮编</div>
<input id="F_Postalcode" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校官网</div>
<input id="F_WebAddress" type="text" class="form-control" />
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">电子邮箱</div>
<input id="F_Email" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">照片</div>
<div id="F_Photo"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">校区简介</div>
<script id="F_BriefIntroduction" type="text/plain" style="height:270px;">
</script>
@*<div id="F_BriefIntroduction" style="height:200px;"></div>*@
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">招生简介</div>
<script id="F_EnrollmentInformation" type="text/plain" style="height:270px;">
</script>
@*<div id="F_EnrollmentInformation" style="height:200px;"></div>*@
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">传真</div>
<input id="F_Fax" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">学校地点</div>
<div id="area" class="col-xs-6 lr-form-area">
<div id="F_ProvinceId" placeholder="省" class="col-xs-4"></div>
<div id="F_CityId" placeholder="市" class="col-xs-4"></div>
<div id="F_CountyId" placeholder="县/区" class="col-xs-4"></div>
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">备注</div>
<textarea id="F_Description" type="text" class="form-control" style="height:80px;"></textarea>
<div class="col-xs-6">
<input id="F_Address" type="text" placeholder="请输入详细地址" class="form-control" />
</div>
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">邮编</div>
<input id="F_Postalcode" type="text" class="form-control" />
</div>
<div class="col-xs-6 lr-form-item">
<div class="lr-form-item-title">学校官网</div>
<input id="F_WebAddress" type="text" class="form-control" />
</div>
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">备注</div>
<textarea id="F_Description" type="text" class="form-control" style="height:80px;"></textarea>
</div>
</div>
<script src="~/Content/ueditor/ueditor.config.js"></script>
<script src="~/Content/ueditor/ueditor.all.js"></script>
<script src="~/Content/ueditor/lang/zh-cn/zh-cn.js"></script>
@Html.AppendJsFile("/Areas/LR_OrganizationModule/Views/Company/Form.js")

+ 13
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OrganizationModule/Views/Company/Form.js Ver ficheiro

@@ -27,28 +27,28 @@ var bootstrap = function ($, learun) {
$('#area').lrAreaSelect();
$('#F_Photo').lrUploader();
F_BriefIntroductionUE = UE.getEditor('F_BriefIntroduction');
$('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE;
//$('#F_BriefIntroduction')[0].ue = F_BriefIntroductionUE;
F_EnrollmentInformationUE = UE.getEditor('F_EnrollmentInformation');
$('#F_EnrollmentInformation')[0].ue = F_EnrollmentInformationUE;
//$('#F_EnrollmentInformation')[0].ue = F_EnrollmentInformationUE;
},
initData: function () {
if (!!selectedRow) {
keyValue = selectedRow.F_CompanyId;
console.log(selectedRow);
$('#form').lrSetFormData(selectedRow);
//if (selectedRow.F_BriefIntroduction) {
// setTimeout(function () {
// F_BriefIntroductionUE.setContent(selectedRow.F_BriefIntroduction);
// }, 100);
if (selectedRow.F_BriefIntroduction) {
setTimeout(function () {
F_BriefIntroductionUE.setContent(selectedRow.F_BriefIntroduction);
}, 100);
//};
//if (selectedRow.F_EnrollmentInformation) {
// setTimeout(function () {
// F_EnrollmentInformationUE.setContent(selectedRow.F_EnrollmentInformation);
// }, 100);
};
if (selectedRow.F_EnrollmentInformation) {
setTimeout(function () {
F_EnrollmentInformationUE.setContent(selectedRow.F_EnrollmentInformation);
}, 100);
//};
};
}
}
};


Carregando…
Cancelar
Guardar