Parcourir la Source

1、当我的资源没有数据,我的需求有数据室,直接模块切换到我的需求
2、收付款确认

luyanan 8 ans auparavant
Parent
commit
da07d431cb
2 fichiers modifiés avec 49 ajouts et 1 suppressions
  1. 4 1
      src/main/webapp/js/sciresource.js
  2. 45 0
      src/main/webapp/js/workspace.js

+ 4 - 1
src/main/webapp/js/sciresource.js

1248
	if(flag==1&&operationStatus==1)
1248
	if(flag==1&&operationStatus==1)
1249
	{ 
1249
	{ 
1250
		ResourceApply();
1250
		ResourceApply();
1251

1251
		$(".limitBox").removeClass("limitBox");
1252
        $(".limitwords").removeClass("limitwords");
1253
        $(".limitwordbox").removeClass("limitwordbox");
1254
		
1252
		$( "#datepicker" ).datepicker({ "dateFormat":" yy-mm-dd"});
1255
		$( "#datepicker" ).datepicker({ "dateFormat":" yy-mm-dd"});
1253

1256

1254
		$(".stateinfor span").text("修改申请中");
1257
		$(".stateinfor span").text("修改申请中");

+ 45 - 0
src/main/webapp/js/workspace.js

1
// JavaScript Document
1
// JavaScript Document
2
//alert("workspaces");
2
//alert("workspaces");
3
var userid=$.cookie("userid");
4
var reNO=false;
5
var opNO=false;
6
function gatModule(){	
7
	$.ajax({		
8
			"url":"/ajax/resource/qapro",
9
			"type":"get",
10
			"async": true,
11
			"data":{"professorId":userid},
12
			"success":function(data)
13
			{console.log(data);
14
				if(data.success)
15
				{
16
					if(data.data.length>0)
17
					{
18
						reNO=true;
19
					}
20
				}
21
				
22
			}
23
	});
24
	$.ajax({		
25
	"url":"/ajax/operation/pqdem",
26
	"type":"get",
27
	"async": true,
28
	"data":{"demandId":userid},
29
	"success":function(data)
30
		{
31
			if(data.success)
32
			{console.log(data);
33
				if(data.data.data.length>0)
34
				{
35
					opNO=true;
36
				}
37
			}		
38
		}
39
	
40
	});
41
}
42
gatModule();
3
	$.ajax({
43
	$.ajax({
4
		"url":"workindex.html",
44
		"url":"workindex.html",
5
		"dataType":"html",
45
		"dataType":"html",
90
				//console.log(data);
130
				//console.log(data);
91
								
131
								
92
			$(".workcon").html(result);
132
			$(".workcon").html(result);
133
			if(reNO==false&&opNO)
134
			{				
135
				$(".workmysrc1").eq(1).show().siblings().hide();
136
				$(".worksamlltit").eq(1).addClass("worksamlltitnow").siblings().removeClass("worksamlltitnow");
137
			}
93
			}
138
			}
94
		
139
		
95
		})
140
		})