Commit 789d8ac8 by 罗绍泽

Merge remote-tracking branch 'origin/develop' into develop

parents 13b78f06 9d267701
...@@ -68,13 +68,16 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j ...@@ -68,13 +68,16 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-name>CASFilter</filter-name> <filter-name>CASFilter</filter-name>
<filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class> <filter-class>org.jasig.cas.client.authentication.AuthenticationFilter</filter-class>
<init-param> <init-param>
<!-- <param-name>casServerLoginUrl</param-name>
<param-value>http://localhost:8080/cas-jfsso/login</param-value> --><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
<param-name>casServerLoginUrl</param-name> <param-name>casServerLoginUrl</param-name>
<param-value>http://cas.jfbrother.com/cas-jfsso/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login --> <param-value>http://cas.jfbrother.com/cas-jfsso/login</param-value><!-- cas 服务器登录 地址 http://IP:PORT/CasWebProName/login -->
</init-param> </init-param>
<init-param> <init-param>
<!-- 这里的server是服务端的IP --> <!-- 这里的server是服务端的IP -->
<param-name>serverName</param-name> <param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value><!-- 客户端服务器地址 http://IP:PORT --> <!-- <param-value>http://portal.jfbrother.com:9003</param-value>客户端服务器地址 http://IP:PORT -->
<param-value>localhost:8080</param-value>
</init-param> </init-param>
</filter> </filter>
<filter-mapping> <filter-mapping>
...@@ -89,11 +92,13 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j ...@@ -89,11 +92,13 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j
<filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class> <filter-class>org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter</filter-class>
<init-param> <init-param>
<param-name>casServerUrlPrefix</param-name> <param-name>casServerUrlPrefix</param-name>
<param-value>http://cas.jfbrother.com/cas-jfsso</param-value><!-- cas 服务器地址 http://IP:PORT/CasWebProName --> <!-- <param-value>http://localhost:8080/cas-jfsso</param-value> --><!-- cas 服务器地址 http://IP:PORT/CasWebProName -->
<param-value>http://cas.jfbrother.com/cas-jfsso</param-value>
</init-param> </init-param>
<init-param> <init-param>
<param-name>serverName</param-name> <param-name>serverName</param-name>
<param-value>http://localhost:8080</param-value><!-- 客户端服务器地址 http://IP:PORT --> <!-- <param-value>http://portal.jfbrother.com:9003</param-value>客户端服务器地址 http://IP:PORT -->
<param-value>localhost:8080</param-value>
</init-param> </init-param>
</filter> </filter>
<filter-mapping> <filter-mapping>
......
...@@ -114,7 +114,7 @@ $.extend({ ...@@ -114,7 +114,7 @@ $.extend({
return -1;//不是ie浏览器 return -1;//不是ie浏览器
} }
}, },
//获得浏览器的宽度 //获得浏览器滚动条的宽度
getScrollbarWidth:function(){ getScrollbarWidth:function(){
var oP = document.createElement('p'), styles = { var oP = document.createElement('p'), styles = {
width: '100px', width: '100px',
...@@ -215,6 +215,153 @@ $.extend({ ...@@ -215,6 +215,153 @@ $.extend({
var date2=new Date(end_list[0],end_list[1],end_list[2]); var date2=new Date(end_list[0],end_list[1],end_list[2]);
var date=(date2.getTime()-date1.getTime())/(1000*60*60*24);/*不用考虑闰年否*/ var date=(date2.getTime()-date1.getTime())/(1000*60*60*24);/*不用考虑闰年否*/
return date; return date;
},
/**树的搜索功能
* @param zTreeId ztree对象的id,不需要#
* @param searchField 输入框选择器
* @param isHighLight 是否高亮,默认高亮,传入false禁用
* @param isExpand 是否展开,默认合拢,传入true展开
* @param searchBtn 绑定要点击的那个按钮的选择器
*/
fuzzySearch:function(zTreeId, searchField, isHighLight, isExpand,searchBtn){
var zTreeObj = $.fn.zTree.getZTreeObj(zTreeId);//get the ztree object by ztree id
if(!zTreeObj){
alter("fail to get ztree object");
}
var nameKey = zTreeObj.setting.data.key.name; //get the key of the node name
isHighLight = isHighLight===false?false:true;//default true, only use false to disable highlight
isExpand = isExpand?true:false; // not to expand in default
zTreeObj.setting.view.nameIsHTML = isHighLight; //allow use html in node name for highlight use
var metaChar = '[\\[\\]\\\\\^\\$\\.\\|\\?\\*\\+\\(\\)]'; //js meta characters
var rexMeta = new RegExp(metaChar, 'gi');//regular expression to match meta characters
// keywords filter function
function ztreeFilter(zTreeObj,_keywords,callBackFunc) {
if(!_keywords){
_keywords =''; //default blank for _keywords
}
// function to find the matching node
function filterFunc(node) {
if(node && node.oldname && node.oldname.length>0){
node[nameKey] = node.oldname; //recover oldname of the node if exist
}
zTreeObj.updateNode(node); //update node to for modifications take effect
if (_keywords.length == 0) {
//return true to show all nodes if the keyword is blank
zTreeObj.showNode(node);
//zTreeObj.expandNode(node,isExpand);
//如果没有输入值时,则显示所有的目录,并且折叠
zTreeObj.expandNode(node,false);
return true;
}
//transform node name and keywords to lowercase
if (node[nameKey] && node[nameKey].toLowerCase().indexOf(_keywords.toLowerCase())!=-1) {
if(isHighLight){ //highlight process
//a new variable 'newKeywords' created to store the keywords information
//keep the parameter '_keywords' as initial and it will be used in next node
//process the meta characters in _keywords thus the RegExp can be correctly used in str.replace
var newKeywords = _keywords.replace(rexMeta,function(matchStr){
//add escape character before meta characters
return '\\' + matchStr;
});
node.oldname = node[nameKey]; //store the old name
var rexGlobal = new RegExp(newKeywords, 'gi');//'g' for global,'i' for ignore case
//use replace(RegExp,replacement) since replace(/substr/g,replacement) cannot be used here
node[nameKey] = node.oldname.replace(rexGlobal, function(originalText){
//highlight the matching words in node name
var highLightText =
'<span style="margin-left:0;color: whitesmoke;background-color: darkred;">'
+ originalText
+'</span>';
return highLightText;
});
zTreeObj.updateNode(node); //update node for modifications take effect
}
zTreeObj.showNode(node);//show node with matching keywords
return true; //return true and show this node
}
zTreeObj.hideNode(node); // hide node that not matched
return false; //return false for node not matched
}
var nodesShow = zTreeObj.getNodesByFilter(filterFunc); //get all nodes that would be shown
processShowNodes(nodesShow, _keywords);//nodes should be reprocessed to show correctly
}
/**
* reprocess of nodes before showing
*/
function processShowNodes(nodesShow,_keywords){
if(nodesShow && nodesShow.length>0){
//process the ancient nodes if _keywords is not blank
if(_keywords.length>0){
$.each(nodesShow, function(n,obj){
var pathOfOne = obj.getPath();//get all the ancient nodes including current node
if(pathOfOne && pathOfOne.length>0){
//i < pathOfOne.length-1 process every node in path except self
for(var i=0;i<pathOfOne.length-1;i++){
zTreeObj.showNode(pathOfOne[i]); //show node
zTreeObj.expandNode(pathOfOne[i],true); //expand node
}
}
});
}else{ //show all nodes when _keywords is blank and expand the root nodes
var rootNodes = zTreeObj.getNodesByParam('level','0');//get all root nodes
$.each(rootNodes,function(n,obj){
zTreeObj.expandNode(obj,true); //expand all root nodes
});
}
}
}
//listen to change in input element
/*$(searchField).bind('input propertychange', function() {
var _keywords = $(this).val();
searchNodeLazy(_keywords); //call lazy load
});
var timeoutId = null;
// excute lazy load once after input change, the last pending task will be cancled
function searchNodeLazy(_keywords) {
if (timeoutId) {
//clear pending task
clearTimeout(timeoutId);
}
timeoutId = setTimeout(function() {
ztreeFilter(zTreeObj,_keywords); //lazy load ztreeFilter function
$(searchField).focus();//focus input field again after filtering
}, 500);
}*/
//绑定要点击的那个按钮
$(searchBtn).bind('click',function(){
var _keywords = $(searchField).val();
ztreeFilter(zTreeObj,_keywords);
})
//输入框的回车键操作
$(searchField).bind("keydown",function(e){
  // 兼容FF和IE和Opera
  var theEvent = e || window.event;
  var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
   if (code == 13) {
//回车执行查询
var _keywords = $(searchField).val();
ztreeFilter(zTreeObj,_keywords);
  }
});
},
/**去掉Html标签代码
* @param str 带有Html的字符串
*/
removeHtml:function(str){
str = str || "";//防止空指针
str = str.replace(/<(?!\/?p\b)[^>]+>|(<p)\b[^>]*(>)/ig, "$1$2");
str = str.replace(/\s+/g,"");
str = str.replace(new RegExp("&nbsp;","gm"),"");
return str;
} }
// //
} }
......
...@@ -1177,7 +1177,7 @@ a{ ...@@ -1177,7 +1177,7 @@ a{
line-height: 28px; line-height: 28px;
padding-left:6px; padding-left:6px;
color:#bbb; color:#bbb;
width:70%; width:85%;
} }
.disk_move_search>span{ .disk_move_search>span{
border:1px solid #f2f2f2; border:1px solid #f2f2f2;
...@@ -1185,8 +1185,8 @@ a{ ...@@ -1185,8 +1185,8 @@ a{
line-height: 28px; line-height: 28px;
color:#333; color:#333;
display: inline-block; display: inline-block;
width:25%; width:13%;
margin-left:5%; margin-left:2%;
vertical-align: bottom; vertical-align: bottom;
text-align:center; text-align:center;
cursor: pointer; cursor: pointer;
...@@ -1229,7 +1229,7 @@ a{ ...@@ -1229,7 +1229,7 @@ a{
margin-left: 10px; margin-left: 10px;
} }
.disk_move_tree li span.button.ico_close,.disk_move_tree li span.button.ico_open,.disk_move_tree li span.button.ico_docu{ .disk_move_tree li span.button.ico_close,.disk_move_tree li span.button.ico_open,.disk_move_tree li span.button.ico_docu{
background-size: cover !important; background-size: 100% 100% !important;
width: 23px !important; width: 23px !important;
height: 17px !important; height: 17px !important;
vertical-align: text-bottom !important; vertical-align: text-bottom !important;
...@@ -1247,6 +1247,9 @@ a{ ...@@ -1247,6 +1247,9 @@ a{
padding-top:0px !important; padding-top:0px !important;
padding-left:4px !important; padding-left:4px !important;
border-radius: 3px; border-radius: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
} }
.ztree li span.button.noline_close{ .ztree li span.button.noline_close{
background-image: url(../../custom/images/disk_move_tree_expand_gray.png) !important; background-image: url(../../custom/images/disk_move_tree_expand_gray.png) !important;
...@@ -1511,6 +1514,106 @@ a{ ...@@ -1511,6 +1514,106 @@ a{
.disk_createShare_content>div>div{ .disk_createShare_content>div>div{
padding:0px; padding:0px;
} }
/***************选择人员的样式*********************/
.disk_selectUser_content{
padding:0;
}
.disk_selectUser_content>div{
padding:0;
height:600px;
}
.disk_selectUser_content>div:first-child{
border-right:1px solid #e5e5e5;
overflow: auto;
}
.disk_selectUser_content>div:first-child>div:first-child>img{
margin-top:200px;
width:100%;
}
.disk_selectUser_table_title+div{
text-align: center;
}
.disk_selectUser_table_title+div>img{
width: 34%;
margin-top: 147px;
}
.disk_selectUser_table_title{
height:50px;
background: #f9f9f9;
padding-left:15px;
padding-top:10px;
border-bottom:1px solid #e5e5e5;
}
.disk_selectUser_table_title>input{
height:30px;
width:200px;
display: inline;
padding-left:7px;
}
.disk_selectUser_table_title>span{
margin-left: 15px;
background: #50B6FF;
padding: 0px 14px;
height: 30px;
line-height: 30px;
vertical-align: top;
display: inline-block;
color: white;
border-radius: 4px;
cursor: pointer;
}
.disk_selectUser_table_title>span:hover{
background: #93D5FF;
}
.disk_selectUser_table_title>label{
color:red;
margin-left:15px;
display: none;
}
/*******************选择人员的表格***************/
.disk_selectUser_table{
padding:10px;
}
.disk_selectUser_table .fixed-table-body{
height: 411px;
}
.disk_selectUser_table table{
font-size:14px;
}
.disk_selectUser_table .pagination>.active>a,
.disk_selectUser_table .pagination>.active>a:focus,
.disk_selectUser_table .pagination>.active>a:hover,
.disk_selectUser_table .pagination>.active>span,
.disk_selectUser_table .pagination>.active>span:focus,
.disk_selectUser_table .pagination>.active>span:hover{
background: #50B6FF;
border-color: #50B6FF;
color:white;
}
.disk_selectUser_table .pagination>li>a:focus,
.disk_selectUser_table .pagination>li>a:hover,
.disk_selectUser_table .pagination>li>span:focus,
.disk_selectUser_table .pagination>li>span:hover,
.disk_selectUser_table .pagination>li>a,
.disk_selectUser_table .pagination>li>span{
color:#666
}
.disk_selectUser_table .btn-default:hover,
.disk_selectUser_table .btn-default.active,
.disk_selectUser_table .btn-default:active,
.disk_selectUser_table .open>.dropdown-toggle.btn-default{
background-color: #eee;
border-color: #ddd;
}
.disk_selectUser_table .dropdown-menu>.active>a,
.disk_selectUser_table .dropdown-menu>.active>a:focus,
.disk_selectUser_table .dropdown-menu>.active>a:hover{
background-color:#50B6FF;
}
.disk_selectUser_table .fixed-table-container input[type="radio"],
.disk_selectUser_table .fixed-table-container input[type="checkbox"]{
margin: 3px auto !important;
}
/*******************分享的样式*******************/ /*******************分享的样式*******************/
.share_cotainer{ .share_cotainer{
width:400px; width:400px;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepersonal/js/storePersonalModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepersonal/js/storePersonalModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/store/js/storeModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/store/js/storeModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storeshare/js/storeShareModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storeshare/js/storeShareModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/user/js/jwAppUserModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/userchoice/js/userchoiceModule.js" charset="utf-8"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepartook/js/storePartookModule.js" charset="utf-8"></script> <script type="text/javascript" src="${pageContext.request.contextPath}/jwapp/pages/storepartook/js/storePartookModule.js" charset="utf-8"></script>
<script src="${ctx}/jfcas04/js/disk.js"></script> <script src="${ctx}/jfcas04/js/disk.js"></script>
</head> </head>
...@@ -21,14 +21,14 @@ ...@@ -21,14 +21,14 @@
<div class="disk_container container-fluid"> <div class="disk_container container-fluid">
<div class="row disk_search"> <div class="row disk_search">
<div class="col-md-2"> <div class="col-md-2">
<div class="col-md-6" onclick="location.href='disk'"><img src="${ctx}/custom/images/disk_home.png" wdith="14" height="14" /><span>|</span></div> <div class="col-md-6" onclick="disk_back_home()"><img src="${ctx}/custom/images/disk_home.png" wdith="14" height="14" /><span>|</span></div>
<%-- <div class="col-md-3" id="disk_backFolder_prev" onclick="disk_backFolder_prev(this)"><img src="${ctx}/custom/images/disk_last.png" wdith="14" height="14" /><span>|</span></div> <%-- <div class="col-md-3" id="disk_backFolder_prev" onclick="disk_backFolder_prev(this)"><img src="${ctx}/custom/images/disk_last.png" wdith="14" height="14" /><span>|</span></div>
<div class="col-md-3" id="disk_backFolder_next" onclick="disk_backFolder_next(this)"><img src="${ctx}/custom/images/disk_next.png" wdith="14" height="14" /><span>|</span></div> --%> <div class="col-md-3" id="disk_backFolder_next" onclick="disk_backFolder_next(this)"><img src="${ctx}/custom/images/disk_next.png" wdith="14" height="14" /><span>|</span></div> --%>
<div id="disk_rubbish" class="col-md-6" onclick="disk_rubbish()"><img src="${ctx}/custom/images/disk_circle.png" wdith="14" height="14" /></div> <div id="disk_rubbish" class="col-md-6" onclick="disk_rubbish()"><img src="${ctx}/custom/images/disk_circle.png" wdith="14" height="14" /></div>
</div> </div>
<div class="col-md-7"> <div class="col-md-7">
<div class="disk_search_center"> <div class="disk_search_center">
<a href="disk"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> <a href="javascript:disk_back_home()"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a>
<!-- <a onclick="disk_backFolder(this)"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> --> <!-- <a onclick="disk_backFolder(this)"><span class="glyphicon glyphicon-folder-close"></span><span>我的网盘</span><span class="glyphicon glyphicon-triangle-right"></span></a> -->
</div> </div>
</div> </div>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<div class="col-md-12 disk_content_header"> <div class="col-md-12 disk_content_header">
<div class="col-md-11"> <div class="col-md-11">
<a href="javascript:disk_uploadFolder()"><img src="${ctx}/custom/images/disk_upload.png" width="16" height="16" /><span>上传文件</span></a> <a href="javascript:disk_uploadFolder()"><img src="${ctx}/custom/images/disk_upload.png" width="16" height="16" /><span>上传文件</span></a>
<a class="disk_document_default" href="javascript:disk_enjoyFolder()"><img src="${ctx}/custom/images/disk_gongxiang.png" width="16" height="16" /><span>共享文件</span></a> <a class="disk_document_default" href="javascript:disk_enjoyFolder()"><img src="${ctx}/custom/images/disk_gongxiang.png" width="16" height="16" /><span>共享</span></a>
<a href="javascript:disk_addFolder()"><img src="${ctx}/custom/images/disk_add.png" width="16" height="16" /><span>新建文件夹</span></a> <a href="javascript:disk_addFolder()"><img src="${ctx}/custom/images/disk_add.png" width="16" height="16" /><span>新建文件夹</span></a>
<a class="disk_document_default" href="javascript:disk_deleteFolder()"><img src="${ctx}/custom/images/disk_delete.png" width="16" height="16" /><span>删除</span></a> <a class="disk_document_default" href="javascript:disk_deleteFolder()"><img src="${ctx}/custom/images/disk_delete.png" width="16" height="16" /><span>删除</span></a>
<a class="disk_document_default" href="javascript:disk_shareFolder()"><img src="${ctx}/custom/images/disk_share.png" width="16" height="16" /><span>分享</span></a> <a class="disk_document_default" href="javascript:disk_shareFolder()"><img src="${ctx}/custom/images/disk_share.png" width="16" height="16" /><span>分享</span></a>
...@@ -59,85 +59,8 @@ ...@@ -59,85 +59,8 @@
<div class="col-md-1"><span onclick="disk_content_toggle(this)" class="disk_content_toggleBtn glyphicon glyphicon-th-large" title="切换到列表模式"></span></div> <div class="col-md-1"><span onclick="disk_content_toggle(this)" class="disk_content_toggleBtn glyphicon glyphicon-th-large" title="切换到列表模式"></span></div>
</div> </div>
<!-- 缩略图 --> <!-- 缩略图 -->
<div class="col-md-12 disk_content_lump"> <div class="col-md-12 disk_content_lump"></div>
<%-- <div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module1.png"/>
<div>公司文件</div>
<input style="display:none;" type="text" class="form-control" value="公司文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module2.png"/>
<div>共享文件</div>
<input style="display:none;" type="text" class="form-control" value="共享文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module3.png"/>
<div>我的文件</div>
<input style="display:none;" type="text" class="form-control" value="我的文件"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_module4.png"/>
<div>我的共享</div>
<input style="display:none;" type="text" class="form-control" value="我的共享"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_rar.png"/>
<div>压缩文件夹</div>
<input style="display:none;" type="text" class="form-control" value="压缩文件夹"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_word.png"/>
<div>我的文档</div>
<input style="display:none;" type="text" class="form-control" value="我的文档"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_excel.png"/>
<div>我的EXCEL</div>
<input style="display:none;" type="text" class="form-control" value="我的EXCEL"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_ppt.png"/>
<div>我的PPT</div>
<input style="display:none;" style="display:none;" type="text" class="form-control" value="我的PPT"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_pdf.png"/>
<div>我的PDF</div>
<input style="display:none;" type="text" class="form-control" value="我的PDF"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_uploadImg.png"/>
<div>超级狙击手.png</div>
<input style="display:none;" type="text" class="form-control" value="超级狙击手.png"/>
</div>
</div>
<div class="col-md-2">
<div>
<img src="${ctx}/custom/images/disk_unknow.png"/>
<div>disk_unknow.bsl</div>
<input style="display:none;" type="text" class="form-control" value="disk_unknow.bsl"/>
</div>
</div> --%>
</div>
<!-- 列表 --> <!-- 列表 -->
<div class="disk_content_list disk_table disk_table_height" style="display:none;margin-bottom:20px;" > <div class="disk_content_list disk_table disk_table_height" style="display:none;margin-bottom:20px;" >
<table id="disk_content_list"></table> <table id="disk_content_list"></table>
......
...@@ -101,6 +101,7 @@ function init_disk_createLump(lump_json){ ...@@ -101,6 +101,7 @@ function init_disk_createLump(lump_json){
} }
else{ else{
$create_img.attr('src',ctx+'/photo/photo.jsp?ls_photo='+lump_json.FILE_SAVE_PATH+lump_json.FILE_SVAE_NAME); $create_img.attr('src',ctx+'/photo/photo.jsp?ls_photo='+lump_json.FILE_SAVE_PATH+lump_json.FILE_SVAE_NAME);
$create_img.css('border-radius','5px');
} }
var $create_div = $('<div></div>').text(lump_json.FILE_NAME); var $create_div = $('<div></div>').text(lump_json.FILE_NAME);
if($('#disk_rubbish').data('rubbish')){ if($('#disk_rubbish').data('rubbish')){
...@@ -455,7 +456,6 @@ function init_disk_infos(delete_flag,lump_data){ ...@@ -455,7 +456,6 @@ function init_disk_infos(delete_flag,lump_data){
]; ];
results = default_infos.concat(results); results = default_infos.concat(results);
} }
return results; return results;
} }
...@@ -737,7 +737,6 @@ function disk_content_toggle(handler){ ...@@ -737,7 +737,6 @@ function disk_content_toggle(handler){
else{ else{
infos = init_disk_infos('0',lump_data); infos = init_disk_infos('0',lump_data);
} }
//绑定一个data来区别切换的状态toggleList==true为切换到了list //绑定一个data来区别切换的状态toggleList==true为切换到了list
if(!$(handler).data('toggleList')){ if(!$(handler).data('toggleList')){
//列表形式 //列表形式
...@@ -761,6 +760,8 @@ function disk_content_toggle(handler){ ...@@ -761,6 +760,8 @@ function disk_content_toggle(handler){
else{ else{
//缩略图形式 //缩略图形式
$(handler).data('toggleList',false); $(handler).data('toggleList',false);
//修改分享码的shareCode属性值
$('#disk_shareCode').data('shareCode',false);
$(handler).attr('title','切换到列表模式'); $(handler).attr('title','切换到列表模式');
$(handler).removeClass('glyphicon-th-list').addClass('glyphicon-th-large'); $(handler).removeClass('glyphicon-th-list').addClass('glyphicon-th-large');
//先清空容器 //先清空容器
...@@ -828,7 +829,7 @@ function init_disk_enjoy_list(infos){ ...@@ -828,7 +829,7 @@ function init_disk_enjoy_list(infos){
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
else{ else{
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img style="border-radius:5px;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
} }
}, { }, {
...@@ -948,7 +949,7 @@ function init_disk_list(infos){ ...@@ -948,7 +949,7 @@ function init_disk_list(infos){
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
else{ else{
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img style="border-radius:5px" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
} }
}, { }, {
...@@ -1059,7 +1060,7 @@ function init_disk_rubbish_list(infos){ ...@@ -1059,7 +1060,7 @@ function init_disk_rubbish_list(infos){
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
else{ else{
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img style="border-radius:5px;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control" onblur="disk_input_blur(this)" /></div></div>';
} }
} }
}, { }, {
...@@ -1247,52 +1248,12 @@ function disk_backFolder(handler){ ...@@ -1247,52 +1248,12 @@ function disk_backFolder(handler){
//移动文件 //移动文件
function disk_moveFolder(handler){ function disk_moveFolder(handler){
//右键移动文件时,如果是不能点击时 disk_confirm(handler,'移动文件',null,function(list_rows,uuids,list_data){
if(handler&&$(handler).hasClass('disk_menu_noClick')){
return;
}
var rows;
//如果是列表时
if($('.disk_content_toggleBtn').data('toggleList')){
//如果是列表时
rows = $('#disk_content_list').bootstrapTable('getSelections');
}
else{
//如果是块状时
rows = $('.disk_content_lump').find('.disk_content_lump_click');
}
if(rows.length==0){
var txt = "请选择要移动的文件!!!";
var option = {
title: "移动提示",
btn:parseInt("0001",2)
}
window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.confirm,option);
return;
}
//获得选中的数据
var rows_data = [];
for(var i=0;i<rows.length;i++ ){
if($(rows[i]).data('lump_data')){
//获得块状的数据
rows_data.push($(rows[i]).data('lump_data'));
}
else{
//获得列表的数据
rows_data.push(rows[i]);
}
}
//console.log(rows_data)
var strVar = ""; var strVar = "";
strVar += "<div style=\"width:268px;padding:0px;border-radius:5px;overflow:hidden;\">\n"; strVar += "<div style=\"width:650px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>移动文件<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n"; strVar += " <div class=\"disk_move_title\"><span>移动文件<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n";
strVar += " <div class=\"disk_move_search\"><input placeholder=\"搜索文件夹\" type=\"text\" ><span onclick=\"alert('搜索')\">搜索</span><\/div>\n"; strVar += " <div class=\"disk_move_search\"><input id=\"disk_move_key\" placeholder=\"搜索文件夹\" type=\"text\" ><span id=\"disk_move_btn\">搜索</span><\/div>\n";
strVar += " <div id=\"disk_move_tree\" style=\"height:220px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n"; strVar += " <div id=\"disk_move_tree\" style=\"height:300px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <div class=\"disk_move_btn\">\n"; strVar += " <div class=\"disk_move_btn\">\n";
strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n"; strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n";
strVar += " <\/div>\n"; strVar += " <\/div>\n";
...@@ -1314,12 +1275,15 @@ function disk_moveFolder(handler){ ...@@ -1314,12 +1275,15 @@ function disk_moveFolder(handler){
//绑定确定按钮的操作 //绑定确定按钮的操作
$('.disk_move_btn>span').eq(0).bind('click',function(){ $('.disk_move_btn>span').eq(0).bind('click',function(){
disk_moveFolder_save(rows_data); disk_moveFolder_save(list_data);
}) })
//初始化文件目录 //初始化文件目录
init_disk_move_tree(rows_data); init_disk_move_tree(list_data);
//树的查询功能
$.jfbrother.fuzzySearch('disk_move_tree','#disk_move_key',true,true,'#disk_move_btn');
});
} }
//文件移动的保存 //文件移动的保存
...@@ -1363,19 +1327,23 @@ function disk_moveFolder_save(lump_data_list){ ...@@ -1363,19 +1327,23 @@ function disk_moveFolder_save(lump_data_list){
//选择共享人之后的保存,做了多选文件的共享(暂时只能单文件) //选择共享人之后的保存,做了多选文件的共享(暂时只能单文件)
function disk_enjoyUser_save(lump_data){ function disk_enjoyUser_save(lump_data){
var treeObj = $.fn.zTree.getZTreeObj("disk_enjoyUser_tree"); //选择人员数据
var nodes = treeObj.getSelectedNodes(); var infos = $('#disk_selectUser_list').bootstrapTable('getSelections');
var query = {}; var query = {};
var uuids = ''; var uuids = '';
var userIds = ''; var userIds = '';
for(var i = 0 ; i< lump_data.length;i++){ for(var i = 0 ; i< lump_data.length;i++){
uuids = uuids + lump_data[i].UUID+','; uuids = uuids + lump_data[i].UUID+',';
} }
for(var i = 0 ; i< nodes.length;i++){ for(var i = 0 ; i< infos.length;i++){
userIds = userIds + nodes[i].USER_ID+','; userIds = userIds + infos[i].USER_ID+',';
} }
uuids = uuids.substring(0, uuids.length-1); uuids = uuids.substring(0, uuids.length-1);
userIds = userIds.substring(0, userIds.length-1); userIds = userIds.substring(0, userIds.length-1);
if(userIds == ''){
$('.disk_selectUser_table_title>label').fadeIn().delay(3000).fadeOut();
return;
}
query.FIELD_CODE = uuids; query.FIELD_CODE = uuids;
query.FIELD_USER_ID = userIds; query.FIELD_USER_ID = userIds;
var result = storePersonalModule.storePersonalActAction.shareStorePersonal(query); var result = storePersonalModule.storePersonalActAction.shareStorePersonal(query);
...@@ -1421,10 +1389,6 @@ function init_disk_move_tree(rows_data){ ...@@ -1421,10 +1389,6 @@ function init_disk_move_tree(rows_data){
init_disk_select_fileImg(ztreeData[i]); init_disk_select_fileImg(ztreeData[i]);
} }
//还要做一步过滤
//1.把自身及以下文件过滤掉
//2.所有节点不是文件夹的过滤掉
var zTreeObj; var zTreeObj;
// zTree 的参数配置,深入使用请参考 API 文档(setting 配置详解) // zTree 的参数配置,深入使用请参考 API 文档(setting 配置详解)
var setting = { var setting = {
...@@ -1533,23 +1497,12 @@ function disk_custom_moveTree_data_filter(lump_data_list,ztreeData){ ...@@ -1533,23 +1497,12 @@ function disk_custom_moveTree_data_filter(lump_data_list,ztreeData){
//初始化共享人的树 //初始化共享人的树
function init_disk_enjoyUser_tree(rows_data){ function init_disk_enjoyUser_tree(rows_data){
/*var result = jwAppUserModel.jwAppsUserDataAction.listALLUserUnit();*/ var ztreeData = userchoiceModule.userchoiceDataAction.listUnitAll().rowSet;
var ztreeData;
$.ajax({
url:'userchoiceData_listUser',
type:'post',
async:false,
success:function(data){
ztreeData = data.rowSet;
}
})
for(var i = 0 ;i<ztreeData.length;i++){ for(var i = 0 ;i<ztreeData.length;i++){
ztreeData[i].icon = 'custom/images/disk_enjoy_users.png'; ztreeData[i].icon = 'custom/images/disk_selectUser_unit.png';
//所有都显示文件夹的样子 //所有都显示文件夹的样子
//ztreeData[i].isParent=true; //ztreeData[i].isParent=true;
} }
console.log(ztreeData)
//还要做一步过滤 //还要做一步过滤
//1.把自身及以下文件过滤掉 //1.把自身及以下文件过滤掉
...@@ -1560,23 +1513,19 @@ function init_disk_enjoyUser_tree(rows_data){ ...@@ -1560,23 +1513,19 @@ function init_disk_enjoyUser_tree(rows_data){
var setting = { var setting = {
callback : { callback : {
onClick : function(event, treeId, treeNode) { onClick : function(event, treeId, treeNode) {
//$('#' + treeNode.tId).find('.curSelectedNode').removeClass('curSelectedNode'); //查询
//如果是父节点时,则取消选中状态,但是要添加一个选中样式 init_disk_enjoyUser_list_search();
if (treeNode.isParent) {
zTreeObj.cancelSelectedNode(treeNode);
$(event.target).addClass('curSelectedNode');
}
} }
}, },
data : { data : {
simpleData : { simpleData : {
enable : true, enable : true,
idKey : "USER_ID", idKey : "UNIT_ID",
pIdKey : "PARENT_ID", pIdKey : "PARENT_UNITID",
rootPId : 0 rootPId : "A"
}, },
key: { key: {
name: "USER_NAME" name: "NAME"
} }
}, },
view : { view : {
...@@ -1585,25 +1534,123 @@ function init_disk_enjoyUser_tree(rows_data){ ...@@ -1585,25 +1534,123 @@ function init_disk_enjoyUser_tree(rows_data){
//双击节点时,是否自动展开父节点的标识,true / false 分别表示双击节点 切换 / 不切换 展开状态 //双击节点时,是否自动展开父节点的标识,true / false 分别表示双击节点 切换 / 不切换 展开状态
dblClickExpand : true, dblClickExpand : true,
//点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。 //点击节点时,按下 Ctrl 或 Cmd 键是否允许取消选择操作。
autoCancelSelected : true, autoCancelSelected : false,
//是否显示连线 //是否显示连线
showLine: false showLine: false
} }
}; };
// zTree 的数据属性,深入使用请参考 API 文档(zTreeNode 节点数据详解) // zTree 的数据属性,深入使用请参考 API 文档(zTreeNode 节点数据详解)
zTreeObj = $.fn.zTree.init($("#disk_enjoyUser_tree"), setting, ztreeData); zTreeObj = $.fn.zTree.init($("#disk_enjoyUser_tree"), setting, ztreeData);
//展开根节点 //展开根节点下面的第一层
/*function filter(node) { function filter(node) {
return (node.pid == 0); return (node.UNIT_ID == 0);
} }
var filter_nodes = zTreeObj.getNodesByFilter(filter); // 查找根节点集合 var filter_nodes = zTreeObj.getNodesByFilter(filter); // 查找根节点集合
for (var i = 0; i < filter_nodes.length; i++) { for (var i = 0; i < filter_nodes.length; i++) {
zTreeObj.expandNode(filter_nodes[i], true, true, true); zTreeObj.expandNode(filter_nodes[i], true, false, true);
}*/ }
//去掉加载的效果
$('#disk_enjoyUser_tree').prev().remove();
}
//初始化某个单位的人员列表
function init_disk_enjoyUser_list(rows_data){
/*var infos = userchoiceModule.userchoiceDataAction.listUser().rowSet;
console.log(infos)*/
$('#disk_selectUser_list').bootstrapTable('destroy').bootstrapTable({
/* showColumns:true,
showToggle:true,
showRefresh:true,
search:true, */
url: ctx+"/userchoiceData_listUser", // 获取表格数据的url
/*data:infos,*/
cache: false, // 设置为 false 禁用 AJAX 数据缓存, 默认为true
/* striped: true, //表格显示条纹,默认为false */
sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*)
responseHandler: function(res) {
return {
"total": res.total,//总页数
"rows": res.rowSet //数据
};
},//加载服务器数据之前的处理程序,可以用来格式化数据。 参数:res为从服务器请求到的数据。
pagination: true, // 在表格底部显示分页组件,默认false
pageList: [5,10,15,20], // 设置页面可以显示的数据条数
pageSize: 10, // 页面数据条数
pageNumber: 1, // 首页页码,
uniqueId:'UNIT_ID',
clickToSelect:true,//True to select checkbox or radiobox when the column is clicked.
queryParams:function(params){
var temp = { //这里的键的名字和控制器的变量名必须一直,这边改动,控制器也需要改成一样的
//limit: params.limit, //页面大小
//offset: params.offset, //页码
rows:this.pageSize,
FIELD_USER_NAME:$('#disk_enjoyUser_list_search_key').val(),
FIELD_UNIT_ID:$.fn.zTree.getZTreeObj("disk_enjoyUser_tree").getSelectedNodes()[0]?$.fn.zTree.getZTreeObj("disk_enjoyUser_tree").getSelectedNodes()[0].UUID:''
/* projectId: $("#projectId").val(),
requirement_Id:$("#requirement_Id").val(),
length: 6 */
};
return temp;
},
columns: [
{
checkbox: true, // 显示一个勾选框
align: 'center', // 居中显示
valign: 'middle'
},{
field: 'ID_NUMBER',
title: '人员账号',
align: 'left',
valign: 'middle'
}, {
field: 'REAL_NAME',
title: '姓名',
align: 'center',
valign: 'middle'/*,
order:'asc',
sortable:'true'*/
},{
field: 'USER_SEX',
title: '性别',
align: 'center',
valign: 'middle',
formatter: function (value, row, index) {
//0无性别,1为男,2为女
if(value=='1'){
return '男';
}
else if(value == '2'){
return '女';
}
else{
return '-';
}
}
},{
field: 'MOBILE',
title: '手机号',
align: 'center',
valign: 'middle'
},{
field: 'EMAIL',
title: '邮箱',
align: 'center',
valign: 'middle'
}
],
onLoadSuccess:function(){
//去掉加载的效果
$('.disk_selectUser_content>div').eq(1).children('div').children('img').parent('div').remove();
}
})
}
//选择人员的查询功能
function init_disk_enjoyUser_list_search(){
$("#disk_selectUser_list").bootstrapTable('selectPage',1);
} }
//初始化文件的图片 //初始化文件的图片
...@@ -2471,80 +2518,67 @@ function disk_share_copy(){ ...@@ -2471,80 +2518,67 @@ function disk_share_copy(){
//共享文件 //共享文件
function disk_enjoyFolder(handler){ function disk_enjoyFolder(handler){
//右键共享文件时,如果是不能点击时 disk_confirm(handler,'共享',null,function(list_rows,uuids,list_data){
if(handler&&$(handler).hasClass('disk_menu_noClick')){
return;
}
var rows;
//如果是列表时
if($('.disk_content_toggleBtn').data('toggleList')){
//如果是列表时
rows = $('#disk_content_list').bootstrapTable('getSelections');
}
else{
//如果是块状时
rows = $('.disk_content_lump').find('.disk_content_lump_click');
}
if(rows.length==0){
var txt = "请选择要共享的文件!!!";
var option = {
title: "共享提示",
btn:parseInt("0001",2)
}
window.wxc.xcConfirm(txt, window.wxc.xcConfirm.typeEnum.confirm,option);
return;
}
//获得选中的数据
var rows_data = [];
for(var i=0;i<rows.length;i++ ){
if($(rows[i]).data('lump_data')){
//获得块状的数据
rows_data.push($(rows[i]).data('lump_data'));
}
else{
//获得列表的数据
rows_data.push(rows[i]);
}
}
var strVar = ""; var strVar = "";
strVar += "<div style=\"width:268px;padding:0px;border-radius:5px;overflow:hidden;\">\n"; strVar += "<div style=\"width:900px;padding:0px;border-radius:5px;overflow:hidden;\">\n";
strVar += " <div class=\"disk_move_title\"><span>选择要共享的人<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div>\n"; strVar += " <div class=\"disk_move_title\"><span>选择人员<\/span><span onclick=\"$.fancybox.close()\" class=\"glyphicon glyphicon-remove\"><\/span><\/div> \n";
strVar += " <div class=\"disk_move_search\"><input placeholder=\"搜索人员\" type=\"text\" ><span onclick=\"alert('搜索')\">搜索</span><\/div>\n"; strVar += " <div class=\"col-md-12 disk_selectUser_content\">\n";
strVar += " <div id=\"disk_enjoyUser_tree\" style=\"height:220px;overflow:auto;\" class=\"ztree disk_move_tree\"><\/div>\n"; strVar += " <div class=\"col-md-3\">\n";
strVar += " <div class=\"disk_move_btn\">\n"; strVar += " <div><img src=\"custom/images/loading.gif\"/><\/div>\n";
strVar += " <span>确定<\/span><span onclick=\"$.fancybox.close()\">取消<\/span>\n"; strVar += " <div id=\"disk_enjoyUser_tree\" class=\"ztree disk_move_tree\"><\/div>\n";
strVar += " <\/div>\n";
strVar += " <div class=\"col-md-9\">\n";
strVar += " <div class=\"disk_selectUser_table_title\">\n";
strVar += " <input id=\"disk_enjoyUser_list_search_key\" type=\"text\" class=\"form-control\" placeholder=\"请输入关键字\" /><span onclick=\"init_disk_enjoyUser_list_search(this)\">查询<\/span><span>确定<\/span><label>至少要选择一个人员...<\/label>\n";
strVar += " <\/div>\n";
strVar += " <div><img src=\"custom/images/loading.gif\"/><\/div>\n";
strVar += " <div class=\"disk_selectUser_table\">\n";
strVar += " <table id=\"disk_selectUser_list\"><\/table>\n";
strVar += " <\/div>\n";
strVar += " <\/div> \n";
strVar += " <\/div>\n";
strVar += " <\/div>\n"; strVar += " <\/div>\n";
strVar += "<\/div>\n";
$.fancybox.open(strVar,{ $.fancybox.open(strVar,{
//显示之前触发 //显示之前触发
beforeShow : function( instance, current ) { beforeShow : function( instance, current ) {
//去掉fancybox原来的间距 //去掉fancybox原来的间距
/*$('.fancybox-opened').css('width','268px');*/
$('.fancybox-skin').css('padding','0'); $('.fancybox-skin').css('padding','0');
}, },
//显示之后触发 //显示之后触发
afterShow : function( instance, current ){ afterShow : function( instance, current ){
//隐藏右上角的X //隐藏右上角的X
$('.fancybox-close').hide(); $('.fancybox-close').hide();
//初始化单位的目录
init_disk_enjoyUser_tree(list_data);
//初始化某个单位的人员列表
init_disk_enjoyUser_list(list_data);
//搜索框
$('#disk_enjoyUser_list_search_key').bind('keydown',function(e){
var ev = document.all ? window.event : e;
if (ev.keyCode == 13) {
$(this).next().click();
} }
}); })
$('.disk_move_btn>span').eq(0).bind('click',function(){ $('#disk_enjoyUser_list_search_key').next().next().bind('click',function(){
disk_enjoyUser_save(rows_data); disk_enjoyUser_save(list_data);
}) })
//初始化文件目录 }
init_disk_enjoyUser_tree(rows_data); });
});
} }
//我的分享码 //我的分享码
function disk_shareCode(){ function disk_shareCode(){
$('#disk_shareCode').data('shareCode',true); $('#disk_shareCode').data('shareCode',true);
$('.disk_content_toggleBtn').data('toggleList',true);
//删掉目录导航栏 //删掉目录导航栏
$('.disk_search_center>a').eq(0).nextAll().remove(); $('.disk_search_center>a').eq(0).nextAll().remove();
//隐藏切换视图的功能 //隐藏切换视图的功能
...@@ -2647,7 +2681,7 @@ function init_disk_shareCode_list(infos){ ...@@ -2647,7 +2681,7 @@ function init_disk_shareCode_list(infos){
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control"/></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control"/></div></div>';
} }
else{ else{
return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control"/></div></div>'; return '<div class="row disk_content_list_fileName"><div class="col-md-2"><img style="border-radius:5px;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" ></div><div class="col-md-10" data-lump_data=\''+JSON.stringify(row)+'\'><div>'+ value +'</div><input type="text" value=\''+ value +'\' class="form-control"/></div></div>';
} }
} }
}, { }, {
...@@ -2708,3 +2742,35 @@ function init_disk_shareCode_list(infos){ ...@@ -2708,3 +2742,35 @@ function init_disk_shareCode_list(infos){
}) })
} }
//返回主页面效果
function disk_back_home(){
var infos = init_disk_infos('0');
//清除所有的导航
$('.disk_search_center>a').eq(0).nextAll('a').remove();
//切换操作按钮
$('.disk_content_header>div:first-child>a').show();
$('.disk_rubbishBtn,.disk_shareCodeBtn,.disk_enjoyBtn').hide();
//初始化其他切换的data属性标志
var shareCodeFlag = $('#disk_shareCode').data('shareCode');
$('#disk_shareCode').data('shareCode',false);
$('#disk_rubbish').data('rubbish',false);
//显示切换视图的功能,防止是从分享码切过来时隐藏了切换视图的功能
$('.disk_content_toggleBtn').show();
//重新渲染数据
if($('.disk_content_toggleBtn').data('toggleList')||shareCodeFlag){
//如果是列表时
init_disk_list(infos);
}
else{
//如果是块状时
//根据一个json数据去渲染块状
//渲染块状
//先清空容器
$('.disk_content_lump').html('');
for(var i = 0 ; i<infos.length;i++){
init_disk_createLump(infos[i]);
}
}
}
...@@ -1514,7 +1514,7 @@ function init_index_color(color) { ...@@ -1514,7 +1514,7 @@ function init_index_color(color) {
palette : [ palette : [
[ "rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/ [ "rgb(0, 0, 0)", "rgb(67, 67, 67)", "rgb(102, 102, 102)", /*"rgb(153, 153, 153)","rgb(183, 183, 183)",*/
"rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ "rgb(255, 255, 255)" ], "rgb(204, 204, 204)", "rgb(217, 217, 217)", /*"rgb(239, 239, 239)", "rgb(243, 243, 243)",*/ /*"rgb(255, 255, 255)"*/ ],
[ "rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)", [ "rgb(152, 0, 0)", "rgb(255, 0, 0)", "rgb(255, 153, 0)", "rgb(255, 255, 0)", "rgb(0, 255, 0)",
"rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)" ], "rgb(0, 255, 255)", "rgb(74, 134, 232)", "rgb(0, 0, 255)", "rgb(153, 0, 255)", "rgb(255, 0, 255)" ],
[ "rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)", [ "rgb(230, 184, 175)", "rgb(244, 204, 204)", "rgb(252, 229, 205)", "rgb(255, 242, 204)", "rgb(217, 234, 211)",
......
...@@ -121,6 +121,7 @@ function init_share_detail(infos){ ...@@ -121,6 +121,7 @@ function init_share_detail(infos){
if(infos.length==1){ if(infos.length==1){
if(!infos[0].fileImg){ if(!infos[0].fileImg){
$('.shareDetail_container_header>img').attr('src',ctx+'/photo/photo.jsp?ls_photo='+infos[0].FILE_SAVE_PATH+infos[0].FILE_SVAE_NAME); $('.shareDetail_container_header>img').attr('src',ctx+'/photo/photo.jsp?ls_photo='+infos[0].FILE_SAVE_PATH+infos[0].FILE_SVAE_NAME);
$('.shareDetail_container_header>img').css('border-radius','5px');
} }
else{ else{
$('.shareDetail_container_header>img').attr('src',ctx+'/custom/images/'+infos[0].fileImg); $('.shareDetail_container_header>img').attr('src',ctx+'/custom/images/'+infos[0].fileImg);
...@@ -200,7 +201,7 @@ function init_shareDetail_list(infos){ ...@@ -200,7 +201,7 @@ function init_shareDetail_list(infos){
return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>'; return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/custom/images/'+ row.fileImg +'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>';
} }
else{ else{
return '<img style="margin-right:10px;vertical-align:top;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>'; return '<img style="border-radius:5px;margin-right:10px;vertical-align:top;" src="'+ctx+'/photo/photo.jsp?ls_photo='+row.FILE_SAVE_PATH+row.FILE_SVAE_NAME+'" height="44" width="61"><span style="margin-top:12px;display:inline-block;">'+value+'</span>';
} }
} }
}, { }, {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
return hostname; return hostname;
} }
//登录中心url //登录中心url
var loginCenter = "http://localhost:8080/cas-jfsso"; var loginCenter = "http://cas.jfbrother.com/cas-jfsso";
var loginUrl = loginCenter + "/login?service=" + getUrl(); var loginUrl = loginCenter + "/login?service=" + getUrl();
//alert("开始登出:"+loginUrl); //alert("开始登出:"+loginUrl);
......
...@@ -70,10 +70,6 @@ ...@@ -70,10 +70,6 @@
<action name="office" class="com.jw.app.portlet.action.viewAction" method="office"> <action name="office" class="com.jw.app.portlet.action.viewAction" method="office">
<result name="office">/jfcas04/office.jsp</result> <result name="office">/jfcas04/office.jsp</result>
</action> </action>
<!-- 办事大厅的详情页 -->
<action name="officeDetail" class="com.jw.app.portlet.action.viewAction" method="officeDetail">
<result name="officeDetail">/jfcas04/officeDetail.jsp</result>
</action>
<action name="userchoiceData_*" class="com.jw.app.userchoice.action.dataAction" method="{1}"> <action name="userchoiceData_*" class="com.jw.app.userchoice.action.dataAction" method="{1}">
<result name="json" type="json"> <result name="json" type="json">
......
...@@ -39,7 +39,7 @@ public class AttendanceBusinessImpl implements AttendanceBusiness { ...@@ -39,7 +39,7 @@ public class AttendanceBusinessImpl implements AttendanceBusiness {
entity.put("USER_ID", SessionUtil.getEmid()); entity.put("USER_ID", SessionUtil.getEmid());
} }
if(entity.get("USER_NAME")==null){ if(entity.get("USER_NAME")==null){
entity.put("USER_NAME", SessionUtil.getEmname()); entity.put("USER_NAME", SessionUtil.getCode());
} }
if(entity.get("DEPT_ID")==null){ if(entity.get("DEPT_ID")==null){
entity.put("DEPT_ID", SessionUtil.getEmdepart()); entity.put("DEPT_ID", SessionUtil.getEmdepart());
......
...@@ -38,7 +38,7 @@ public class BgmkBusinessImpl implements BgmkBusiness { ...@@ -38,7 +38,7 @@ public class BgmkBusinessImpl implements BgmkBusiness {
entity.put("CREATE_TIME", new Date()); entity.put("CREATE_TIME", new Date());
} }
if(entity.get("USER_NAME")==null){ if(entity.get("USER_NAME")==null){
entity.put("USER_NAME", SessionUtil.getEmname()); entity.put("USER_NAME", SessionUtil.getCode());
} }
if(entity.get("CREATOR_ID")==null){ if(entity.get("CREATOR_ID")==null){
entity.put("CREATOR_ID", SessionUtil.getCode()); entity.put("CREATOR_ID", SessionUtil.getCode());
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<mapper namespace="com.jw.app.business.bgmk.bgmkDAO"> <mapper namespace="com.jw.app.business.bgmk.bgmkDAO">
<insert id="insert_bgmk" parameterType="map"> <insert id="insert_bgmk" parameterType="map">
insert into C_T_WORK_BG( insert into WORK_BG(
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="infoListKey" item="key"> <foreach collection="infoListKey" item="key">
${key}, ${key},
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<update id="update_bgmk" parameterType="map"> <update id="update_bgmk" parameterType="map">
<![CDATA[ <![CDATA[
update C_T_WORK_BG set update WORK_BG set
]]> ]]>
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="info" item="info"> <foreach collection="info" item="info">
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
<delete id="delete_bgmk" parameterType="list"> <delete id="delete_bgmk" parameterType="list">
<![CDATA[ <![CDATA[
delete from C_T_WORK_BG where UUID IN delete from WORK_BG where UUID IN
]]> ]]>
<foreach collection="list" item="UUID" open="(" separator="," <foreach collection="list" item="UUID" open="(" separator=","
close=")"> close=")">
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<select id="list_bgmk" parameterType="map" resultType="upperCaseKeyMap"> <select id="list_bgmk" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[ <![CDATA[
select f.* select f.*
from C_T_WORK_BG f where 1=1 from WORK_BG f where 1=1
]]> ]]>
<if test="UUID != null and UUID != ''"> <if test="UUID != null and UUID != ''">
and f.UUID = #{UUID} and f.UUID = #{UUID}
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<select id="listCount_bgmk" parameterType="map" resultType="int"> <select id="listCount_bgmk" parameterType="map" resultType="int">
<![CDATA[ <![CDATA[
select count(*) c from C_T_WORK_BG f where 1=1 select count(*) c from WORK_BG f where 1=1
]]> ]]>
<if test="UUID != null and UUID != ''"> <if test="UUID != null and UUID != ''">
and f.UUID = #{UUID} and f.UUID = #{UUID}
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
<select id="list_bgmk_employee" parameterType="map" resultType="upperCaseKeyMap"> <select id="list_bgmk_employee" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[ <![CDATA[
select f.* select f.*
from C_T_WORK_BG f where 1=1 from WORK_BG f where 1=1
]]> ]]>
<if test="UUID != null and UUID != ''"> <if test="UUID != null and UUID != ''">
and f.UUID = #{UUID} and f.UUID = #{UUID}
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<select id="listCount_bgmk_employee" parameterType="map" resultType="int"> <select id="listCount_bgmk_employee" parameterType="map" resultType="int">
<![CDATA[ <![CDATA[
select count(*) c from C_T_WORK_BG f where 1=1 select count(*) c from WORK_BG f where 1=1
]]> ]]>
<if test="UUID != null and UUID != ''"> <if test="UUID != null and UUID != ''">
and f.UUID = #{UUID} and f.UUID = #{UUID}
......
package com.jw.app.business.friendlink; package com.jw.app.business.friendlink;
import java.text.BreakIterator;
import java.text.ParseException; import java.text.ParseException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
...@@ -61,6 +62,7 @@ public class FriendLinkBusinessImpl implements FriendLinkBusiness { ...@@ -61,6 +62,7 @@ public class FriendLinkBusinessImpl implements FriendLinkBusiness {
int count = friendlinkDAO.list_count_friendlink(query); int count = friendlinkDAO.list_count_friendlink(query);
if(count>=8){ if(count>=8){
info.put("ERROR", "-1"); info.put("ERROR", "-1");
throw new BusinessException("");
} }
// 表示新增 // 表示新增
info.put("UUID", UUID.randomUUID().toString()); info.put("UUID", UUID.randomUUID().toString());
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<select id="list_friendlink" parameterType="map" resultType="upperCaseKeyMap"> <select id="list_friendlink" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[ <![CDATA[
select * from b_t_ufp_friendlink t select * from friendlink t
]]> ]]>
<include refid="where" /> <include refid="where" />
ORDER BY t.sort ORDER BY t.sort
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<select id="list_count_friendlink" parameterType="map" resultType="int"> <select id="list_count_friendlink" parameterType="map" resultType="int">
<![CDATA[ <![CDATA[
select count(*) from b_t_ufp_friendlink t select count(*) from friendlink t
]]> ]]>
<include refid="where" /> <include refid="where" />
ORDER BY t.sort ORDER BY t.sort
</select> </select>
<insert id="insert_friendlink" parameterType="java.util.List"> <insert id="insert_friendlink" parameterType="java.util.List">
insert into b_t_ufp_friendlink( insert into friendlink(
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field"> <foreach collection="list" item="field">
${field.key}, ${field.key},
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</insert> </insert>
<update id="update_friendlink" parameterType="java.util.List"> <update id="update_friendlink" parameterType="java.util.List">
update b_t_ufp_friendlink set update friendlink set
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field"> <foreach collection="list" item="field">
${field.key}=#{field.value}, ${field.key}=#{field.value},
...@@ -63,6 +63,6 @@ ...@@ -63,6 +63,6 @@
</update> </update>
<delete id="delete_friendlink" parameterType="String"> <delete id="delete_friendlink" parameterType="String">
delete from b_t_ufp_friendlink where UUID=#{uuid} delete from friendlink where UUID=#{uuid}
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<select id="list_notice" parameterType="map" resultType="upperCaseKeyMap"> <select id="list_notice" parameterType="map" resultType="upperCaseKeyMap">
<![CDATA[ <![CDATA[
select * from b_t_ufp_notice t select * from notice t
]]> ]]>
<include refid="where" /> <include refid="where" />
ORDER BY t.CREATE_TIME ORDER BY t.CREATE_TIME
...@@ -30,14 +30,14 @@ ...@@ -30,14 +30,14 @@
<select id="list_count_notice" parameterType="map" resultType="int"> <select id="list_count_notice" parameterType="map" resultType="int">
<![CDATA[ <![CDATA[
select count(*) from b_t_ufp_notice t select count(*) from notice t
]]> ]]>
<include refid="where" /> <include refid="where" />
ORDER BY t.CREATE_TIME ORDER BY t.CREATE_TIME
</select> </select>
<insert id="insert_notice" parameterType="java.util.List"> <insert id="insert_notice" parameterType="java.util.List">
insert into b_t_ufp_notice( insert into notice(
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field"> <foreach collection="list" item="field">
${field.key}, ${field.key},
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</insert> </insert>
<update id="update_notice" parameterType="java.util.List"> <update id="update_notice" parameterType="java.util.List">
update b_t_ufp_notice set update notice set
<trim prefix="" suffixOverrides=","> <trim prefix="" suffixOverrides=",">
<foreach collection="list" item="field"> <foreach collection="list" item="field">
${field.key}=#{field.value}, ${field.key}=#{field.value},
...@@ -63,6 +63,6 @@ ...@@ -63,6 +63,6 @@
</update> </update>
<delete id="delete_notice" parameterType="String"> <delete id="delete_notice" parameterType="String">
delete from b_t_ufp_notice where UUID=#{uuid} delete from notice where UUID=#{uuid}
</delete> </delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -59,8 +59,4 @@ public class viewAction extends BasicAction { ...@@ -59,8 +59,4 @@ public class viewAction extends BasicAction {
return "office"; return "office";
} }
public String officeDetail() throws BusinessException {
return "officeDetail";
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment