Browse Source

企业属性选择资源及资源发布的条件

jack 7 years ago
parent
commit
c5a0d97bf3

+ 1 - 1
cmp-portal/cmp-UnstaffList.html

@ -26,7 +26,7 @@
26 26
	        	<ul>
27 27
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
28 28
	        		<li><a href="cmp-needList.html">需求</a></li>
29
	        		<li><a href="resourceList.html">资源</a></li>
29
	        		<li class="displayNone"><a href="resourceList.html">资源</a></li>
30 30
	        		<li><a href="cmp-articalList.html">文章</a></li>
31 31
	        		<li class="nowLi"><a>员工</a></li>
32 32
	        	</ul>

+ 1 - 1
cmp-portal/cmp-articalList.html

@ -26,7 +26,7 @@
26 26
	        	<ul>
27 27
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
28 28
	        		<li><a href="cmp-needList.html">需求</a></li>
29
	        		<li><a href="resourceList.html">资源</a></li>
29
	        		<li class="displayNone"><a href="resourceList.html">资源</a></li>
30 30
	        		<li class="nowLi"><a>文章</a></li>
31 31
	        		<li><a href="cmp-staffList.html">员工</a></li>
32 32
	        	</ul>

+ 1 - 1
cmp-portal/cmp-needList.html

@ -26,7 +26,7 @@
26 26
	        	<ul>
27 27
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
28 28
	        		<li class="nowLi"><a>需求</a></li>
29
	        		<li><a href="resourceList.html">资源</a></li>
29
	        		<li class="displayNone"><a href="resourceList.html">资源</a></li>
30 30
	        		<li><a href="cmp-articalList.html">文章</a></li>
31 31
	        		<li><a href="cmp-staffList.html">员工</a></li>
32 32
	        	</ul>

+ 1 - 1
cmp-portal/cmp-staffList.html

@ -26,7 +26,7 @@
26 26
	        	<ul>
27 27
	        		<li><a href="cmp-workspaces.html">工作台</a></li>
28 28
	        		<li><a href="cmp-needList.html">需求</a></li>
29
	        		<li><a href="resourceList.html">资源</a></li>
29
	        		<li class="displayNone"><a href="resourceList.html">资源</a></li>
30 30
	        		<li><a href="cmp-articalList.html">文章</a></li>
31 31
	        		<li class="nowLi"><a>员工</a></li>
32 32
	        	</ul>

+ 1 - 1
cmp-portal/cmp-workspaces.html

@ -26,7 +26,7 @@
26 26
	        	<ul>
27 27
	        		<li class="nowLi"><a>工作台</a></li>
28 28
	        		<li><a href="cmp-needList.html">需求</a></li>
29
	        		<li><a href="resourceList.html">资源</a></li>
29
	        		<li class="displayNone"><a href="resourceList.html">资源</a></li>
30 30
	        		<li><a href="cmp-articalList.html">文章</a></li>
31 31
	        		<li><a href="cmp-staffList.html">员工</a></li>
32 32
	        	</ul>

+ 1 - 0
cmp-portal/js/cmp-UnstaffList.js

@ -4,6 +4,7 @@ $(document).ready(function() {
4 4
	if(id == "" || id == null || id == "null"){
5 5
    	location.href = "cmp-settled-log.html";
6 6
    }
7
	resMgr(id);
7 8
	/*获取企业未认证的用户*/
8 9
	function UnauthorizedUser() {
9 10
		$.ajax({

+ 1 - 0
cmp-portal/js/cmp-articalList.js

@ -4,6 +4,7 @@ var colMgr = $.cookie("colMgr");
4 4
if(orgId == "" || orgId == null || orgId == "null"){
5 5
	location.href = "cmp-settled-log.html";
6 6
}
7
resMgr(orgId);
7 8
$(function() {
8 9
	$(".onlogin .headnavbtn li").eq(0).addClass("navcurrent");
9 10
	var  falseno = false;

+ 1 - 0
cmp-portal/js/cmp-needList.js

@ -4,6 +4,7 @@ $(document).ready(function() {
4 4
	if(id == "" || id == null || id == "null"){
5 5
    	location.href = "cmp-settled-log.html";
6 6
    }
7
	resMgr(id);
7 8
	demandList(true,10, 1);
8 9
	/*查询企业认证状态*/
9 10
	function companyAuthentState() {

+ 1 - 0
cmp-portal/js/cmp-staffList.js

@ -4,6 +4,7 @@ $(document).ready(function() {
4 4
	if(id == "" || id == null || id == "null"){
5 5
    	location.href = "cmp-settled-log.html";
6 6
    }
7
	resMgr(id);
7 8
	/*判断企业是否认证*/
8 9
	function companyAuthStatus() {
9 10
		$.ajax({

+ 1 - 0
cmp-portal/js/cmp-workspaces.js

@ -4,6 +4,7 @@ $(document).ready(function() {
4 4
	if(id == "" || id == null || id == "null"){
5 5
    	location.href = "cmp-settled-log.html";
6 6
    }
7
	resMgr(id);
7 8
	/*企业信息*/
8 9
	function companyInformation() {
9 10
		$.ajax({

+ 20 - 0
cmp-portal/js/public/common.js

@ -537,3 +537,23 @@ function getNowFormatDate() {
537 537
           
538 538
    return currentdate;
539 539
}
540
541
function resMgr(oid) {
542
	$.ajax({
543
			url: "/ajax/org/" +oid,
544
			type: "GET",
545
			timeout: 10000,
546
			dataType: "json",
547
			async:"true",
548
			success: function(data, textState) {
549
				if(data.success) {
550
					if(data.data.resMgr) {
551
						$('a:contains("资源")').parent().show();						
552
					}
553
				}
554
			},
555
			error: function(XMLHttpRequest, textStats, errorThrown) {
556
				$.MsgBox.Alert('提示', '服务器请求失败')
557
			}
558
		})
559
}

+ 5 - 2
cmp-portal/js/resourceList.js

@ -23,8 +23,11 @@ $(document).ready(function() {
23 23
			success: function(data, textState) {
24 24
				if(data.success) {
25 25
					if(data.data.length==0) {
26
						$.MsgBox.Alert('提示', '没有认证员工');
27
						window.open("resourceIssue.html");
26
						$.MsgBox.Confirm("提示", "请至少认证1位员工?", function(){
27
							location.href="cmp-UnstaffList.html";
28
						});
29
						$("#mb_btn_no").val("稍后再说");
30
						$("#mb_btn_ok").val("去认证");
28 31
					}
29 32
				}
30 33
			},

+ 3 - 0
js/jquery.similar.msgbox.js

@ -26,10 +26,13 @@
26 26
        _html += '</div></div>';
27 27
        //必须先将_html添加到body,再设置Css样式
28 28
        $("body").append(_html); GenerateCss();
29
        
29 30
    }
31
    
30 32
    //生成Css
31 33
    var fontfamily='PingFang SC,Arial,Helvetica Neue,Hiragino Sans GB,Microsoft Yahei,WenQuanYi Micro Hei,sans-serif';
32 34
    var GenerateCss = function () {
35
    	
33 36
        $("#mb_box").css({ width: '100%', height: '100%', zIndex: '99999', position: 'fixed',
34 37
            filter: 'Alpha(opacity=60)', backgroundColor: 'black', top: '0', left: '0', opacity: '0.5'
35 38
        });