portal html css js resource

teamManage.js 37KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183
  1. var userid = $.cookie("userid");
  2. var tId = GetQueryString("id");
  3. //微信分享
  4. var qrcode = new QRCode(document.getElementById("qrcode"), {
  5. width: 100,
  6. height: 100
  7. });
  8. function makeCode() {
  9. var hurl = window.location.href;
  10. var elurl = hurl;
  11. qrcode.makeCode(elurl);
  12. }
  13. makeCode();
  14. //分享关注按钮
  15. $('.shareWeixin').hover(function () {
  16. $('.shareCode').stop(true, false).fadeToggle();
  17. });
  18. $(function () {
  19. loginStatus(); //判断个人是否登录
  20. // if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){
  21. // location.href="http://" + window.location.host + "/e/p.html?id="+tId;
  22. // }
  23. function subjectShow(data) {
  24. if (data != undefined && data.length != 0) {
  25. var subs = strToAry(data)
  26. if (subs.length > 0) {
  27. for (var i = 0; i < subs.length; i++) {
  28. $("#subjectShow").append("<li>" + subs[i] + "</li>");
  29. };
  30. }
  31. }
  32. }
  33. function industryShow(data) {
  34. if (data != undefined && data.length != 0) {
  35. var subs = strToAry(data)
  36. if (subs.length > 0) {
  37. for (var i = 0; i < subs.length; i++) {
  38. $("#industryShow").append("<li><div class='h4tit'>" + subs[i] + "</div></li>");
  39. };
  40. }
  41. }
  42. }
  43. var pageNo = 1,
  44. pagePerNo = 1,
  45. rows = 20,
  46. rowsTen = 10,
  47. secretaryId = '',
  48. chiefId = ''
  49. var memberArr = {},
  50. paperArr = [],
  51. patentArr = [],
  52. unpatentArr = []
  53. var oAjax = function (url, dataS, otype, oFun, beforeFun, completeFun, async) {
  54. $.ajax({
  55. async: async ==null ? true : async,
  56. url: url,
  57. dataType: 'json',
  58. type: otype,
  59. data: dataS,
  60. traditional: true,
  61. beforeSend: beforeFun,
  62. success: function (res) {
  63. if (res.success) {
  64. oFun(res)
  65. }
  66. },
  67. complete: completeFun
  68. });
  69. },
  70. insertNodata = function (targetE, newStr) {
  71. var parent = document.getElementById(targetE).parentNode;
  72. var kong = document.createElement("div");
  73. kong.className = "con-kong";
  74. kong.innerHTML = '<div class="picbox picNull"></div>' +
  75. '<div class="txtbox">暂时没有符合该搜索条件的内容</div>'
  76. if (newStr) {
  77. kong.querySelector(".txtbox").innerHTML = newStr;
  78. }
  79. if (parent.firstChild.className == "con-kong") {
  80. return
  81. } else {
  82. parent.insertBefore(kong, parent.firstChild);
  83. }
  84. },
  85. removeNodata = function (targetE) {
  86. var parent = document.getElementById(targetE).parentNode;
  87. if (parent.firstChild.className == "con-kong") {
  88. parent.removeChild(parent.firstChild);
  89. } else {
  90. return
  91. }
  92. },
  93. getUserInfo = function () {
  94. oAjax("/ajax/team/qo", {
  95. id: tId
  96. }, "get", function (data) {
  97. var $info = data.data;
  98. $("#proName").text($info.name);
  99. if ($info.city) {
  100. $("#proAddress").html($info.city + "<span style='margin-right:10px;'></span>");
  101. }
  102. $("#proOther").text($info.orgName);
  103. document.title = $info.name + "-科袖网"
  104. //简介
  105. if ($info.descp) {
  106. $("#descpS").parents(".coninfobox").removeClass("displayNone");
  107. $("#item1user>.nodatabox").addClass("displayNone");
  108. $("#descpS").text($info.descp);
  109. }
  110. //学术领域
  111. if ($info.subject) {
  112. $("#subjectShow").parents(".coninfobox").removeClass("displayNone");
  113. $("#item1user>.nodatabox").addClass("displayNone");
  114. subjectShow($info.subject);
  115. }
  116. //行业领域
  117. if ($info.industry) {
  118. $("#industryShow").parents(".coninfobox").removeClass("displayNone");
  119. $("#item1user>.nodatabox").addClass("displayNone");
  120. industryShow($info.industry);
  121. }
  122. var weibotitle = $info.name;
  123. var weibourl = window.location.href;
  124. var weibopic = "";
  125. $("#weibo").attr("href", "http://service.weibo.com/share/share.php?appkey=3677230589&title=" + weibotitle + "&url=" + weibourl + "&pic=" + weibopic + "&ralateUid=6242830109&searchPic=false&style=simple");
  126. });
  127. },
  128. professorListVal = function (isbind, ff) {
  129. var aimId = "expertli",
  130. aimIdF = "teamMembers",
  131. newStr = ""
  132. oAjax("/ajax/team/pro", {
  133. id: tId,
  134. pageSize: rowsTen,
  135. pageNo: pageNo,
  136. }, "get", function (res) {
  137. var $info = res.data.data;
  138. if ($info.length > 0) {
  139. $("#" + aimId).parent().find(".js-load-more").show();
  140. $("#" + aimIdF).parent().find(".js-load-more").show();
  141. if (res.data.pageNo !== pageNo) {
  142. if (ff) {
  143. $("#" + aimIdF).parent().find(".js-load-more").unbind("click");
  144. $("#" + aimIdF).parent().find(".js-load-more").hide();
  145. } else {
  146. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  147. $("#" + aimId).parent().find(".js-load-more").hide();
  148. $("#" + aimIdF).parent().find(".js-load-more").unbind("click");
  149. $("#" + aimIdF).parent().find(".js-load-more").hide();
  150. }
  151. return
  152. }
  153. $("#" + aimId).show()
  154. for (var i = 0; i < $info.length; i++) {
  155. var item = $info[i].professor;
  156. memberArr[item] = {};
  157. if ($info[i].secretary) {
  158. secretaryId = $info[i].professor
  159. }
  160. if ($info[i].chief) {
  161. chiefId = $info[i].professor
  162. }
  163. }
  164. console.log($info[i])
  165. if (ff) {
  166. detailPro(aimIdF, 1)
  167. } else {
  168. detailPro(aimId)
  169. detailPro(aimIdF, 1)
  170. }
  171. }
  172. if (isbind) {
  173. if (ff) {
  174. $("#" + aimIdF).parent().find(".js-load-more").unbind("click").on("click", function () {
  175. pageNo++
  176. professorListVal(false)
  177. })
  178. } else {
  179. $("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
  180. pageNo++
  181. professorListVal(false)
  182. })
  183. $("#" + aimIdF).parent().find(".js-load-more").unbind("click").on("click", function () {
  184. pageNo++
  185. professorListVal(false)
  186. })
  187. }
  188. }
  189. if ($info.length < rowsTen) {
  190. if (ff) {
  191. $("#" + aimIdF).parent().find(".js-load-more").unbind("click");
  192. $("#" + aimIdF).parent().find(".js-load-more").hide();
  193. } else {
  194. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  195. $("#" + aimId).parent().find(".js-load-more").hide();
  196. $("#" + aimIdF).parent().find(".js-load-more").unbind("click");
  197. $("#" + aimIdF).parent().find(".js-load-more").hide();
  198. }
  199. }
  200. }, function () {
  201. if (ff) {
  202. $("#" + aimIdF).parent().find(".js-load-more").attr("disabled", true);
  203. $("#" + aimIdF).parent().find(".js-load-more").addClass("active");
  204. } else {
  205. $("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
  206. $("#" + aimId).parent().find(".js-load-more").addClass("active");
  207. $("#" + aimIdF).parent().find(".js-load-more").attr("disabled", true);
  208. $("#" + aimIdF).parent().find(".js-load-more").addClass("active");
  209. }
  210. }, function () {
  211. if (ff) {
  212. $("#" + aimIdF).parent().find(".js-load-more").removeAttr("disabled");
  213. $("#" + aimIdF).parent().find(".js-load-more").removeClass("active");
  214. } else {
  215. $("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
  216. $("#" + aimId).parent().find(".js-load-more").removeClass("active");
  217. $("#" + aimIdF).parent().find(".js-load-more").removeAttr("disabled");
  218. $("#" + aimIdF).parent().find(".js-load-more").removeClass("active");
  219. }
  220. })
  221. },
  222. searchProfessor = function () {
  223. var keyt = $('#searchMe').val()
  224. if (keyt === '') {
  225. return
  226. }
  227. var aimId = "searchMembers"
  228. oAjax("/ajax/team/pro/search", {
  229. "team": tId,
  230. "key": keyt,
  231. "authType": 1,
  232. "rows": 10
  233. }, "get", function (res) {
  234. var $info = res.data;
  235. if ($info.length > 0) {
  236. removeNodata(aimId);
  237. $("#" + aimId).html('')
  238. $("#" + aimId).show()
  239. for (var i = 0; i < $info.length; i++) {
  240. var li4 = ''
  241. if ($info[i].id in memberArr) {
  242. li4 = '<li class="added">已添加</li>'
  243. } else {
  244. li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1">添加</li>'
  245. }
  246. var ownerSty = "",
  247. ownerSt = "",
  248. hasImg = "../images/default-photo.jpg"
  249. var userType = autho($info[i].authType, $info[i].orgAuth, $info[i].authStatus);
  250. ownerSt = userType.title;
  251. ownerSty = userType.sty;
  252. if ($info[i].hasHeadImage) {
  253. hasImg = "/images/head/" + $info[i].id + "_l.jpg"
  254. }
  255. var title = $info[i].title || "";
  256. var orgName = $info[i].orgName || "";
  257. var office = $info[i].office || "";
  258. if (title != "") {
  259. var ttitle = title + ",";
  260. } else {
  261. if (office != "") {
  262. var ttitle = office + ",";
  263. } else {
  264. var ttitle = office;
  265. }
  266. }
  267. if (orgName != "") {
  268. orgName = orgName;
  269. }
  270. var itemlist = '<li class="flexCenter">';
  271. itemlist += '<a target="_blank" href="userInforShow.html?professorId=' + $info[i].id + '">'
  272. itemlist += '<div class="madiaHead userHead" style="border-radius:50%;background-image:url(' + hasImg + ')"></div>';
  273. itemlist += '<div class="madiaInfo">';
  274. itemlist += '<p class="h1Font ellipsisSty">';
  275. itemlist += '<span class="nameSpan">' + $info[i].name + '</span>';
  276. itemlist += '<em class="authiconNew ' + ownerSty + '" title="' + ownerSt + '"></em></p>';
  277. itemlist += '<p class="h2Font ellipsisSty">' + ttitle + orgName + '</p>';
  278. itemlist += '</div></a>';
  279. itemlist += '<ul class="madiaEdit">'
  280. itemlist += li4
  281. itemlist += '</ul>'
  282. itemlist += '</li>';
  283. $("#" + aimId).append(itemlist)
  284. }
  285. } else {
  286. $("#" + aimId).hide()
  287. insertNodata(aimId);
  288. }
  289. })
  290. },
  291. unpatentListVal = function (isbind) {
  292. var aimId = "proUnPatent",
  293. newStr = "尚未关联任何非专利成果"
  294. oAjax("/ajax/team/resResult", {
  295. id: tId,
  296. pageSize: rows,
  297. pageNo: pagePerNo,
  298. }, "get", function (res) {
  299. var $info = res.data.data;
  300. $("#showUnPatent").html("")
  301. if ($info.length > 0) {
  302. if (res.data.total > 0 && res.data.total < 99) {
  303. $("#unpatCount").text(res.data.total);
  304. if (res.data.total == 0 || res.data.total == 1) {
  305. $("#unpatCount").text('');
  306. }
  307. }
  308. if (res.data.total > 99) {
  309. // $("#unpatCount").text("99+");
  310. }
  311. $("#" + aimId).show()
  312. for (var i = 0; i < $info.length; i++) {
  313. unpatentArr.push($info[i].researchResult)
  314. }
  315. detailUnPat(aimId)
  316. } else {
  317. $("#showUnPatent").parents('.otherShow').hide()
  318. }
  319. var liLen = document.getElementById(aimId).querySelectorAll("li").length;
  320. removeNodata(aimId);
  321. if ($info.length == 0 && liLen == 0) {
  322. $("#" + aimId).hide()
  323. insertNodata(aimId, newStr);
  324. }
  325. if (isbind) {
  326. $("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
  327. pagePerNo++
  328. unpatentListVal(false)
  329. })
  330. }
  331. if ($info.length < rows) {
  332. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  333. $("#" + aimId).parent().find(".js-load-more").hide();
  334. }
  335. }, function () {
  336. $("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
  337. $("#" + aimId).parent().find(".js-load-more").addClass("active");
  338. }, function () {
  339. $("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
  340. $("#" + aimId).parent().find(".js-load-more").removeClass("active");
  341. })
  342. },
  343. searchUnPatent = function () {
  344. var keyt = $('#searchUnPatentKey').val()
  345. if (keyt === '') {
  346. return
  347. }
  348. var aimId = "searchUnPatent"
  349. oAjax("/ajax/team/resResult/search", {
  350. "team": tId,
  351. "key": keyt,
  352. "status": ['1'],
  353. "pageSize": 10,
  354. "pageNo": 1
  355. }, "get", function (res) {
  356. var $info = res.data.data;
  357. if ($info.length > 0) {
  358. removeNodata(aimId);
  359. $("#" + aimId).html('')
  360. $("#" + aimId).show()
  361. for (var i = 0; i < $info.length; i++) {
  362. var li4 = ''
  363. if (unpatentArr.indexOf($info[i].id) > -1) {
  364. li4 = '<li class="added">已添加</li>'
  365. } else {
  366. li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
  367. }
  368. var resIM = '<div class="madiaHead patentHead"></div>'
  369. if ($info[i].pic) {
  370. var src = '/data/researchResult' + $info[i].pic.split(",")[0]
  371. resIM = '<div class="madiaHead patentHead" style="background-image:url(' + src + ')"></div>';
  372. }
  373. var itemlist = '<li style="position:relative;">';
  374. itemlist += '<a target="_blank" href="unPatentShow.html?id=' + $info[i].id + '" class="flexCenter urlgo">';
  375. itemlist += resIM
  376. itemlist += '<div class="madiaInfo">';
  377. itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
  378. itemlist += '<p class="h2Font ellipsisSty displayNone">研究者:<span class="researchers"></span></p>';
  379. itemlist += '<p class="h2Font ellipsisSty displayNone">所属机构:<span class="resOrgName"></span></p>';
  380. itemlist += '</div></a>';
  381. itemlist += '<ul class="madiaEdit">'
  382. itemlist += li4
  383. itemlist += '</ul>'
  384. itemlist += '</li>';
  385. var $itemlist = $(itemlist);
  386. $("#" + aimId).append($itemlist)
  387. queryResearcher($info[i].id, $itemlist)
  388. if ($info[i].orgId) {
  389. queryReseOrgName($info[i].orgId, $itemlist)
  390. }
  391. }
  392. } else {
  393. $("#" + aimId).hide()
  394. insertNodata(aimId);
  395. }
  396. })
  397. },
  398. patentListVal = function (isbind) {
  399. var aimId = "proPatent",
  400. newStr = "尚未关联任何专利成果"
  401. oAjax("/ajax/team/patent", {
  402. id: tId,
  403. pageSize: rows,
  404. pageNo: pagePerNo,
  405. }, "get", function (res) {
  406. $("#showPatent").html("")
  407. var $info = res.data.data;
  408. if ($info.length > 0) {
  409. if (res.data.total > 0 && res.data.total < 99) {
  410. $("#patCount").text(res.data.total);
  411. }
  412. if (res.data.total > 99) {
  413. $("#patCount").text("99+");
  414. }
  415. $("#" + aimId).show()
  416. for (var i = 0; i < $info.length; i++) {
  417. patentArr.push($info[i].patent)
  418. }
  419. detailPat(aimId)
  420. } else {
  421. $("#showPatent").parents('.otherShow').hide()
  422. }
  423. var liLen = document.getElementById(aimId).querySelectorAll("li").length;
  424. removeNodata(aimId);
  425. if ($info.length == 0 && liLen == 0) {
  426. $("#" + aimId).hide()
  427. insertNodata(aimId, newStr);
  428. }
  429. if (isbind) {
  430. $("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
  431. pagePerNo++
  432. patentListVal(false)
  433. })
  434. }
  435. if ($info.length < rows) {
  436. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  437. $("#" + aimId).parent().find(".js-load-more").hide();
  438. }
  439. }, function () {
  440. $("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
  441. $("#" + aimId).parent().find(".js-load-more").addClass("active");
  442. }, function () {
  443. $("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
  444. $("#" + aimId).parent().find(".js-load-more").removeClass("active");
  445. })
  446. },
  447. searchPatent = function () {
  448. var keyt = $('#searchPatentKey').val()
  449. if (keyt === '') {
  450. return
  451. }
  452. var aimId = "searchPatent"
  453. oAjax("/ajax/team/patent/search", {
  454. "team": tId,
  455. "key": keyt,
  456. "rows": 10
  457. }, "get", function (res) {
  458. var $info = res.data;
  459. if ($info.length > 0) {
  460. removeNodata(aimId);
  461. $("#" + aimId).html('')
  462. $("#" + aimId).show()
  463. for (var i = 0; i < $info.length; i++) {
  464. var li4 = ''
  465. if (patentArr.indexOf($info[i].id) > -1) {
  466. li4 = '<li class="added">已添加</li>'
  467. } else {
  468. li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
  469. }
  470. var itemlist = '<li style="position:relative;">';
  471. itemlist += '<a target="_blank" href="/' + pageUrl("pt", $info[i]) + '" class="flexCenter urlgo"><div class="madiaHead patentHead"></div>';
  472. itemlist += '<div class="madiaInfo">';
  473. itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
  474. itemlist += '<p class="h2Font ellipsisSty">发明人:' + $info[i].authors.substring(0, $info[i].authors.length - 1) + '</p>';
  475. itemlist += '<p class="h2Font ellipsisSty">申请人:' + $info[i].reqPerson + '</p>';
  476. itemlist += '</div></a>';
  477. itemlist += '<ul class="madiaEdit">'
  478. itemlist += li4
  479. itemlist += '</ul>'
  480. itemlist += '</li>';
  481. $("#" + aimId).append(itemlist)
  482. }
  483. } else {
  484. $("#" + aimId).hide()
  485. insertNodata(aimId);
  486. }
  487. })
  488. },
  489. paperListVal = function (isbind) {
  490. var aimId = "proPaper",
  491. newStr = "尚未关联任何论文"
  492. oAjax("/ajax/team/paper", {
  493. id: tId,
  494. pageSize: rows,
  495. pageNo: pagePerNo
  496. }, "get", function (res) {
  497. var $info = res.data.data;
  498. $("#showPaper").html("")
  499. if ($info.length > 0) {
  500. if (res.data.total > 0 && res.data.total < 99) {
  501. $("#parCount").text(res.data.total);
  502. }
  503. if (res.data.total > 99) {
  504. $("#parCount").text("99+");
  505. }
  506. if (res.data.pageNo !== pagePerNo) {
  507. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  508. $("#" + aimId).parent().find(".js-load-more").hide();
  509. return
  510. }
  511. $("#" + aimId).show()
  512. for (var i = 0; i < $info.length; i++) {
  513. paperArr.push($info[i].paper)
  514. }
  515. detailPer(aimId)
  516. } else {
  517. $("#showPaper").parents(".otherShow").hide()
  518. }
  519. var liLen = document.getElementById(aimId).querySelectorAll("li").length;
  520. removeNodata(aimId);
  521. if ($info.length == 0 && liLen == 0) {
  522. $("#" + aimId).hide()
  523. insertNodata(aimId, newStr);
  524. }
  525. if (isbind) {
  526. $("#" + aimId).parent().find(".js-load-more").unbind("click").on("click", function () {
  527. pagePerNo++
  528. paperListVal(false)
  529. })
  530. }
  531. if ($info.length < rows) {
  532. $("#" + aimId).parent().find(".js-load-more").unbind("click");
  533. $("#" + aimId).parent().find(".js-load-more").hide();
  534. }
  535. }, function () {
  536. $("#" + aimId).parent().find(".js-load-more").attr("disabled", true);
  537. $("#" + aimId).parent().find(".js-load-more").addClass("active");
  538. }, function () {
  539. $("#" + aimId).parent().find(".js-load-more").removeAttr("disabled");
  540. $("#" + aimId).parent().find(".js-load-more").removeClass("active");
  541. })
  542. },
  543. searchPaper = function () {
  544. var keyt = $('#searchPaperKey').val()
  545. if (keyt === '') {
  546. return
  547. }
  548. var aimId = "searchPaper"
  549. oAjax("/ajax/team/paper/search", {
  550. "team": tId,
  551. "key": keyt,
  552. "rows": 10
  553. }, "get", function (res) {
  554. var $info = res.data;
  555. if ($info.length > 0) {
  556. removeNodata(aimId);
  557. $("#" + aimId).html('')
  558. $("#" + aimId).show()
  559. for (var i = 0; i < $info.length; i++) {
  560. var li4 = ''
  561. if (paperArr.indexOf($info[i].id) > -1) {
  562. li4 = '<li class="added">已添加</li>'
  563. } else {
  564. li4 = '<li class="addThis" data-id="' + $info[i].id + '" data-flag="1" style="cursor:pointer;">添加</li>'
  565. }
  566. var moreInf = ""
  567. if (!$info[i].cn4periodical) {
  568. $info[i].cn4periodical = "";
  569. }
  570. if (!$info[i].en4periodical) {
  571. $info[i].en4periodical = "";
  572. }
  573. if (!$info[i].pubDay) {
  574. $info[i].pubDay = "";
  575. }
  576. moreInf = $info[i].cn4periodical + " " + $info[i].en4periodical + " " + $info[i].pubDay;
  577. var itemlist = '<li style="position: relative;">';
  578. itemlist += '<a target="_blank" href="/' + pageUrl("pp", $info[i]) + '" class="flexCenter urlgo"><div class="madiaHead paperHead"></div>';
  579. itemlist += '<div class="madiaInfo">';
  580. itemlist += '<p class="h1Font ellipsisSty">' + $info[i].name + '</p>';
  581. itemlist += '<p class="h2Font ellipsisSty">作者:' + $info[i].authors.substring(0, $info[i].authors.length - 1) + '</p>';
  582. itemlist += '<p class="h2Font ellipsisSty">期刊:' + moreInf + '</p>';
  583. itemlist += '</div></a>';
  584. itemlist += '<ul class="madiaEdit">'
  585. itemlist += li4
  586. itemlist += '</ul>'
  587. itemlist += '</li>';
  588. $("#" + aimId).append(itemlist)
  589. }
  590. } else {
  591. $("#" + aimId).hide()
  592. insertNodata(aimId);
  593. }
  594. })
  595. },
  596. detailUnPat = function (obj) {
  597. oAjax("/ajax/resResult/qm", {
  598. id: unpatentArr,
  599. }, "get", function (data) {
  600. var dataStr = data.data;
  601. for (var i = 0; i < dataStr.length; i++) {
  602. if (dataStr[i].status == 1) {
  603. var resIM = '<div class="madiaHead patentHead"></div>'
  604. if (dataStr[i].pic) {
  605. var src = '/data/researchResult' + dataStr[i].pic.split(",")[0]
  606. resIM = '<div class="madiaHead patentHead" style="background-image:url(' + src + ')"></div>';
  607. }
  608. var strAdd = '';
  609. strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="unPatentShow.html?id=' + dataStr[i].id + '" class="flexCenter urlgo">';
  610. strAdd += resIM
  611. strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
  612. strAdd += '<p class="h2Font ellipsisSty displayNone">研究者:<span class="researchers"></span></p>';
  613. strAdd += '<p class="h2Font ellipsisSty displayNone">所属机构:<span class="resOrgName"></span></p>';
  614. strAdd += '</div>';
  615. strAdd += '</a>'
  616. strAdd += '<ul class="madiaEdit">'
  617. strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
  618. strAdd += '</ul></li>'
  619. $("#" + obj).append(strAdd);
  620. if (i < 3) {
  621. $("#showUnPatent").append(strAdd)
  622. }
  623. var $itemlist = $(strAdd);
  624. queryResearcher(dataStr[i].id, $itemlist)
  625. if (dataStr[i].orgId) {
  626. queryReseOrgName(dataStr[i].orgId, $itemlist)
  627. }
  628. }
  629. }
  630. }, function () {}, false);
  631. },
  632. queryResearcher = function (id, $list) {
  633. if (id) {
  634. oAjax("/ajax/resResult/researcher", {
  635. "id": id
  636. }, 'get', function ($data) {
  637. var arr = []
  638. if ($data.data.length) {
  639. $list.find('.researchers').parent().removeClass('displayNone')
  640. for (var i = 0; i < $data.data.length; i++) {
  641. arr.push($data.data[i].name)
  642. }
  643. $list.find('.researchers').html(arr.join(','))
  644. }
  645. }, function () {}, false)
  646. }
  647. },
  648. queryReseOrgName = function (id, $list) {
  649. if (id) {
  650. cacheModel.getCompany(id, function (sc, value) {
  651. if (sc) {
  652. $list.find(".resOrgName").parent().removeClass('displayNone')
  653. if (value.forShort) {
  654. $list.find(".resOrgName").html(value.forShort)
  655. } else {
  656. $list.find(".resOrgName").html(value.name)
  657. }
  658. }
  659. })
  660. }
  661. },
  662. detailPat = function (obj) {
  663. oAjax("/ajax/ppatent/qm", {
  664. id: patentArr,
  665. }, "get", function (data) {
  666. var dataStr = data.data;
  667. for (var i = 0; i < dataStr.length; i++) {
  668. var strAdd = '';
  669. strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="/' + pageUrl("pt", dataStr[i]) + '" class="flexCenter urlgo">';
  670. strAdd += '<div class="madiaHead patentHead"></div>';
  671. strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
  672. strAdd += '<p class="h2Font ellipsisSty">发明人:' + dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) + '</p>';
  673. strAdd += '<p class="h2Font ellipsisSty">申请人:' + dataStr[i].reqPerson + '</p>';
  674. strAdd += '</div>';
  675. strAdd += '</a>';
  676. strAdd += '<ul class="madiaEdit">'
  677. strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
  678. strAdd += '</ul></li>'
  679. $("#" + obj).append(strAdd)
  680. if (i < 3) {
  681. $("#showPatent").append(strAdd);
  682. }
  683. }
  684. });
  685. },
  686. detailPer = function (obj) {
  687. oAjax("/ajax/ppaper/qm", {
  688. id: paperArr,
  689. }, "get", function (data) {
  690. var dataStr = data.data;
  691. for (var i = 0; i < dataStr.length; i++) {
  692. var moreInf = ""
  693. if (!dataStr[i].cn4periodical) {
  694. dataStr[i].cn4periodical = "";
  695. }
  696. if (!dataStr[i].en4periodical) {
  697. dataStr[i].en4periodical = "";
  698. }
  699. if (!dataStr[i].pubDay) {
  700. dataStr[i].pubDay = "";
  701. }
  702. moreInf = dataStr[i].cn4periodical + " " + dataStr[i].en4periodical + " " + dataStr[i].pubDay
  703. var strAdd = '';
  704. strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="/' + pageUrl("pp", dataStr[i]) + '" class="flexCenter urlgo">';
  705. strAdd += '<div class="madiaHead paperHead"></div>';
  706. strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr[i].name + '</p>';
  707. strAdd += '<p class="h2Font ellipsisSty">作者:' + dataStr[i].authors.substring(0, dataStr[i].authors.length - 1) + '</p>';
  708. strAdd += '<p class="h2Font ellipsisSty">期刊:' + moreInf + '</p>';
  709. strAdd += '</div>';
  710. strAdd += '</a>';
  711. strAdd += '<ul class="madiaEdit">'
  712. strAdd += '<li class="deloutPro" data-id="' + dataStr[i].id + '">取消关联</li>'
  713. strAdd += '</ul></li>'
  714. if (i < 3) {
  715. $('#showPaper').append(strAdd)
  716. }
  717. $('#' + obj).append(strAdd)
  718. }
  719. });
  720. },
  721. detailPro = function (obj, flag) {
  722. document.getElementById(obj).innerHTML = ""
  723. var li;
  724. for (item in memberArr) {
  725. oAjax("/ajax/professor/info/" + item, null, "get", function (data) {
  726. memberArr[item] = data.data
  727. }, function () {}, function () {}, false)
  728. }
  729. for (item in memberArr) {
  730. if (item != {}) {
  731. var dataStr = memberArr[item]
  732. var dImg = "../images/default-photo.jpg"
  733. if (dataStr.hasHeadImage) {
  734. dImg = "/images/head/" + dataStr.id + "_l.jpg"
  735. }
  736. var li2 = '',
  737. li4 = ""
  738. var tatu;
  739. if (flag === 1) {
  740. if (chiefId === dataStr.id) {
  741. li4 += '<li class="authTeamSta cancelTeamSta" style="cursor:pointer">首席专家</li>'
  742. } else {
  743. li4 += '<li class="setFirstPro" data-id="' + dataStr.id + '">设为首席专家</li>'
  744. }
  745. if (secretaryId === dataStr.id) {
  746. li4 += '<li class="authTeamSta">团队秘书</li>'
  747. } else {
  748. li4 += '<li class="setAdmin" data-id="' + dataStr.id + '">设为团队秘书</li>'
  749. li4 += '<li class="deloutPro" data-id="' + dataStr.id + '">移出团队</li>'
  750. }
  751. } else {
  752. if (secretaryId === dataStr.id) {
  753. li2 += '<span>团队秘书</span>'
  754. }
  755. if (chiefId === dataStr.id) {
  756. li2 += '<span>首席专家</span>'
  757. }
  758. }
  759. var title = dataStr.title || "";
  760. var orgName = dataStr.orgName || "";
  761. var office = dataStr.office || "";
  762. if (title != "") {
  763. var ttitle = title + ",";
  764. } else {
  765. if (office != "") {
  766. var ttitle = office + ",";
  767. } else {
  768. var ttitle = office;
  769. }
  770. }
  771. if (orgName != "") {
  772. orgName = orgName;
  773. }
  774. var strAdd = '';
  775. strAdd += '<li class="mui-table-view-cell"><a target="_blank" href="userInforShow.html?professorId=' + dataStr.id + '" class="flexCenter urlgo" style="min-height: 60px">';
  776. strAdd += '<div class="madiaHead useHead" style="background-image:url(' + dImg + ')"></div>';
  777. strAdd += '<div class="madiaInfo"><p class="h1Font ellipsisSty">' + dataStr.name + '</p>';
  778. strAdd += '<p class="h2Font ellipsisSty">' + ttitle + orgName + '</p>';
  779. strAdd += '</div>';
  780. strAdd += '<div class="tag-show">' + li2 + '</div>'
  781. strAdd += '</a>';
  782. strAdd += '<ul class="madiaEdit">'
  783. strAdd += li4
  784. strAdd += '</ul></li>'
  785. // console.log(chiefId)
  786. if (chiefId === dataStr.id) {
  787. $("#" + obj).prepend(strAdd)
  788. } else {
  789. $("#" + obj).append(strAdd)
  790. }
  791. }
  792. }
  793. },
  794. bindClickFun = function () {
  795. //==== members model =====//
  796. $("#manageMembers").on("click", function () {
  797. $(".questionCover").fadeIn();
  798. $("body").css("position", "fixed");
  799. var btn = document.querySelector('#searchMe')
  800. var st = $('.steptit>a').attr('data-index')
  801. if (btn.value !== '' && st != 1) {
  802. //点击
  803. $('.steptit>a').first().trigger('click') // 自动触发点击事件返回到 tab第一项
  804. }
  805. })
  806. $("#workclose,#btnCancel").on("click", function () {
  807. $(".questionCover").fadeOut();
  808. $("body").css("position", "");
  809. $('#teamMembers').html('')
  810. $('#expertli').html('')
  811. memberArr = {}
  812. pageNo = 1
  813. professorListVal(true)
  814. })
  815. $('.queStep').on('click', '.steptit>a', function () { // a 表钱tab切换
  816. $('.queStep .steptit>a').removeClass('active')
  817. $(this).addClass('active')
  818. var st = $(this).attr("data-index")
  819. $('.queStep .quemain .artAbout').addClass('displayNone')
  820. $('.queStep .quemain .artAbout').eq(st).removeClass('displayNone')
  821. if (st === '0') {
  822. memberArr = {}
  823. $('#teamMembers').html('')
  824. pageNo = 1
  825. professorListVal(true, true)
  826. } else if (st === '1') {
  827. $('#searchMembers').html('')
  828. $('#searchMe').val('')
  829. searchProfessor()
  830. }
  831. })
  832. $('.queStep').on('click', '.searchSpan', function () {
  833. searchProfessor()
  834. })
  835. $('.queStep').on('click', '.addThis', function (e) {
  836. var _this = this
  837. var fl = $(this).attr("data-flag")
  838. if (fl === '1') {
  839. var pid = $(this).attr("data-id")
  840. oAjax("/ajax/team/insertPro", {
  841. id: tId,
  842. professor: pid
  843. }, "post", function (data) {
  844. $(_this).addClass("added").text("已添加")
  845. $(_this).attr("data-flag", '0')
  846. })
  847. }
  848. e.stopPropagation()
  849. })
  850. $('.queStep').on('click', '.setAdmin', function () {
  851. var pid = $(this).attr("data-id")
  852. $.MsgBox.Confirm("提示", "此操作会退出登录,您将是去对该团队的管理权,确认设置团队秘书?", function () {
  853. console.log(tId)
  854. console.log(pid)
  855. oAjax("/ajax/team/secretary", {
  856. id: tId,
  857. newPro:pid
  858. }, "post", function (data) {
  859. if (data.success) {
  860. exit()
  861. location.href = "index.html"
  862. }
  863. })
  864. });
  865. })
  866. $('.queStep').on('click', '.setFirstPro', function () {
  867. var pid = $(this).attr("data-id")
  868. $.MsgBox.Confirm("提示", "此操作会取消原有首席专家,确认设置首席专家?", function () {
  869. oAjax("/ajax/team/chief", {
  870. id: tId,
  871. newPro: pid
  872. }, "post", function (data) {
  873. if (data.success) {
  874. memberArr = {}
  875. $('#teamMembers').html('')
  876. pageNo = 1
  877. secretaryId = ''
  878. chiefId = ''
  879. professorListVal(true, true)
  880. }
  881. })
  882. });
  883. })
  884. $('.queStep').on('mouseenter', ".cancelTeamSta", function (e) {
  885. $(this).removeClass('authTeamSta').text('取消首席身份')
  886. })
  887. $('.queStep').on('mouseleave', ".cancelTeamSta", function (e) {
  888. $(this).addClass('authTeamSta').text('首席专家')
  889. })
  890. $('.queStep').on('click', '.cancelTeamSta', function () {
  891. $.MsgBox.Confirm("提示", "确认取消首席专家?", function () {
  892. oAjax("/ajax/team/chief", {
  893. id: tId,
  894. newPro: ''
  895. }, "post", function (data) {
  896. if (data.success) {
  897. memberArr = {}
  898. $('#teamMembers').html('')
  899. pageNo = 1
  900. secretaryId = ''
  901. chiefId = ''
  902. professorListVal(true, true)
  903. }
  904. })
  905. });
  906. })
  907. $('.queStep').on('click', '.deloutPro', function () {
  908. var pid = $(this).attr("data-id")
  909. $.MsgBox.Confirm("提示", "确定将该成员移出团队?", function () {
  910. oAjax("/ajax/team/deletePro", {
  911. id: tId,
  912. professor: pid
  913. }, "post", function (data) {
  914. if (data.success) {
  915. memberArr = {}
  916. $('#teamMembers').html('')
  917. pageNo = 1
  918. secretaryId = ''
  919. chiefId = ''
  920. professorListVal(true, true)
  921. }
  922. })
  923. });
  924. })
  925. //==== members model =====//
  926. $("#updateTeam").on('click', function () {
  927. location.href = "updateTeam.html?id=" + tId
  928. });
  929. $("#delTeam").on('click', function () {
  930. $.MsgBox.Confirm("提示", "确定删除该团队?", function () {
  931. oAjax("/ajax/team/delete", {
  932. id: tId
  933. }, "post", function (data) {
  934. if (data.success) {
  935. location.href = "teamList.html"
  936. }
  937. })
  938. });
  939. });
  940. //==== paper =====//
  941. $('#item5user').on('click', '.steptit>a', function () {
  942. console.log(124)
  943. $('#item5user .steptit>a').removeClass('active')
  944. $(this).addClass('active')
  945. var st = $(this).attr("data-index")
  946. $('#item5user>.otherShow>.aboutRes').addClass('displayNone')
  947. $('#item5user>.otherShow>.aboutRes').eq(st).removeClass('displayNone')
  948. if (st === '0') {
  949. paperArr = []
  950. $('#proPaper').html('')
  951. pagePerNo = 1
  952. paperListVal(true)
  953. } else if (st === '1') {
  954. $('#searchPaper').html('')
  955. $('#searchPaperKey').val('')
  956. searchPaper()
  957. }
  958. })
  959. $('#item5user').on('click', '.searchSpan', function () {
  960. searchPaper()
  961. })
  962. $('#item5user').on('click', 'li.addThis', function () {
  963. var _this = this
  964. var fl = $(this).attr("data-flag")
  965. if (fl === '1') {
  966. var pid = $(this).attr("data-id")
  967. oAjax("/ajax/team/insertPaper", {
  968. id: tId,
  969. paper: pid
  970. }, "post", function (data) {
  971. $(_this).addClass("added").text("已添加")
  972. $(_this).attr("data-flag", '0')
  973. })
  974. }
  975. })
  976. $('#item5user,#showPaper').on('click', '.deloutPro', function () {
  977. var pid = $(this).attr("data-id")
  978. $.MsgBox.Confirm("提示", "确定取消关联该论文?", function () {
  979. oAjax("/ajax/team/deletePaper", {
  980. id: tId,
  981. paper: pid
  982. }, "post", function (data) {
  983. if (data.success) {
  984. paperArr = []
  985. $('#proPaper').html('')
  986. pagePerNo = 1
  987. paperListVal(true)
  988. }
  989. })
  990. });
  991. })
  992. //==== paper =====//
  993. //==== patent =====//
  994. $('#item6drop2').on('click', '.steptit>a', function () {
  995. $('#item6drop2 .steptit>a').removeClass('active')
  996. $(this).addClass('active')
  997. var st = $(this).attr("data-index")
  998. $('#item6drop2 .aboutRes').addClass('displayNone')
  999. $('#item6drop2 .aboutRes').eq(st).removeClass('displayNone')
  1000. if (st === '0') {
  1001. patentArr = []
  1002. $('#proPatent').html('')
  1003. pagePerNo = 1
  1004. patentListVal(true)
  1005. } else if (st === '1') {
  1006. $('#searchPatent').html('')
  1007. $('#searchPatentKey').val('')
  1008. $('#searchPatentKey').val(null)
  1009. searchPatent()
  1010. }
  1011. })
  1012. $('#item6drop2').on('click', '.searchSpan', function () {
  1013. searchPatent()
  1014. })
  1015. $('#item6drop2').on('click', 'li.addThis', function () {
  1016. var _this = this
  1017. var fl = $(this).attr("data-flag")
  1018. if (fl === '1') {
  1019. var pid = $(this).attr("data-id")
  1020. oAjax("/ajax/team/insertPatent", {
  1021. id: tId,
  1022. patent: pid
  1023. }, "post", function (data) {
  1024. $(_this).addClass("added").text("已添加")
  1025. $(_this).attr("data-flag", '0')
  1026. })
  1027. }
  1028. })
  1029. $('#item6drop2,#showPatent').on('click', '.deloutPro', function () {
  1030. var pid = $(this).attr("data-id")
  1031. $.MsgBox.Confirm("提示", "确定取消关联该专利成果?", function () {
  1032. oAjax("/ajax/team/deletePatent", {
  1033. id: tId,
  1034. patent: pid
  1035. }, "post", function (data) {
  1036. if (data.success) {
  1037. patentArr = []
  1038. $('#proPatent').html('')
  1039. pagePerNo = 1
  1040. patentListVal(true)
  1041. }
  1042. })
  1043. });
  1044. })
  1045. //==== patent =====//
  1046. //==== unpatent =====//
  1047. $('#item6drop1').on('click', '.steptit>a', function () {
  1048. $('#item6drop1 .steptit>a').removeClass('active')
  1049. $(this).addClass('active')
  1050. var st = $(this).attr("data-index")
  1051. $('#item6drop1 .aboutRes').addClass('displayNone')
  1052. $('#item6drop1 .aboutRes').eq(st).removeClass('displayNone')
  1053. if (st === '0') {
  1054. unpatentArr = []
  1055. $('#proUnPatent').html('')
  1056. pagePerNo = 1
  1057. unpatentListVal(true)
  1058. } else if (st === '1') {
  1059. $('#searchUnPatent').html('')
  1060. $('#searchUnPatentKey').val('')
  1061. searchUnPatent()
  1062. }
  1063. })
  1064. $('#item6drop1').on('click', '.searchSpan', function () {
  1065. searchUnPatent()
  1066. })
  1067. $('#item6drop1').on('click', 'li.addThis', function () {
  1068. var _this = this
  1069. var fl = $(this).attr("data-flag")
  1070. if (fl === '1') {
  1071. var pid = $(this).attr("data-id")
  1072. oAjax("/ajax/team/insertResResult", {
  1073. id: tId,
  1074. researchResult: pid
  1075. }, "post", function (data) {
  1076. $(_this).addClass("added").text("已添加")
  1077. $(_this).attr("data-flag", '0')
  1078. })
  1079. }
  1080. })
  1081. $('#item6drop1,#showUnPatent').on('click', '.deloutPro', function () {
  1082. var pid = $(this).attr("data-id")
  1083. $.MsgBox.Confirm("提示", "确定取消关联该非专利成果?", function () {
  1084. oAjax("/ajax/team/deleteResResult", {
  1085. id: tId,
  1086. researchResult: pid
  1087. }, "post", function (data) {
  1088. if (data.success) {
  1089. unpatentArr = []
  1090. $('#proUnPatent').html('')
  1091. pagePerNo = 1
  1092. unpatentListVal(true)
  1093. }
  1094. })
  1095. });
  1096. })
  1097. //==== unpatent =====//
  1098. $('#seeMoreF,#seeMoreZ').unbind("click").on("click", function () {
  1099. $(".leftconItem").hide();
  1100. var activeTab = $('#item6user').attr("rel");
  1101. $("#item6user").show()
  1102. $("ul.mainNavUl li").removeClass("liNow");
  1103. $('#tab6user').addClass("liNow");
  1104. $(".moreNav").hide();
  1105. var pa = $(".moreNavUl.wendaUl>li.liNow").attr("rel")
  1106. $("#" + pa).find("ul").html("")
  1107. $("#" + pa).find(".js-load-more").show();
  1108. $(".wendaNav li").eq(0).addClass("liNow").siblings().removeClass("liNow");
  1109. $("#item6drop1").show()
  1110. $("#item6more").show()
  1111. unpatentListVal(true);
  1112. })
  1113. $('#seeMoreL').unbind("click").on("click", function () {
  1114. $(".leftconItem").hide();
  1115. var activeTab = $('#item5user').attr("rel");
  1116. $("#item5user").show()
  1117. $("ul.mainNavUl li").removeClass("liNow");
  1118. $('#tab5user').addClass("liNow");
  1119. $(".moreNav").hide();
  1120. })
  1121. $("#tab6user").unbind("click").on("click", function () {
  1122. var pa = $(".moreNavUl.wendaUl>li.liNow").attr("rel")
  1123. $("#" + pa).find("ul").html("")
  1124. $("#" + pa).find(".js-load-more").show();
  1125. $(".wendaNav li").eq(0).addClass("liNow").siblings().removeClass("liNow");
  1126. $("#item6drop1").show().siblings().hide();
  1127. unpatentListVal(true);
  1128. })
  1129. $(".moreNavUl.wendaUl").on("click", "li", function () {
  1130. var pa = $(this).attr("rel")
  1131. $("#" + pa).find("ul").html("")
  1132. $("#" + pa).find(".js-load-more").show();
  1133. var sortN = $(this).attr("data-num");
  1134. if (sortN == 1) {
  1135. unpatentListVal(true);
  1136. } else if (sortN == 2) {
  1137. patentListVal(true);
  1138. }
  1139. })
  1140. }
  1141. getUserInfo();
  1142. professorListVal(true);
  1143. unpatentListVal(true);
  1144. patentListVal(true);
  1145. paperListVal(true);
  1146. bindClickFun();
  1147. })