indexNew.js 65 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568
  1. sp.setCssSkin(); //皮肤换色GlWorkPlatform-username
  2. var get_userid = $.cookie("GlWorkPlatform-userid"); //获取userid
  3. var get_username = $.cookie("GlWorkPlatform-username"); //获取英文名
  4. var get_chineseName = decodeURI($.cookie("GlWorkPlatform-chineseName")); //获取中文名
  5. var UserRole = "";
  6. document.addEventListener("visibilitychange", function () {
  7. //if (document.visibilityState == "visible") {
  8. // if ($("#spanAdminUserId").val() != $.cookie("GlWorkPlatform-userid")) {
  9. // var dialogHead = "<span class=\"sp-dialog-head\"><span class=\"sp-dialog-tip\">温馨提示</span></span>";
  10. // var dialogBody = "<div class=\"sp-dialog-body\">有新用户登入,当前用户为" + decodeURI($.cookie("GlWorkPlatform-chineseName")) + "!</div>";
  11. // var dialogFoot = "<div class=\"sp-dialog-foot\"><input id='delDataTrue' type='button' value='确 认' class='sp-dialog-btnTrue' /></div>";
  12. // $('.sp-dialog').html(dialogHead + dialogBody + dialogFoot);
  13. // sp.openDLTX(".sp-dialog");
  14. // $("#delDataTrue").click(function () {
  15. // window.location.reload()
  16. // });
  17. // }
  18. //}
  19. })
  20. if (get_userid == null || get_userid == "" || get_userid == "undefined") {
  21. window.location.href = "login.html";
  22. }
  23. //判断从哪里进来,只有从登录页进来才可以
  24. var get_sessionStorage = sessionStorage.getItem("GlWorkPlatform-LoginFrom");
  25. if (get_sessionStorage == null || get_sessionStorage == "" || get_sessionStorage == "undefined") {
  26. window.location.href = "login.html";
  27. } else {
  28. $("#spanAdminUserId").val(get_userid);
  29. $("#spanAdminUserName").text(get_chineseName);
  30. }
  31. //退出
  32. function btnLoginOut() {
  33. $.cookie("GlWorkPlatform-userid", null, {path: '/', expires: -1});
  34. $.cookie("GlWorkPlatform-username", null, {path: '/', expires: -1});
  35. $.cookie("GlWorkPlatform-chineseName", null, {path: '/', expires: -1});
  36. $.cookie("GlWorkPlatform-photo", null, { path: '/', expires: -1 });
  37. $.cookie("GlWorkPlatform-onlineUsers", null, { path: '/', expires: -1 });
  38. sessionStorage.removeItem("GlWorkPlatform-LoginFrom");
  39. localStorage.removeItem("GlWorkPlatform-openfileArray"); ////清空保存菜单文件的变量
  40. localStorage.removeItem("GlWorkPlatform-setLeftBarClickID");
  41. localStorage.removeItem("GlWorkPlatform-userInfoJsonStr");
  42. //socket.close()
  43. window.location.href = "login.html"//"http://10.233.22.218/sy/#/sso?token=" + localStorage.getItem("main-token");
  44. };
  45. //判断是否是第一次进入这个系统,即是否为空库
  46. function checkIsEmptyDatabase() {
  47. $.ajax({
  48. type: "get",
  49. url: apiurljs.login + "connect/isemptydatabase",
  50. //data: { action: "fadetail", userid: userid, routeinfoid: routeinfoid },
  51. dataType: "json",
  52. ContentType: 'application/x-www-form-urlencoded',
  53. success: function (obj) {
  54. var res = strToJson(s4.decryptData_CBC(obj.data));
  55. //console.log(JSON.stringify(res.data));
  56. document.getElementsByTagName("title")[0].innerText = res.data.SYSNAME;
  57. //$(".sp-wrapper-head-title span").html(res.data.SYSNAME);
  58. $.cookie("GlWorkPlatform-SYSNAME", res.data.SECTION, {path: '/', expires: 1});
  59. },
  60. error: function (XMLHttpRequest, textStatus, errorThrown) {
  61. console.log(errorThrown);
  62. }
  63. });
  64. };
  65. //为保证页面显示效果,判断浏览器版本是否过低
  66. function checkIEVersion() {
  67. var getjson = sp.getExplorerInfo();
  68. if (getjson.type == "IE") {
  69. if (getjson.version == "8.0" || getjson.version == "7.0" || getjson.version == "6.0") {
  70. $("#checkIEVersionDiv").text("您当前使用的是" + getjson.type + "浏览器 版本:" + getjson.version + ",版本过低,请更新IE浏览器或使用其他浏览器");
  71. $("#checkIEVersionDiv").show();
  72. //然后跳到需要连接的下载网站
  73. //window.location.href="http://jiaoxueyun.com/download.jsp";
  74. }
  75. }
  76. }
  77. //20分钟不操作退出登录
  78. //$(function () {
  79. // var TimeNum = new Date().getTime();
  80. // //mousedown() 监听鼠标是否使用 keydown() 监听键盘是否可用
  81. // $(document).mousedown(function () {
  82. // TimeNum = new Date().getTime();
  83. // }).keydown(function () {
  84. // TimeNum = new Date().getTime();
  85. // }).mousemove(function () {
  86. // TimeNum = new Date().getTime();
  87. // });
  88. // //setInterval用来判断 当前时间之差
  89. // setInterval(function () {
  90. // if ($.cookie("GlWorkPlatform-TimeNum") != '' && $.cookie("GlWorkPlatform-TimeNum") != null) {
  91. // TimeNum = new Date($.cookie("GlWorkPlatform-TimeNum")).getTime();
  92. // }
  93. // //这里判断按键或鼠标 事件是否触发了
  94. // var TimeCount = new Date().getTime();
  95. // console.log(TimeCount,TimeNum)
  96. // //var minutes = Math.floor((TimeCount - TimeNum) / (60 * 1000));
  97. // var minutes = Math.floor((TimeCount - TimeNum) / (1 * 1000));
  98. // //如果两个时间差大于20分钟
  99. // if (minutes >= 20 || $.cookie("GlWorkPlatform-userid")==null||$.cookie("GlWorkPlatform-userid")==undefined) {
  100. // var dialogHead = "<span class=\"sp-dialog-head\"><span class=\"sp-dialog-tip\">温馨提示</span></span>";
  101. // var dialogBody = "<div class=\"sp-dialog-body\">您已经20秒没有操作了,请重新登录!</div>";
  102. // var dialogFoot = "<div class=\"sp-dialog-foot\"><input id='delDataTrue' type='button' value='确 认' class='sp-dialog-btnTrue' /></div>";
  103. // $('.sp-dialog').html(dialogHead + dialogBody + dialogFoot);
  104. // //sp.openDLTX(".sp-dialog");
  105. // ///取消按钮
  106. // $('.sp-closeDialog').click(function (event) {
  107. // sp.closeCenter(".sp-dialog");
  108. // event.preventDefault();
  109. // event.stopPropagation();
  110. // });
  111. // //post消息的id
  112. // $("#delDataTrue").click(function () {
  113. // sp.closeCenter(".sp-dialog");
  114. // //$.cookie("GlWorkPlatform-userid", null, { path: '/', expires: -1 });
  115. // //$.cookie("GlWorkPlatform-username", null, { path: '/', expires: -1 });
  116. // //$.cookie("GlWorkPlatform-chineseName", null, { path: '/', expires: -1 });
  117. // //$.cookie("GlWorkPlatform-photo", null, { path: '/', expires: -1 });
  118. // //$.cookie("GlWorkPlatform-onlineUsers", null, { path: '/', expires: -1 });
  119. // //sessionStorage.removeItem("GlWorkPlatform-LoginFrom");
  120. // //localStorage.removeItem("GlWorkPlatform-openfileArray");
  121. // //localStorage.removeItem("GlWorkPlatform-setLeftBarClickID");
  122. // //localStorage.removeItem("GlWorkPlatform-userInfoJsonStr");
  123. // ////socket.close()
  124. // //window.location.href = 'login.html';
  125. // });
  126. // }
  127. // }, 1000);
  128. //})
  129. checkIsEmptyDatabase();
  130. checkIEVersion();
  131. //被邀请加入共享沟通
  132. var userMsg = {userid: get_userid, username: get_chineseName};
  133. if (apiurljs.meetingFlag == true) {
  134. var socket = io.connect(apiurljs.wsio, {path: apiurljs.wspath})
  135. window.socket = socket;
  136. var meetingData = new Object;
  137. socket.emit('userReg', userMsg);
  138. socket.on('error', function (data) {
  139. console.log(JSON.stringify(data) + ' - error');
  140. });
  141. socket.on('disconnect', function (data) {
  142. //失去连接的事件
  143. console.log(JSON.stringify(data) + ' - disconnect');
  144. });
  145. socket.on('reconnect', function (data) {
  146. //重新连接的事件
  147. console.log(JSON.stringify(data) + ' - reconnect');
  148. socket.emit('userReg', userMsg);
  149. });
  150. socket.on('invitemeeting', function (data) {
  151. meetingData = data;
  152. $("#meetingMsg").html("<a title='【" + meetingData.title + "】的沟通会议邀请' onclick='joinMeeting()'>【" + meetingData.title + "】的沟通会议邀请</a>");
  153. $("#meetingMsg").show();
  154. var dialogHead = "<span class=\"sp-dialog-head\"><span class=\"sp-dialog-tip\">系统提示</span><span class=\"sp-dialog-close sp-closeDialog\" title=\"关闭\">×</span></span>";
  155. var dialogBody = "<div class=\"sp-dialog-body\">您有一个【" + meetingData.title + "】的沟通会议邀请,确认后跳转到沟通会议室。<br/>如暂时不进入会议室,可以稍后在个人消息列表中选择进入。</div>";
  156. var dialogFoot = "<div class=\"sp-dialog-foot\"><input id='joinInMeet' type='button' value='确 认' class='sp-dialog-btnTrue' /><input type='button' value='取 消' class='sp-dialog-btnCancle closeDialog' /></div>";
  157. $('.sp-dialog').html(dialogHead + dialogBody + dialogFoot);
  158. sp.openCenter(".sp-dialog");
  159. $(".closeDialog").click(function (event) {
  160. sp.closeCenter(".sp-dialog");
  161. event.preventDefault();
  162. event.stopPropagation();
  163. });
  164. $("#joinInMeet").click(function () {
  165. sp.dialoghide();
  166. joinMeeting();
  167. });
  168. });
  169. }
  170. function joinMeeting() {
  171. $("#meetingMsg").hide();
  172. var data = meetingData;
  173. var time = new Date().valueOf();
  174. $.cookie("wb_data" + time, JSON.stringify({
  175. meetingid: data.meetingid,
  176. masterid: data.masterid,
  177. mastername: data.mastername,
  178. userid: data.touserid,
  179. username: data.tousername,
  180. title: data.title,
  181. pdf: data.pdf,
  182. wsio: apiurljs.wsio,
  183. wspath: apiurljs.wspath,
  184. uploadUrl: data.uploadUrl,
  185. AccessToken: data.AccessToken,
  186. routeinfoid: data.routeinfoid
  187. }), {path: '/', expires: 1});
  188. window.sp.addTabNav("GXGT", "共享沟通", "meeting/chat.html?wb_ts=" + time);
  189. setTimeout(function () {
  190. $.cookie("wb_data" + time, null, {path: '/', expires: -1});
  191. //document.getElementById('wrapper_tabs_box_col_GXGT').childNodes[0].contentWindow.postMessage({
  192. // masterid: data.masterid,
  193. // touserid: data.touserid,
  194. // tousername: data.tousername,
  195. // title: data.title,
  196. // pdf: data.pdf,
  197. // meetingid: data.meetingid,
  198. // uploadUrl: data.uploadUrl,
  199. // AccessToken: data.AccessToken,
  200. // routeinfoid: data.routeinfoid
  201. //}, "*")
  202. }, 5000)
  203. }
  204. // 消息弹窗
  205. function openModal(num) {
  206. console.log(num)
  207. var dialogHead = "<span class=\"sp-dialog-head\"><span class=\"sp-dialog-tip\">系统提示</span><span id='closeModal' class=\"sp-dialog-close sp-closeDialog\" title=\"关闭\">×</span></span>";
  208. var dialogBody = "<div class=\"sp-dialog-body\" style='height: 300px'>当前在线人数已超过" + num + "人!</div>";
  209. var dialogFoot = "<div class=\"sp-dialog-foot\"><input id='okModal' type='button' value='确 认' class='sp-dialog-btnTrue' /></div>";
  210. $('.sp-dialog').html(dialogHead + dialogBody + dialogFoot);
  211. // $('#spWrapperTabsPart').html("<div class='sp-dialog'>" + dialogHead + dialogBody + dialogFoot + "</div>");
  212. $('.sp-dialog').css('width', '600px');
  213. sp.openCenter(".sp-dialog");
  214. $(".closeDialog").click(function (event) {
  215. sp.closeCenter(".sp-dialog");
  216. event.preventDefault();
  217. event.stopPropagation();
  218. });
  219. //关闭
  220. $("#closeModal").click(function () {
  221. sp.dialoghide();
  222. });
  223. // 下一步操作
  224. $("#okModal").click(function () {
  225. sp.dialoghide();
  226. // 后续逻辑
  227. });
  228. }
  229. window.onmessage = function (event) {
  230. if (event.data == "close") {
  231. $("#wrapper_tabs_menu_li_GXGT").prev("li").addClass("sp-wrapper-tabs-current").show();
  232. $("#wrapper_tabs_box_col_GXGT").prev(".sp-wrapper-tabs-box-col").addClass("sp-wrapper-tabs-box-current").show();
  233. $("#wrapper_tabs_menu_li_GXGT").remove();
  234. $("#wrapper_tabs_box_col_GXGT").remove();
  235. }
  236. if (typeof (event.data) == "object") {
  237. console.log(event.data);
  238. sp.addTabNav(event.data.id, event.data.title, event.data.src)
  239. }
  240. }
  241. //左侧的动态新动态菜单采用angularJS的方式渲染
  242. var app = angular.module('app', []);
  243. app.controller("leftPartCtrl", ["$scope", "$http", "$interval", "$timeout", function ($scope, $http, $interval, $timeout) {
  244. var self = this;
  245. var s4 = new SM4Util();
  246. self.userId = $.cookie("GlWorkPlatform-userid");
  247. self.engName = $.cookie("GlWorkPlatform-username");
  248. self.userName = $.cookie("GlWorkPlatform-chineseName");
  249. self.get_AccessToken = localStorage.getItem("GlWorkPlatform-AccessToken");
  250. self.ctime = $.cookie("CrossPage-ctime");
  251. self.outToken = localStorage.getItem("main-token");
  252. $interval(function(){
  253. var data = {
  254. token: self.outToken
  255. }
  256. $http.post(apiurljs.login + "g2app/usercertification/loginToken", JSON.stringify(data), postCfg)
  257. .success(function (obj) {
  258. var res = strToJson(s4.decryptData_CBC(obj.data));
  259. if (res.success == true) {
  260. localStorage.setItem("main-token", res.data)
  261. }
  262. })
  263. }, 21600000)
  264. ///增加设备标识
  265. localStorage.setItem("tjJxtGoldenlinkWork-deviceType", "pc");
  266. //左侧动态赋值高度
  267. var bodyHeight = $(window).height();
  268. $(".sp-menu-list").height(bodyHeight - 115);
  269. ///20230222--修改左侧菜单
  270. self.bindSetMenuSwitch = function () {
  271. if ($(".sp-menu-switch").hasClass("hasClick")) {
  272. $(".sp-menu-switch").removeClass("hasClick");
  273. $(".sp-menu-list").fadeIn(200);
  274. } else {
  275. $(".sp-menu-switch").addClass("hasClick");
  276. $(".sp-menu-list").fadeOut(200);
  277. }
  278. };
  279. /////点击桌面设置,打开并跨域发送消息打开设置弹出层--zyg--20230426
  280. self.btnSetDesktop = function () {
  281. ////sp.addTabNav('FZ0', '工作桌面', 'tpl/_indexgmt/index_2.html');
  282. var id = 'FZ0';
  283. var setID = "wrapper_tabs_box_col_" + id;
  284. $("#spWrapperTabsPart ul li").removeClass("sp-wrapper-tabs-current");
  285. $(".sp-wrapper-tabs-box-current").hide();
  286. $("#spWrapperTabsPart .sp-wrapper-tabs-box .sp-wrapper-tabs-box-col").removeClass("sp-wrapper-tabs-box-current");
  287. $("#wrapper_tabs_menu_li_" + id).addClass("sp-wrapper-tabs-current").show();
  288. $("#" + setID).addClass("sp-wrapper-tabs-box-current").show();
  289. $timeout(function () {
  290. var ifr = document.getElementById('iframe_wrapper_tabs_box_col_FZ0');
  291. var json = {};
  292. var func = { name: "openLayerSetting", arg: json };//传输name名称以及json串
  293. ifr.contentWindow.postMessage(func, '*');
  294. }, 200);
  295. };
  296. var postCfg = {
  297. headers: {
  298. 'Content-Type': 'application/json',
  299. 'Authorization': "Bearer " + self.get_AccessToken
  300. }
  301. };
  302. self.set_imgurl = "";
  303. self.get_userInfoJsonStr = {};
  304. self.getReloadUserData = function () {
  305. var postData = { };
  306. //console.log(postData);
  307. //console.log(postData); s4.encryptData_CBC(JSON.stringify(postData))
  308. $http.post(apiurljs.login + "api/User/UserInfo", JSON.stringify(postData), postCfg)
  309. .success(function (obj) {
  310. var res1 = strToJson(s4.decryptData_CBC(obj.data));
  311. localStorage.setItem("GlWorkPlatform-userInfoJsonStr", s4.encryptData_CBC(JSON.stringify(res1.data)));
  312. self.get_userInfoJsonStr = res1.data;
  313. ////加载背景图片*******************************************************************************************
  314. if (apiurljs.login.indexOf("http://139.129.27.3:85") != -1) {
  315. self.set_imgurl = "http://139.129.27.3:8511/web/UploadAttach";
  316. } else {
  317. self.set_imgurl = apiurljs.login.split("glwork")[0] + "glworkweb/UploadAttach";
  318. }
  319. $(".sp-wrapper-tabs .sp-wrapper-tabs-head").css("background-image", "url(" + self.set_imgurl + self.get_userInfoJsonStr.bkimageurl + ")");
  320. self.getData_bkimage();///背景图片
  321. self.getHomePage();///
  322. self.getUserFavoriteFunc();
  323. self.getUserRecentFunc();
  324. //首页上隐藏一张图链接按钮
  325. self.hideOnePic();
  326. self.getRole();
  327. })
  328. .error(function (XMLHttpRequest, textStatus, errorThrown) {
  329. if (textStatus != 200) {
  330. self.loading = false;
  331. }
  332. })
  333. }
  334. self.getReloadUserData();
  335. self.getRole = function () {
  336. var data = {
  337. userid: self.userId
  338. };
  339. $http.post(apiurljs.login + "g2work/datazu/queryDataUserAuth", data, postCfg)
  340. .success(function (res) {
  341. for (var i = 0; i < res.data[0].auths.length; i++) {
  342. if (res.data[0].auths[i].ZID == "AA08" && res.data[0].auths[i].AUTH == "1") {
  343. $(".gzxt").css("cursor","pointer")
  344. $(".gzxt").on("click",function(){
  345. window.open("http://172.1.8.126:8008/#/ywxtxt/ugly?hideMenus=true&token="+self.outToken)
  346. })
  347. }
  348. }
  349. });
  350. }
  351. //根据登录人员返回是否显示一张图链接按钮
  352. self.hideOnePic = function () {
  353. var data = {
  354. userid: self.userId
  355. };
  356. $http.post(apiurljs.login + "g2work/datazu/queryDataUserAuth", data, postCfg)
  357. .success(function (res) {
  358. var mark = true;
  359. for (var i = 0; i < res.data[0].auths.length; i++) {
  360. if (res.data[0].auths[i].ZID == "AA84" && res.data[0].auths[i].AUTH == "1") {
  361. mark = false;
  362. break;
  363. }
  364. }
  365. $scope.hideOnePic = mark;
  366. });
  367. };
  368. self.imgColActive_code_bkimage = "";
  369. self.bkimageArray = [];
  370. self.bkimageArray_active = {};
  371. self.ifHasDefault_bkimage = 0;
  372. self.getData_bkimage = function () {
  373. var postData = { "userid": self.userId };
  374. //console.log(postData);
  375. //console.log(postData); s4.encryptData_CBC(JSON.stringify(postData))
  376. $http.post(apiurljs.login + "g2work/bkimage/queryDataUserByUserid", JSON.stringify(postData), postCfg)
  377. .success(function (obj) {
  378. //var res = strToJson(s4.decryptData_CBC(obj.data));
  379. var res = obj;
  380. //console.log(JSON.stringify(res));
  381. if (res.success) {
  382. self.bkimageArray = res.data;
  383. angular.forEach(self.bkimageArray, function (item) {
  384. item.URL_set = self.set_imgurl + item.URL;
  385. });
  386. } else {
  387. self.loading = false;
  388. self.bkimageArray = [];
  389. self.bkimageArray_active = {};
  390. }
  391. })
  392. .error(function (XMLHttpRequest, textStatus, errorThrown) {
  393. if (textStatus != 200) {
  394. self.loading = false;
  395. }
  396. })
  397. };
  398. $timeout(function () {
  399. //选择底图
  400. if ($("body").find(".sp-desk-img").length > 0) {
  401. $(".sp-desk-img").each(function () {
  402. $(this).click(function () {
  403. var get_url = $(this).attr('data-url');
  404. var get_code = $(this).attr('data-code');
  405. $(this).addClass("sp-desk-current").siblings().removeClass("sp-desk-current");
  406. $("#wrapper_tabs_box_col_FZ0").find("iframe").contents().find("body").css("background-image", "url(" + get_url + ")")
  407. $("#wrapper_tabs_box_col_FZ0").find("iframe").contents().find("body").css("background-repeat", "no-repeat")
  408. $("#wrapper_tabs_box_col_FZ0").find("iframe").contents().find("body").css("background-size", "cover")
  409. $("#wrapper_tabs_box_col_FZ0").find("iframe").contents().find("body").css("background-position", "0 -30px")
  410. $(".sp-wrapper-tabs .sp-wrapper-tabs-head").css("background-image", "url(" + get_url + ")");
  411. var postData_2 = {
  412. "userid": self.userId,
  413. "code": get_code
  414. };
  415. $http.post(apiurljs.login + "g2work/bkimage/updateDataUserDefault", JSON.stringify(postData_2), postCfg)
  416. .success(function (obj_2) {
  417. //var res = strToJson(s4.decryptData_CBC(obj.data));
  418. var res_2 = obj_2;
  419. //console.log(JSON.stringify(res));
  420. if (res_2.success) {
  421. console.log("背景图片修改成功");
  422. } else {
  423. sp.dialog(res_2.message);
  424. }
  425. })
  426. .error(function (XMLHttpRequest, textStatus, errorThrown) {
  427. if (textStatus != 200) {
  428. self.loading = false;
  429. }
  430. })
  431. });
  432. });
  433. }
  434. }, 1000);
  435. ////加载背景图片*******************************************************************************************
  436. self.func = {
  437. normalTitle: "全部",
  438. favoriteTitle: "常用功能",
  439. recentTitle: "最近访问",
  440. favoriteList: [],
  441. recentList: [],
  442. keyWord: "",
  443. keyCondition: "",
  444. keyShow: false,
  445. keyPartList: [], //当前模块下所有符合关键字的模块列表
  446. keyPartListCopy: [], //当前模块下前12个符合关键字的模块列表
  447. keyAllList: [], //全局模块下所有符合关键字的模块列表
  448. keyAllListCopy: [], //全局模块下前12个符合关键字的模块列表
  449. keyPartShow: false,
  450. keyPartHide: false,
  451. keyAllShow: false,
  452. keyAllHide: false,
  453. allFuncList: [], //存储最全的功能防止遗漏
  454. nowFuncName: "",
  455. nowFuncCode: ""
  456. }
  457. //声明一个左侧的功能列表
  458. self.userFuncList = [];
  459. //首选获取当前用户的个人桌面
  460. self.getHomePage = function () {
  461. self.userFuncList = [];
  462. var postData = {
  463. userid: self.userId
  464. }
  465. $http.post(apiurljs.login + "g2work/desktop/queryDesktopMarkT", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  466. .success(function (obj) {
  467. var res = strToJson(s4.decryptData_CBC(obj.data));
  468. //console.log(JSON.stringify(res));
  469. //console.log(get_userInfoJsonStr);
  470. var homePageObj = {
  471. CNAME: "工作桌面",
  472. C_H_I_L_D: [],
  473. COPYCHILD: [],
  474. ///FILEN: res.data.tenantcode,
  475. FILEN: self.get_userInfoJsonStr.desktopurl,
  476. FUNCSCOPE: "ADMINISTATOR|ADMIN",
  477. LEAF: 0,
  478. LEVELS: 1,
  479. OPENTYPE: "0",
  480. PARENTID: "0",
  481. PKID: "FZ0",
  482. SORTID: 1,
  483. SRCIMG: "",
  484. SRCIMG32: "",
  485. WINDOWS: "",
  486. IMGBox: "box0",
  487. }
  488. $.cookie("GlWorkPlatform-userTypeEng", res.data.data, {path: '/', expires: 1});
  489. if (res.data.data == "USER") {
  490. $.cookie("GlWorkPlatform-userType", "普通用户", {path: '/', expires: 1})
  491. } else if (res.data.data == "SYSADMIN") {
  492. $.cookie("GlWorkPlatform-userType", "系统管理员", {path: '/', expires: 1})
  493. } else if (res.data.data == "SECADMIN") {
  494. $.cookie("GlWorkPlatform-userType", "安全管理员", {path: '/', expires: 1})
  495. } else if (res.data.data == "AUDITADMIN") {
  496. $.cookie("GlWorkPlatform-userType", "审计管理员", {path: '/', expires: 1})
  497. } else if (res.data.data == "ADMIN") {
  498. $.cookie("GlWorkPlatform-userType", "总管理员", {path: '/', expires: 1})
  499. }
  500. ////20230423--zyg-修改,变更成加载图片base64编码,判断是否为base64图片,是直接加载,否设置图片路径;
  501. if (res.data.imgsrc.indexOf("data:image") != -1) {
  502. ///base64图片格式直接加载
  503. $("#spanAdminPhoto").attr("src", res.data.imgsrc);
  504. self.usercard.img = res.data.imgsrc;
  505. } else if(res.data.imgsrc.indexOf("files") != -1){
  506. ///服务器图片路径
  507. $("#spanAdminPhoto").attr("src", apiurljs.login + "g2work/files/" + res.data.imgsrc.slice(7));
  508. } else {
  509. ///路径图片,赋值
  510. $("#spanAdminPhoto").attr("src", "AFrontEnd/css/icons/photo/" + res.data.imgsrc);
  511. self.usercard.img = "AFrontEnd/css/icons/photo/" + res.data.imgsrc;
  512. }
  513. $.cookie("GlWorkPlatform-photo", $("#spanAdminPhoto").attr("src"), { path: '/', expires: 1 })
  514. self.userFuncList.push(homePageObj);
  515. self.getUserFunc();
  516. var data = {
  517. tablename: "SYS_CLICKLOG",
  518. data: {
  519. CTIME: self.ctime,
  520. TITLE: "系统登录",
  521. REQUESTURL: window.location.pathname,
  522. REQUESTHEADERURL: window.location.origin,
  523. LOGTYPE: "登录登出",
  524. USERTYPE: $.cookie("GlWorkPlatform-userType"),
  525. ADMIN: $.cookie("GlWorkPlatform-userTypeEng"),
  526. CLIENTIP: sp.myIP(),
  527. PCNAME: sp.detectOS(),
  528. BROWSERNAME: sp.browser(),
  529. RESPONSETIME: sp.getLocalDate1(),
  530. USERID: self.userId,
  531. USERNAME: self.userName
  532. }
  533. }
  534. $http.post(apiurljs.login + "g2app/dataabase/insertFormData", {data: s4.encryptData_CBC(JSON.stringify(data))}, postCfg)
  535. .success(function (res) {
  536. $.cookie("CrossPage-ctime", null, {path: '/', expires: -1});
  537. })
  538. })
  539. }
  540. //获取用户的功能列表
  541. self.getUserFunc = function () {
  542. $http.post(apiurljs.login + "UserPower/PermissionsDecrypt", {data: s4.encryptData_CBC("")}, postCfg)
  543. .success(function (obj) {
  544. //var res = strToJson(s4.decryptData_CBC(obj.data));
  545. var res = obj;
  546. res.data.rows.forEach(function (item) {
  547. item.showRightMenu = false;
  548. if (item.C_H_I_L_D.length == 0) {
  549. item.IMGBox = "box0";
  550. } else if (item.C_H_I_L_D.length > 0 && item.C_H_I_L_D.length <= 4) {
  551. item.IMGBox = "box4";
  552. } else if (item.C_H_I_L_D.length > 4) {
  553. item.IMGBox = "box9";
  554. }
  555. let array = angular.copy(item.C_H_I_L_D);
  556. if (array.length > 12) {
  557. item.COPYCHILD = array.slice(0, 12);
  558. item.hideFunc = true;
  559. item.showFunc = false;
  560. } else {
  561. item.COPYCHILD = array;
  562. item.hideFunc = false;
  563. item.showFunc = false;
  564. }
  565. self.userFuncList.push(item);
  566. })
  567. //记录全部功能模块列表
  568. res.data.rows.forEach(function (item) {
  569. item.C_H_I_L_D.forEach(function (item2) {
  570. self.func.allFuncList.push(item2);
  571. })
  572. })
  573. //默认打开工作桌面
  574. var title = self.userFuncList[0].CNAME;
  575. var id = self.userFuncList[0].PKID;
  576. var src = self.userFuncList[0].FILEN;
  577. sp.addhometabnav(id, title, src);
  578. CrossPage = {
  579. cname: "",
  580. ctime: sp.getLocalDate(),
  581. type: 0
  582. }
  583. // if (getParameter("openPage") == "") {
  584. // //sp.loadmenufiles();//加载记录菜单文件
  585. // }
  586. // if (getParameter("openPage") != "") {
  587. // self.secondMenu = "全部/";
  588. // self.func.normalList.forEach(function (item) {
  589. // if (item.PKID == getParameter("PKID")) {
  590. // self.CrossPage(item)
  591. // }
  592. // })
  593. // sp.addTabNav(getParameter("PKID"), decodeURI(getParameter("CNAME")), getParameter("openPage"))
  594. // }
  595. })
  596. }
  597. //获取用户常用功能列表
  598. self.getUserFavoriteFunc = function () {
  599. var postData = {
  600. userid: self.userId,
  601. ntops: "4"
  602. }
  603. $http.post(apiurljs.login + "g2work/desktop/queryFavoriteFunc", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  604. .success(function (obj) {
  605. var res = strToJson(s4.decryptData_CBC(obj.data));
  606. self.func.favoriteList = res.data;
  607. })
  608. }
  609. //获取用户最近访问列表
  610. self.getUserRecentFunc = function () {
  611. var postData = {
  612. userid: self.userId,
  613. ntops: "4"
  614. }
  615. $http.post(apiurljs.login + "g2work/desktop/queryRecentFunc", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  616. .success(function (obj) {
  617. var res = strToJson(s4.decryptData_CBC(obj.data));
  618. self.func.recentList = res.data;
  619. })
  620. }
  621. //固定二级菜单标志
  622. self.tabFixed = false;
  623. //固定二级菜单函数
  624. self.setTabFixed = function () {
  625. self.tabFixed = true;
  626. }
  627. //取消固定二级菜单函数
  628. self.cancelTabFixed = function () {
  629. self.tabFixed = false;
  630. }
  631. //鼠标放入执行的事件
  632. self.openRightMenu = function (index) {
  633. //self.initSearchFunc();
  634. self.userFuncList.forEach(function (item) {
  635. item.showRightMenu = false;
  636. })
  637. self.func.normalTitle = self.userFuncList[index].CNAME;
  638. self.func.nowFuncCode = self.userFuncList[index].PKID;
  639. self.func.nowFuncName = self.userFuncList[index].CNAME;
  640. self.userFuncList[index].showRightMenu = true;
  641. }
  642. //鼠标移除执行的事件
  643. self.closeRightMenu = function () {
  644. if (self.tabFixed) {
  645. } else {
  646. //self.initSearchFunc();
  647. self.userFuncList.forEach(function (item) {
  648. item.showRightMenu = false;
  649. })
  650. self.func.nowFuncCode = "";
  651. self.func.nowFuncName = "";
  652. }
  653. }
  654. self.openMenuTab = function (code, cname) {
  655. if (code == self.func.nowFuncCode && cname == self.func.nowFuncName) {
  656. return;
  657. //$(".sp-menu-tab").hide();
  658. //self.func.keyWord = "";
  659. //self.func.keyCondition = "";
  660. //self.func.nowFuncCode = "close";
  661. //self.func.nowFuncName = "close";
  662. } else {
  663. //code传空表示查看全部功能
  664. self.func.keyWord = "";
  665. self.func.keyCondition = "";
  666. self.func.nowFuncCode = code;
  667. self.func.nowFuncName = cname;
  668. var array = [];
  669. if (code == "") {
  670. self.func.normalTitle = "全部";
  671. self.func.normalList = [];
  672. self.func.allFuncList.forEach(function (item, index) {
  673. array.push(item);
  674. })
  675. } else {
  676. self.func.normalTitle = cname;
  677. self.func.normalList = [];
  678. self.func.allFuncList.forEach(function (item) {
  679. if (item.PARENTID == code) {
  680. array.push(item);
  681. }
  682. })
  683. }
  684. if (array.length > 12) {
  685. self.func.normalList = array.slice(0, 12);
  686. self.func.hideFunc = true;
  687. self.func.showFunc = false;
  688. } else {
  689. self.func.normalList = array;
  690. self.func.hideFunc = false;
  691. self.func.showFunc = false;
  692. }
  693. self.secondMenu = cname == "" ? "全部/" : cname + "/";
  694. $(".sp-menu-tab").show();
  695. }
  696. }
  697. self.closeMenuTab = function () {
  698. self.func.keyWord = "";
  699. self.func.keyCondition = "";
  700. //self.func.nowFuncCode = "close";
  701. //self.func.nowFuncName = "close";
  702. $(".sp-menu-tab").hide();
  703. }
  704. self.selectMenu = function (item) {
  705. if (item.FILEN != undefined && item.FILEN != '' && item.FILEN != null) {
  706. sp.addTabNav(item.PKID, item.CNAME, item.FILEN);
  707. }
  708. }
  709. //初始化搜索
  710. self.initSearchFunc = function () {
  711. self.func.keyWord = "";
  712. self.func.keyCondition = "";
  713. self.func.keyShow = false;
  714. self.func.keyPartList = []; //当前模块下所有符合关键字的模块列表
  715. self.func.keyPartListCopy = []; //当前模块下前12个符合关键字的模块列表
  716. self.func.keyAllList = []; //全局模块下所有符合关键字的模块列表
  717. self.func.keyAllListCopy = []; //全局模块下前12个符合关键字的模块列表
  718. self.func.keyPartShow = false;
  719. self.func.keyPartHide = false;
  720. self.func.keyAllShow = false;
  721. self.func.keyAllHide = false;
  722. }
  723. self.keyWordFunc = function () {
  724. console.log(self.func.allFuncList);
  725. if (self.func.keyWord == "") {
  726. self.initSearchFunc();
  727. } else {
  728. self.func.keyCondition = " 【关键字: " + self.func.keyWord + " 】";
  729. self.func.keyShow = true;
  730. var resultArray1 = [];
  731. var resultArray2 = [];
  732. self.func.allFuncList.forEach(function (item) {
  733. var index = item.CNAME.indexOf(self.func.keyWord);
  734. if (self.func.nowFuncCode == "") {
  735. } else {
  736. //当前模块下的筛选结果
  737. if (index >=0 && item.PARENTID == self.func.nowFuncCode) {
  738. resultArray1.push(item);
  739. }
  740. //其他模块下的全局筛选结果
  741. if (index >= 0 && item.PARENTID != self.func.nowFuncCode) {
  742. resultArray2.push(item);
  743. }
  744. }
  745. })
  746. self.func.keyPartList=angular.copy(resultArray1);
  747. self.func.keyAllList=angular.copy(resultArray2);
  748. if (resultArray1.length > 12) {
  749. self.func.keyPartListCopy = resultArray1.slice(0, 12);
  750. self.func.keyPartHide = true;
  751. self.func.keyPartShow = false;
  752. } else {
  753. self.func.keyPartListCopy = resultArray1;
  754. self.func.keyPartHide = false;
  755. self.func.keyPartShow = false;
  756. }
  757. if (resultArray2.length > 12) {
  758. self.func.keyAllListCopy = resultArray2.slice(0, 12);
  759. self.func.keyAllHide = true;
  760. self.func.keyAllShow = false;
  761. } else {
  762. self.func.keyAllListCopy = resultArray2;
  763. self.func.keyAllHide = false;
  764. self.func.keyAllShow = false;
  765. }
  766. }
  767. }
  768. self.clearKeyWordFunc = function () {
  769. self.func.keyWord = "";
  770. self.func.keyCondition = "";
  771. var resultArray = [];
  772. self.func.allFuncList.forEach(function (item) {
  773. if (self.func.nowFuncName == "") {
  774. resultArray.push(item);
  775. } else {
  776. if (item.PARENTID == self.func.nowFuncCode) {
  777. resultArray.push(item);
  778. }
  779. }
  780. })
  781. if (resultArray.length > 12) {
  782. self.func.normalList = resultArray.slice(0, 12);
  783. self.func.hideFunc = true;
  784. self.func.showFunc = false;
  785. } else {
  786. self.func.normalList = resultArray;
  787. self.func.hideFunc = false;
  788. self.func.showFunc = false;
  789. }
  790. }
  791. self.selectItemFunc = function (item) {
  792. //console.log(item.CNAME);
  793. //console.log(item.FILEN);
  794. //if (item.FILEN.indexOf("@token") > -1) {
  795. // sp.addTabNav(item.PKID, item.CNAME, item.FILEN.replace("@token", self.outToken));
  796. // self.addRecode(item.CNAME, item.FILEN.replace("@token", self.outToken));
  797. //} else {
  798. // sp.addTabNav(item.PKID, item.CNAME, item.FILEN);
  799. // self.addRecode(item.CNAME, item.FILEN);
  800. //}
  801. if (item.OPENTYPE == "1") {
  802. if (item.FILEN.indexOf("@token") > -1) {
  803. window.open(item.FILEN.replace("@token", self.outToken));
  804. } else {
  805. window.open(item.FILEN);
  806. }
  807. } else {
  808. if (item.FILEN.indexOf("@token") > -1) {
  809. sp.addTabNav(item.PKID, item.CNAME, item.FILEN.replace("@token", self.outToken));
  810. } else {
  811. sp.addTabNav(item.PKID, item.CNAME, item.FILEN);
  812. }
  813. }
  814. self.addRecode(item.CNAME, item.FILEN);
  815. self.CrossPage(item);
  816. self.getUserRecentFunc();
  817. self.getUserFavoriteFunc();
  818. ////关闭左侧菜单
  819. $(".sp-menu-switch").addClass("hasClick");
  820. $(".sp-menu-list").fadeOut(200);
  821. }
  822. self.loadAllKindFunc = function (index) {
  823. //console.log(index);
  824. let array = angular.copy(self.userFuncList[index].C_H_I_L_D);
  825. self.userFuncList[index].COPYCHILD = array;
  826. self.userFuncList[index].hideFunc = false;
  827. self.userFuncList[index].showFunc = true;
  828. }
  829. self.loadPartKindFunc = function (index) {
  830. //console.log(index);
  831. let array = angular.copy(self.userFuncList[index].C_H_I_L_D);
  832. self.userFuncList[index].COPYCHILD = array.slice(0, 12);
  833. self.userFuncList[index].hideFunc = true;
  834. self.userFuncList[index].showFunc = false;
  835. }
  836. self.showKeyPartFunc=function(){
  837. self.func.keyPartListCopy=angular.copy(self.func.keyPartList);
  838. self.func.keyPartHide=false;
  839. self.func.keyPartShow=true;
  840. }
  841. self.hideKeyPartFunc=function(){
  842. self.func.keyPartListCopy=angular.copy(self.func.keyPartList).slice(0, 12);
  843. self.func.keyPartHide=true;
  844. self.func.keyPartShow=false;
  845. }
  846. self.showKeyAllFunc=function(){
  847. self.func.keyAllListCopy=angular.copy(self.func.keyAllList);
  848. self.func.keyAllHide=false;
  849. self.func.keyAllShow=true;
  850. }
  851. self.hideKeyAllFunc=function(){
  852. self.func.keyAllListCopy=angular.copy(self.func.keyAllList).slice(0, 12);
  853. self.func.keyAllHide=true;
  854. self.func.keyAllShow=false;
  855. }
  856. //桌面自定义流程人员初始化
  857. self.InitUser = function () {
  858. var data = {"userid": [], "mark": "1"}
  859. $http.post(apiurljs.login + "g2work/desktop/InitWorkflowCandoCustom", {data: s4.encryptData_CBC(JSON.stringify(data))}, postCfg)
  860. .success(function (obj) {
  861. var res = strToJson(s4.decryptData_CBC(obj.data));
  862. if (res.success) {
  863. sp.dialog("初始化成功!")
  864. $timeout(function () {
  865. sp.dialoghide()
  866. }, 1000)
  867. }
  868. })
  869. }
  870. self.usercard = {
  871. id: 0,
  872. userid: self.userId,
  873. username: self.userName,
  874. img: "AFrontEnd/css/icons/photo/02.jpg",
  875. DEPNAME: "",
  876. SBTIME: "",
  877. XBTIME: ""
  878. }
  879. self.addRecode=function (name,url) {
  880. var postData = {
  881. tablename: "SYS_LOG",
  882. data: {
  883. LOGTIME: sp.dateFtt("yyyy-MM-dd hh:mm:ss",new Date()),
  884. LOGIP: sp.myIP(),
  885. LOGUSER:self.userName,
  886. LOGFUNC:name,
  887. LOGFUNCURL:url,
  888. LOGAPI:"insertFormData输入参数",
  889. LOGAPIURL:"g2app/dataabase/insertFormData",
  890. LOGAPIPOST:"",
  891. REMARK:""
  892. }
  893. }
  894. var apiData={
  895. data:s4.encryptData_CBC(JSON.stringify(postData))
  896. }
  897. postData.data.LOGAPIPOST=JSON.stringify(apiData);
  898. $http.post(apiurljs.login + "g2app/Data/insertByDataid", { data: s4.encryptData_CBC(JSON.stringify(postData)) }, postCfg)
  899. .success(function (obj) {
  900. })
  901. }
  902. //跨页面记录日志参数
  903. self.CrossPage = function (obj) {
  904. CrossPage = {
  905. cname: obj.CNAME,
  906. ctime: sp.getLocalDate1(),
  907. type: 0
  908. }
  909. }
  910. //获取上传附件文件格式限制----20230517
  911. uploadformat = [];
  912. function getUploadFormat() {
  913. var data = { tablename: "CODE_UPLOADFORMAT" }
  914. $http.post(apiurljs.login + "g2app/DangAn/queryCodeData", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
  915. .success(function (obj) {
  916. var res = strToJson(s4.decryptData_CBC(obj.data));
  917. uploadformat = res.data;
  918. })
  919. };
  920. getUploadFormat()
  921. ////头部关键字搜索---20230905
  922. self.headBtnSearchKeyword = "";
  923. self.headSearchResult = [];
  924. self.headSearchResult_view = false;
  925. self.headBtnSearch = function () {
  926. if (sp.isval(self.headBtnSearchKeyword)) {
  927. if(self.dtslPlaceholder == "图上查"){
  928. //self.headSearchResult = [];
  929. var data = {
  930. "url": "/basic/api/StatSelect/selectCodeList",
  931. "data": { "keyWord": self.headBtnSearchKeyword }
  932. }
  933. //console.log(JSON.stringify(data));
  934. $http.post(apiurljs.login + "g2app/yizhangtu/selectCodeList", { data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
  935. .success(function (obj) {
  936. var res = strToJson(s4.decryptData_CBC(obj.data));
  937. console.log('map',res.data);
  938. self.headSearchResult = res.data.build;
  939. console.log(self.headSearchResult[0])
  940. //if (sp.isval(self.headSearchResult)&&sp.isval(self.headBtnSearchKeyword)) {
  941. // self.headSearchResult_view = true;
  942. //} else {
  943. // self.headSearchResult_view = false;
  944. //}
  945. })
  946. }else if(self.dtslPlaceholder == "查一查"){
  947. // var dptCfg = {
  948. // headers: {
  949. // 'Content-Type': 'application/json',
  950. // 'Access-Token': localStorage.getItem("main-token"),
  951. // }
  952. // };
  953. // $http.get(
  954. // apiurljs.dpt + `graph/open/api/search/appoint/graph/info?name=${self.headBtnSearchKeyword}&modelId=4881885d8a74562f018a81eb2ff02c42&startEntityCodes=jck_qyk_qyjcxx`,
  955. // dptCfg
  956. // ).success(function(obj) {
  957. // if(obj.result&&sp.isval(self.headBtnSearchKeyword)){
  958. // for(let i=0;i<obj.result.length;i++){
  959. // obj.result[i].type = "企业"
  960. // }
  961. // self.headSearchResult = obj.result;
  962. // self.headSearchResult_view = true;
  963. // }else{
  964. // self.headSearchResult_view = false;
  965. // }
  966. // })
  967. }else if(self.dtslPlaceholder=="查项目"){
  968. //window.open(`http://10.149.1.35:8003/#/drms/know-application/enterprise-search/SearchResult?hideMenus=true&name=${self.headBtnSearchKeyword}&type=project&token=${localStorage.getItem("main-token")}`)
  969. // var dptCfg = {
  970. // headers: {
  971. // 'Content-Type': 'application/json',
  972. // 'Access-Token': localStorage.getItem("main-token"),
  973. // }
  974. // };
  975. // $http.get(
  976. // apiurljs.dpt + `graph/open/api/search/appoint/graph/info?name=${self.headBtnSearchKeyword}&modelId=488188578b3367d0018b375db06e2507&startEntityCodes=jck_xmk_jsgcxm`,
  977. // dptCfg
  978. // ).success(function(obj) {
  979. // if(obj.result&&sp.isval(self.headBtnSearchKeyword)){
  980. // for(let i=0;i<obj.result.length;i++){
  981. // obj.result[i].type = "项目"
  982. // }
  983. // self.headSearchResult = obj.result;
  984. // self.headSearchResult_view = true;
  985. // }else{
  986. // self.headSearchResult_view = false;
  987. // }
  988. // })
  989. }
  990. } else {
  991. self.headSearchResult_view = false;
  992. }
  993. };
  994. self.headBtnSearchhc = function(e){
  995. if(e.keyCode==13){
  996. if(self.dtslPlaceholder == "图上查"){
  997. self.headKeywordPage(self.headBtnSearchKeyword)
  998. //$timeout(function(){
  999. // self.headKeywordPage(self.headSearchResult[0])
  1000. //},1000)
  1001. }else if(self.dtslPlaceholder == "查一查"){
  1002. //let set_url = `http://10.149.1.35:8003/#/drms/know-application/enterprise-search/company-detail?hideTitle=true&hideMenus=true&name=${itemdata.name}&id=${itemdata.id}&type=company&token=${localStorage.getItem("main-token")}`
  1003. //let set_url = `http://10.149.1.35:8003/#/drms/know-application/enterprise-search/SearchResult?hideTitle=true&hideMenus=true&name=${self.headBtnSearchKeyword}&type=company&token=${localStorage.getItem("main-token")}`
  1004. let set_url = `http://10.149.1.35:8003/cyc/#/drms/know-application/enterprise-search/SearchResult?hideMenus=true&name=${self.headBtnSearchKeyword}&hideTitle=true&Access-Token=${localStorage.getItem("main-token")}`
  1005. sp.addTabNav("dtsscqy", "查一查", set_url);
  1006. }
  1007. //else if(self.dtslPlaceholder == "查项目"){
  1008. // let set_url = `http://10.149.1.35:8003/#/drms/know-application/enterprise-search/SearchResult?hideTitle=true&hideMenus=true&name=${self.headBtnSearchKeyword}&type=project&token=${localStorage.getItem("main-token")}`
  1009. // sp.addTabNav("dtsscxm", "查项目", set_url);
  1010. // }
  1011. self.headBtnSearchKeyword = ""
  1012. }
  1013. }
  1014. self.headKeywordPage = function (itemdata) {
  1015. if(self.dtslPlaceholder == "图上查"){
  1016. var get_token = localStorage.getItem("main-token");
  1017. //var set_url = apiurljs.onePic + "wholeProcessPage?token=" + get_token + "&name=" + itemdata.name + "&type=" + itemdata.type + "&id=" + itemdata.id + "";
  1018. var set_url = apiurljs.onePic + "pureOneMap?token=" + get_token + "&name=" + itemdata + "&type=&id=";
  1019. sp.addTabNav(itemdata.id, '图上查', set_url);
  1020. }else if(self.dtslPlaceholder == "查一查"){
  1021. //window.open(`http://10.149.1.35:8003/#/drms/know-application/enterprise-search/company-detail?hideTitle=false&hideMenus=true&name=${itemdata.name}&id=${itemdata.id}&type=company&token=${localStorage.getItem("main-token")}`)
  1022. //let set_url = `http://10.149.1.35:8003/#/drms/know-application/enterprise-search/company-detail?hideTitle=true&hideMenus=true&name=${itemdata.name}&id=${itemdata.id}&type=company&token=${localStorage.getItem("main-token")}`
  1023. let set_url = `http://10.149.1.35:8003/cyc/#/drms/know-application/enterprise-search/SearchResult?hideMenus=true&name=${self.headBtnSearchKeyword}&hideTitle=true&Access-Token=${localStorage.getItem("main-token")}`
  1024. sp.addTabNav(itemdata.id, itemdata.name, set_url);
  1025. }
  1026. //else if(self.dtslPlaceholder == "查项目"){
  1027. // //window.open(`http://10.149.1.35:8003/#/drms/know-application/enterprise-search/project-detail?hideMenus=true&name=${itemdata.name}&id=${itemdata.id}&type=project&token=${localStorage.getItem("main-token")}`)
  1028. // let set_url = `http://10.149.1.35:8003/#/drms/know-application/enterprise-search/project-detail?hideTitle=true&hideMenus=true&name=${itemdata.name}&id=${itemdata.id}&type=project&token=${localStorage.getItem("main-token")}`
  1029. // sp.addTabNav(itemdata.id, itemdata.name, set_url);
  1030. //}
  1031. self.headSearchResult_view = false;
  1032. self.headBtnSearchKeyword = ""
  1033. };
  1034. //获取未读消息数量
  1035. self.msgNum = 0;
  1036. self.newMsg = 0
  1037. self.getMsgNum = function (type) {
  1038. var data = {
  1039. userid: self.userId,
  1040. msgkind: "公文事项办理",
  1041. mark: "未读"
  1042. }
  1043. $http.post(apiurljs.login+"g2work/routeinfo/queryDataMessageCount",{ data: s4.encryptData_CBC(JSON.stringify(data)) }, postCfg)
  1044. .success(function (obj) {
  1045. var res = strToJson(s4.decryptData_CBC(obj.data));
  1046. // self.newMsg = 200 - self.msgNum;
  1047. self.newMsg = res.data.MSGCOUNT - self.msgNum;
  1048. self.msgNum = res.data.MSGCOUNT;
  1049. $("#onlineUsers").html(res.data.ONLINEUSER + "人");
  1050. $.cookie("GlWorkPlatform-onlineUsers", res.data.ONLINEUSER);
  1051. console.log(res.data)
  1052. // 当人数超过100人时,出现弹窗
  1053. /*var num = 100
  1054. if(res.data.ONLINEUSER > num){
  1055. var dialogHead = "<span class=\"sp-dialog-head\"><span class=\"sp-dialog-tip\">系统提示</span><span id='closeModal' class=\"sp-dialog-close sp-closeDialog\" title=\"关闭\">×</span></span>";
  1056. var dialogBody = "<div class=\"sp-dialog-body\" style='height: 300px'>当前在线人数已超过" + num + "人!</div>";
  1057. var dialogFoot = "<div class=\"sp-dialog-foot\"><input id='okModal' type='button' value='确 认' class='sp-dialog-btnTrue' /></div>";
  1058. $('.sp-dialog').html(dialogHead + dialogBody + dialogFoot);
  1059. $('.sp-dialog').css('width', '600px');
  1060. sp.openCenter(".sp-dialog");
  1061. $(".closeDialog").click(function (event) {
  1062. sp.closeCenter(".sp-dialog");
  1063. event.preventDefault();
  1064. event.stopPropagation();
  1065. });
  1066. //关闭
  1067. $("#closeModal").click(function () {
  1068. sp.dialoghide();
  1069. });
  1070. // 下一步操作
  1071. $("#okModal").click(function () {
  1072. sp.dialoghide();
  1073. // 后续逻辑
  1074. });
  1075. }*/
  1076. if(!type){
  1077. // console.log('type', self.newMsg)
  1078. for (var i = 0; (i < self.newMsg && i <5); i++) {
  1079. var popupId = "popup" + i;
  1080. var closeId ="closeModalMsg"+i
  1081. var popupContent = "<div id='" + popupId + "' style='width:600px; height: 150px; background-color: #f5f5f5; ; border: 1px solid #ccc; box-shadow: 0 0 10px rgba(0 0 0 0.3);' class='popupItem'>" +
  1082. "<span class='closeModalMsg' style='cursor:pointer; font-size: 27px;position: absolute;right:20px;display:inline-block;padding:2px;'>×</span>" +
  1083. "<p style='padding: 30px;cursor:pointer;margin-top:32px' class='messageTz'>当前有新消息,请查看</p >" +"</div>";
  1084. $("#popupContainer").append(popupContent);
  1085. }
  1086. $("#popupContainer").fadeIn(500);
  1087. //关闭
  1088. // console.log("所有的关闭标签", $('.closeModalMsg'))
  1089. // 三秒后隐藏弹窗
  1090. setTimeout(function() {
  1091. $("#popupContainer").fadeOut(1000);
  1092. // 移除新增的弹窗项
  1093. $(".popupItem").remove();
  1094. }, 5000);
  1095. }
  1096. $('.closeModalMsg').each(function (index) {
  1097. $(this).on('click', function () {
  1098. console.log("xxxxxx>>", index);
  1099. closeFunc(index)
  1100. // console.log("close")
  1101. })
  1102. })
  1103. function closeFunc(index) {
  1104. $('#popup' + index).remove()
  1105. }
  1106. $('.messageTz').each(function (index) {
  1107. $(this).on('click', function () {
  1108. console.log("跳转页面>>>>", index);
  1109. self.openMsg()
  1110. })
  1111. })
  1112. })
  1113. }
  1114. self.getMsgNum(1)
  1115. $interval(function () {
  1116. self.getMsgNum()
  1117. }, 60000)
  1118. self.openMsg = function () {
  1119. sp.addTabNav("XXJL","消息记录","tpl/deskunit/msgListChat.html")
  1120. }
  1121. //获取上班下班时间规则
  1122. // self.queryRules = function () {
  1123. // var data = {
  1124. // sqlwhere: {}
  1125. // }
  1126. // $http.post(apiurljs.login + "g2app/Attendance/queryRules", {data: s4.encryptData_CBC(JSON.stringify(data))}, postCfg)
  1127. // .success(function (obj) {
  1128. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1129. // self.CARDSTART = res.data.STARTTIEM;
  1130. // self.CARDEND = res.data.ENDTIME;
  1131. // self.getDEPART()
  1132. // })
  1133. // }
  1134. //获得当前人部门
  1135. // self.getDEPART = function () {
  1136. // var data = {
  1137. // userid: self.usercard.userid
  1138. // }
  1139. // $http.post(apiurljs.login + "g2app/dataabase/queryDpName", {data: s4.encryptData_CBC(JSON.stringify(data))}, postCfg)
  1140. // .success(function (obj) {
  1141. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1142. // self.usercard.DEPNAME = res.data.length == 0 ? "" : res.data[0].SECTION;
  1143. // })
  1144. // }
  1145. // self.queryRules()
  1146. // self.card = function (n) {
  1147. // var data = {
  1148. // tablename: "ATTENDANCEMAN",
  1149. // colums: "*,TO_CHAR(SBTIME,'hh24:mi:ss') as SBTIME1,TO_CHAR(XBTIME,'hh24:mi:ss') as XBTIME1",
  1150. // order: "ID",
  1151. // sqlwhere: {
  1152. // CDATE: sp.format(sp.getLocalDate()),
  1153. // CUSERID: self.usercard.userid
  1154. // },
  1155. // sqlinwhere: "",
  1156. // sqllikewhere: ""
  1157. // }
  1158. // $http.post(apiurljs.login + "g2app/dataabase/queryDataByCol", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1159. // .success(function (obj) {
  1160. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1161. // if (res.data.length != 0) {
  1162. // self.usercard = {
  1163. // id: res.data[0].ID,
  1164. // userid: self.usercard.userid,
  1165. // username: self.usercard.username,
  1166. // DEPNAME: self.usercard.DEPNAME,
  1167. // SBTIME: res.data[0].SBTIME ? res.data[0].SBTIME1 : "",
  1168. // XBTIME: res.data[0].XBTIME ? res.data[0].XBTIME1 : "",
  1169. // DKSTATUS: res.data[0].DKSTATUS.split(",")[0]
  1170. // }
  1171. // }
  1172. // $(".cardtime").html(sp.getLocalDate().slice(11, 19))
  1173. // $interval(function () {
  1174. // $(".cardtime").html(sp.getLocalDate().slice(11, 19))
  1175. // }, 1000)
  1176. // if (n == 0) {
  1177. // sp.layer("#layer_card")
  1178. // }
  1179. // })
  1180. // }
  1181. // self.clickstatus = false;
  1182. // self.clickCard = function () {
  1183. // if (self.clickstatus == true || (self.usercard.SBTIME != '' && self.usercard.XBTIME != '')) {
  1184. // return;
  1185. // }
  1186. // self.clickstatus = true;
  1187. // if (self.usercard.id == 0) {
  1188. // var data = {
  1189. // tablename: "ATTENDANCEMAN",
  1190. // data: {
  1191. // CDATE: sp.format(sp.getLocalDate()),
  1192. // CNAME: self.usercard.username,
  1193. // CUSERID: self.usercard.userid,
  1194. // DEPNAME: self.usercard.DEPNAME,
  1195. // SBTIME: sp.format(sp.getLocalDate()) + " " + $(".cardtime").html(),
  1196. // DKSTATUS: getDKSTATUS($(".cardtime").html(), 1)
  1197. // }
  1198. // }
  1199. // $http.post(apiurljs.login + "g2app/dataabase/insertFormData", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1200. // .success(function (obj) {
  1201. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1202. // self.clickstatus = false;
  1203. // if (res.success == true) {
  1204. // self.card(1)
  1205. // } else {
  1206. // sp.layerhide()
  1207. // sp.dialog(res.message)
  1208. // }
  1209. // })
  1210. // } else {
  1211. // var data = {
  1212. // id: self.usercard.id,
  1213. // tablename: "ATTENDANCEMAN",
  1214. // data: {
  1215. // CNAME: self.usercard.username,
  1216. // CUSERID: self.usercard.userid,
  1217. // DEPNAME: self.usercard.DEPNAME,
  1218. // XBTIME: sp.format(sp.getLocalDate()) + " " + $(".cardtime").html(),
  1219. // DKSTATUS: self.usercard.DKSTATUS + "," + getDKSTATUS($(".cardtime").html(), 2)
  1220. // }
  1221. // }
  1222. // $http.post(apiurljs.login + "g2app/dataabase/upFormData", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1223. // .success(function (obj) {
  1224. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1225. // self.clickstatus = false;
  1226. // if (res.success == true) {
  1227. // self.card(1)
  1228. // } else {
  1229. // sp.layerhide()
  1230. // sp.dialog(res.message)
  1231. // }
  1232. // })
  1233. // }
  1234. // }
  1235. //获取服务器时间
  1236. // self.getServerTime = function () {
  1237. // var data = {
  1238. // param: "yyyy-MM-dd HH:mm:ss"
  1239. // }
  1240. // $http.post(apiurljs.login + "g2app/calendar/queryServiceDate", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1241. // .success(function (obj) {
  1242. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1243. // self.ServerTime = res.data;
  1244. // self.getREMINDTIME()
  1245. // })
  1246. // }
  1247. //获取提醒时间
  1248. // self.getREMINDTIME = function () {
  1249. // var data = {
  1250. // tablename: "CODE_REMINDTIME",
  1251. // colums: "*",
  1252. // order: "ID",
  1253. // sqlwhere: "",
  1254. // sqlinwhere: "",
  1255. // sqllikewhere: ""
  1256. // };
  1257. // $http.post(apiurljs.login + "g2app/dataabase/queryDataByCol", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1258. // .success(function (obj) {
  1259. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1260. // self.REMINDTIME = res.data;
  1261. // self.getFREQUENCY()
  1262. // })
  1263. // }
  1264. //获取提醒频率
  1265. // self.getFREQUENCY = function () {
  1266. // var data = {
  1267. // tablename: "CODE_FREQUENCY",
  1268. // colums: "*",
  1269. // order: "ID",
  1270. // sqlwhere: "",
  1271. // sqlinwhere: "",
  1272. // sqllikewhere: ""
  1273. // };
  1274. // $http.post(apiurljs.login + "g2app/dataabase/queryDataByCol", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1275. // .success(function (obj) {
  1276. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1277. // self.FREQUENCY = res.data;
  1278. // self.getRemindList()
  1279. // })
  1280. // }
  1281. // self.getRemindList = function () {
  1282. // self.remindlist = []
  1283. // var data = {
  1284. // STRATDATE: sp.dateFtt("yyyy-MM-dd", new Date()),
  1285. // USERID: self.engName
  1286. // }
  1287. // $http.post(apiurljs.login + "g2app/calendar/queryDayData", {data: s4.encryptData_CBC(JSON.stringify(postData))}, postCfg)
  1288. // .success(function (obj) {
  1289. // var res = strToJson(s4.decryptData_CBC(obj.data));
  1290. // if (res.data.Items[0].task == null || res.data.Items[0].task == undefined || res.data.Items[0].task == "") {
  1291. // } else {
  1292. // self.remindlist = res.data.Items[0].task;
  1293. //
  1294. // self.remindlist.forEach(function (item) {
  1295. // self.REMINDTIME.forEach(function (item1) {
  1296. // if (item.REMINDTIME == item1.CODE) {
  1297. // item.REMINDTIME = item1.NUM * 3600000
  1298. // }
  1299. // })
  1300. // self.FREQUENCY.forEach(function (item1) {
  1301. // if (item.FREQUENCY == item1.CODE) {
  1302. // item.FREQUENCY = item1.NUM
  1303. // }
  1304. // })
  1305. // })
  1306. //
  1307. // //生成事项提醒循环
  1308. // var remindStart = [];
  1309. // $.each(self.remindlist, function (index, item) {
  1310. // remindStart[index] = $interval(function () {
  1311. // remindGoing(index);
  1312. // }, 1000)
  1313. // })
  1314. // var remindGoing = function (n) {
  1315. // remindWarning(self.remindlist[n], n)
  1316. // //判断循环是否停止
  1317. // if (self.ServerTime >= self.remindlist[n].STARTIME) {
  1318. // $interval.cancel(remindStart[n]);
  1319. // }
  1320. // }
  1321. // //到时提醒
  1322. // var remindWarning = function (obj, n) {
  1323. // var n = obj.FREQUENCY - 1;
  1324. // if (self.ServerTime == TimeToDate(obj.STARTIME, obj.REMINDTIME * n)) {
  1325. // sp.dialog(obj.MEETINGNAME + "第" + (obj.FREQUENCY - n) + "次提醒");
  1326. // $timeout(function () {
  1327. // n--
  1328. // sp.dialoghide()
  1329. // }, 5000)
  1330. // remindStart[obj.id + "times"] = $interval(function () {
  1331. // sp.dialog(obj.MEETINGNAME + "第" + (obj.FREQUENCY - n) + "次提醒");
  1332. // $timeout(function () {
  1333. // n--
  1334. // sp.dialoghide()
  1335. // }, 5000)
  1336. // }, obj.REMINDTIME, n)
  1337. // }
  1338. // }
  1339. // }
  1340. // });
  1341. // }
  1342. //self.getServerTime()
  1343. self.onePic = function () {
  1344. self.headBtnSearchhc({keyCode:13})
  1345. //if(self.dtslPlaceholder == "图上查"){
  1346. // sp.addTabNav("DTSS", "图上查", apiurljs.onePic + "wholeProcessPage?token=" + self.outToken)
  1347. // }else{
  1348. // self.headBtnSearchhc({keyCode:13})
  1349. // }
  1350. }
  1351. self.deptAppList = []
  1352. window.deptClick_FJSKECMADWDSCBNHX = function(deptId,deptName){
  1353. self.deptAppListTitle = deptName
  1354. if(deptId){
  1355. self.deptAppList = []
  1356. sp.layer("#dept-app-list")
  1357. var dptCfg = {
  1358. headers: {
  1359. 'Content-Type': 'application/json',
  1360. 'Access-Token': localStorage.getItem("main-token"),
  1361. }
  1362. };
  1363. $http.get(
  1364. apiurljs.dpt+"auth/system/app-list-divisions?deptId="+deptId,
  1365. dptCfg
  1366. ).success(function (obj) {
  1367. console.log(obj.result)
  1368. self.deptAppList = obj.result
  1369. })
  1370. }
  1371. }
  1372. self.goApp = function(obj){
  1373. sp.layerhide()
  1374. if (obj.indexUrl.indexOf("?") > -1) {
  1375. window.top.sp.addTabNav(obj.appCode, obj.appName, obj.indexUrl+'&token='+localStorage.getItem("main-token"));
  1376. } else {
  1377. window.top.sp.addTabNav(obj.appCode, obj.appName, obj.indexUrl+'?token='+localStorage.getItem("main-token"));
  1378. }
  1379. }
  1380. self.dtslPlaceholder = "图上查"
  1381. self.ZhcxMapList = ['图上查']//'查房屋','查从业人员','查项目','查企业',
  1382. self.getZhcxMaoList = function(){
  1383. var dptCfg = {
  1384. headers: {
  1385. 'Content-Type': 'application/json',
  1386. 'Access-Token': localStorage.getItem("main-token"),
  1387. }
  1388. };
  1389. $http.get(
  1390. apiurljs.dpt+"auth/system/app-list-outer?portalShow=1&type=oa",
  1391. dptCfg
  1392. ).success(function (obj) {
  1393. if(obj.result&&obj.result.length>0){
  1394. let appBkList = obj.result
  1395. for(let i=0;i<appBkList.length;i++){
  1396. let appList = appBkList[i].appList
  1397. if(appList&&appList.length>0){
  1398. appList.forEach((appItem)=>{
  1399. if(appItem.appCode =='xmqyxx'){
  1400. //self.ZhcxMapList.unshift('查项目')
  1401. self.ZhcxMapList.push('查一查')
  1402. //self.dtslPlaceholder = "查一查"
  1403. }
  1404. })
  1405. }
  1406. }
  1407. }
  1408. })
  1409. }
  1410. self.getZhcxMaoList()
  1411. //综合查询移入
  1412. self.zhxcOnclick = function(){
  1413. let el_zhcxList = document.getElementById("zhcx-map-list")
  1414. if(el_zhcxList.style.display == 'block'){
  1415. el_zhcxList.style.display = 'none'
  1416. }else{
  1417. el_zhcxList.style.display = 'block'
  1418. }
  1419. }
  1420. self.zhxcOnmouseenter = function(){
  1421. let el_zhcxList = document.getElementById("zhcx-map-list")
  1422. el_zhcxList.style.display = 'block'
  1423. }
  1424. self.zhxcOnmouseleave = function () {
  1425. let el_zhcxList = document.getElementById("zhcx-map-list")
  1426. el_zhcxList.style.display = 'none';
  1427. }
  1428. self.zhcxMapClick = function(item){
  1429. if(item != self.dtslPlaceholder){
  1430. self.headSearchResult_view = false;
  1431. self.headBtnSearchKeyword = ""
  1432. self.dtslPlaceholder = item
  1433. }
  1434. }
  1435. //顶部工具栏跳转一张图
  1436. self.GoOnePic=function(){
  1437. var get_token = localStorage.getItem("main-token");
  1438. //sp.addTabNav('F0102', '一张图', apiurljs.onePic + "wholeProcessPage?token=" + get_token + "&name=&type=&id=");
  1439. //sp.addTabNav('F0102', '一张图', apiurljs.onePic + "digitalHousingUrbanRuralCommission?token=" + get_token + "&name=&type=&id=");
  1440. window.open(apiurljs.onePic + "digitalHousingUrbanRuralCommission?token=" + get_token + "&name=&type=&id=", "_blank");
  1441. }
  1442. }])
  1443. var CrossPage = new Object();