1001110032_edit.jsp 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <html>
  2. <head>
  3. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  4. <meta name="renderer" content="webkit" />
  5. <link rel="icon" type="image/png" sizes="16x16" href="@service{name: 'sys.getSysIcon'}@">
  6. <link rel="stylesheet" type="text/css" href="/css/general.css" />
  7. <title>工作台 - ${curWebSiteObj.seoTitle}</title>
  8. <script src="/js/space.console.js" type="text/javascript" charset="utf-8"></script>
  9. </head>
  10. <body>
  11. <div id="space-content" style="background-color: transparent">
  12. <div id="container">
  13. <el-container id="el-main" class="space-container" v-cloak>
  14. <!--头部-->
  15. <el-header class="header">
  16. <!--左边Logo-->
  17. <div class="header-logo">
  18. <img src="@service{name: 'sys.getUnitLogo'}@" />
  19. </div>
  20. <!--中间图标-->
  21. <div class="header-middle">
  22. <a href="javascript:;" title="个人首页" class="header-icon-home" @click="myInfo">
  23. <i class="spaceicon icon-home3"></i>
  24. </a>
  25. <div class="divider"></div>
  26. <a href="javascript:;" title="常用菜单">
  27. <i class="spaceicon icon-menu2"></i>
  28. </a>
  29. </div>
  30. <!--右边信息-->
  31. <div class="header-right">
  32. <!--个人信息-->
  33. <el-popover placement="bottom" width="270" trigger="hover" popper-class="hearder-settings-popper" :visible-arrow="false">
  34. <div class="header-settings-list">
  35. <el-row>
  36. <el-col :span="8">
  37. <div class="header-settings-grid" onclick='@service{ name:`personnel.person_info`, page:`personnel.person.person_info`, params:`{personid: "${appUser.userId}"}`, show:`true` }@'>
  38. <i title="个人信息" class="el-icon-user"></i>
  39. <p>个人信息</p>
  40. </div>
  41. </el-col>
  42. <el-col :span="8">
  43. <div class="header-settings-grid" onclick='@service{ page:"user_tool.update_icon", show:"true" }@'>
  44. <i title="更换头像" class="el-icon-picture-outline-round"></i>
  45. <p>更换头像</p>
  46. </div>
  47. </el-col>
  48. <el-col :span="8">
  49. <div class="header-settings-grid" onclick='@service{ page:"user_tool.update_password", show:"true" }@'>
  50. <i title="修改密码" class="el-icon-lock"></i>
  51. <p>修改密码</p>
  52. </div>
  53. </el-col>
  54. </el-row>
  55. <el-row>
  56. <el-col :span="8">
  57. <div class="header-settings-grid" onclick='@service{ name: "wechat_binding_qrcode", page:"wechat.binding_wechat_ercode", show:"true" }@'>
  58. <i title="绑定微信" class="spaceicon icon-wechat1"></i>
  59. <p>绑定微信</p>
  60. </div>
  61. </el-col>
  62. <el-col :span="8">
  63. <div class="header-settings-grid" onclick='@service{ name: "personnel.personCustomPhrase_list", page:"personnel.custom_phrase.custom_phrase_list", show:"true" }@'>
  64. <i title="常用语" class="spaceicon icon-commonLanguage"></i>
  65. <p>常用语</p>
  66. </div>
  67. </el-col>
  68. <el-col :span="8">
  69. <div class="header-settings-grid">
  70. <i title="系统设置" class="spaceicon icon-setting"></i>
  71. <p>系统设置</p>
  72. </div>
  73. </el-col>
  74. </el-row>
  75. <el-row>
  76. <el-col :span="8">
  77. <div class="header-settings-grid" onclick='@service{ name:`personnel.person_login_log_list`, page:`personnel.person.person_login_log_list`, params:`{personid: "${appUser.userId}"}`, show: `true` }@'>
  78. <i title="登录日志" class="el-icon-date"></i>
  79. <p>登录日志</p>
  80. </div>
  81. </el-col>
  82. <el-col :span="8">
  83. <div class="header-settings-grid" onclick='@service{ page:"user_tool.flush_cache", show:"true" }@'>
  84. <i title="清空缓存" class="el-icon-magic-stick"></i>
  85. <p>清空缓存</p>
  86. </div>
  87. </el-col>
  88. <el-col :span="8">
  89. <a href="/main/dist/ApiHelp/html/index/index.php" target="_blank" rel="noreferrer">
  90. <div class="header-settings-grid">
  91. <i title="系统帮助" class="el-icon-reading"></i>
  92. <p>系统帮助</p>
  93. </div>
  94. </a>
  95. </el-col>
  96. </el-row>
  97. </div>
  98. <div class="header-settings-bottom" onclick="location.href='/apps/loginout/'">
  99. <el-row>
  100. <el-col :span="24">
  101. 退出管理控制台
  102. </el-col>
  103. </el-row>
  104. </div>
  105. <div class="header-user" slot="reference">
  106. <el-avatar :size="36" class="header-user-icon" src="${appUser.iconPath}">
  107. ${appUser.name}
  108. </el-avatar>
  109. <span class="header-user-email">
  110. ${appUser.name}
  111. </span>
  112. <i class="el-icon-caret-bottom"></i>
  113. </div>
  114. </el-popover>
  115. </div>
  116. </el-header>
  117. <!--主体-->
  118. <el-container class="content">
  119. <!--左侧导航-->
  120. <el-aside class="content-left" :width="contentLeftW">
  121. <!--一级导航-->
  122. <el-menu default-active="" class="el-menu-level1" @select="level1Select" background-color="#3a3f52" text-color="#fff"
  123. active-text-color="#409EFF" :collapse="true">
  124. <el-menu-item :index="index" v-for="(item,index) in moudulesData" :key="item.index" :title="item.name">
  125. <i :class="item.icon"></i>
  126. <!-- <span slot="title">{{item.name}}</span> -->
  127. <i class="menu-collapse-left el-icon-caret-left" v-if="showLevel2[index]" @click.stop="level2Collapse(index)"></i>
  128. <i class="menu-collapse-left menu-collapse-left-small el-icon-caret-left" v-if="showLevel2[index]" @click.stop="level2Collapse(index)"></i>
  129. </el-menu-item>
  130. </el-menu>
  131. <!--二级导航-->
  132. <!--对应一级栏目的每一个-->
  133. <el-menu default-active="-1" class="el-menu-level2" @select="level2Select" @open="" @close="" v-show="showLevel2[index]"
  134. v-for="(item,index) in moudulesData" :key="index" background-color="#3a3f52" text-color="#fff"
  135. active-text-color="#fff">
  136. <div class="level1-column">
  137. <p>
  138. {{item.name}}
  139. </p>
  140. </div>
  141. <el-menu-item :index="menuListItem.url" v-for="(menuListItem,menuListIndex) in item.menuList" :key="menuListIndex">
  142. <i :class="menuListItem.icon"></i>
  143. <span slot="title">{{menuListItem.name}}</span>
  144. </el-menu-item>
  145. <!-- 右侧收起二级栏目按钮 -->
  146. <div class="fold-level2" @click="level2Collapse(index,6)">
  147. <i class="spaceicon icon-left" style="margin-left: -1px;font-size: 12px;"></i>
  148. </div>
  149. </el-menu>
  150. <!--对应一级栏目的第二个-->
  151. </el-aside>
  152. <!--右侧iframe-->
  153. <el-main class="content-right" v-loading="v_loading" element-loading-text="正在加载,请稍后">
  154. <iframe :src="windowSRC"></iframe>
  155. </el-main>
  156. </el-container>
  157. </el-container>
  158. </div>
  159. </div>
  160. </body>
  161. <script type="text/javascript">
  162. var moudulesData = ${moudulesData};
  163. var myInfoUrl = "@service{ page:'appPersonalHome' }@";
  164. var cmsUrl = "@service{ name:'cmsSubmit' }@";
  165. var spaceVue = new Vue({
  166. el: space.appContent,
  167. data: function() {
  168. return {
  169. showLevel2: [], //[false, false], 二级栏目的显示
  170. contentLeftWMin: 64,
  171. contentLeftWMax: 284,
  172. contentLeftW: "64px", //侧边导航的宽度
  173. transitionName: "level2-slide-fade", //二级栏目的动画名称
  174. moudulesData: moudulesData, //侧边栏栏目数据
  175. windowSRC: myInfoUrl,
  176. v_loading: false
  177. }
  178. },
  179. created: function() {
  180. //设置显示二级栏目的数组为false,收起状态为false,显示状态为true
  181. this.showLevel2.length = this.moudulesData.length;
  182. for (var i = 0; i < this.showLevel2.length; i++) {
  183. Vue.set(this.showLevel2, i, false);
  184. };
  185. //导入模块的图标
  186. this.moudulesData.forEach(function(item, index) {
  187. item.icon = item.icon;
  188. });
  189. },
  190. methods: {
  191. //一级菜单点击事件
  192. level1Select: function(key, keyPath) {
  193. for (var i = 0; i < this.showLevel2.length; i++) {
  194. Vue.set(this.showLevel2, i, false);
  195. }
  196. Vue.set(this.showLevel2, key, true);
  197. if (this.contentLeftW == this.contentLeftWMax + "px") {
  198. this.transitionName = "";
  199. } else {
  200. this.transitionName = "level2-slide-fade";
  201. };
  202. var _this = this;
  203. // var timer = setInterval(function () {
  204. // _this.contentLeftW = parseInt(_this.contentLeftW) + 10 + "px";
  205. // if (parseInt(_this.contentLeftW) >= _this.contentLeftWMax) {
  206. // window.clearInterval(timer);
  207. // _this.contentLeftW = _this.contentLeftWMax + "px"
  208. // }
  209. // }, 6)
  210. _this.contentLeftW = _this.contentLeftWMax + "px"
  211. // myInfo事件,双击过快,再点击一级栏目来不及切换颜色,所以再手动添加颜色
  212. $(".el-menu-level1 .el-menu-item.is-active").css("color", "#409EFF");
  213. },
  214. //点击一级栏目的小三角形,折叠二级
  215. level2Collapse: function(index) {
  216. Vue.set(this.showLevel2, index, !this.showLevel2[index]);
  217. if (this.contentLeftW !== this.contentLeftWMin + "px") {
  218. var _this = this;
  219. // var timer = setInterval(function () {
  220. // _this.contentLeftW = parseInt(_this.contentLeftW) - 10 + "px";
  221. // if (parseInt(_this.contentLeftW) <= _this.contentLeftWMin) {
  222. // window.clearInterval(timer);
  223. // _this.contentLeftW = _this.contentLeftWMin + "px"
  224. // }
  225. // }, 6)
  226. _this.contentLeftW = _this.contentLeftWMin + "px"
  227. }
  228. },
  229. //二级菜单点击事件,改变iframe的URL
  230. level2Select: function(key, keyPath) {
  231. spaceIndex.loadLayer();
  232. this.windowSRC = key + "&rn=" + space.utils.random(6);
  233. },
  234. myInfo: function() {
  235. this.windowSRC = myInfoUrl + "&rn=" + space.utils.random(6);
  236. // 重置右侧菜单
  237. for (var i = 0; i < this.showLevel2.length; i++) {
  238. Vue.set(this.showLevel2, i, false);
  239. }
  240. this.contentLeftW = this.contentLeftWMin + "px"
  241. // 如果用removeClass("is-active"),双击过快,再点击一级栏目会来不及添加回is-active
  242. $(".el-menu-level1 .el-menu-item.is-active").css("color", "#909399");
  243. $(".el-menu-level2 .el-menu-item").removeClass("is-active");
  244. }
  245. }
  246. })
  247. </script>
  248. <script>
  249. layui.data('586537', {
  250. key: 'x',
  251. value: space.utils.compileStr("${appUser.loginName}")
  252. });
  253. layui.data('586537', {
  254. key: 'y',
  255. value: space.utils.compileStr("${appUser.name}")
  256. });
  257. layui.data('586537', {
  258. key: 'z',
  259. value: space.utils.compileStr("${appUser.iconPath}")
  260. });
  261. $(function() {
  262. $(".el-menu-level2 .el-menu-item").click(function() {
  263. $(".el-menu-level2 .el-menu-item").removeClass("is-active");
  264. $(this).addClass("is-active");
  265. });
  266. })
  267. </script>
  268. </html>