|
@ -61,7 +61,7 @@ function resourceHtml($data) {
|
61
|
61
|
console.log($data);
|
62
|
62
|
for(var i = 0; i < $data.length; i++) {
|
63
|
63
|
var imgSrc = "../images/default-resource.jpg";
|
64
|
|
var oSpec="",orgName="",domain="",subject="",orgName="",spec="",comp="",parameter="";
|
|
64
|
var oSpec="",orgName="",domain="",subject="",orgName="",spec="",comp="",parameter="",descp="";
|
65
|
65
|
if($data[i].img) {
|
66
|
66
|
imgSrc = "/data/resource/" + $data[i].img;
|
67
|
67
|
}
|
|
@ -69,16 +69,13 @@ function resourceHtml($data) {
|
69
|
69
|
oSpec="厂商型号:"+$data[i].spec;
|
70
|
70
|
spec=$data[i].spec;
|
71
|
71
|
}
|
72
|
|
if($data[i].orgName) {
|
73
|
|
orgName="所属机构:"+$data[i].orgName;
|
74
|
|
orgName=$data[i].orgName;
|
75
|
|
}
|
76
|
72
|
if($data[i].domain) {
|
77
|
73
|
domain="关键词:"+$data[i].domain;
|
78
|
74
|
subject=$data[i].domain
|
79
|
75
|
}
|
80
|
76
|
if($data[i].comp) {
|
81
|
77
|
comp=$data[i].comp;
|
|
78
|
orgName="所属机构:"+$data[i].comp;
|
82
|
79
|
}
|
83
|
80
|
var oImg="";
|
84
|
81
|
if($data[i].img) {
|
|
@ -89,7 +86,8 @@ function resourceHtml($data) {
|
89
|
86
|
}
|
90
|
87
|
var oName1=$data[i].name;
|
91
|
88
|
var oId=$data[i].id;
|
92
|
|
var oIndu=$data[i].majorFunc;
|
|
89
|
var oIndu=$data[i].majorFunc.substring(0,30);
|
|
90
|
descp=$data[i].majorFunc;
|
93
|
91
|
$.ajax({
|
94
|
92
|
"url": "/ajax/resource/isImportRes",
|
95
|
93
|
"type": "GET",
|
|
@ -115,7 +113,7 @@ function resourceHtml($data) {
|
115
|
113
|
'</div>' +
|
116
|
114
|
'</a>' +
|
117
|
115
|
'<div class="importBtn">' +
|
118
|
|
'<span class="importResource '+oT+'" data-id="'+oId+'" data-parameter="'+parameter+'" data-comp="'+comp+'" data-spec="'+spec+'" data-orgName="'+orgName+'" data-subject="'+subject+'" data-name="'+oName1+'" data-indu="'+oIndu+'" flag="1" data-img="'+oImg+'">'+oText+'</span>' +
|
|
116
|
'<span class="importResource '+oT+'" data-id="'+oId+'" data-descp="'+descp+'" data-parameter="'+parameter+'" data-comp="'+comp+'" data-spec="'+spec+'" data-subject="'+subject+'" data-name="'+oName1+'" data-indu="'+oIndu+'" flag="1" data-img="'+oImg+'">'+oText+'</span>' +
|
119
|
117
|
/*'<span class="importSpan-2">再次导入</span>' +
|
120
|
118
|
'<span class="importSpan-3">已导入</span>' +*/
|
121
|
119
|
'</div>' +
|
|
@ -165,7 +163,6 @@ function resourceHtml($data) {
|
165
|
163
|
},
|
166
|
164
|
"data": {
|
167
|
165
|
subject:$(this).attr("data-subject"),
|
168
|
|
orgName:$(this).attr("data-orgName"),
|
169
|
166
|
comp:$(this).attr("data-comp"),
|
170
|
167
|
spec:$(this).attr("data-spec"),
|
171
|
168
|
parameter:$(this).attr("data-parameter"),
|
|
@ -173,7 +170,8 @@ function resourceHtml($data) {
|
173
|
170
|
resourceName:$(this).attr("data-name"),
|
174
|
171
|
professorId:userid,
|
175
|
172
|
supportedServices:$(this).attr("data-indu"),
|
176
|
|
imgSrc:$(this).attr("data-img")
|
|
173
|
imgSrc:$(this).attr("data-img"),
|
|
174
|
descp:$(this).attr("data-descp")
|
177
|
175
|
},
|
178
|
176
|
dataType: "json",
|
179
|
177
|
'error': function() {
|