Browse Source

资源提示

jack 7 years ago
parent
commit
810247ca78
2 changed files with 29 additions and 1 deletions
  1. 28 0
      cmp-portal/js/resourceList.js
  2. 1 1
      cmp-portal/resourceList.html

+ 28 - 0
cmp-portal/js/resourceList.js

@ -5,6 +5,34 @@ $(document).ready(function() {
5 5
		location.href = "cmp-settled-log.html";
6 6
	}
7 7
	var resourceId;
8
	$(".issueSpan").click(function(e){
9
		UnauthorizedUser()
10
		 e.preventDefault(); 
11
	})
12
	function UnauthorizedUser() {
13
		$.ajax({
14
			url: "/ajax/professor/qaOrgAuth",
15
			type: "GET",
16
			timeout: 10000,
17
			dataType: "json",
18
			async:"true",
19
			data: {
20
				"orgId": orgId,
21
				"orgAuth": 1
22
			},
23
			success: function(data, textState) {
24
				if(data.success) {
25
					if(data.data.length==0) {
26
						$.MsgBox.Alert('提示', '没有认证员工');
27
						window.open("resourceIssue.html");
28
					}
29
				}
30
			},
31
			error: function(XMLHttpRequest, textStats, errorThrown) {
32
				$.MsgBox.Alert('提示', '服务器请求失败')
33
			}
34
		})
35
	}
8 36
	/*资源列表查询*/
9 37
	function getRecourceMe(n, isbind, num) {
10 38
		var resourceNameVa = $("#resouceName").val();

+ 1 - 1
cmp-portal/resourceList.html

@ -39,7 +39,7 @@
39 39
							<span class="searchSpan"></span>
40 40
						</div>
41 41
						<div class="issueSpanBlock col-w-4">
42
							<a href="resourceIssue.html" class="issueSpan" target="_blank">发布资源</a>
42
							<a  class="issueSpan" >发布资源</a>
43 43
						</div>
44 44
					</div>
45 45
					<div class="form-item itemListCon">