index_mbdb.jsp 146 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
  2. <%@ page isELIgnored="false" %>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <%@ taglib prefix="tc" uri="http://www.mingto.net/tip" %>
  5. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
  6. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
  7. <%--
  8. ~ Copyright (c) 2014, 2023, Chengdu Minto Technology Co.,LTD. All rights reserved.
  9. ~ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  10. --%>
  11. <!DOCTYPE html>
  12. <html xmlns="http://www.w3.org/1999/xhtml">
  13. <head>
  14. <meta name="renderer" content="webkit"/>
  15. <meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9; IE=8; IE=7; IE=EDGE,chrome=1"/>
  16. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  17. <meta name="_csrf" content="${_csrf.token}"/>
  18. <meta name="_csrf_header" content="${_csrf.headerName}"/>
  19. <meta name="_res_suffix" content="${resSuffix}"/>
  20. <meta name="_path" content="${path}" />
  21. <meta name="_locale" content="${locale}" />
  22. <title>${curCorp.cname}&nbsp;${tcVersion}, ${curUser.pname},欢迎您!</title>
  23. <%@ include file="/tc_ttp/common/common.jsp" %>
  24. <link href="${path}/tc_ttp/style/style.css${resSuffix}" rel="Stylesheet" type="text/css"/>
  25. <link href="${path}/tc_ttp/style/cloud/css/smartMenu.css${resSuffix}" media="screen" rel="stylesheet"
  26. type="text/css"/>
  27. <link href="${path}/tc_ttp/venobox/venobox.css${resSuffix}" rel="stylesheet" type="text/css"/>
  28. <link href="${path}/tc_ttp/bootstrap/css/font-awesome.css${resSuffix}" rel="stylesheet" type="text/css"/>
  29. <link href="${path}/tc_ttp/dummyPhotoView/dummyPhotoView.css${resSuffix}" rel="Stylesheet" type="text/css"/>
  30. <link rel="Stylesheet" type="text/css" href="${path}/common/zTree/css/zTreeStyle/zTreeStyle.css${resSuffix}"/>
  31. <link href="${path}/tc_ttp/nprogress/nprogress.css${resSuffix}" rel="stylesheet" type="text/css"/>
  32. <link href="${path}/tc_ttp/toastr/toastr.css${resSuffix}" rel="stylesheet" type="text/css"/>
  33. <link href="${path}/tc_ttp/style/default/css/suite/webIM/style.css${resSuffix}" rel="stylesheet" type="text/css"/>
  34. <link rel="stylesheet" href="${path}/common/mCustomScrollbar/css/jquery.mCustomScrollbar.css${resSuffix}">
  35. <link rel="stylesheet" href="${path}/tc_suite/home/css/title.css${resSuffix}">
  36. <link rel="stylesheet" href="${path}/tc_suite/home/css/supervisionIndex.css${resSuffix}">
  37. <link rel="stylesheet" href="${path}/tc_ttp/element-ui/minto/element-mask.css${resSuffix}" type="text/css"/>
  38. <link href="${path}/common/css/minto.layout.css${resSuffix}" rel="stylesheet" type="text/css"/>
  39. <link rel="stylesheet" href="${path}/common/css/minto.icon.css${resSuffix}" type="text/css"/>
  40. <link rel="Stylesheet" type="text/css" href="${path}/common/css/minto.comp.css"/>
  41. <link rel="Stylesheet" type="text/css" href="${path}/common/minto-ui/styles/minto.css"/>
  42. <link rel="Stylesheet" type="text/css" href="${path}/common/js/ui/icon/iconfont.css"/>
  43. <style>
  44. #org-group {
  45. position: absolute;
  46. right: 1px;
  47. top: 0;
  48. display: none;
  49. height: 39px;
  50. line-height: 39px;
  51. margin-right: 0;
  52. }
  53. #org-group .mt-dropdown-more {
  54. right: 0;
  55. left: initial;
  56. padding: 6px;
  57. }
  58. #org-group .iconzuzhi {
  59. color: #0c94ff;
  60. margin-right: 6px;
  61. }
  62. .spaceDiv {
  63. line-height: 30px;
  64. height: 30px;
  65. border-bottom: 1px solid #ddd;
  66. text-indent: 10px;
  67. cursor: pointer;
  68. }
  69. .spaceDiv.current {
  70. background: #f0f0f0;
  71. }
  72. .remindNum {
  73. position: absolute;
  74. right: 0;
  75. top: 5px;
  76. background: #f00;
  77. font-size: 12px;
  78. display: inline-block;
  79. width: 14px;
  80. height: 14px;
  81. border-radius: 50%;
  82. text-align: center;
  83. line-height: 14px;
  84. }
  85. .menu_arrow {
  86. cursor: pointer;
  87. display: inine-block;
  88. position: absolute;
  89. width: 17px;
  90. left: 0;
  91. top: 50%;
  92. height: 60px;
  93. z-index: 1000;
  94. margin-top: -30px;
  95. background: url(${path}/tc_suite/portal/images/icon_arrow.png) left -60px;
  96. }
  97. .menu_arrow:hover {
  98. background-position: -20px -60px;
  99. }
  100. .openMenu {
  101. background-position: left top;
  102. }
  103. .openMenu:hover {
  104. background-position: -21px top;
  105. }
  106. .ui-state-default a {
  107. display: inline-block;
  108. overflow: hidden;
  109. text-overflow: ellipsis;
  110. white-space: nowrap;
  111. }
  112. .ui-state-default .ui-corner-top {
  113. height: 39px;
  114. }
  115. .community-list .title {
  116. cursor: pointer;
  117. }
  118. .community-list .title:hover {
  119. color: #0c94ff;
  120. }
  121. .lefts_imgs {
  122. background-color: #0c94ff;
  123. }
  124. .lefts_imgs:hover {
  125. background-color: #0282c8;
  126. }
  127. .a_msg {
  128. width: 30px;
  129. height: 30px;
  130. background: url('${path}/tc_ttp/images/home/msg.png') no-repeat;
  131. }
  132. .a_msg.current {
  133. width: 30px;
  134. height: 30px;
  135. background: url('${path}/tc_ttp/images/home/msg_on.png') no-repeat;
  136. }
  137. .a_organ {
  138. width: 30px;
  139. height: 30px;
  140. background: url('${path}/tc_ttp/images/home/organ.png') no-repeat;
  141. }
  142. .a_organ.current {
  143. width: 30px;
  144. height: 30px;
  145. background: url('${path}/tc_ttp/images/home/organ_on.png') no-repeat;
  146. }
  147. .a_feature.current {
  148. width: 30px;
  149. height: 30px;
  150. background: url('${path}/tc_ttp/images/home/feature_on.png') no-repeat;
  151. }
  152. .list_ul li {
  153. height: 40px;
  154. line-height: 40px;
  155. }
  156. .msg_names {
  157. float: left;
  158. height: 15px;
  159. line-height: 15px;
  160. margin-left: 5px;
  161. font-size: 14px;
  162. }
  163. .msg_contents {
  164. float: left;
  165. height: 15px;
  166. line-height: 15px;
  167. margin-left: 5px;
  168. margin-top: 5px;
  169. font-size: 14px;
  170. color: #808080;
  171. width: 190px;
  172. white-space: nowrap;
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. }
  176. .detailed_contents {
  177. width: 300px;
  178. position: fixed;
  179. left: -210px;
  180. top: 0;
  181. bottom: 0;
  182. background: #fff;
  183. z-index: 1100;
  184. overflow: none
  185. }
  186. /* 增加一个样式用于区分是否是未读消息 modify by huzy 2017/11/29 15:17*/
  187. #tabLabel li {
  188. height: 39px;
  189. }
  190. .ui-state-active {
  191. height: 36px;
  192. }
  193. .unReadMsg .title {
  194. font-weight: bold;
  195. }
  196. .mCSB_scrollTools {
  197. width: 6px;
  198. }
  199. input::input-placeholder {
  200. color: #74736d;
  201. }
  202. input::-webkit-input-placeholder {
  203. color: #74736d;
  204. }
  205. input::-moz-placeholder {
  206. color: #74736d;
  207. }
  208. input::-ms-placeholder {
  209. color: #74736d;
  210. }
  211. input::-o-placeholder {
  212. color: #74736d;
  213. }
  214. .system-menu a {
  215. border: none
  216. }
  217. .ui-tabs .ui-tabs-nav li {
  218. height: 37px;
  219. }
  220. #layout-left .list_zeert {
  221. display: none;
  222. background: #086499;
  223. }
  224. .active {
  225. display: block;
  226. }
  227. .jing {
  228. position: relative;
  229. margin-top: 14px;
  230. margin-left: 15px;
  231. margin-right: 15px;
  232. cursor: pointer;
  233. }
  234. .system-menu a:hover {
  235. background: none;
  236. }
  237. #tabs {
  238. overflow: hidden;
  239. position: static;
  240. border: none;
  241. }
  242. #tabLabel li a {
  243. font-size: 14px;
  244. }
  245. .menu-real a, .menu-virtual a, .menu-sub-item a {
  246. color: #fff;
  247. }
  248. .list_show:hover {
  249. color: #9edbfc !important;
  250. }
  251. .menu-real a:hover {
  252. color: #9edbfc !important;
  253. }
  254. .menu-virtual a:hover {
  255. color: #9edbfc !important;
  256. }
  257. .menu-sub-item a:hover {
  258. color: #9edbfc !important;
  259. }
  260. #layout-left .ztree {
  261. padding: 0;
  262. padding-left: 20px;
  263. background: #086499;
  264. }
  265. #layout-left .ztree li span.button.ico_open {
  266. display: none !important;
  267. }
  268. #layout-left .ztree li span.button.ico_close {
  269. display: none !important;
  270. }
  271. #layout-left .ztree li span.button {
  272. background: none
  273. }
  274. #layout-left .ztree li span.button.roots_close {
  275. background: url('${path}/tc_suite/images/j.png') no-repeat center center;
  276. }
  277. #layout-left .ztree li span.button.roots_open {
  278. background: url('${path}/tc_suite/images/jj.png') no-repeat center center;
  279. }
  280. #layout-left .ztree li span.button.root_close {
  281. background: url('${path}/tc_suite/images/j.png') no-repeat center center;
  282. }
  283. #layout-left .ztree li span.button.root_open {
  284. background: url('${path}/tc_suite/images/jj.png') no-repeat center center;
  285. }
  286. #layout-left .ztree li span.button.center_open {
  287. background: url('${path}/tc_suite/images/jj.png') no-repeat center center;
  288. }
  289. #layout-left .ztree li span.button.center_close {
  290. background: url('${path}/tc_suite/images/j.png') no-repeat center center;
  291. }
  292. #layout-left .ztree li span.button.bottom_open {
  293. background: url('${path}/tc_suite/images/jj.png') no-repeat center center;
  294. }
  295. #layout-left .ztree li span.button.bottom_close {
  296. background: url('${path}/tc_suite/images/j.png') no-repeat center center;
  297. }
  298. #layout-left .ztree li span.button.center_docu {
  299. background: url('${path}/tc_suite/images/jiao.png') no-repeat center center;
  300. }
  301. #layout-left .ztree li span.button.bottom_docu {
  302. background: url('${path}/tc_suite/images/jiao.png') no-repeat center center;
  303. }
  304. #layout-left .ztree li span {
  305. line-height: 40px;
  306. font-size: 14px;
  307. color: #fff;
  308. }
  309. #layout-left .ztree li a span {
  310. padding-left: 5px;
  311. }
  312. #layout-left .ztree li a {
  313. height: 40px;
  314. line-height: 40px;
  315. width: auto;
  316. overflow: hidden;
  317. text-overflow: ellipsis;
  318. white-space: nowrap;
  319. }
  320. #layout-left .ztree li a:hover {
  321. background: none;
  322. width: auto;
  323. }
  324. #layout-left .ztree li a span:hover {
  325. color: #ccc !important;
  326. }
  327. #layout-left .ztree li a.curSelectedNode {
  328. background: none;
  329. opacity: 1;
  330. }
  331. #layout-left .ztree li span.button.switch {
  332. margin-top: 0px;
  333. }
  334. #layout-left .ztree li ul.line {
  335. background: none;
  336. }
  337. .mCSB_inside > .mCSB_container {
  338. margin-right: 0;
  339. }
  340. #layout-left .ztree * {
  341. color: #fff;
  342. }
  343. .mCSB_scrollTools .mCSB_draggerRail {
  344. opacity: 0
  345. }
  346. .switch_list {
  347. position: absolute;
  348. right: 0px;
  349. top: 50%;
  350. margin-top: -20px;
  351. z-index: 999;
  352. }
  353. #switch .switch_log {
  354. cursor: pointer;
  355. width: 22px;
  356. transition: all .3s;
  357. -webit-transition: all .3s;
  358. -o-transition: all .3s;
  359. -moz-transition: all .3s;
  360. }
  361. .switch_kai {
  362. position: absolute;
  363. left: 0px;
  364. top: 0px;
  365. right: 0;
  366. bottom: 0;
  367. z-index: 100;
  368. background: rgba(0, 0, 0, 0.4);
  369. margin-top: 0;
  370. }
  371. .switch_content {
  372. position: absolute;
  373. width: 480px;
  374. background: #fff;
  375. right: -480px;
  376. top: 0;
  377. height: 100%;
  378. padding: 40px;
  379. overflow: auto;
  380. padding-right: 0;
  381. padding-left: 20px;
  382. }
  383. .switch_content ul li {
  384. background: #f2f2f2;
  385. margin-bottom: 30px;
  386. cursor: pointer;
  387. margin-right: 20px;
  388. }
  389. .switch_content ul li:last-child {
  390. margin-bottom: 0;
  391. }
  392. .switch_content_log {
  393. width: 100%;
  394. padding: 10px;
  395. height: 220px;
  396. }
  397. .switch_content ul li p {
  398. height: 60px;
  399. background: #e6e6e6;
  400. line-height: 60px;
  401. text-align: center;
  402. margin: 0;
  403. }
  404. .switch_content ul li span {
  405. padding-left: 20px;
  406. position: relative;
  407. font-size: 16px;
  408. color: #1a1a1a;
  409. }
  410. .switch_content label {
  411. display: inline-block;
  412. width: 14px;
  413. height: 14px;
  414. border: 1px solid #808080;
  415. border-radius: 50%;
  416. position: absolute;
  417. left: 0;
  418. top: 50%;
  419. margin-top: -7px;
  420. }
  421. .switch_content .show {
  422. background-color: #f2f2f2;
  423. border-radius: 4px;
  424. border: solid 2px #0c94ff;
  425. }
  426. .switch_content .show p span {
  427. color: #fff;
  428. }
  429. .switch_content .show p span label {;
  430. border: 1px solid #fff;
  431. }
  432. .switch_content .show p span label i {
  433. display: inline-block;
  434. width: 4px;
  435. height: 4px;
  436. border-radius: 50%;
  437. background: #fff;
  438. position: absolute;
  439. left: 4px;
  440. top: 4px;
  441. }
  442. #switch .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  443. background: #999999;
  444. }
  445. #tabs_pagination {
  446. margin-left: 40px;
  447. margin-right: 80px;
  448. overflow: hidden;
  449. border-bottom: 1px solid #b5b5b5;
  450. }
  451. #tabs_pagination .tabs-control:hover {
  452. background: #f6f6f6;
  453. }
  454. #tabs_pagination .tabs-prev {
  455. position: absolute;
  456. top: 0;
  457. left: 0;
  458. z-index: 1;
  459. height: 40px;
  460. width: 40px;
  461. line-height: 40px;
  462. text-align: center;
  463. background: white;
  464. border-bottom: 1px solid #b5b5b5;
  465. border-right: 1px solid #b5b5b5;
  466. }
  467. #tabs_pagination .tabs-next {
  468. position: absolute;
  469. top: 0;
  470. right: 40px;
  471. z-index: 1;
  472. height: 40px;
  473. width: 40px;
  474. line-height: 40px;
  475. text-align: center;
  476. background: white;
  477. border-bottom: 1px solid #b5b5b5;
  478. border-left: 1px solid #b5b5b5;
  479. }
  480. #tabs_pagination .tabs-menu {
  481. position: absolute;
  482. top: 0;
  483. right: 0;
  484. z-index: 1;
  485. height: 40px;
  486. width: 40px;
  487. line-height: 40px;
  488. text-align: center;
  489. background: white;
  490. border: none;
  491. border-bottom: 1px solid #b5b5b5;
  492. border-left: 1px solid #b5b5b5;
  493. }
  494. .Main_top {
  495. height: 70px !important;
  496. min-height: 70px !important;
  497. background: url("${path}/tc_suite/images/topBgd.png") no-repeat;
  498. background-size: 100% 100%;
  499. display: flex;
  500. align-items: center;
  501. justify-content: space-between;
  502. }
  503. #msg_detailed_contents {
  504. font-size: 16px;
  505. box-shadow: 0 1px 6px 1px rgba(0, 74, 143, .18);
  506. border-radius: 2px;
  507. overflow: hidden;
  508. width: 380px;
  509. left: auto !important;
  510. bottom: 17px;
  511. top: 109px;
  512. display: none;
  513. }
  514. .msg_top_title {
  515. display: flex;
  516. align-items: center;
  517. width: 100%;
  518. height: 40px;
  519. padding: 0 20px;
  520. background: #f5f5f5;
  521. }
  522. .msg_detailed_closed {
  523. position: absolute;
  524. right: 0;
  525. font-size: 14px !important;
  526. }
  527. @media screen and (max-width: 1600px) {
  528. .msg_top_title {
  529. padding: 0 10px;
  530. width: 100%;
  531. height: 30px;
  532. }
  533. #msg_detailed_contents {
  534. font-size: 14px;
  535. top: 89px !important;
  536. width: 305px !important;
  537. }
  538. }
  539. #sysmsg img {
  540. border-radius: 50%;
  541. }
  542. #sysmsg tr {
  543. border-bottom: 1px solid #dbebf8;
  544. }
  545. .addOfNode {
  546. margin-left: 20px;
  547. height: 43px;
  548. }
  549. #mainFrame {
  550. height: 100% !important;
  551. }
  552. .addOfNode span:hover {
  553. cursor: pointer;
  554. color: #ccc;
  555. }
  556. .floatingWindow {
  557. width: 70px;
  558. background: #fff;
  559. box-shadow: 0 0 8px rgba(166, 177, 186, .1);
  560. }
  561. .shrink {
  562. width: 100%;
  563. height: 30px;
  564. background: #999999;
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. cursor: pointer;
  569. }
  570. .floatingWindowList {
  571. width: 100%;
  572. }
  573. .floatingWindowLi {
  574. width: 100%;
  575. height: 58px;
  576. display: flex;
  577. flex-direction: column;
  578. align-items: center;
  579. justify-content: center;
  580. margin: 19px 0;
  581. cursor: pointer;
  582. color: #999;
  583. }
  584. .floatingWindowName {
  585. font-size: 12px;
  586. margin-top: 5px;
  587. }
  588. .liDown {
  589. background: #0c94ff;
  590. color: #fff;
  591. }
  592. .labelIframe {
  593. position: absolute;
  594. top: 170px;
  595. z-index: 0;
  596. bottom: 0;
  597. left: 0;
  598. right: 0;
  599. margin: 0;
  600. padding: 0 !important;
  601. border: none;
  602. height: calc(100% - 170px);
  603. overflow-y: auto;
  604. }
  605. .labelIframe iframe {
  606. min-height: 100%;
  607. }
  608. #mainframe {
  609. min-height: 730px !important;
  610. }
  611. @media screen and (max-width: 1610px) {
  612. .switch_content ul li {
  613. margin-bottom: 20px;
  614. margin-right: 15px;
  615. }
  616. .switch_content {
  617. width: 390px;
  618. padding-left: 15px;
  619. }
  620. .switch_content ul li p {
  621. height: 40px;
  622. line-height: 40px;
  623. }
  624. #mainframe {
  625. min-height: 574px !important;
  626. }
  627. .labelIframe {
  628. top: 130px;
  629. height: calc(100% - 135px);
  630. }
  631. .right-nav .cell {
  632. height: 150px !important;
  633. }
  634. }
  635. @media screen and (max-width: 1370px) {
  636. #mainframe {
  637. min-height: 500px !important;
  638. }
  639. .right-nav .cell {
  640. height: 140px !important;
  641. }
  642. }
  643. .tipsDiv span {
  644. display: initial;
  645. }
  646. #Main {
  647. top: 0;
  648. }
  649. .mt-center {
  650. overflow-y: auto;
  651. }
  652. .ui-tabs .ui-tabs-panel {
  653. padding: 0;
  654. }
  655. .home-mask {
  656. position: fixed;
  657. left: 0px;
  658. top: 0px;
  659. transition: opacity 0.2s ease 0s;
  660. width: 100%;
  661. height: 100%;
  662. z-index: 9999;
  663. opacity: 1;
  664. background: rgb(255, 255, 255);
  665. display: block;
  666. font-size: 16px;
  667. }
  668. .roleNav {
  669. width: 60px;
  670. border-top-left-radius: 2px;
  671. border-bottom-left-radius: 2px;
  672. box-shadow: -5px 5px 8px rgba(0, 55, 97, 0.05);
  673. }
  674. .roleLi {
  675. width: 100%;
  676. height: 83px;
  677. background: #f9f9f9;
  678. font-size: 14px;
  679. color: #999999;
  680. display: flex !important;
  681. align-items: center;
  682. justify-content: center;
  683. padding: 0 5px;
  684. text-align: center;
  685. border-bottom: 1px solid #e5e5e5;
  686. cursor: pointer;
  687. }
  688. .roleLi:last-child {
  689. border: none;
  690. }
  691. .roleChosen {
  692. color: #0c94ff;
  693. background: #fff;
  694. border-bottom: 1px solid #c8e4fe;
  695. }
  696. .switch_log {
  697. display: none !important;
  698. }
  699. @media screen and (max-width: 1600px) {
  700. #org-group {
  701. height: 29px;
  702. line-height: 29px;
  703. }
  704. .right-nav .cell {
  705. height: 150px !important;
  706. }
  707. }
  708. .contben {
  709. z-index: -999999;
  710. position: fixed;
  711. right: -13px;
  712. top: 50%;
  713. width: 25px;
  714. height: 65px;
  715. box-shadow: 0 0 5px 0px #EBEDF2;
  716. background-color: #FFFFFF;
  717. cursor: pointer;
  718. border-top-left-radius: 15%;
  719. border-bottom-left-radius: 15%;
  720. }
  721. .contben > li {
  722. border-radius: 50%;
  723. width: 8px;
  724. margin-top: 10px;
  725. margin-left: 10px;
  726. height: 8px;
  727. background-color: #B3D2E9;
  728. }
  729. .showBox {
  730. position: fixed;
  731. right: -60px;
  732. }
  733. .contshowBox {
  734. animation: animate 0.5s linear;
  735. position: fixed;
  736. right: 0;
  737. }
  738. .contshowBox1 {
  739. animation: zaoeer 0.5s linear;
  740. position: fixed;
  741. right: -60px;
  742. }
  743. @keyframes zaoeer {
  744. from {
  745. right: 0;
  746. }
  747. to {
  748. right: -60px;
  749. }
  750. }
  751. @keyframes animate {
  752. from {
  753. right: -60px;
  754. }
  755. to {
  756. right: 0;
  757. }
  758. }
  759. .on {
  760. z-index: -99999;
  761. }
  762. .open-img {
  763. right: 0;
  764. top: 77%;
  765. position: fixed;
  766. z-index: 2;
  767. cursor: pointer;
  768. width: 57px;
  769. height: 90px;
  770. display: none;
  771. }
  772. #tuzaiIcon {
  773. position: relative;
  774. left: 90%;
  775. bottom: 1%;
  776. position: fixed;
  777. z-index: 1112;
  778. cursor: pointer;
  779. height: fit-content;
  780. width: fit-content;
  781. display: none;
  782. }
  783. #tuzaiIcon .icon-img {
  784. width: 106px;
  785. height: 168px;
  786. }
  787. #minto-tuzai {
  788. width: 530px;
  789. z-index: 2;
  790. left: 66%;
  791. top: 4%;
  792. box-shadow: 0 0 20px #093672;
  793. }
  794. .close-icon {
  795. color: #fff;
  796. right: 4px;
  797. top: -12px;
  798. position: absolute;
  799. z-index: 2;
  800. font-size: 81px;
  801. font-size: 40px;
  802. cursor: pointer;
  803. }
  804. .recommend {
  805. height: 92vh !important;
  806. }
  807. .close-tuzai {
  808. width: 28px;
  809. height: 28px;
  810. visibility: hidden;
  811. }
  812. .iframeDiv {
  813. width: 100%;
  814. height: 100%;
  815. position: absolute;
  816. z-index: 1111;
  817. filter: alpha(opacity=0);
  818. opacity: 0;
  819. background: transparent;
  820. margin-top: 30px;
  821. display: none;
  822. }
  823. .content {
  824. margin-right: 0 !important;
  825. }
  826. .iframe-pop {
  827. z-index: 2;
  828. visibility: hidden;
  829. }
  830. .tuzai-tip {
  831. z-index: 2;
  832. background-size: 100% 100%;
  833. background-repeat: no-repeat;
  834. width: 142px;
  835. height: 50px;
  836. position: fixed;
  837. left: 82%;
  838. top: 77%;
  839. color: #fff;
  840. font-size: 16px;
  841. display: none;
  842. }
  843. .tip-info {
  844. width: 142px;
  845. height: 40px;
  846. display: flex;
  847. justify-content: center;
  848. align-items: center;
  849. }
  850. .container-hidden {
  851. visibility: hidden;
  852. }
  853. .close-box {
  854. top: -20px;
  855. right: -20px;
  856. position: absolute;
  857. }
  858. .img-rotate {
  859. transform: rotateY(180deg);
  860. }
  861. .recommend-title span {
  862. font-size: 24px !important;
  863. font-family: Source Han Sans CN,-apple-system,BlinkMacSystemFont,segoe ui,Roboto,helvetica neue,Arial,noto sans,sans-serif,apple color emoji,segoe ui emoji,segoe ui symbol,noto color emoji;
  864. }
  865. .message-icon {
  866. width: 44px;
  867. height: 44px;
  868. border-radius: 44px;
  869. display: flex;
  870. justify-content: center;
  871. align-items: center;
  872. }
  873. .mbdb-cell {
  874. padding: 15px 5px 15px 0px;
  875. border-bottom: 1px solid #dbebf8;
  876. }
  877. .message-content {
  878. word-wrap: break-word;
  879. line-height: 20px;
  880. vertical-align: top;
  881. font-size: 12px;
  882. word-break: break-all;
  883. position: relative;
  884. }
  885. .message-content-title {
  886. width: 100%;
  887. overflow: hidden;
  888. text-overflow: ellipsis;
  889. display: -webkit-box;
  890. -webkit-box-orient: vertical;
  891. -webkit-line-clamp: 3;
  892. font-size: 14px;
  893. height: 40px;
  894. }
  895. .message-content-time {
  896. position: absolute;
  897. bottom: 0;
  898. right: 5px;
  899. color: #999999;
  900. }
  901. /*以下内容是处理顶部页签选中效果存在弹跳的问题 start */
  902. .ui-tabs .ui-tabs-nav li:after{
  903. content: '';
  904. background-color: #0c94ff;
  905. position: absolute;
  906. top: 0;
  907. left: 0;
  908. width: 0;
  909. height: 2px;
  910. border-radius: 0;
  911. transition: all .3s;
  912. -webkit-transition: all .3s;
  913. }
  914. .ui-tabs .ui-tabs-nav li:hover:after{
  915. width: 100%;
  916. }
  917. .ui-tabs .ui-tabs-nav li.ui-tabs-selected.ui-state-active{
  918. border-top: none !important;
  919. margin-top: 0 !important;
  920. box-sizing: border-box;
  921. }
  922. .ui-tabs .ui-tabs-nav li.ui-tabs-selected.ui-state-active:after{
  923. width: 100%;
  924. border: none;
  925. height: 2px;
  926. }
  927. /*以下内容是处理顶部页签选中效果存在弹跳的问题 end */
  928. /* 处理文本过长 */
  929. .word-split{
  930. width: 60px;
  931. overflow: hidden;
  932. white-space: nowrap;
  933. text-overflow: ellipsis;
  934. }
  935. </style>
  936. </head>
  937. <body style="overflow:hidden;height: 100%;background: #fff;">
  938. <c:if test="${showQianTu}">
  939. <div class="iframeDiv"></div>
  940. <img src="${path}/tc_ttp/tuzai/tuzai-left.gif" class="open-img"/>
  941. <div class="tuzai-tip" style="background-image:url(${path}/tc_ttp/tuzai/tip.png )">
  942. <div class="tip-info">小途在哦!</div>
  943. </div>
  944. <div id="tuzai">
  945. <div id="tuzaiIcon">
  946. <div class="close-box"><img src="${path}/tc_ttp/tuzai/close.png" class="close-tuzai"></div>
  947. <img src="${path}/tc_ttp/tuzai/assistant.gif" class="icon-img" @click="touchTuzai" id="iconImg">
  948. </div>
  949. <div id="minto-tuzai" style="position: fixed" ref="mintoTuzai">
  950. <div v-if="elShow">
  951. <span class="close-icon" @click="closeContent">×</span>
  952. <recommend ref="recommend" :nav-data="navData" :menu-data="menuData" :information-data="informationData"
  953. :banner="'${path}/tc_ttp/tuzai/banner.png'" @menu-select="menuSelect"
  954. @on-detail="openDetail" @load-more="loadMore" @on-search="search">
  955. <template v-slot:content class="flex">
  956. <iframe src="https://h5.myqiantu.net/#/?openid=${openId}&loginType=WorkHi&sex=${sex}&headImgUrl=${headImgUrl}&nickname=${nickname}&phone=${phone}&qtUserId=${qtUserId}"
  957. style="width:100%" webkitallowfullscreen="true" mozallowfullscreen="true"
  958. allowfullscreen="true"></iframe>
  959. </template>
  960. </recommend>
  961. </div>
  962. </div>
  963. </div>
  964. </div>
  965. </c:if>
  966. <div id="main-container" class="mt-center" style="background: ${tc:out(systemBackground,'#dae8f2')}">
  967. <div id="switch" class="switch_list" style="${fn:length(allPortal)>1 ?'':'display:none;'}">
  968. <ul class="contben" id="switch" style="${fn:length(allPortal)>1 ?'':'display:none;'}">
  969. <li></li>
  970. <li></li>
  971. <li></li>
  972. </ul>
  973. <ul class="roleNav showBox ">
  974. <c:choose>
  975. <c:when test="${not empty defaultPortal}">
  976. <c:forEach varStatus="s" var="mtPortal" items="${allPortal}">
  977. <li ${s.index eq 0?"class='roleLi roleChosen'":"class='roleLi'"}
  978. data-url="/portal/${mtPortal.id}" class="roleLi roleChosen">${mtPortal.name}</li>
  979. </c:forEach>
  980. </c:when>
  981. <c:otherwise>
  982. <li class="roleLi" data-url="/portal/">工作首页</li>
  983. </c:otherwise>
  984. </c:choose>
  985. </ul>
  986. <div class="switch_log" style="display: none;"><img src="${path}/tc_ttp/style/default/images/work.png"
  987. width="100%" alt=""></div>
  988. <!-- 贵安新区 add By yinj -->
  989. <div class="switch_content" style="display: none;">
  990. <!-- <div class="switch_content"> -->
  991. <ul>
  992. <c:choose>
  993. <c:when test="${not empty defaultPortal}">
  994. <c:forEach varStatus="s" var="mtPortal" items="${allPortal}">
  995. <li ${s.index eq 0?"class='show'":''} data-url="/portal/${mtPortal.id}">
  996. <div class="switch_content_log">
  997. <c:if test="${ empty mtPortal.shrinkageChart}">
  998. <img src="${path}/tc_ttp/style/default/images/portal1.png" width="100%"
  999. height="100%" alt="">
  1000. </c:if>
  1001. <c:if test="${not empty mtPortal.shrinkageChart}">
  1002. <img class="portal-img"
  1003. data-src="${path}/space/${mtPortal.shrinkageChart}/showFile"
  1004. width="100%" height="100%" alt="">
  1005. </c:if>
  1006. </div>
  1007. <p><span><label><i></i></label>${mtPortal.name}</span></p>
  1008. </li>
  1009. </c:forEach>
  1010. </c:when>
  1011. <c:otherwise>
  1012. <li class="show" data-url="/portal/">
  1013. <div class="switch_content_log"><img src="${path}/tc_ttp/style/default/images/portal1.png"
  1014. width="100%" height="100%" alt=""></div>
  1015. <p><span><label><i></i></label>工作首页</span></p>
  1016. </li>
  1017. </c:otherwise>
  1018. </c:choose>
  1019. </ul>
  1020. </div>
  1021. </div>
  1022. <div style="display:none;">tag_top</div>
  1023. <div class="msg-navi" title="展开" style="z-index:102; display:none;">
  1024. 圈子交流
  1025. </div>
  1026. <div id="msg_detailed_contents" class="msg_detailed_contents detailed_contents">
  1027. <div class="msg_top_title">
  1028. <span>${tc:i18n("common.message.label")}</span>
  1029. <span class="msg_detailed_closed mt-icon mt-icon-close"></span>
  1030. </div>
  1031. <div id="msg-content"
  1032. style="z-index:1;width:100%;height:auto;top:40px;bottom:0;display:block;border:none; margin: 0;padding: 0;">
  1033. <div class="msg-header" style="display:none;">
  1034. <span class="fn--left">圈子交流</span>
  1035. <a href="javascript:;" class="closeIco glyphicon glyphicon-minus"></a>
  1036. </div>
  1037. <div id="optionDiv" class="sort-tab"
  1038. style="background: none; margin-bottom: 0px;background:#fff;display: none;">
  1039. <a href="javascript:;" style="position:relative;font-size:14px;" onfocus="this.blur();">
  1040. <span class="tomsg" target="msg"><label class="glyphicon glyphicon-globe"
  1041. style="display:inline-block;vertical-align:middle;margin:0 3px 0 0;"></label>公共圈子</span>
  1042. <span class="current MySubMenu " style="position:relative;text-align:left;" target="myMsgContent"
  1043. onfocus="this.blur();"><span class="glyphicon glyphicon-menu-down moreIco"
  1044. style="font-size:8px; color:#828282;" class=""></span>
  1045. <div class="hidedMenu " id="myMsgContent"
  1046. style="top:8px;left:0;z-index:1000;border-top:1px solid #ccc;">
  1047. <span class="tomsg" target="mymsg">和我相关</span>
  1048. <span class="tomsg" target="mysend">我的已发</span>
  1049. <span class="tomsg" target="msg">全部消息</span>
  1050. </div>
  1051. </span>
  1052. </a>
  1053. <a href="javascript:;" class="current" id="showSysmsg" onfocus="this.blur();" target="systemSend"
  1054. class="tomsg" style="font-size:14px;"><label class="glyphicon glyphicon-volume-up"
  1055. style="display:inline-block;vertical-align:middle;margin:0 3px 0 0;"></label>系统消息</a>
  1056. </div>
  1057. <div id="friendTrendContentArea"
  1058. style="bottom:0;top:0px;height:100%;position:absolute;top:0;bottom:0; overflow-y:auto; overflow-x:hidden;width: 100%; ">
  1059. <!-- 好友动态区开始 ,消息选项数据-->
  1060. <div id="msg" class="community-list"
  1061. style="margin-bottom: 50px;width:100%;padding-right:10px;display:none;">
  1062. <a style="display: block;width:100%; height: 30px; text-align: center; line-height: 30px; background:#21b3e4; color: #F0F9FC; margin-top: 10px;"
  1063. href="javascript:;" class="LoadMoreButton block align-c"
  1064. id="moreFriendTrendsmsg">加载更多</a>
  1065. </div>
  1066. <div id="mymsg" style="margin-bottom: 20px;display:none;width:100%; padding-right:10px;"
  1067. class="community-list">
  1068. <a style="display: block; height: 30px; text-align: center; line-height: 30px; background: #21b3e4; color: #F0F9FC; margin-top: 10px;"
  1069. href="javascript:;" class="LoadMoreButton block align-c"
  1070. id="moreFriendTrendsmymsg">加载更多</a>
  1071. </div>
  1072. <div id="mysend" style="margin-bottom: 20px;display:none;width:100%; padding-right:10px;"
  1073. class="community-list">
  1074. <a style="display: block; height: 30px; text-align: center; line-height: 30px; background: #21b3e4; color: #F0F9FC; margin-top: 10px;"
  1075. href="javascript:;" class="LoadMoreButton block align-c"
  1076. id="moreFriendTrendsmysend">加载更多</a>
  1077. </div>
  1078. <div id="systemSend" style="margin-top:0;padding-right:8px;width:93%;margin: 0 auto 59px;"
  1079. class="community-list">
  1080. <table id="sysmsg" pageNum="1" width="100%">
  1081. <tbody></tbody>
  1082. </table>
  1083. </div>
  1084. </div>
  1085. </div>
  1086. </div>
  1087. <div id="container" class="mt-center mt-horizontal container-hidden">
  1088. <!--中间主工作区-->
  1089. <div id="layout-left"
  1090. style="margin:0 auto;position:absolute;top:0;bottom:0;float:left;width: 50px;background:#0c94ff;transition: all .2s;-webkit-transition: all .2s;z-index: 1;display: flex;flex-direction: column;">
  1091. <span style="display:inline-block;"></span>
  1092. <div id="ToolBar" style="background: #fff;position:relative;left: 0;min-height: 50px;">
  1093. <div title="展开菜单" class="nav_list"
  1094. style="border-bottom: 1px solid #076296;float: left;line-height: 50px;background: #0c94ff;width: 100%;height: 50px;padding-left: 16px;cursor: pointer;">
  1095. <p style="float: left;margin: 0;height: 50px;position: relative;width: 20px"><img
  1096. src="${path}/tc_ttp/images/icon-img.png" alt="" style="position: absolute;top: 19px;"></p>
  1097. <span style="display:none;float:left;padding-left: 10px;color: #fff;font-size: 14px;vertical-align:middle;">菜单</span>
  1098. <div style="clear: both"></div>
  1099. </div>
  1100. </div>
  1101. <div id="leftMenus"
  1102. style="cursor: pointer;position:absolute;top:50px;bottom:0;left:0;width:100%;height:100%;z-index:1002;overflow:hidden;background-color:#0c94ff;">
  1103. <ul>
  1104. <c:forEach var="menu" items="${orgMenus}" varStatus="s">
  1105. <c:set var="mainMenuName" value="${tc:i18n(menu.name)}"/>
  1106. <li class="lefts_imgs" target="${menu.id}_depart_detailed_contents"
  1107. style="position:relative;height:50px;min-height: 50px;">
  1108. <label style="padding-left: 16px;cursor: pointer;position: absolute;top: 17px;line-height: 16px;">
  1109. <c:choose>
  1110. <c:when test="${empty menu.icoWeb}">
  1111. <c:set value="/tc_ttp/images/shu.png${resSuffix}" var="iconWeb"/>
  1112. </c:when>
  1113. <c:otherwise>
  1114. <c:set value="/space/${menu.icoWeb}/showFile" var="iconWeb"/>
  1115. </c:otherwise>
  1116. </c:choose>
  1117. <img data-src="${path}${iconWeb}" class="orgMenuIcon" alt="" width="16px"
  1118. title="${mainMenuName}">
  1119. </label>
  1120. <span class="list_show"
  1121. <%--这里的点击事件暂时注释掉,不然点击后可能出现多重页面--%>
  1122. <%--onclick='openTap("${menu.path }")'--%>
  1123. style="display:none;color: #fff;padding-left:47px;vertical-align:middle;cursor: pointer;line-height: 50px;">${mainMenuName}</span>
  1124. <div class="list_zeert">
  1125. <div class="ztree addDeptSpace" id="${menu.id}_orgMenuTree"
  1126. style="width: 200px; padding:0 0 0 30px;color:#fff;"></div>
  1127. </div>
  1128. </li>
  1129. </c:forEach>
  1130. <c:forEach var="menu" items="${allMenus}" varStatus="s">
  1131. <c:set var="mainMenuName" value="${tc:i18n(menu.name)}"/>
  1132. <li class="lefts_imgs" target="${menu.id}menu_detailed_contents"
  1133. style="position:relative;height:auto;min-height: 50px;">
  1134. <label style="padding-left: 16px;cursor: pointer;position: absolute;top: 17px;line-height: 16px;">
  1135. <c:choose>
  1136. <c:when test="${empty menu.icoWeb}">
  1137. <c:set value="/tc_ttp/images/shu.png${resSuffix}" var="iconWeb"/>
  1138. </c:when>
  1139. <c:otherwise>
  1140. <c:set value="/space/${menu.icoWeb}/showFile" var="iconWeb"/>
  1141. </c:otherwise>
  1142. </c:choose>
  1143. <img data-src="${path}${iconWeb}" class="orgMenuIcon" alt="" width="16px"
  1144. title="${mainMenuName}">
  1145. </label>
  1146. <c:set value="${fn:length(menu.children) > 0}" var="hasChildren"/>
  1147. <c:choose>
  1148. <c:when test="${hasChildren}">
  1149. <span class="list_show"
  1150. style="display:none;color: #fff;padding-left:47px;vertical-align:middle;cursor: pointer;line-height: 50px;">${mainMenuName}</span>
  1151. </c:when>
  1152. <c:otherwise>
  1153. <span class="list_show"
  1154. onclick='openTap("${menu.path }")'
  1155. style="display:none;color: #fff;padding-left:47px;vertical-align:middle;cursor: pointer;line-height: 50px;">${mainMenuName}</span>
  1156. </c:otherwise>
  1157. </c:choose>
  1158. <%-- 下级菜单 --%>
  1159. <div class="list_zeert active" style="bottom:0;width:100%;overflow:auto; display:none;">
  1160. <ul class="list_ul menu-list" style="display: none">
  1161. <%--用于标识是否是第一次显示二级菜单--%>
  1162. <c:set var="showSubList" value="true"/>
  1163. <c:forEach var="menuItem" items="${menu.children }" varStatus="status">
  1164. <c:set var="menuItemName" value="${tc:i18n(menuItem.name)}"/>
  1165. <c:set value="${fn:length(menuItem.children) > 0}" var="isVirtual"/>
  1166. <li class="menu-item" style="height: auto;">
  1167. <div class="${!isVirtual?'menu-real':'menu-virtual'}"
  1168. style="padding-left: 15px">
  1169. <c:choose>
  1170. <c:when test="${fn:contains(menuItem.path, 'http')}">
  1171. <a ${!isVirtual?'name="topMenu"':''} menuId="${menuItem.id }"
  1172. target="view_window"
  1173. menuName="${menuItemName}"
  1174. menuPath="${menuItem.path }"
  1175. href="javascript:;"
  1176. style="background:url('${path}/tc_suite/images/j.png') no-repeat;background-position:22px 13px;padding-left:40px;height:40px;">${menuItemName}</a>
  1177. </c:when>
  1178. <c:otherwise>
  1179. <c:choose>
  1180. <c:when test="${isVirtual and showSubList}">
  1181. <a ${!isVirtual?'name="topMenu"':''} status="open"
  1182. menuId="${menuItem.id }"
  1183. menuName="${menuItemName}"
  1184. menuPath="${menuItem.path }"
  1185. href="javascript:;"
  1186. style="background:url('${path}/tc_suite/images/jj.png') no-repeat;background-position:22px 13px;padding-left:40px;height:40px;">${menuItemName}</a>
  1187. </c:when>
  1188. <c:when test="${isVirtual}">
  1189. <a ${!isVirtual?'name="topMenu"':''} status="close"
  1190. menuId="${menuItem.id }"
  1191. menuName="${menuItemName}"
  1192. menuPath="${menuItem.path }"
  1193. href="javascript:;"
  1194. style="background:url('${path}/tc_suite/images/j.png') no-repeat;background-position:22px 13px;padding-left:40px;height:40px;">${menuItemName}</a>
  1195. </c:when>
  1196. <c:otherwise>
  1197. <a ${!isVirtual?'name="topMenu"':''}
  1198. menuId="${menuItem.id }"
  1199. menuName="${menuItemName}"
  1200. menuPath="${menuItem.path }" href="javascript:;"
  1201. style="background:url('${path}/tc_suite/images/jiao.png') no-repeat;background-position:22px 17px;padding-left:40px;height:40px;">${menuItemName}</a>
  1202. </c:otherwise>
  1203. </c:choose>
  1204. </c:otherwise>
  1205. </c:choose>
  1206. </div>
  1207. <c:if test="${isVirtual eq true}">
  1208. <div class="menu-sub-list"
  1209. style="height: auto;${showSubList eq 'true' ?'':'display:none;'}">
  1210. <c:forEach var="menuSubItem" items="${menuItem.children }"
  1211. varStatus="s">
  1212. <c:set var="menuSubName" value="${tc:i18n(menuSubItem.name)}"/>
  1213. <div class="menu-sub-item"
  1214. style="height: 40px;line-height: 40px;padding-left: 25px">
  1215. <c:choose>
  1216. <c:when test="${fn:contains(menuSubItem.path, 'http')}">
  1217. <a name="topMenu" menuId="${menuSubItem.id }"
  1218. target="view_window"
  1219. menuName="${menuSubName}"
  1220. menuPath="${menuSubItem.path }"
  1221. href="javascript:;"
  1222. style="background:url('${path}/tc_suite/images/j.png') no-repeat;background-position:22px 17px;padding-left:40px;height:40px;">${menuSubName}</a>
  1223. </c:when>
  1224. <c:otherwise>
  1225. <a name="topMenu" menuId="${menuSubItem.id }"
  1226. menuName="${menuSubName}"
  1227. menuPath="${menuSubItem.path }"
  1228. href="javascript:;"
  1229. style="background:url('${path}/tc_suite/images/jiao.png') no-repeat;background-position:22px 17px;padding-left:40px;height:40px;">${menuSubName}</a>
  1230. </c:otherwise>
  1231. </c:choose>
  1232. </div>
  1233. </c:forEach>
  1234. </div>
  1235. <c:set var="showSubList" value="false"/>
  1236. </c:if>
  1237. </li>
  1238. </c:forEach>
  1239. </ul>
  1240. </div>
  1241. </li>
  1242. </c:forEach>
  1243. </ul>
  1244. </div>
  1245. <div id="depart_detailed_contents" class="depart_detailed_contents detailed_contents" style="display:none;">
  1246. <div style="width:260px;height:26px;border-bottom:1px solid #ccc;position: fixed;z-index: 1;background: #e1e3e6;border-right:1px solid #ccc;">
  1247. <span style="float:left;height:26px;line-height:26px;margin-left:10px;">单位</span>
  1248. <span class="closed_contents"
  1249. style="float:right;margin-right:5px;cursor:pointer;width:20px;height:20px;text-align:center;font-size:18px;">&times</span>
  1250. </div>
  1251. <div class="ztreeBox"
  1252. style=" position:absolute; left:0; right:0; top:20px; bottom: 0;padding: 0 5px 10px 0;overflow: auto"
  1253. id="ztreeBox">
  1254. <div class="ztree" id="orgTree" style="width: 238px; padding: 10px 0 10px 0"></div>
  1255. </div>
  1256. </div>
  1257. <div id="menu_detailed_contents" class="menu_detailed_contents detailed_contents" style="display:none;">
  1258. <div style="width:260px;height:26px;border-bottom:1px solid #ccc;position: fixed;z-index: 1;background: #e1e3e6;border-right:1px solid #ccc;">
  1259. <span style="float:left;height:26px;line-height:26px;margin-left:10px;">菜单</span>
  1260. <span class="closed_contents"
  1261. style="float:right;margin-right:5px;cursor:pointer;width:20px;height:20px;text-align:center;font-size:18px;">&times</span>
  1262. </div>
  1263. </div>
  1264. </div>
  1265. <!--文化区/一级信息分类--结束-->
  1266. <%--<div style="">&nbsp;</div>--%>
  1267. <!---这个div不要的话在firefox下有问题,暂时不清楚什么问题---->
  1268. <div id="layout-right" class="mt-center"
  1269. style="margin-left: 50px;z-index:0;">
  1270. <!---------------------增加一个菜单的小三角-------------------------------------------->
  1271. <!----------------------------------------------------------------->
  1272. <div id="Main" class="mt-center"
  1273. style="position: relative;">
  1274. <%--主工作区--%>
  1275. <div id="tabs" class="mt-center mt-vertical">
  1276. <div id="org-group" class="mt-dropdown mt-btn">
  1277. <input class="keep-value" type="hidden">
  1278. <div class="mt-dropdown-text"><i class="iconfont iconzuzhi"></i><span
  1279. class="dropdown-text"></span><i class="caret"></i></div>
  1280. <ul class="mt-dropdown-more"></ul>
  1281. </div>
  1282. <div class="bodyCon" id="bodyCon">
  1283. <audio class="fileAudios" id="fileAudios" src="" preload="preload"></audio>
  1284. <div class="mt-center mt-vertical" style="padding-bottom: 0;min-height: 100%;">
  1285. <c:choose>
  1286. <c:when test="${not empty systemImage}">
  1287. <div class="mt-header"
  1288. style="background-image: url(${path}/space/${systemImage}/showFile/);background-size: 100%;">
  1289. </c:when>
  1290. <c:otherwise>
  1291. <div class="mt-header">
  1292. </c:otherwise>
  1293. </c:choose>
  1294. <div class="mt-info">
  1295. <div class="logo">
  1296. <div class="logoDiv">
  1297. <c:choose>
  1298. <c:when test="${not empty systemIcon}">
  1299. <img src="${path}/space/${systemIcon}/showFile${resSuffix}"
  1300. alt="">
  1301. </c:when>
  1302. <c:when test="${red}">
  1303. <img src="${path}/tc_suite/home/images/logo.JPG"
  1304. alt="">
  1305. </c:when>
  1306. <c:otherwise>
  1307. <img src="${path}/tc_ttp/images/login/single_logo.png" alt="">
  1308. </c:otherwise>
  1309. </c:choose>
  1310. <span>${systemName}</span>
  1311. </div>
  1312. <div class="userInfos">
  1313. <div class="searchDivs">
  1314. <input type="text">
  1315. <img id="searchAbout"
  1316. src="${path}/tc_suite/home/images/24.png"
  1317. alt="">
  1318. </div>
  1319. <div style="margin-left: 40px;cursor: pointer" id="openHuaDuApp" title="IM">
  1320. <img src="${path}/tc_suite/home/images/msg.png" alt="" style="width: 16px;height: 16px">
  1321. </div>
  1322. <div style="margin-left: 40px;cursor: pointer" id="openImModal" title="IM">
  1323. <img src="${path}/tc_suite/home/images/msg.png" alt="" style="width: 16px;height: 16px">
  1324. </div>
  1325. <%--inspired 增加推荐框--%>
  1326. <c:set var="openRecommend"
  1327. value='<%=AppContext.getProperty("recommend.open")%>'/>
  1328. <div class="tipsDiv" id="meesageInfo" title="消息">
  1329. <span class="tipsSpan" id="redSpot"></span>
  1330. <img src="${path}/tc_suite/home/images/tips.png"
  1331. alt="">
  1332. </div>
  1333. <div class="userDiv">
  1334. <img class="userImg"
  1335. src="${path}/org/persons/${curUser.id}/?m=picon" alt="">
  1336. <div class="userIdentity">
  1337. <p>${curUser.pname}</p>
  1338. <p class="word-split" title="${mainDepartmentName}">${mainDepartmentName}</p>
  1339. <ul id="personInfoList">
  1340. <li>
  1341. <a href="javascript:void(0)" style="color: white"
  1342. onclick="openSpace('${curUser.id}')">${tc:i18n("common.personal.space")}</a>
  1343. </li>
  1344. <%--<li>
  1345. <a href="javascript:void(0)"
  1346. onclick="TC.ui.openResource({label:'${tc:i18n("common.system.help")}',url:'/system/viewhelp'})"
  1347. style="color: white">
  1348. ${tc:i18n("common.system.help")}
  1349. </a>
  1350. </li>--%>
  1351. <li>
  1352. <a href="javascript:void(0)" style="color: white"
  1353. onclick="changePassword()">修改密码</a>
  1354. </li>
  1355. <li>
  1356. <a href="javascript:void(0)" style="color: white"
  1357. id="logout">${tc:i18n("common.logout.label")}</a>
  1358. </li>
  1359. </ul>
  1360. </div>
  1361. <img class="userJt"
  1362. src="${path}/tc_suite/home/images/jt.png"
  1363. alt="">
  1364. </div>
  1365. </div>
  1366. </div>
  1367. <div class="titleNav">
  1368. </div>
  1369. </div>
  1370. </div>
  1371. <div class="mt-center">
  1372. <div style="height: 100%" id="tabs-1">
  1373. <iframe id="mainFrame" name="reload" src="" style="width:100%;" frameborder="0"
  1374. scrolling="no" marginheight="0"></iframe>
  1375. </div>
  1376. </div>
  1377. </div>
  1378. </div>
  1379. </div>
  1380. <style type="text/css">
  1381. .paging_tabs {
  1382. position: absolute;
  1383. right: 0px;
  1384. height: 40px;
  1385. border-bottom: 1px solid #b5b5b5;
  1386. background: #fff;
  1387. z-index: 999;
  1388. padding-right: 9px;
  1389. display: none;
  1390. }
  1391. .paging_tabs ul {
  1392. height: 40px;
  1393. }
  1394. .paging_tabs ul li {
  1395. list-style: none;
  1396. float: left;
  1397. height: 40px;
  1398. line-height: 40px;
  1399. vertical-align: middle;
  1400. width: 20px;
  1401. text-align: center;
  1402. cursor: pointer;
  1403. }
  1404. .paging_tabs ul .prevTabs:hover {
  1405. background: #ccc;
  1406. }
  1407. .paging_tabs ul .nextTabs:hover {
  1408. background: #ccc;
  1409. }
  1410. </style>
  1411. <div class="paging_tabs">
  1412. <ul>
  1413. <li class="prevTabs"><img src="${path}/tc_suite/knowledge/images/left.png" alt=""></li>
  1414. <li class="fgx"><img src="${path}/tc_suite/knowledge/images/fgx.png" alt=""></li>
  1415. <li class="nextTabs"><img src="${path}/tc_suite/knowledge/images/right.png" alt=""></li>
  1416. </ul>
  1417. </div>
  1418. <script>
  1419. $(".prevTabs").on("click", function () {
  1420. var $tabs = $("#tabLabel");
  1421. var initialWidth = parseFloat($tabs.attr("data-width"));
  1422. var left = $tabs.position().left;
  1423. if (left != 0) {
  1424. left = left + initialWidth;
  1425. }
  1426. $tabs.css("left", left > 0 ? 0 : left);
  1427. });
  1428. $(".nextTabs").on("click", function () {
  1429. var $tabs = $("#tabLabel");
  1430. var initialWidth = parseFloat($tabs.attr("data-width"));
  1431. var allTabsWidth = 0;
  1432. $tabs.find("li").each(function () {
  1433. allTabsWidth += $(this).outerWidth();
  1434. });
  1435. if (allTabsWidth > initialWidth) {
  1436. // 得到当前的左移layout-left
  1437. var left = $tabs.position().left;
  1438. if ((allTabsWidth - Math.abs(left)) / initialWidth > 1) {
  1439. left = left - initialWidth;
  1440. $tabs.css("left", left);
  1441. }
  1442. }
  1443. });
  1444. </script>
  1445. </div>
  1446. <!--中间主工作区结束-->
  1447. <!--右侧工具栏-->
  1448. <div id="showWin" style="position: absolute; right: 5px; top: 5px; display: none">
  1449. <span style="float: left; padding-top: 6px; margin-left: -5px"><img id="rightImg"
  1450. onclick="showRightWin()"
  1451. src="${path}/tc_ttp/style/default/images/arrow_left.png"
  1452. title="显示处理窗"
  1453. onmouseover="this.style.background='#CACACA'"
  1454. onmouseout="this.style.background=''"
  1455. style="cursor: pointer"></span>
  1456. </div>
  1457. <div id="main_right">
  1458. <div id="loading2" class="loadingDiv">
  1459. <img src="${path}/tc_ttp/style/default/images/loading.gif"
  1460. style="position: absolute; left: 50%; top: 50%">
  1461. </div>
  1462. <iframe id="rightFrame" src="" style="height: 100%; width: 100%" frameborder="0" scrolling="no"
  1463. marginheight="0"></iframe>
  1464. </div>
  1465. <!--右侧工具栏结束-->
  1466. </div>
  1467. </div>
  1468. </div>
  1469. <div id="guide-step" style="margin-top:-40px;">
  1470. <div class="tipSwitch"></div>
  1471. </div>
  1472. </div>
  1473. <div class="home-mask">
  1474. <table style="height: 100%; width: 100%">
  1475. <tr>
  1476. <td align="center"><img style="vertical-align: middle;width: 30px;"
  1477. src="${path}/tc_suite/analysis/img/loading.gif"> Loading...
  1478. </td>
  1479. </tr>
  1480. </table>
  1481. </div>
  1482. <script type="text/javascript" src="${path}/tc_ttp/nprogress/nprogress.js${resSuffix}"></script>
  1483. <script type="text/javascript" src="${path}/tc_ttp/jquery_ui/jquery.ui.core.js${resSuffix}"></script>
  1484. <script type="text/javascript" src="${path}/tc_ttp/jquery_ui/jquery.ui.widget.js${resSuffix}"></script>
  1485. <script type="text/javascript" src="${path}/tc_ttp/jquery_ui/jquery.ui.tabs.js${resSuffix}"></script>
  1486. <script type="text/javascript" src="${path}/tc_ttp/drag/excanvas.min.js${resSuffix}"></script>
  1487. <script type="text/javascript" src="${path}/tc_ttp/jquery-smartMenu/js/jquery-smartMenu.js${resSuffix}"></script>
  1488. <script type="text/javascript" src="${path}/tc_suite/js/index.js${resSuffix}"></script>
  1489. <script type="text/javascript" src="${path}/tc_ttp/qqface/jquery.qqFace.js"></script>
  1490. <script type="text/javascript" src="${path}/common/js/ui/minto.comp.js${resSuffix}"></script>
  1491. <!-- 新添加的个人空间js(chenxi) -->
  1492. <script type="text/javascript" src="${path}/tc_ttp/venobox/venobox.min.js${resSuffix}"></script>
  1493. <script type="text/javascript" src="${path}/tc_suite/community/js/spaceUtilTemp.js${resSuffix}"></script>
  1494. <script type="text/javascript" src="${path}/tc_suite/community/js/space.js${resSuffix}"></script>
  1495. <script type="text/javascript" src="${path}/tc_suite/community/js/spaceContentTemp.js${resSuffix}"></script>
  1496. <script type="text/javascript" src="${path}/tc_suite/community/js/community.js${resSuffix}"></script>
  1497. <script type="text/javascript" src="${path}/tc_ttp/common/prototype.js${resSuffix}"></script>
  1498. <script type="text/javascript" src="${path}/tc_ttp/dummyPhotoView/dummyPhotoView.js${resSuffix}"></script>
  1499. <script type="text/javascript" src="${path}/common/zTree/js/jquery.ztree.core.min.js${resSuffix}"></script>
  1500. <script type="text/javascript" src="${path}/tc_ttp/toastr/toastr.js${resSuffix}"></script>
  1501. <script type="text/javascript" src="${path}/tc_suite/index/indexSearch.js${resSuffix}"></script>
  1502. <script type="text/javascript" src="${path}/common/js/ui/icon/iconfont.js${resSuffix}"></script>
  1503. <script type="text/javascript" src="${path}/common/vue/vue.min.js"></script>
  1504. <script type="text/javascript" src="${path}/common/minto-ui/minto.min.js"></script>
  1505. <script type="text/javascript" src="${path}/webjars/sockjs-client/sockjs.min.js"></script>
  1506. <script type="text/javascript" src="${path}/webjars/stomp-websocket/stomp.min.js"></script>
  1507. <script type="text/javascript" src="${path}/main/layout/js/message.min.js${resSuffix}"></script>
  1508. <script type="text/javascript" src="${path}/tc_suite/crypto/crypto-js.min.js${resSuffix}"></script>
  1509. <script>
  1510. let clientWidth = $(window).width();
  1511. let clientHeight = $(window).height();
  1512. window.onload = function () {
  1513. if (localStorage.tuZaiShow) {
  1514. $('#tuzaiIcon').show();
  1515. $('.open-img').hide();
  1516. } else {
  1517. $('#tuzaiIcon').hide();
  1518. $('.open-img').show();
  1519. }
  1520. $('.recommend .ivu-menu-primary').css('display', "none");
  1521. let imgWidth = $('#tuzaiIcon').width();
  1522. let imgHeight = $('#tuzaiIcon').height()
  1523. let contentWidth = 530;
  1524. let contentHeight = parseInt(clientHeight * 0.92);
  1525. var oDiv = document.getElementById('tuzaiIcon');
  1526. var tuZai = document.getElementById('iconImg');
  1527. var iframeDiv = document.getElementsByClassName('iframeDiv');
  1528. var tuZaiIcon = document.getElementById('tuzaiIcon');
  1529. if (tuZai) {
  1530. tuZai.onmousedown = function (ev) {
  1531. let lastLeft = oDiv.offsetLeft;
  1532. let lastTop = oDiv.offsetTop;
  1533. ev.stopPropagation();
  1534. ev.preventDefault();
  1535. document.querySelector('iframe').style['pointer-events'] = 'none'
  1536. iframeDiv[0].style.display = 'block';
  1537. $('.recommend .ivu-menu-primary').css('display', "none");
  1538. $('#minto-tuzai').css('visibility', "hidden");
  1539. var oEvent = ev || event;
  1540. var disX = oEvent.clientX - oDiv.offsetLeft;
  1541. var disY = oEvent.clientY - oDiv.offsetTop;
  1542. document.onmousemove = function (ev) {
  1543. let currLeft = tuZaiIcon.offsetLeft;
  1544. let currTop = tuZaiIcon.offsetTop;
  1545. if (currLeft != lastLeft || currTop != lastTop) {
  1546. $('.close-tuzai').css('visibility', "hidden");
  1547. }
  1548. ev.stopPropagation();
  1549. ev.preventDefault();
  1550. var oEvent = ev || event;
  1551. var l = oEvent.clientX - disX;
  1552. var t = oEvent.clientY - disY;
  1553. let lNum = 0;
  1554. let tNum = 0;
  1555. if (l <= 0) {
  1556. lNum = 0
  1557. } else if (oEvent.clientX >= document.body.clientWidth - 60) {
  1558. lNum = oEvent.clientX - oDiv.offsetWidth + 'px'
  1559. } else {
  1560. lNum = l + 'px';
  1561. }
  1562. if (t <= 0) {
  1563. tNum = 0
  1564. } else if (oEvent.clientY >= document.body.clientHeight - 92) {
  1565. tNum = oEvent.clientY - oDiv.offsetHeight + 'px'
  1566. } else {
  1567. tNum = t + 'px';
  1568. tNum = t + 'px';
  1569. }
  1570. oDiv.style.left = lNum;
  1571. oDiv.style.top = tNum;
  1572. };
  1573. document.onmouseup = function (ev) {
  1574. document.onmousemove = null;
  1575. document.onmouseup = null;
  1576. document.querySelector('iframe').style['pointer-events'] = 'auto';
  1577. iframeDiv[0].style.display = 'none';
  1578. let currLeft = tuZaiIcon.offsetLeft;
  1579. let currTop = tuZaiIcon.offsetTop;
  1580. contentHeight = parseInt(clientHeight * 0.92);
  1581. //点击
  1582. if (currLeft == lastLeft && currTop == lastTop) {
  1583. $('.recommend .ivu-menu-primary').css('display', "flex");
  1584. recommend.elShow = true;
  1585. $('#minto-tuzai').css('visibility', "visible");
  1586. contentHeight = parseInt(clientHeight * 0.92);
  1587. let height = clientHeight - contentHeight;
  1588. let width = clientWidth - contentWidth;
  1589. let maxTop = parseInt(height * 100 / clientHeight);
  1590. let maxLeft = parseInt(width * 100 / clientWidth) - 2;
  1591. let offsetHeight = $('#tuzaiIcon').offset().top;
  1592. let offsetLeft = $('#tuzaiIcon').offset().left;
  1593. let top = parseInt(offsetHeight * 100 / clientHeight);
  1594. let left = parseInt(offsetLeft * 100 / clientWidth);
  1595. let leftContent = imgWidth + 20;
  1596. let tuZaiWidth;
  1597. let content = document.getElementById('minto-tuzai');
  1598. if (maxTop <= 8) {
  1599. maxTop = 6;
  1600. }
  1601. if (top > maxTop) {
  1602. content.style.top = maxTop + '%';
  1603. } else {
  1604. content.style.top = top + '%';
  1605. }
  1606. if (offsetLeft >= contentWidth + 10) {
  1607. tuZaiWidth = offsetLeft - contentWidth;
  1608. content.style.left = tuZaiWidth - 10 + 'px'
  1609. } else {
  1610. tuZaiWidth = offsetLeft + imgWidth + 30
  1611. content.style.left = tuZaiWidth + 'px'
  1612. }
  1613. return
  1614. }
  1615. };
  1616. };
  1617. }
  1618. $("#container").removeClass('container-hidden');
  1619. };
  1620. </script>
  1621. <script type="text/javascript">
  1622. var mt = new mtConstructor();
  1623. var recommend = new Vue({
  1624. el: "#tuzai",
  1625. data() {
  1626. return {
  1627. type: "",
  1628. pageNum: 1,
  1629. lastNum: 1,
  1630. menuData: [{
  1631. title: "推荐",
  1632. type: "",
  1633. name: 1
  1634. },
  1635. {
  1636. title: "文档",
  1637. type: "10101",
  1638. name: 2
  1639. },
  1640. {
  1641. title: "政策",
  1642. type: "10205",
  1643. name: 3
  1644. },
  1645. {
  1646. title: "报告",
  1647. type: "10102",
  1648. name: 4
  1649. },
  1650. {
  1651. title: "学习",
  1652. type: "10211",
  1653. name: 5
  1654. }
  1655. ],
  1656. navData: [
  1657. {
  1658. id: 4,
  1659. title: "外部咨询",
  1660. imgSrc: "${path}/tc_ttp/tuzai/information.png"
  1661. }
  1662. ],
  1663. informationData: [],
  1664. isBottom: false,
  1665. elShow: false
  1666. }
  1667. },
  1668. methods: {
  1669. closeContent() {
  1670. $('.recommend .ivu-menu-primary').css('display', "none");
  1671. $('#minto-tuzai').css('visibility', "hidden");
  1672. },
  1673. loadMore() {
  1674. let self = this;
  1675. if (!self.isBottom) {
  1676. mt.loading('.information', true) //关闭加载中
  1677. var param = {
  1678. "pageNum": self.pageNum
  1679. }
  1680. if (self.type != null && self.type != "") {
  1681. param.resType = self.type;
  1682. }
  1683. TC.util.postAjaxData(TC.config.baseUrl + "/recommend/list", param, function (result) {
  1684. self.lastNum++;
  1685. self.pageNum = result.data.pageNo ? result.data.pageNo : self.lastNum;
  1686. mt.loading('.information', false); //关闭加载中
  1687. let informationData = self.informationData;
  1688. if (result.data.content && result.data.content.length > 0) {
  1689. result.data.content.forEach((item, key) => {
  1690. informationData.push(item)
  1691. })
  1692. } else {
  1693. self.isBottom = true;
  1694. }
  1695. self.informationData = informationData;
  1696. self.$refs.recommend.changeData(informationData);
  1697. }, true);
  1698. }
  1699. },
  1700. menuSelect(type) {
  1701. this.type = type;
  1702. this.isBottom = false;
  1703. this.lastNum = 1;
  1704. this.pageNum = 1;
  1705. this.initData(type);
  1706. },
  1707. initData(type) {
  1708. mt.loading('.information', true)
  1709. var param = {
  1710. "pageNum": this.pageNum
  1711. }
  1712. if (type != null && type != "") {
  1713. param.resType = type
  1714. }
  1715. let self = this;
  1716. TC.util.postAjaxData(TC.config.baseUrl + "/recommend/list", param, function (result) {
  1717. mt.loading('.information', false) //关闭加载中
  1718. var content = [];
  1719. if (result.data != null) {
  1720. self.pageNum = result.data.pageNo ? result.data.pageNo : self.lastNum;
  1721. self.informationData = result.data.content;
  1722. content = result.data.content;
  1723. }
  1724. }, true);
  1725. },
  1726. openDetail(item) {
  1727. if (item.url) {
  1728. let a = $("<a href=\"" + item.url + "\" target='_blank'>baidu</a>").get(0);
  1729. let e = document.createEvent('MouseEvents');
  1730. e.initEvent('click', true, true);
  1731. a.dispatchEvent(e);
  1732. }
  1733. },
  1734. touchTuzai() {
  1735. },
  1736. search(value) {
  1737. console.log(value);
  1738. }
  1739. },
  1740. });
  1741. </script>
  1742. <script type="text/javascript">
  1743. <%-- 右侧导航--%>
  1744. $(function () {
  1745. $(document).ready(function () {
  1746. $(".contben").on({
  1747. mouseenter: function () {
  1748. $(".roleNav").addClass("contshowBox").removeClass("contshowBox1")
  1749. $(this).addClass("on")
  1750. },
  1751. })
  1752. $(".switch_list ").on({
  1753. mouseleave: function () {
  1754. $(".roleNav").addClass("contshowBox1").removeClass("contshowBox")
  1755. }
  1756. })
  1757. })
  1758. })
  1759. // 初始化首页进度条 Modifier: <Zhengyu.Hu> 2018/5/25 上午10:39 end.
  1760. NProgress.configure({
  1761. showSpinner: false,
  1762. trickleRate: 0.03,
  1763. trickleSpeed: 600,
  1764. zIndex: 2001,
  1765. });
  1766. TC.ui.progressBar();
  1767. setTimeout(function () {
  1768. var height = $(".roleNav").height();
  1769. $("#switch").css("margin-top", -height / 2 + "px")
  1770. }, 500)
  1771. // 密码过期提示修改
  1772. if (${pwdExpired}) {
  1773. var pwdExpiredMsg = "密码已过期,请尽快修改!<p>上次修改时间是:${lastUpdatePwdTime}<p>";
  1774. // 如果强制修改,则使用alert
  1775. if (${pwdUpdateFocus}) {
  1776. // 使用alert
  1777. $.alert(pwdExpiredMsg, function () {
  1778. changePassword(true);
  1779. })
  1780. } else {
  1781. // 不强制,可以使用confirm
  1782. $.confirm(pwdExpiredMsg, function () {
  1783. changePassword(false);
  1784. })
  1785. }
  1786. } else {
  1787. // 默认密码强制修改
  1788. if (${pwdUpdateFocus}) {
  1789. $.alert("当前密码是系统默认密码,请尽快修改!", function () {
  1790. changePassword(true);
  1791. })
  1792. }
  1793. }
  1794. /**
  1795. * 修改密码
  1796. * @param focus 是否强制修改,强制修改则不允许关闭弹框
  1797. */
  1798. function changePassword(focus) {
  1799. $.dialog({
  1800. title: "密码修改",
  1801. max: false,
  1802. min: false,
  1803. content: "url:${path}/system/changePassword",
  1804. width: "550px",
  1805. height: "350px",
  1806. lock: true,
  1807. ok: function () {
  1808. var _this = this;
  1809. var result = this.getReturnValue();
  1810. if (result.success) {
  1811. callAjaxRequest("systemWebService", "changePassword", result.data, function (result) {
  1812. $.ok("操作成功,请使用新密码重新登录!", function () {
  1813. logout(true);
  1814. _this.close();
  1815. }, _this);
  1816. })
  1817. }
  1818. return false;
  1819. },
  1820. cancel: !focus
  1821. });
  1822. }
  1823. /**
  1824. * 退出系统
  1825. * @param silence 是否静默退出,不需要用户确认
  1826. */
  1827. function logout(silence){
  1828. if(silence){
  1829. window.onbeforeunload = null;
  1830. TC.util.postAjaxData(logoutUrl, {}, () => {
  1831. window.location.href = TC.config.baseUrl + "/login";
  1832. },false)
  1833. }else{
  1834. $.confirm($.i18n("common.button.signout.label"), function () {
  1835. TC.util.postAjaxData(logoutUrl, {}, () => {
  1836. window.onbeforeunload = null;
  1837. window.location.href = TC.config.baseUrl + "/login";
  1838. },false);
  1839. });
  1840. }
  1841. }
  1842. $(function () {
  1843. var pageInfo = window.localStorage.getItem("home-page")
  1844. if (pageInfo) {
  1845. pageInfo = JSON.parse(pageInfo)
  1846. $(".roleLi").each(function () {
  1847. if ($(this).attr('data-url') == pageInfo.url) {
  1848. $(".roleLi").removeClass("roleChosen").css("border-bottom", "1px solid #e5e5e5");
  1849. $(this).addClass("roleChosen").prev().css("border-bottom", "1px solid #c8e4fe");
  1850. }
  1851. })
  1852. }
  1853. })
  1854. $(document).on("click", ".roleLi", function () {
  1855. $(".roleLi").removeClass("roleChosen").css("border-bottom", "1px solid #e5e5e5");
  1856. $(".switch_log").hide();
  1857. $(this).addClass("roleChosen").prev().css("border-bottom", "1px solid #c8e4fe");
  1858. var url = $(this).attr("data-url");
  1859. var name = $(this).text();
  1860. changeMainFrame(name, url);
  1861. if (window.localStorage) {
  1862. window.localStorage.setItem("home-page", JSON.stringify({
  1863. name: name,
  1864. url: url
  1865. }));
  1866. }
  1867. });
  1868. function txtFeed(str) {
  1869. var txt = "";
  1870. for (var i = 0; i < str.length; i++) {
  1871. if (i == 1) {
  1872. txt += str[i] + "<br>";
  1873. } else {
  1874. txt += str[i];
  1875. }
  1876. }
  1877. return txt;
  1878. }
  1879. $(".shrink").click(function () {
  1880. $(".switch_content").animate({"right": "-70px"}, 400);
  1881. $("#switch").removeClass("switch_kai");
  1882. $("#switch").addClass("switch_list");
  1883. $("#switch .switch_log").show();
  1884. })
  1885. $(".icon-img").mouseover(function () {
  1886. $('.close-tuzai').css('visibility', "visible");
  1887. });
  1888. $("#tuzaiIcon").mouseout(function () {
  1889. $('.close-tuzai').css('visibility', "hidden");
  1890. });
  1891. $("#tuzaiIcon").mouseover(function () {
  1892. $('.close-tuzai').css('visibility', "visible");
  1893. });
  1894. $('.open-img').click(function () {
  1895. $('.close-tuzai').css('visibility', "hidden");
  1896. $('.open-img').hide();
  1897. $('#tuzaiIcon').show();
  1898. localStorage.setItem("tuZaiShow", true);
  1899. });
  1900. $('.close-tuzai').click(function () {
  1901. localStorage.removeItem('tuZaiShow')
  1902. $('#minto-tuzai').css('visibility', "hidden");
  1903. let width = $(window).width();
  1904. let left = $('#tuzaiIcon').offset().left;
  1905. let right = width - left;
  1906. if (left >= right) {
  1907. $('.open-img').css('right', '0');
  1908. $('.open-img').css('left', 'auto');
  1909. $('.open-img').removeClass('img-rotate');
  1910. } else {
  1911. $('.open-img').css('left', '0');
  1912. $('.open-img').css('right', 'auto');
  1913. $('.open-img').addClass('img-rotate');
  1914. $('.open-img').attr('src', '${path}/tc_ttp/tuzai/tuzai-left.gif');
  1915. ;
  1916. }
  1917. $('.open-img').show();
  1918. $('close-tuzai').css('visibility', "hidden");
  1919. $('#tuzaiIcon').hide();
  1920. });
  1921. console.log("\n" +
  1922. "    ┏┓ ┏┓\n" +
  1923. "   ┏┛┻━━━━━━━┛┻┓\n" +
  1924. "   ┃    ┃\n" +
  1925. "   ┃ ━ ┃\n" +
  1926. "   ┃  ┳┛ ┗┳  ┃\n" +
  1927. "   ┃       ┃\n" +
  1928. "   ┃   ┻   ┃\n" +
  1929. "   ┃       ┃\n" +
  1930. "   ┗━┓    ┏━┛\n" +
  1931. "    ┃    ┃\n" +
  1932. "    ┃    ┃\n" +
  1933. "    ┃    ┗━━━┓\n" +
  1934. "    ┃    ┣┓\n" +
  1935. "    ┃ ┏┛\n" +
  1936. "    ┗┓┓┏━━━━━┳┓┏┛\n" +
  1937. "    ┃┫┫ ┃┫┫\n" +
  1938. "    ┗┻┛ ┗┻┛\n" +
  1939. " \n" +
  1940. " 道可道,非常道。名可名,非常名。产品运行稳定永不报错\n" +
  1941. " Builder: <Zhengyu.Hu>\n" +
  1942. "");
  1943. console.log(" Company: %c 成都明途科技有限公司", "color:red");
  1944. console.log(" Websites: %c www.mingto.net", "color:red");
  1945. // 解决组织机构菜单加载失败后导致的菜单图标无法加载的问题 Modifier: <Zhengyu.Hu> 2018/7/18 下午3:41 end.
  1946. TC.ui.setImgDefaultUrl("#leftMenus .orgMenuIcon", TC.config.baseUrl + "/tc_ttp/images/shu.png" + _resSuffix);
  1947. TC.ui.setImgDefaultUrl(".head-img", TC.config.baseUrl + "/tc_ttp/images/user_b.png" + _resSuffix);
  1948. TC.ui.setImgDefaultUrl(".portal-img", TC.config.baseUrl + "/tc_ttp/style/default/images/portal.png" + _resSuffix);
  1949. if (!isDevelop) {
  1950. window.onbeforeunload = function () {
  1951. return "";
  1952. };
  1953. }
  1954. // 组织机构菜单
  1955. var orgTreeSetting = {
  1956. data: {
  1957. simpleData: {
  1958. enable: true,
  1959. idKey: "id",
  1960. pIdKey: "parentId",
  1961. }
  1962. },
  1963. view: {
  1964. expandSpeed: "",
  1965. selectedMulti: false
  1966. },
  1967. callback: {
  1968. onExpand: function (event, treeId, treeNode) {
  1969. if (typeof treeNode.loadData === 'boolean' && treeNode.loadData === true) {
  1970. // 已经加载过了就不再加载数据了,但是可能需要做些奇葩事情
  1971. } else {
  1972. var zTree = $.fn.zTree.getZTreeObj(treeId);
  1973. var menus = eval("orgMenuNodes_" + treeNode.menuId);
  1974. var childNodes = getChildNodes(menus, treeNode.id, treeNode.menuId);
  1975. $.each(childNodes, function (i, e) {
  1976. zTree.addNodes(treeNode, e);
  1977. });
  1978. treeNode.loadData = true;
  1979. }
  1980. },
  1981. onClick: function (event, treeId, treeNode) {
  1982. /**权限验证
  1983. *督查主任,单位领导:可以穿透整个组织机构树
  1984. *分管领导:只能穿透他分管的部门及其部门下的人
  1985. *部门领导:只能穿透自己部门及其部门下的人
  1986. *普通角色:只能穿透自己
  1987. *方法里面同样需要验证,防止非法访问
  1988. **/
  1989. var result = callAjaxRequest("orgWebService", "checkAuthority", treeNode.id, null, null);
  1990. if (!!result) {
  1991. var url = '/interspace/gotoSpaceNew?visitId=' + treeNode.id;
  1992. TC.ui.openTab(url, "工作空间");
  1993. } else {
  1994. $.alert("无权访问!");
  1995. return;
  1996. }
  1997. }
  1998. }
  1999. };
  2000. /**
  2001. * 获取儿子节点
  2002. * @param nodes 所有节点
  2003. * @param parentId 爸爸ID
  2004. * @param menuId 对应的组织机构菜单ID
  2005. * @return []
  2006. */
  2007. function getChildNodes(nodes, parentId, menuId) {
  2008. var theTreeData = [];
  2009. for (var i = 0; i < nodes.length; i++) {
  2010. var node = nodes[i];
  2011. if (node.parentId == parentId) {
  2012. node.menuId = menuId;
  2013. theTreeData.push(node);
  2014. }
  2015. }
  2016. return theTreeData;
  2017. }
  2018. <c:forEach var="menu" items="${orgMenus}" varStatus="s">
  2019. var orgMenu_${menu.id} = '${menu.orgMenu}';
  2020. var orgMenuNodes_${menu.id} = JSON.parse(orgMenu_${menu.id} ? orgMenu_${menu.id} : '[]');
  2021. var zNodes_${menu.id} = getChildNodes(orgMenuNodes_${menu.id}, 0, '${menu.id}');
  2022. var zTree_${menu.id} = $.fn.zTree.init($("#${menu.id}_orgMenuTree"), orgTreeSetting, zNodes_${menu.id});
  2023. //zTree_${menu.id}.expandAll(true);
  2024. var unitSpaceNode = '<li id="-1" style="margin-left: 20px; height: 43px;cursor: pointer" class="level0 addOfNode" tabindex="0" hidefocus="true" treenode="">' +
  2025. '<span class="node_name" onclick="openUnitSpace();" title="单位空间">单位空间</span>' +
  2026. '</li>';
  2027. $(".addDeptSpace").prepend(unitSpaceNode);
  2028. </c:forEach>
  2029. var perId = "${currentUser.id }";
  2030. var hostAddress = "${hostAddress}";
  2031. var localPort = "${localPort}";
  2032. var contentPath = "${contentPath}";
  2033. var curUserId = "${curUser.id}";
  2034. var curPname = "${curUser.pname}";
  2035. var curUserName = "${curUser.username}";
  2036. var person = "${personSet}";
  2037. var curUserSkin = "${curUser.skin}";
  2038. var logoutUrl = "${logoutUrl}";
  2039. var cid = "${cid}";
  2040. var mainDepartment = "${mainDepartment}";
  2041. var portalNavi = "${portalNavi }";
  2042. var from = "${from}";
  2043. var homepage = "${homepage}";
  2044. var loginAccount = "${loginAccount}";
  2045. window.hostAddress = hostAddress;
  2046. window.localPort = localPort;
  2047. window.contentPath = contentPath;
  2048. /*
  2049. * 组织机构
  2050. */
  2051. var orgData = [];
  2052. var accessAccounts =
  2053. ${tc:toJSON(accessAccounts)} ||
  2054. [];
  2055. if (accessAccounts.length > 0) {
  2056. for (var i = 0; i < accessAccounts.length; i++) {
  2057. var acc = accessAccounts[i];
  2058. orgData.push({
  2059. id: acc.id,
  2060. title: acc.name
  2061. });
  2062. }
  2063. var orgItemHtml = ''
  2064. orgData.forEach(function (val) {
  2065. orgItemHtml += "<li class=\"changeAccount more-dropdown-item\" data-value=\"" + val.id + "\" value=\"" + val.id + "\">" + val.title + "</li>";
  2066. })
  2067. $('#org-group').show().find('.mt-dropdown-more').html(orgItemHtml)
  2068. //默认选中一项组织
  2069. mt.dropdownChoose('org-group', loginAccount)
  2070. $(".changeAccount").on("click", function () {
  2071. var value = $(this).attr("data-value");
  2072. if (value == loginAccount) {
  2073. return;
  2074. }
  2075. $.confirm("切换单位将刷新页面,是否确认?", function () {
  2076. $.startProc();
  2077. setTimeout(function () {
  2078. $.post("${path}/change/account/" + value, {}, function (result) {
  2079. window.onbeforeunload = null;
  2080. window.location.reload();
  2081. })
  2082. }, 1);
  2083. return false;
  2084. }, function () {
  2085. mt.dropdownChoose('org-group', loginAccount)
  2086. });
  2087. });
  2088. }
  2089. function showUserInfo(obj) {
  2090. var off = $(obj).offset();
  2091. $(".userInfo").css("left", off.left - 2 + "px");
  2092. $(".userInfo").css("top", off.top - 2 + "px");
  2093. $(".userInfo").show("");
  2094. }
  2095. $(".userInfo").mouseleave(function () {
  2096. $(this).hide("fast");
  2097. });
  2098. //人员在线情况监听
  2099. function onlineTotalChangeListener(message) {
  2100. var jsonObj = $.parseJSON(message);
  2101. $("#onlineSize").html(jsonObj.onlineTotal);
  2102. $("#allPersonSize").html(jsonObj.personTotal);
  2103. $("#boxFrame").contents().find("#onlineSize2").html(jsonObj.onlineTotal);
  2104. $("#boxFrame").contents().find("#allPersonSize2").html(jsonObj.personTotal);
  2105. }
  2106. /* 进入单位空间 edited by lijun at 2020/2/18 13:45 */
  2107. function openUnitSpace() {
  2108. TC.ui.openResource({label: "单位空间", url: "/community/commonSpace"});
  2109. }
  2110. //人员下线在线监听
  2111. function onlinePersonChangeListener(model) {
  2112. if (model != null) {
  2113. var id = model.personId;
  2114. var state = model.online;
  2115. if (state == true) {
  2116. $("#orgTree").find("#state" + id).attr("class", "state_on");
  2117. } else {
  2118. /*// 添加下线处理 Modifier: <Zhengyu.Hu> 2018/5/17 上午11:07 end.
  2119. if(id ==
  2120. ${curUser.id}){
  2121. $.alert("当前用户已下线!",function(){
  2122. window.onbeforeunload = null;
  2123. TC.topWin.location.reload();
  2124. });
  2125. return;
  2126. }*/
  2127. $("#orgTree").find("#state" + id).attr("class", "state_off");
  2128. }
  2129. }
  2130. }
  2131. communityMessageManager = {
  2132. messageTotal: 0,
  2133. notifiArea: $(".notifiCount"),
  2134. dialogWindow: null,
  2135. clean: function () {
  2136. this.messageTotal = 0;
  2137. $(".notifiCount").text("").hide();
  2138. if (this.dialogWindow != null) {
  2139. this.dialogWindow.close();
  2140. this.dialogWindow = null;
  2141. }
  2142. },
  2143. init: function () {
  2144. var _this = this;
  2145. $("#toCommunity").click(function () {
  2146. _this.clean();
  2147. });
  2148. },
  2149. communityMessageListener: function (message) {
  2150. this.messageTotal++;
  2151. if (this.messageTotal > 99) {
  2152. $(".notifiCount").text("99+").show();
  2153. } else if (this.messageTotal > 0) {
  2154. $(".notifiCount").text(this.messageTotal).show();
  2155. } else {
  2156. $(".notifiCount").text("").hide();
  2157. }
  2158. //若有则关闭
  2159. if (this.dialogWindow != null) {
  2160. this.dialogWindow.close();
  2161. }
  2162. }
  2163. };
  2164. $(window).on("resize", function () {
  2165. var msgContent = $("#msg_detailed_contents");
  2166. if (msgContent.css("display") == 'block') {
  2167. // 重新计算位置
  2168. var Width = $(window).width();
  2169. var WidthJ = 420 //减少量
  2170. if (Width < 1600) {
  2171. WidthJ = 380
  2172. }
  2173. msgContent.show().css({right: 90 + "px", top: "110px"});
  2174. }
  2175. });
  2176. /**
  2177. * 根据输入框和页签按钮所占高度重算内容栏高度
  2178. */
  2179. function resizeFTCArea() {
  2180. var h1 = $("#optionDiv").height();
  2181. var h2 = $("#bbsForm").height();
  2182. var h3 = $("#msg-content").height();
  2183. }
  2184. $(document).ready(function () {
  2185. resizeFTCArea();
  2186. $("#friendTrendContentArea").mCustomScrollbar({
  2187. theme: 'minimal-dark',
  2188. callbacks: {
  2189. onTotalScroll: function () {
  2190. //当滚动到最底部时,加载新内容
  2191. getMsg();
  2192. }
  2193. }
  2194. });
  2195. $(".menu_arrow").click(function () {
  2196. var $self = $(this);
  2197. if ($self.hasClass("openMenu")) {
  2198. $self.removeClass("openMenu");
  2199. $(this).animate({"left": 0}).attr("title", "展开菜单");
  2200. $("#main_left").animate({"width": 0}, function () {
  2201. $("#main_left").hide();
  2202. });
  2203. } else {
  2204. $(this).addClass("openMenu");
  2205. $(this).animate({"left": 160}).attr("title", "收起菜单");
  2206. $("#main_left").show().animate({"width": 160});
  2207. }
  2208. });
  2209. $(".spaceDiv").click(function () {
  2210. $(this).addClass("current").siblings().removeClass("current");
  2211. var text = $(this).html();
  2212. var targets = $(this).attr("target");
  2213. changeMainFrame(text, targets)
  2214. });
  2215. $(".daohang li").eq(0).find(".sub-daotu").show('slow');
  2216. $(".daohang li").eq(0).find("span").toggleClass("glyphicon-menu-down glyphicon-menu-up")
  2217. $(".daohang a.title").click(function () {
  2218. $(this).find(".toggleIco").toggleClass("glyphicon-menu-down glyphicon-menu-up");
  2219. $(this).parents("li").find(".sub-daotu").toggle();
  2220. });
  2221. $(".MySubMenu").each(function () {
  2222. var self = $(this);
  2223. showSubMenu(self);
  2224. });
  2225. // 改变颜色 Modifier: <Zhengyu.Hu> 2018/9/30 1:47 PM end.
  2226. $("#systemMenu span").hover(function () {
  2227. $(this).children().css("color", "#fff");
  2228. }, function () {
  2229. $(this).children().css("color", "#333");
  2230. });
  2231. index.init();
  2232. communityMessageManager.init();
  2233. $("#logout").click(function () {
  2234. logout();
  2235. });
  2236. $("a[name='topMenu']").click(function () {
  2237. var menuName = $(this).attr("menuName");
  2238. var menuPath = $(this).attr("menuPath");
  2239. var menuId = $(this).attr("menuId");
  2240. if (menuPath === "") {
  2241. $(".daohang").html("");
  2242. var param = {
  2243. "id": menuId
  2244. };
  2245. TC.util.postAjaxData(TC.config.baseUrl
  2246. + "/menu/?m=findChildrenMenu", param, function (result) {
  2247. if (result.state == "success") {
  2248. var menus = $.parseJSON(result.menus);
  2249. if (menus && menus.length > 0) {
  2250. for (var i = 0; i < menus.length; i++) {
  2251. var li = $("<li></li>");
  2252. var main = $("<a href='javascript:;' onfocus='this.blur();'></a>");
  2253. main.addClass("title");
  2254. // glyphicon glyphicon-random
  2255. main.append("<span class='toggleIco glyphicon glyphicon-menu-down'></span>" + menus[i].name);
  2256. var sub = $("<div></div>");
  2257. sub.addClass("sub-daotu");
  2258. if (menus[i].children.length > 0) {
  2259. var subMenus = menus[i].children;
  2260. for (var j = 0; j < subMenus.length; j++) {
  2261. var suba = $("<a href='javascript:;' onfocus='this.blur();'>" + subMenus[j].name + "</a>");
  2262. suba.attr("menuName", subMenus[j].name);
  2263. suba.attr("menuPath", subMenus[j].path);
  2264. suba.bind("click", function () {
  2265. TC.ui.openResource({
  2266. label: $(this).attr("menuName"),
  2267. url: $(this).attr("menuPath")
  2268. });
  2269. });
  2270. sub.append(suba);
  2271. }
  2272. }
  2273. li.append(main);
  2274. li.append(sub);
  2275. $(".daohang").append(li);
  2276. }
  2277. }
  2278. } else {
  2279. $.dialog({
  2280. title: "系统提示",
  2281. icon: result.state + ".gif",
  2282. content: result.message,
  2283. lock: true,
  2284. parent: this,
  2285. ok: true
  2286. });
  2287. }
  2288. });
  2289. } else {
  2290. TC.ui.openResource({label: menuName, url: menuPath});
  2291. }
  2292. });
  2293. $("#showSysmsg").click(function () {
  2294. $("#systemSend").show().siblings().hide();
  2295. getMsg();
  2296. });
  2297. //打开消息连接
  2298. if (${isOaUrl}) {
  2299. TC.ui.openTab("/taskmt/?m=taskDetail&id=${taskId}", "查看事项");
  2300. }
  2301. function initDwr() {
  2302. loginDwr();
  2303. dwr.engine.setActiveReverseAjax(true);
  2304. dwr.engine.setNotifyServerOnPageUnload(true);
  2305. //页面在关闭服务器报错处理
  2306. dwr.engine.setErrorHandler(function (message, ex) {
  2307. if (ex && ex.name == "dwr.engine.http.504") {
  2308. console.log("尝试重新登录...");
  2309. // 临时解决办法,虽然可以解决,但是需要找到根本问题 Modifier: <Zhengyu.Hu> 2020/3/10 1:50 下午 end.
  2310. dwr.engine._poll();
  2311. }
  2312. });
  2313. dwr.engine.setWarningHandler(function (message, ex) {
  2314. });//警告信息,主要为服务器长时间未响应等
  2315. }
  2316. });
  2317. /**
  2318. * 切换工作台
  2319. */
  2320. function changeMainFrame(text, url) {
  2321. //切换工作台重新初始化高度
  2322. var randomNum = parseInt(Math.random() * 1000);
  2323. if (!!url) {
  2324. if (url.indexOf("?") == -1) {
  2325. url += "?";
  2326. } else {
  2327. url += "&";
  2328. }
  2329. url += "_r=" + randomNum;
  2330. $("#mainFrame").attr("src", TC.config.baseUrl + url);
  2331. //改变portal后需要切换标题 modify by huzy 2017/11/6 下午3:18
  2332. //$("#indexText").html(text);
  2333. } else {
  2334. return;
  2335. }
  2336. }
  2337. // 处理左侧消息同步
  2338. function handlerLeftMessage(id) {
  2339. var msgtr = $("#sysmsg tr[id='" + id + "']");
  2340. if (msgtr.length > 0) {
  2341. msgtr.removeClass("unReadMsg");
  2342. checkHaveUnReadMsg();
  2343. }
  2344. TC.message.markMessageReaded(id);
  2345. }
  2346. // 处理右下角联动消息,点击左侧内容,右下角的消息删除
  2347. function handlerRightMessage(id) {
  2348. var tr = $("#messageList tr[msgId='" + id + "']");
  2349. if (tr.length > 0) {
  2350. tr.remove();
  2351. }
  2352. if ($("#messageList").find("tr").length < 1) {
  2353. if (TC.message.container.systemWin && typeof TC.message.container.systemWin['close'] == "function") {
  2354. TC.message.container.systemWin.close();
  2355. }
  2356. }
  2357. }
  2358. /**
  2359. * 往左侧菜单增加消息
  2360. * @param msg
  2361. */
  2362. function pushMsg(msg) {
  2363. var msgIcon = TC.config.baseUrl + "/tc_ttp/style/default/images/msg.png";
  2364. if (msg.resourceType != 12) {//暂时屏蔽手机端新留言消息
  2365. // 如果已经有了,就不再加了
  2366. if ($("#sysmsg tbody #" + msg.id).length > 0) {
  2367. return;
  2368. }
  2369. if (msg.resourceType === 10080001 || msg.resourceType === 10080003) {
  2370. msgIcon = TC.config.baseUrl + "/org/persons/" + msg.sender + "/?m=picon";
  2371. }
  2372. // var tr = $("<tr id='" + msg.id + "' style='border-bottom:1px solid #b5b5b5;' resType=" + msg.resourceType + " resId=" + msg.resourceId + " data-params='" + JSON.stringify(msg.params) + "'></tr>");
  2373. var tr = $("<tr id='" + msg.id + "' resType=" + msg.resourceType + " resId=" + msg.resourceId + " data-params='" + JSON.stringify(msg.params) + "' msg_type='" + msg.messageType + "'></tr>");
  2374. var rawMsg = msg.message.replace(/</g, "").replace(/>/g, "");
  2375. var msg3 = rawMsg;
  2376. if (msg3.length > 20) {
  2377. msg3 = msg3.substring(0, 18) + "...";
  2378. }
  2379. var td = $("<td width='40' height='60' valign='top'></td>");
  2380. td.append("<div class='message-icon'><img src='" + msgIcon + "'/></div>");
  2381. tr.append(td);
  2382. td = "<td name='replys' valign='top' align='left' class='mbdb-cell'>";
  2383. td += "<div class='content message-content'>";
  2384. td += "<div class='title message-content-title'>" + msg3 + "</div>";
  2385. td += "<span class='message-content-time'>" + msg.sendTimeCalendar + "</span>";
  2386. td += "</div></td>";
  2387. tr.append(td);
  2388. tr.attr("title", rawMsg);
  2389. // 根据状态进行加粗 modify by huzy 2017/11/29 15:02
  2390. if (msg.messageState == 1) {
  2391. tr.addClass("unReadMsg")
  2392. }
  2393. tr.bind("click", function () {
  2394. var msgObj = {
  2395. "msgType": $(this).attr("msg_type"),
  2396. "taskTypeId": $(this).attr("task_type_id"),
  2397. "params": $(this).data("params")
  2398. };
  2399. if ($(this).hasClass("unReadMsg")) {
  2400. TC.message.markMessageReaded($(this).attr("id"));
  2401. }
  2402. $(this).css('border-bottom', '1px solid #e5e5e5')
  2403. $(this).find(".title").css('color', '#999999');
  2404. openMsg($(this).attr("resType"), $(this).attr("resId"), $(this).attr("title"), msgObj);
  2405. $(this).removeClass("unReadMsg");
  2406. checkHaveUnReadMsg();
  2407. handlerRightMessage($(this).attr("id"));
  2408. });
  2409. $("#sysmsg tbody").append(tr);
  2410. }
  2411. }
  2412. /**
  2413. * 增加page参数,用于刷新
  2414. * @param page
  2415. * @param errorHandler 报错处理
  2416. */
  2417. function getMsg(page, errorHandler) {
  2418. var param = {
  2419. "page": page || $("#sysmsg").attr("pageNum")
  2420. };
  2421. $("#msg-content").mask({
  2422. zIndex: 2,
  2423. border: false,
  2424. position: $.fn.mask.position.inner
  2425. });
  2426. TC.util.postAjaxData(TC.config.baseUrl
  2427. + "/getHistoryMessage?_=" + $.now(), param, function (result) {
  2428. $("#msg-content").mask().close();
  2429. if (result.state == "success") {
  2430. var msgs = $.parseJSON(result.msgs);
  2431. if (msgs && msgs.length > 0) {
  2432. for (var i = 0; i < msgs.length; i++) {
  2433. var msg = msgs[i];
  2434. pushMsg(msg);
  2435. }
  2436. $("#sysmsg").next().remove();
  2437. var more = $("<a></a>");
  2438. more.attr("style", "font-weight: 600;;font-size:16px;width:100%;display: block;height:56px; text-align: center; line-height:56px; color:#1272bc;background: #fff;position: absolute;bottom:0;");
  2439. more.attr("href", "javascript:;");
  2440. more.attr("class", "LoadMoreButton block align-c");
  2441. more.html("加载更多");
  2442. more.unbind().bind("click", function () {
  2443. getMsg();
  2444. });
  2445. $("#sysmsg").after(more);
  2446. $("#sysmsg").attr("pageNum", result.page + 1);
  2447. // 判断是否有未读消息
  2448. checkHaveUnReadMsg();
  2449. } else {
  2450. if ($("#sysmsg tr").length > 0) {
  2451. $.alert("${tc:i18n('common.message.no.more.label')}");
  2452. } else {
  2453. // 增加一个提示,如果来消息,这个是需要删除的
  2454. $("#sysmsg").html("<tr class='tips'><td style='padding:5px 0 5px 50px;'>${tc:i18n("common.message.empty.label")}</td></tr>");
  2455. }
  2456. }
  2457. index.add2MsgBox = true;
  2458. } else {
  2459. $("#sysmsg").html("<tr class='tips'><td style='padding:5px 0 5px 0px;line-height: 30px;text-align: center;'>${tc:i18n("common.message.server.offline")}</td></tr>");
  2460. console.error("获取系统消息失败.");
  2461. if (errorHandler) {
  2462. errorHandler(result);
  2463. }
  2464. }
  2465. });
  2466. }
  2467. /**
  2468. * 检查是否有未读消息,,如果有就显示红点,没有就不显示
  2469. */
  2470. function checkHaveUnReadMsg() {
  2471. var msgRedDot = $("#redSpot");
  2472. if ($("#sysmsg .unReadMsg").length > 0) {
  2473. msgRedDot.show();
  2474. } else {
  2475. msgRedDot.hide();
  2476. }
  2477. }
  2478. function openMsg(resType, resId, title, msgObj) {
  2479. if (!!resType && resType != "null" && !!resId && resId != "null") {
  2480. var url = "";
  2481. var type = parseInt(resType);
  2482. var params = msgObj.params;
  2483. /* 修改为默认设置为true了,不然很多消息点击不能穿透了 edited by lijun at 2020/8/13 16:19 */
  2484. var isShow = true;
  2485. switch (type) {
  2486. case 10140001:
  2487. var libId = params.libId;
  2488. var status = params.status;
  2489. if (params.type == "single") {//重大项目单个
  2490. if (params.edit != null) {
  2491. url = "/project/edit/" + libId + "/" + resId;
  2492. } else {
  2493. url = "/project/detail/" + libId + "/" + resId;
  2494. }
  2495. TC.ui.openTab(url, "");
  2496. return
  2497. } else if (params.type == "multiple") {//重大项目多个
  2498. url = "/project/list/" + status + "/" + libId;
  2499. TC.ui.openTab(url, "");
  2500. return
  2501. }
  2502. break;
  2503. case 1004:
  2504. case 0:
  2505. case 1:
  2506. case 2:
  2507. case 3:
  2508. case 4:
  2509. case 5:
  2510. case 6:
  2511. case 7:
  2512. case 13:
  2513. case 14:
  2514. case 10010001:
  2515. isShow = true;
  2516. break;
  2517. case 10010009:
  2518. url = "/taskmt/?m=taskDetail&id=" + resId;
  2519. break;
  2520. case 1005:
  2521. url = "/taskmt/?m=task-list&taskType=" + resId;
  2522. break;
  2523. case 11:
  2524. case 10080001:
  2525. url = "/community/commonSpace?spaceType=" + type;
  2526. break;
  2527. case 10080004:
  2528. case 10080005:
  2529. // 留言,数据社区
  2530. url = "/community/showDataCommunity?resId=" + resId;
  2531. $.dialog({
  2532. title: "数据社区",
  2533. max: false,
  2534. min: false,
  2535. content: "url:" + TC.config.baseUrl + url,
  2536. width: "820px",
  2537. height: "600px",
  2538. lock: true,
  2539. cancel: function () {
  2540. }
  2541. });
  2542. return;
  2543. break;
  2544. case 10020001:
  2545. url = "/space/" + resId + "/?m=download";
  2546. break;
  2547. case 8:
  2548. /* @author:inspired(胡启林) describe: 邮件穿透先判断是什么类型 date: 2020/1/9*/
  2549. isShow = true;
  2550. var result = callAjaxRequest("colWebService", "findColSummaryBeanByColAffairId", resId);
  2551. if (!!result) {
  2552. if (result.colListType == 302) {//领导批示
  2553. url = "/taskByType/toLeaderDraftDetail?colId=" + result.id + "&affairId=" + resId + "&colListType=" + result.colListType;
  2554. } else if (result.colListType == 301 || result.colListType == 303) {
  2555. url = "/doCollaboration/doColIndex?affairId=" + resId + "&colListType=" + result.colListType;
  2556. } else {//其他邮件直接穿透
  2557. url = "/doCollaboration/doColIndex?affairId=" + resId;
  2558. }
  2559. } else {
  2560. url = "/doCollaboration/doColIndex?affairId=" + resId;
  2561. }
  2562. break;
  2563. case 18:
  2564. //进入矩阵详情
  2565. if (resId.indexOf(",") > -1) {
  2566. //数据详情
  2567. var array = resId.split(",");
  2568. url = "/matrix/business/dataDetail/" + array[1] + "/" + array[0];
  2569. } else {
  2570. //表详情
  2571. url = "/matrix/business/tableDetail/" + resId
  2572. }
  2573. break;
  2574. case 10:
  2575. case 10030003:
  2576. case 10030002:
  2577. case 10010006:
  2578. case 10010007:
  2579. url = "/doCollaboration/doColIndex?affairId=" + resId;
  2580. break;
  2581. case 10030001:
  2582. url = "/doCollaboration/doColIndex?colId=" + resId;
  2583. break;
  2584. case 10060001:
  2585. url = "/knowledge/" + resId + "/";
  2586. break;
  2587. case 9:
  2588. case 10010002: //公共信息
  2589. url = "/public_Information/detail_doc/?m=detailDoc&id=" + resId;
  2590. break;
  2591. case 10010003://通知
  2592. url = "/dzdb/msgc/" + resId + "/?massage=1";
  2593. break;
  2594. case 40000002:
  2595. parent.addTab('project', '5个100工程', '/goal/project/?m=index');
  2596. return false;
  2597. break;
  2598. // 功能资源
  2599. case 20000000:
  2600. break;
  2601. case 10011001:
  2602. //增加事项归档数据展示 modify by huzy 2018/1/31 14:35
  2603. url = "/taskmt/pigeonhole/view/" + resId;
  2604. break;
  2605. case 10030011:
  2606. url = "/appraise/selfEvaluationList?summaryId=" + resId;
  2607. break;
  2608. // @author : 龙胜海(edit) 2020/01/15 增加了数据服务私云空间消息提醒
  2609. case 10050001:
  2610. url = "/tc_suite/dataserver/html/space/space_file.jsp?did=" + resId;
  2611. break;
  2612. case 11001006:
  2613. title = "民生目标";
  2614. if (params) {
  2615. var theMsgType = params.msgType;
  2616. // 催办消息
  2617. if ("remind" == theMsgType) {
  2618. var remindType = params.type;
  2619. var categoryCode = params.code;
  2620. if (categoryCode) {
  2621. if (remindType == 0) {
  2622. // 分解催办
  2623. url = "/objective/" + categoryCode + "/resolve";
  2624. } else if (remindType == 1) {
  2625. // 汇报催办
  2626. var phaseId = params.phaseId;
  2627. url = "/objective/" + categoryCode + "/phase/" + phaseId;
  2628. }
  2629. }
  2630. }
  2631. if (params.type == 2) {
  2632. //汇报发送消息
  2633. var phaseId = params.phaseId;
  2634. var categoryCode = params.code;
  2635. url = "/objective/" + categoryCode + "/phase/" + phaseId;
  2636. }
  2637. }
  2638. break;
  2639. case 10080002:
  2640. title = "部门空间";
  2641. if (params) {
  2642. url = params.url + "&jumpLy=true";
  2643. }
  2644. break;
  2645. case 10080003:
  2646. title = "个人空间";
  2647. if (params) {
  2648. url = params.url + "&jumpLy=true";
  2649. }
  2650. break;
  2651. case 31001010:
  2652. title = "问题整改";
  2653. if (params) {
  2654. url = params.url;
  2655. }
  2656. break;
  2657. case 31001011:
  2658. title = "绩效考核";
  2659. if (params) {
  2660. url = params.url;
  2661. }
  2662. var msg_type = msgObj.msgType;
  2663. switch (msg_type) {
  2664. case "1":
  2665. url = "/goal/performance/kpiEvaluation?collectId=" + resId;
  2666. TC.ui.openTab(url, "");
  2667. return
  2668. case "2":
  2669. url = "/goal/performance/kpiEvaluationResult?collectId=" + resId;
  2670. TC.ui.openTab(url, "");
  2671. return
  2672. }
  2673. break;
  2674. case 21001008: //重大项目
  2675. case 15: //重大项目
  2676. url = "/project/" + resId + "?projectType=null";
  2677. TC.ui.openTab(url, "");
  2678. return
  2679. case 10120005:
  2680. // 矩阵数据查看
  2681. url = "/dm/table/" + params.tableDef + "/?m=datain&editType=1&dataId=" + resId + "&referenceId=" + params.referenceId + "&referenceType=" + params.referenceType;
  2682. break;
  2683. case 12001000:
  2684. //目标绩效
  2685. var releaseType = params.releaseType;
  2686. var goalFormId = params.historyId;
  2687. var departmentId = params.departmentId;
  2688. switch (releaseType) {
  2689. case 1:
  2690. //目标发布
  2691. url = "/newGoal/depGoalDetail?depId=" + departmentId + "&gfId=" + goalFormId + "&gfType=" + 1 + "&isMsgCome = true";
  2692. TC.ui.openTab(url, "");
  2693. return
  2694. case 2:
  2695. //确认分管领导
  2696. url = "/newGoal/sendCollectionForm?goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2697. TC.ui.openTab(url, "");
  2698. return
  2699. case 3:
  2700. //承办单位自查
  2701. url = "/newGoal/sendSelfEvaluateForm?goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2702. TC.ui.openTab(url, "");
  2703. return
  2704. case 4:
  2705. //数据采集打分
  2706. url = "/newGoal/sendLeadUnitEvaluationForm?goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2707. TC.ui.openTab(url, "");
  2708. return
  2709. case 5:
  2710. case 6:
  2711. //指标进度采集表
  2712. url = "/quotaPlan/indexProgressDataCollection?goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2713. TC.ui.openTab(url, "");
  2714. return
  2715. case 7:
  2716. //指标省/市排名数据采集表
  2717. url = "/quotaPlan/quotaRankDataFrom?type=" + releaseType + "&goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2718. TC.ui.openTab(url, "");
  2719. return
  2720. case 8:
  2721. //指标的发布、编辑、删除时消息(暂时注释掉,因为这个页面穿透过去也无权访问)
  2722. break;
  2723. case 9:
  2724. case 10:
  2725. // 评价
  2726. url = "/quotaPlan/jobEvaluation?type=" + releaseType + "&goalFormId=" + goalFormId + "&isMsgComeDeptId=" + departmentId;
  2727. TC.ui.openTab(url, "");
  2728. return
  2729. }
  2730. break;
  2731. }
  2732. if (title.indexOf("<") > 0) {
  2733. var start = title.indexOf("<");
  2734. var end = title.indexOf(">");
  2735. title = title.substring(start + 1, end);
  2736. }
  2737. // 增加‘isShow’,防止对其他模块的影响
  2738. if (isShow) {
  2739. if (type == 10010001) {
  2740. if (msgObj.msgType == "batch") {
  2741. TC.ui.openResource({
  2742. id: msgObj.taskTypeId,
  2743. label: '',
  2744. url: "/taskmt/?m=task-list&taskType=" + msgObj.taskTypeId,
  2745. icon: ""
  2746. });
  2747. } else {
  2748. TC.util.postAjaxData(TC.config.baseUrl + "/taskmt/getTaskSummaryState/" + resId, {}, function (result) {
  2749. if (result.state == 7) {
  2750. $.alert("该事项已被删除")
  2751. } else if (result.state == 0) {
  2752. $.alert("该事项已被撤回")
  2753. } else {
  2754. if (url == '' || url == null) {
  2755. url = "/taskmt/?m=taskDetail&id=" + resId;
  2756. }
  2757. TC.ui.openTab(url, "查看事项");
  2758. }
  2759. }, true, "get");
  2760. }
  2761. } else if (type == 19) {
  2762. TC.ui.openResource({
  2763. id: resId,
  2764. label: '部门指标',
  2765. url: "/goal/list/manager?orgEntityKey=10000002_" + resId,
  2766. icon: ""
  2767. });
  2768. } else if (type == 40000005) {
  2769. TC.ui.openTab("/goal/goalDetailFrame?goalId=" + resId, "");
  2770. } else if (type == 10170002) {
  2771. //评估表详情穿透
  2772. TC.ui.openTab("/performance/eval/detail/index?id=" + resId, "");
  2773. } else {
  2774. //todo 临时做处理,等胡正宇来调整
  2775. if (url == '' || url == null) {
  2776. url = "/taskmt/?m=taskDetail&id=" + resId;
  2777. }
  2778. TC.ui.openTab(url, "查看事项");
  2779. }
  2780. }
  2781. } else {
  2782. //inspired 未知消息统一打开待办
  2783. var url = "/taskByType/moreAffairList?subType=-1"
  2784. TC.ui.openResource({label: "待办工作", url: url});
  2785. }
  2786. }
  2787. function loginDwr() {
  2788. DwrMessageManager.login('${curUser.id}', '${cid}', function (result) {
  2789. if (result === true) {
  2790. DwrMessageManager.addOnlineTotalChangeListener("onlineTotalChangeListener");
  2791. DwrMessageManager.addOnlinePersonChangeListener("onlinePersonChangeListener");
  2792. DwrMessageManager.addCommunityMessageListener("communityMessageManager.communityMessageListener");
  2793. $.getScript("${path}/tc_ttp/common/datacache.js${resSuffix}", function () {
  2794. TC.topWin.dataCache.personCache.init();
  2795. TC.topWin.dataCache.LastContactsCache.init();
  2796. });
  2797. TC.message.listenMessage();
  2798. DwrMessageManager.setReviveMethod("loginDwr");
  2799. }
  2800. });
  2801. }
  2802. function showTemp(obj) {
  2803. var off = $(obj).offset();
  2804. $("#spaceSelect").css("left", off.left + "px");
  2805. $("#spaceSelect").css("top", off.top - 29 + "px");
  2806. $("#spaceSelect").show("fast");
  2807. $("#spaceSelect").mouseleave(function () {
  2808. $(this).hide("fast");
  2809. });
  2810. $("#spaceSelect").click(function () {
  2811. $(this).hide("fast");
  2812. });
  2813. }
  2814. $(".tipsDiv").click(function () {//消息
  2815. var msgContent = $("#msg_detailed_contents");
  2816. var Width = $(window).width();
  2817. if (msgContent.css("display") == 'none') {
  2818. msgContent.css({
  2819. right: -380 + "px",
  2820. top: "110px"
  2821. }).show().animate({
  2822. right: 90 + "px",
  2823. })
  2824. } else {
  2825. msgContent.animate({
  2826. right: -380 + "px",
  2827. }, function () {
  2828. msgContent.hide();
  2829. });
  2830. }
  2831. })
  2832. $("#msg_detailed_contents .msg_detailed_closed").click(function () {
  2833. var msgContent = $(this).parents('#msg_detailed_contents');
  2834. var Width = $(window).width();
  2835. msgContent.animate({
  2836. right: -380 + "px",
  2837. }, function () {
  2838. msgContent.hide();
  2839. });
  2840. });
  2841. var floatNav = ${floatNav};// 1 展示, 0 隐藏
  2842. var topNav = '${topNav}';
  2843. var menuHiddenDefaultOpen = '${menuHiddenDefaultOpen}';//默认展开 1 ,默认收缩2
  2844. $(function () {
  2845. if (!!topNav && topNav == '1') {
  2846. $(".Main_top").css("display", "none");
  2847. }
  2848. if (floatNav == 0) {
  2849. $("#layout-left").hide();
  2850. $("#layout-right").css("margin-left", "0px");
  2851. }
  2852. if (floatNav == 1) {
  2853. if (menuHiddenDefaultOpen == 1) {
  2854. $("#layout-left").css({"position": "static", "width": "200px", "min-width": "200px"});
  2855. $("#leftMenus").css({"position": "static"});
  2856. $("#layout-right").css("margin-left", "0px");
  2857. $(".lefts_imgs").find('span').fadeIn();
  2858. var $lis = $(".lefts_imgs[data-show='true']");
  2859. $lis.find(".list_zeert").show();
  2860. $(".menu-list").show();
  2861. $(".nav_list").addClass("zkList").find("span").show();
  2862. } else if (menuHiddenDefaultOpen == 2) {
  2863. $("#layout-left").css({"position": "absolute"});
  2864. $("#layout-right").css("margin-left", "50px");
  2865. }
  2866. }
  2867. })
  2868. $(".nav_list").click(function (event) {//左侧导航
  2869. event.stopPropagation();
  2870. $(this).toggleClass("zkList");
  2871. if ($(this).hasClass("zkList")) {
  2872. var $this = $(this);
  2873. $("#layout-left").width(200).css("min-width", "200px");
  2874. setTimeout(function () {
  2875. $(".lefts_imgs").find('span').fadeIn();
  2876. var $lis = $(".lefts_imgs[data-show='true']");
  2877. $lis.find(".list_zeert").show();
  2878. $(".menu-list").show();
  2879. $this.find("span").show();
  2880. }, 100);
  2881. } else {
  2882. $("#layout-left").width(50).css("min-width", "0");
  2883. $("#layout-right").css("left", "50px");
  2884. $(".lefts_imgs").find('span').hide();
  2885. $(".menu-list").hide();
  2886. $("#layout-left .list_zeert").hide();
  2887. $(this).find("span").hide();
  2888. $("#leftMenus,#ToolBar").css("box-shadow", "none");
  2889. }
  2890. });
  2891. $("#leftMenus").click(function (event) {
  2892. $(".nav_list").trigger("click");
  2893. });
  2894. $("#leftMenus").on("click", '.list_zeert', function (e) {
  2895. e.stopPropagation();
  2896. })
  2897. $(".list_show").click(function (e) {
  2898. e.stopPropagation();
  2899. var listShow = $(this);
  2900. var leftsImgs = listShow.parents("li:eq(0)");
  2901. var dataShow = leftsImgs.attr("data-show");
  2902. var listZeert = listShow.next(".list_zeert");
  2903. if (typeof dataShow == 'undefined' || dataShow === 'false') {
  2904. leftsImgs.attr("data-show", "true");
  2905. listZeert.slideDown();
  2906. } else {
  2907. leftsImgs.attr("data-show", "false");
  2908. listZeert.slideUp();
  2909. }
  2910. });
  2911. $(".menu-real a").each(function () {
  2912. if ($(this).text().length > 8) {
  2913. var Text1 = $(this).text();
  2914. var Text = $(this).text().substring(0, 8);
  2915. $(this).text(Text + "...");
  2916. $(this).attr("title", Text1);
  2917. }
  2918. });
  2919. $(".node_name").each(function () {
  2920. if ($(this).text().length > 8) {
  2921. var Text = $(this).text().substring(0, 8);
  2922. $(this).text(Text + "...");
  2923. }
  2924. });
  2925. $(".menu-item a").each(function () {
  2926. if ($(this).text().length > 8) {
  2927. var Text1 = $(this).attr("menuName");
  2928. var Text = Text1.substring(0, 8);
  2929. $(this).text(Text + "...");
  2930. $(this).attr("title", Text1);
  2931. }
  2932. });
  2933. $("#bodyCon").on("load", "#mainFrame", function () {
  2934. TC.ui.closeProgressBar();
  2935. })
  2936. $(window).load(function () {
  2937. $(".home-mask").css("opacity", 0);
  2938. setTimeout(function () {
  2939. $(".home-mask").remove();
  2940. }, 200);
  2941. });
  2942. $("#switch .switch_log").click(function (event) {
  2943. $("#switch .switch_content").css("right", "-70px");
  2944. $(this).hide();
  2945. $(this).parent().removeClass("switch_list");
  2946. $(this).parent().addClass("switch_kai");
  2947. $("#switch .switch_content").show();
  2948. $("#switch .switch_content").animate({"right": "0px"}, 400);
  2949. $("#layout-left").width(50);
  2950. $("#layout-right").css("left", "50px");
  2951. $(".lefts_imgs").find('span').hide();
  2952. $(".menu-list").hide();
  2953. $("#layout-left .list_zeert").hide();
  2954. $(".nav_list").find("span").hide();
  2955. Nav_list = false;
  2956. event.stopPropagation();
  2957. }).mousemove(function () {
  2958. $(this).css({"width": "44px", "margin-top": "-20px"});
  2959. }).mouseout(function () {
  2960. $(this).css({"width": "22px", "margin-top": "0px"});
  2961. })
  2962. /* 贵安新区 add by yinj */
  2963. $(".switch_content ul li,.changeMainFrame").click(function (event) {
  2964. var li = $(this);
  2965. li.addClass("show").siblings().removeClass();
  2966. var url = li.data("url");
  2967. var text = li.text();
  2968. changeMainFrame(text, url);
  2969. if (window.localStorage) {
  2970. window.localStorage.setItem("home-page", JSON.stringify({
  2971. name: text,
  2972. url: url
  2973. }));
  2974. }
  2975. event.stopPropagation();
  2976. });
  2977. function test(obj) {
  2978. var li = $(obj);
  2979. li.addClass("show").siblings().removeClass();
  2980. var url = li.data("url");
  2981. var text = li.text();
  2982. changeMainFrame(text, url);
  2983. if (window.localStorage) {
  2984. window.localStorage.setItem("home-page", JSON.stringify({
  2985. name: text,
  2986. url: url
  2987. }));
  2988. }
  2989. event.stopPropagation();
  2990. }
  2991. $("#switch .switch_content").click(function () {
  2992. event.stopPropagation();
  2993. });
  2994. $("body").click(function () {
  2995. $("#switch .switch_content").animate({"right": "-70px"}, 400, function () {
  2996. $("#switch .switch_content").hide();
  2997. $("#switch").removeClass("switch_kai");
  2998. $("#switch").addClass("switch_list");
  2999. $("#switch .switch_log").show();
  3000. });
  3001. });
  3002. </script>
  3003. <script type="text/javascript" id="leftJs">
  3004. // 左侧样式
  3005. $(".lefts_imgs > a").click(function () {
  3006. var a = $(this), li = a.parent();
  3007. var targets = li.attr("target");
  3008. var lefts = parseInt($("." + targets).css("left"));
  3009. if (lefts == 50) {
  3010. $("." + targets).animate({"left": "-210px"}, 500);
  3011. a.removeClass("current");
  3012. } else {
  3013. $("." + targets).animate({"left": "50px"}, 500).siblings(".detailed_contents").animate({"left": "-210px"}, 300);
  3014. a.addClass("current");
  3015. }
  3016. li.siblings("li").children("a").removeClass("current");
  3017. });
  3018. // 关闭按钮
  3019. $(".closed_contents").click(function () {
  3020. $(this).parents(".detailed_contents").animate({"left": "-210px"});
  3021. $(".lefts_imgs a").removeClass("current");
  3022. });
  3023. // 左侧菜单二级菜单 Modified by Zhengyu.Hu 2017/11/21.
  3024. $(".menu-virtual").on("click", function (e) {
  3025. e.stopPropagation();
  3026. var menu = $(this);
  3027. var $a = menu.find("a");
  3028. var status = $a.attr("status");
  3029. var subMenus = menu.next();
  3030. if (status == "open") {
  3031. $(this).find("a").css("background", "url('${path}/tc_suite/images/j.png') no-repeat 22px 13px")
  3032. subMenus.hide();
  3033. $a.attr("status", "close");
  3034. } else {
  3035. $a.attr("status", "open");
  3036. subMenus.show();
  3037. $(this).find("a").css("background", "url('${path}/tc_suite/images/jj.png') no-repeat 22px 13px")
  3038. }
  3039. });
  3040. // 用于标记是否需要关闭弹出层
  3041. var flag = true;
  3042. // 加载系统消息
  3043. function initMessage() {
  3044. getMsg(1, function () {
  3045. // 10秒后重试
  3046. setTimeout(function () {
  3047. initMessage();
  3048. }, 10000);
  3049. });
  3050. }
  3051. initMessage();
  3052. // 全文检索查询
  3053. var indexSearchWord = $("#indexSearchWord"),
  3054. indexSearchBtn = $("#indexSearchBtn");
  3055. indexSearchWord.on("keydown", function (e) {
  3056. if (e.keyCode === 13) {
  3057. indexSearchBtn.trigger("click");
  3058. }
  3059. });
  3060. indexSearchBtn.on("click", function () {
  3061. var wd = indexSearchWord.val();
  3062. if (wd) {
  3063. var url = "/search?wd=" + encodeURIComponent(wd) + "&app=10010001";
  3064. TC.ui.openResource({label: "\"" + wd + "\"搜索结果", url: url});
  3065. }
  3066. });
  3067. </script>
  3068. <script type="text/javascript" src="${path}/tc_suite/portal/js/index_mbdb_js.js${resSuffix}"></script>
  3069. <%--
  3070. <jsp:include page="/tc_tap/tongji.jsp" />
  3071. --%>
  3072. <style>
  3073. .nineSvg {
  3074. width: 400px;
  3075. height: 400px;
  3076. margin: 150px auto 0;
  3077. display: block;
  3078. box-shadow: 0 0 20px 2px rgba(0, 0, 0, 0.5);
  3079. }
  3080. </style>
  3081. <script type="text/javascript">
  3082. //保存已打开的窗口
  3083. window.MTWindows = {
  3084. wins: new Properties(),
  3085. size: function () {
  3086. return this.wins.size();
  3087. },
  3088. addWin: function (url, win) {
  3089. MTWindows.wins.put(url, win);
  3090. },
  3091. removeWin: function (url) {
  3092. MTWindows.wins.remove(url);
  3093. },
  3094. closeWin: function () {
  3095. //删除
  3096. var win = MTWindows.wins.remove(url);
  3097. //关闭窗口
  3098. if (win && !win.closed) {
  3099. win.close();
  3100. }
  3101. },
  3102. isOpen: function (url) {
  3103. var win = this.getWin(url);
  3104. if (win && !win.closed) {
  3105. return true;
  3106. }
  3107. return false;
  3108. },
  3109. getWin: function (url) {
  3110. return MTWindows.wins.get(url);
  3111. },
  3112. closeAll: function () {
  3113. //关闭所有已打开的窗口
  3114. var wins = this.wins.values();
  3115. for (var i = 0; i < wins.length; i++) {
  3116. var win = wins[i];
  3117. if (win && !win.closed) {
  3118. win.close();
  3119. }
  3120. }
  3121. //释放浏览器内存
  3122. this.wins.clear();
  3123. },
  3124. openWin: function (url) {
  3125. var win = this.getWin(url);
  3126. if (win && !win.closed) {
  3127. alert("该页面已打开!");
  3128. win.moveTo(0, 0);
  3129. win.focus();
  3130. } else {
  3131. win = window.open(url, '', 'height=' + window.screen.height + ', width=' + window.screen.width + ', top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
  3132. win.moveTo(0, 0);
  3133. this.addWin(url, win);
  3134. }
  3135. },
  3136. activatedWinSize: function () {//已激活的任务数量
  3137. var count = 0;
  3138. var wins = this.wins.values();
  3139. for (var i = 0; i < wins.length; i++) {
  3140. var win = wins[i];
  3141. if (win && !win.closed) {
  3142. count++;
  3143. }
  3144. }
  3145. return count;
  3146. }
  3147. };
  3148. $("#lockPage").click(function () {
  3149. var id = "svg_" + new Date().getTime();
  3150. var div = "<div id=" + id + " style=\"background: #454545; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; overflow: hidden; z-index: 1980;\"><button id='fbtn' style='display:none;left: 50px;position: absolute;top: 50px;'>取消</button><svg class=\"nineSvg\" id=\"nineSvg\"></svg></div>";
  3151. $("body").after(div);
  3152. var pwd = false;
  3153. if (!pwd) {
  3154. alert("请绘制解锁密码!");
  3155. $("#fbtn").show();
  3156. }
  3157. $("#fbtn").click(function () {
  3158. $("#" + id).remove();
  3159. document.oncontextmenu = null;
  3160. })
  3161. document.oncontextmenu = function (e) {
  3162. return false;
  3163. }
  3164. //svg的
  3165. function doSvg() {
  3166. var $that = $("#nineSvg"),//jquery对象
  3167. that = $that[0],//原始对象
  3168. number = 9,//格子的个数
  3169. canLine = false,
  3170. thisL = '',//d的值
  3171. thisPass = [],//画出的密码
  3172. canDoLine = false,//是否在元素上
  3173. passWord = 123456,//设置的密码
  3174. a;
  3175. //画入9宫格子
  3176. for (var i = 0; i < 3; i++) {
  3177. for (var j = 0; j < 3; j++) {
  3178. var node = $(document.createElementNS("http://www.w3.org/2000/svg", "circle")).attr({
  3179. 'cx': 110 * j + 90,
  3180. 'cy': 110 * i + 90,
  3181. 'r': 40,
  3182. 'stroke': 'rgba(255,255,255,0.5)',
  3183. 'stroke-width': 2,
  3184. 'fill': 'transparent',
  3185. 'class': 'roundA',
  3186. 'canDo': true
  3187. });
  3188. $that.append(node);
  3189. }
  3190. }
  3191. //画入线段
  3192. var DoLine = $(document.createElementNS("http://www.w3.org/2000/svg", "path")).attr({
  3193. 'stroke': '#fff',
  3194. 'stroke-width': 2,
  3195. 'fill': 'transparent',
  3196. 'd': ' '
  3197. });
  3198. $that.append(DoLine);
  3199. //获取九宫格
  3200. var circle = $that.find('circle');
  3201. //在格子上按下
  3202. circle.mousedown(function () {
  3203. //可以画线
  3204. canLine = true;
  3205. var Mx = $(this).attr("cx"),
  3206. My = $(this).attr("cy");
  3207. //初始化原点
  3208. thisL = 'M' + Mx + ' ' + My;
  3209. });
  3210. //在对象上移动
  3211. $that.mousemove(function (e) {
  3212. if (canLine) {
  3213. var NowLin = DoLine.attr('d');
  3214. DoLine.attr({
  3215. 'd': thisL + 'L' + e.offsetX + ' ' + e.offsetY
  3216. });
  3217. }
  3218. });
  3219. // 如果移动的时候进入了圆格子
  3220. circle.mousemove(function () {
  3221. if (canLine && $(this).attr('canDo') == 'true') {
  3222. var X = $(this).attr("cx"),
  3223. Y = $(this).attr("cy");
  3224. thisL = thisL + ' L' + X + ' ' + Y;
  3225. // 加标记
  3226. markRound($(this));
  3227. // 改变轨迹
  3228. DoLine.attr({
  3229. 'd': thisL
  3230. });
  3231. // 记录密码
  3232. thisPass.push($(this).index() + 1);
  3233. // 标记不可选
  3234. $(this).attr('canDo', false);
  3235. //标记鼠标在元素上
  3236. canDoLine = true;
  3237. }
  3238. });
  3239. //鼠标已经离开了元素的时候做标记
  3240. circle.mouseout(function () {
  3241. canDoLine = false;
  3242. });
  3243. //鼠标抬起
  3244. $that.mouseup(function () {
  3245. var nowPassword = removeSameArr(thisPass).join('');//密码
  3246. if (!nowPassword) return;
  3247. // 清空密码数组
  3248. thisPass = [];
  3249. //如果不元素上,去除后两项
  3250. if (!canDoLine) {
  3251. DoLine.attr({
  3252. 'd': thisL
  3253. });
  3254. }
  3255. //判断密码是否正确
  3256. if (!pwd) {
  3257. passWord = nowPassword;
  3258. $.cookie("lockPagePwd", nowPassword, {
  3259. expires: 31
  3260. });
  3261. alert("密码绘制成功,请牢记密码!");
  3262. $("#fbtn").hide();
  3263. pwd = true;
  3264. } else {
  3265. if (passWord == nowPassword) {
  3266. $("#" + id).remove();
  3267. document.oncontextmenu = null;
  3268. } else {
  3269. alert('密码错误');
  3270. }
  3271. }
  3272. //标记不可划线
  3273. canLine = false;
  3274. // 清楚样式
  3275. $(that).find('.roundB').remove();
  3276. $(that).find('.roundA').attr({
  3277. 'fill': 'transparent',
  3278. 'canDo': true,
  3279. 'stroke': 'rgba(255,255,255,0.5)'
  3280. });
  3281. DoLine.attr('d', '');
  3282. });
  3283. //去除相同的元素
  3284. function removeSameArr(arr) {
  3285. var thisArr = [];
  3286. for (var i = 0; i < arr.length; i++) {
  3287. if (thisArr.indexOf(arr[i]) == -1) thisArr.push(arr[i]);
  3288. }
  3289. return thisArr;
  3290. }
  3291. //标记选中的方法
  3292. function markRound(obj) {
  3293. var nowRound = obj,
  3294. round = $(document.createElementNS("http://www.w3.org/2000/svg", "circle")).attr({
  3295. 'cx': nowRound.attr('cx'),
  3296. 'cy': nowRound.attr('cy'),
  3297. 'r': 20,
  3298. 'fill': '#fff',
  3299. 'class': 'roundB'
  3300. });
  3301. $that.append(round);
  3302. nowRound.attr({
  3303. 'stroke': '#fff',
  3304. 'fill': 'rgba(0,0,0,0.3)'
  3305. });
  3306. }
  3307. }//doSvg
  3308. doSvg();
  3309. })
  3310. <%--$("#lingdang").hover(function () {--%>
  3311. <%--$(this).attr("src", "${path}/tc_ttp/images/lindang.png")--%>
  3312. <%--}, function () {--%>
  3313. <%--$(this).attr("src", "${path}/tc_ttp/images/lindang.png")--%>
  3314. <%--})--%>
  3315. $(".glyphicon-refresh").hover(function () {
  3316. $(this).css("color", "#fff");
  3317. }, function () {
  3318. $(this).css("color", "#fff");
  3319. });
  3320. function openTap(obj, title) {
  3321. TC.ui.openResource({label: title, url: obj});
  3322. }
  3323. </script>
  3324. <script>
  3325. var personId = "${pid}";
  3326. TC.ui.needlessCheckTabReload(false);
  3327. var padding = "${padding}";
  3328. if (!padding) {
  3329. $(".center").addClass("no-padding");
  3330. }
  3331. //$("body").mask();
  3332. if (${!isAdmin}) {
  3333. $(".titleNav").load("${path}/taskByType/commonMeneList");
  3334. $('.titleNav').on("click", ".liu", function (event) {
  3335. event.stopPropagation();
  3336. if ($(this).parents('.titleNavUlLi ').find('.jscImg').hasClass('hu')) {
  3337. $(this).parents('.titleNavUlLi').find('.listGue').animate({"height": 'hide'}, 300);
  3338. $(this).parents('.titleNavUlLi ').find('.jscImg').removeClass('hu');
  3339. } else {
  3340. $(this).parents('.titleNavUlLi').find('.listGue').animate({"height": 'show'}, 300);
  3341. $(this).parents('.titleNavUlLi ').find('.jscImg').addClass('hu');
  3342. }
  3343. });
  3344. } else {
  3345. var $titleNav = $(".titleNav");
  3346. var $header = $(".titleNav").closest(".mt-header");
  3347. $titleNav.remove();
  3348. $header.css({
  3349. height: "auto",
  3350. minHeight: "auto"
  3351. })
  3352. $("head").append(`
  3353. <style type='text/css'>
  3354. .labelIframe{
  3355. top: 116px !important;
  3356. height: calc(100% - 116px) !important;
  3357. }
  3358. </style>
  3359. `);
  3360. }
  3361. function extWork() {
  3362. var url = TC.config.baseUrl + '/tw/home/?m=logout';
  3363. $.confirm($.i18n("common.button.signout.label"), function () {
  3364. top.window.onbeforeunload = null;
  3365. top.window.location.href = url;
  3366. });
  3367. }
  3368. function openSpace(visitId) {
  3369. TC.ui.openTab("/interspace/gotoSpace?visitId=" + visitId, "${tc:i18n('common.personal.space')}");
  3370. }
  3371. var $mainframe = $("#mainFrame");
  3372. // 增加opener
  3373. $mainframe[0].opener = frameElement ? frameElement.opener : null;
  3374. $mainframe.on("load", function () {
  3375. try {
  3376. $("#mainFrame").css('height', '100%')
  3377. } catch (e) {
  3378. // 防止跨域
  3379. }
  3380. });
  3381. function closeMask() {
  3382. $("body").css("visibility", "visible").mask().close();
  3383. }
  3384. $(function () {
  3385. checkHaveUnReadMsg();
  3386. })
  3387. $("#meesageInfo").click(function (event) {
  3388. event.stopPropagation();
  3389. });
  3390. $("#openImModal").click(function () {
  3391. $.ajax({
  3392. type: "get",
  3393. url: TC.config.baseUrl+"/workpro/weburl",
  3394. dataType: "json",
  3395. success: function (data) {
  3396. if(data.state === "success"){
  3397. if(data.url){
  3398. $.dialog({
  3399. title: "",
  3400. max: false,
  3401. min: false,
  3402. content: "url:" + data.url,
  3403. width: "900px",
  3404. height: "650px",
  3405. lock: true,
  3406. ok:false,
  3407. cancel: true
  3408. });
  3409. }else {
  3410. $.alert("当前账号无法同步IM,请联系管理员");
  3411. }
  3412. }else{
  3413. $.alert("IM打开失败,请重试");
  3414. }
  3415. },
  3416. });
  3417. });
  3418. $("#openHuaDuApp").click(function () {
  3419. function encrypt (data) {
  3420. /* AES前端加密 */
  3421. let key = CryptoJS.enc.Utf8.parse('4Dd2Bb3Cc1Aa5Ee0');
  3422. let iv = CryptoJS.enc.Utf8.parse('4Dd2Bb3Cc1Aa5Ee0');
  3423. let str = CryptoJS.AES.encrypt(data, key, {
  3424. iv: iv,
  3425. mode: CryptoJS.mode.CBC,
  3426. padding: CryptoJS.pad.ZeroPadding,
  3427. }).toString();
  3428. let val = str
  3429. .replace('#', '%23')
  3430. .replace('%', '%25')
  3431. .replace('&', '%26')
  3432. .replace('+', '%2B')
  3433. .replace('//', '%2F')
  3434. .replace('?', '%3F');
  3435. return val;
  3436. };
  3437. $.ajax({
  3438. type: "post",
  3439. url: "http://47.105.108.132:9999/dockingLogin",
  3440. dataType: "json",
  3441. data:{
  3442. username:"admin",
  3443. password: encrypt('123456')
  3444. },
  3445. success: function (data) {
  3446. if(data.code == 200){
  3447. window.open('http://47.105.108.132:9998/home?token='+data.data);
  3448. }
  3449. },
  3450. });
  3451. });
  3452. /**
  3453. * 检查是否有未读消息,,如果有就显示红点,没有就不显示
  3454. */
  3455. function checkHaveUnReadMsg() {
  3456. var sysMsgs = $("#sysmsg", top.document);
  3457. var unReadMsg = $(sysMsgs).find(".unReadMsg");
  3458. var msgRedDot = $("#meesageInfo").find("span")[0];
  3459. if (!!unReadMsg && unReadMsg.length > 0) {
  3460. $(msgRedDot).show();
  3461. } else {
  3462. $(msgRedDot).hide();
  3463. }
  3464. }
  3465. </script>
  3466. </body>
  3467. </html>