提交 f6051ff8 编写于 作者: doc_wei's avatar doc_wei

解决项目管理--成果与总结功能报错的问题

上级 5590da3a
......@@ -11,10 +11,8 @@ layui.config({
var index = parent.layer.getFrameIndex(window.name);
var $ = layui.$,
laydate = layui.laydate;
var ue;
var resultsEnclosureInfoList = new Array();//项目成果和总结的附件
showGrid({
id: "showForm",
url: flowableBasePath + "proproject015",
......@@ -54,21 +52,7 @@ layui.config({
// 项目成果和总结的附件回显
skyeyeEnclosure.initTypeISData({'enclosureUpload': json.bean.resultsEnclosureInfoList});
ue = UE.getEditor('resultsContent',{
//初始化高度
initialFrameHeight: 400,
maximumWords: 100000
});
UE.Editor.prototype._bkGetActionUrl = UE.Editor.prototype.getActionUrl;
UE.Editor.prototype.getActionUrl = function(action){
if (action == 'uploadimage' || action == 'uploadfile' || action == 'uploadvideo' || action == 'uploadimage'){//上传单个图片,上传附件,上传视频,多图上传
return reqBasePath + '/upload/editUploadController/uploadContentPic';
} else if(action == 'listimage'){
return reqBasePath + '/upload/editUploadController/downloadContentPic';
}else{
return this._bkGetActionUrl.call(this, action);
}
};
ue = ueEditorUtil.initEditor('resultsContent');
ue.addListener("ready", function () {
if(!isNull(json.bean.resultsContent))
ue.setContent(json.bean.resultsContent);
......
......@@ -213,10 +213,10 @@
</script>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="../../assets/lib/layui/lay/modules/ueditor/lang/zh-cn/zh-cn.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
layui.config({base: '../../js/proproject/'}).use('properfectinformation');
</script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册