1001310053_edit.jsp 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <html>
  2. <head>
  3. <style>
  4. .batchManage{
  5. position: relative;
  6. }
  7. .batchManage .el-aside{
  8. border-right: 1px solid #eee;
  9. position: relative;
  10. overflow: initial;
  11. }
  12. .batchManage .el-main{
  13. padding: 0;
  14. }
  15. .batchManage .el-main iframe{
  16. width: 100%;
  17. height: 100%;
  18. }
  19. .batchManage-list dl{
  20. overflow: hidden;
  21. padding: 16px 12px 16px 16px;
  22. cursor: pointer;
  23. }
  24. .batchManage-active,.batchManage-list dl:hover{
  25. background-color: #e3e3e3;
  26. }
  27. .batchManage-list{
  28. height: 100%;
  29. overflow-y: auto;
  30. }
  31. .batchManage-list dt{
  32. width: 40px;
  33. height: 40px;
  34. border-radius: 3px;
  35. overflow: hidden;
  36. float: left;
  37. }
  38. .batchManage-list dt img{
  39. width: 100%;
  40. height: 100%;
  41. }
  42. .batchManage-title{
  43. overflow: hidden;
  44. text-overflow:ellipsis;
  45. white-space: nowrap;
  46. margin: 2px 0 8px;
  47. font-size: 14px;
  48. }
  49. .batchManage-info{
  50. font-size: 13px;
  51. color: #666;
  52. }
  53. .batchManage-info i{
  54. float: right;
  55. font-style: normal;
  56. }
  57. .batchManage-fold{
  58. position: absolute;
  59. left: 0;
  60. top: 50%;
  61. transform: translateY(-50%);
  62. transition: all 0.12s ease;
  63. -webkit-transition: all 0.12s ease;
  64. z-index: 10;
  65. }
  66. .batchManage .el-aside .batchManage-fold{
  67. left: auto;
  68. right: -16px;
  69. }
  70. .batchManage-fold-bg{
  71. position: absolute;
  72. top: 0;
  73. left: 0;
  74. transition: all 0.12s ease;
  75. -webkit-transition: all 0.12s ease;
  76. height: 50px;
  77. width: 0;
  78. border-bottom: 8px solid transparent;
  79. border-right: none;
  80. border-left: 12px solid #EBEBEB;
  81. border-top: 8px solid transparent;
  82. }
  83. .batchManage-fold-icon{
  84. position: relative;
  85. height: 66px;
  86. line-height: 66px;
  87. left: 0;
  88. right: auto;
  89. text-align: center;
  90. cursor: pointer;
  91. -o-transition: all 0.1s ease,0.1s ease;
  92. -ms-transition: all 0.1s ease,0.1s ease;
  93. -moz-transition: all 0.1s ease,0.1s ease;
  94. -webkit-transition: all 0.1s ease,0.1s ease;
  95. color: #b9b9b9;
  96. }
  97. .batchManage-fold-icon i{
  98. font-weight: bold;
  99. }
  100. .batchManage-fold:hover .batchManage-fold-bg{
  101. left: 0;
  102. right: auto;
  103. border-bottom: 7px solid transparent;
  104. border-right: none;
  105. border-left: 14px solid #DEDEDE;
  106. border-top: 7px solid transparent;
  107. }
  108. .batchManage-fold:hover .batchManage-fold-icon{
  109. color: #888;
  110. }
  111. .slide-enter-active, .slide-leave-active {
  112. position: relative;
  113. top: 0;
  114. left: 0;
  115. transition: left .15s;
  116. }
  117. .slide-enter, .slide-leave-to /* .slide-leave-active below version 2.1.8 */ {
  118. left: -270px;
  119. }
  120. .opacity-enter-active, .opacity-leave-active {
  121. opacity: 0;
  122. transition: all .15s;
  123. }
  124. .opacity-leave-to /* .opacity-leave-active below version 2.1.8 */ {
  125. opacity: 1;
  126. }
  127. .batchManage-info .icon-img {
  128. vertical-align: middle;
  129. width: 16px;
  130. max-height: 16px;
  131. border-radius: 50%;
  132. }
  133. </style>
  134. </head>
  135. <body style="overflow-y: hidden;">
  136. <div id="space-content">
  137. <el-container class="space-container batchManage">
  138. <!-- 右边列表 -->
  139. <transition name="slide">
  140. <el-aside width="270px" v-show="!isFold">
  141. <!-- 列表 -->
  142. <div class="batchManage-list niceScrollAuto">
  143. <div class="batchManage-list-wrap">
  144. <dl v-for="(item, index) in auditData" :class="index == activeIndex ? 'batchManage-active' : ''" @click="openAudit(index)">
  145. <el-tooltip class="item" effect="dark" :content="item.title" placement="top-start">
  146. <dd class="batchManage-title">
  147. {{item.title}}
  148. </dd>
  149. </el-tooltip>
  150. <dd class="batchManage-info">
  151. <el-image :src="item.applyPersonIconPath" class="icon-img"></el-image>
  152. <span style="margin-left: 5px;">
  153. {{item.applyPersonName}}
  154. </span>
  155. <i>
  156. {{item.time}}
  157. </i>
  158. </dd>
  159. </dl>
  160. </div>
  161. </div>
  162. <!-- 折叠图标 -->
  163. <div class="batchManage-fold" @click="isFold = !isFold" v-show="!isFold">
  164. <div class="batchManage-fold-bg"></div>
  165. <div class="batchManage-fold-icon">
  166. <i class="el-icon-arrow-left"></i>
  167. </div>
  168. </div>
  169. </el-aside>
  170. </transition>
  171. <!-- 左边iframe框 -->
  172. <el-main v-loading="v_loading" element-loading-text="正在加载,请稍后" style="overflow-y: hidden;">
  173. <iframe :src="windowSRC" @load="loadingIframe"></iframe>
  174. </el-main>
  175. <!-- 收起图标 -->
  176. <transition name="opacity">
  177. <div class="batchManage-fold" @click="isFold = !isFold" v-show="isFold">
  178. <div class="batchManage-fold-bg"></div>
  179. <div class="batchManage-fold-icon">
  180. <i class="el-icon-arrow-right"></i>
  181. </div>
  182. </div>
  183. </transition>
  184. </el-container>
  185. </div>
  186. </body>
  187. <script type="text/javascript">
  188. var auditList = '${batchAuditList}';
  189. space.topWin.layer.title("${batchAuditTitle}", window.space.vars.curLayerIndex);
  190. space.vue = new Vue({
  191. el: space.appContent,
  192. data() {
  193. return {
  194. auditData: space.utils.isNull(auditList) ? [] : JSON.parse(auditList),
  195. v_loading: false,
  196. isFold: false,
  197. windowSRC: '',
  198. activeIndex: '0'
  199. }
  200. },
  201. mounted: function() {
  202. if (this.auditData.length > 0) {
  203. this.openAudit(0);
  204. } else if (this.auditData.length == 0) {
  205. space.allFunction.closeDialog(true);
  206. }
  207. },
  208. methods: {
  209. /**
  210. * 打开审核页
  211. */
  212. openAudit: function(index) {
  213. this.activeIndex = index;
  214. this.v_loading = true;
  215. this.windowSRC = this.auditData[index].token + "&rn=" + space.utils.random(6);
  216. if (this.auditData[index].isHasCheck) {
  217. space.utils.ajax({
  218. url: '@service{ name: `sys.sys_check_audit_info` }@',
  219. data: this.auditData[index].params,
  220. dataType: 'json'
  221. });
  222. }
  223. },
  224. /**
  225. * 刷新当前窗口
  226. */
  227. refreshBacklog: function() {
  228. window.location.reload();
  229. },
  230. /**
  231. * 关闭加载动画
  232. */
  233. loadingIframe: function() {
  234. this.v_loading = false;
  235. }
  236. }
  237. })
  238. </script>
  239. </html>