1001310035_edit.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. body {
  5. overflow-y: hidden;
  6. }
  7. .process-iframe iframe {
  8. width: 100%;
  9. height: 100%;
  10. }
  11. .batchManage-fold {
  12. position: absolute;
  13. right: -2px;
  14. top: 50%;
  15. transform: translateY(-50%);
  16. transition: all 0.12s ease;
  17. -webkit-transition: all 0.12s ease;
  18. z-index: 10;
  19. }
  20. .batchManage-fold-bg {
  21. position: absolute;
  22. top: 0;
  23. left: 0;
  24. transition: all 0.12s ease;
  25. -webkit-transition: all 0.12s ease;
  26. height: 50px;
  27. width: 0;
  28. border-bottom: 8px solid transparent;
  29. border-left: none;
  30. border-right: 12px solid #EBEBEB;
  31. border-top: 8px solid transparent;
  32. }
  33. .batchManage-fold-icon {
  34. position: relative;
  35. height: 66px;
  36. line-height: 66px;
  37. left: 0;
  38. right: auto;
  39. text-align: center;
  40. cursor: pointer;
  41. -o-transition: all 0.1s ease, 0.1s ease;
  42. -ms-transition: all 0.1s ease, 0.1s ease;
  43. -moz-transition: all 0.1s ease, 0.1s ease;
  44. -webkit-transition: all 0.1s ease, 0.1s ease;
  45. color: #b9b9b9;
  46. }
  47. .batchManage-fold-icon i {
  48. font-weight: bold;
  49. }
  50. .batchManage-fold:hover .batchManage-fold-bg {
  51. left: 0;
  52. right: auto;
  53. border-bottom: 7px solid transparent;
  54. border-left: none;
  55. border-right: 14px solid #DEDEDE;
  56. border-top: 7px solid transparent;
  57. }
  58. .batchManage-fold:hover .batchManage-fold-icon {
  59. color: #888;
  60. }
  61. .slide-enter-active,
  62. .slide-leave-active {
  63. position: relative;
  64. top: 0;
  65. right: 0;
  66. transition: right .15s;
  67. }
  68. .slide-enter,
  69. .slide-leave-to
  70. /* .slide-leave-active below version 2.1.8 */
  71. {
  72. right: -352px;
  73. }
  74. .ck-toolbar,
  75. .ck-editor__editable_inline {
  76. border: none !important;
  77. }
  78. </style>
  79. </head>
  80. <body>
  81. <div id="space-content">
  82. <div class="space-container">
  83. <div class="process">
  84. <!-- 左边 -->
  85. <div class="process-left">
  86. <div class="process-iframe" style="height: calc(100% - 174px);">
  87. <iframe id="applyInfo"></iframe>
  88. </div>
  89. <div class="process-editor" style="height: 174px;">
  90. <space-editor v-model="obj.body" type="flow" height="85px" placeholder="请输入审核意见" ref="editor">
  91. </space-editor>
  92. <el-form method="post" :model="obj" ref="obj" label-width="100px">
  93. <div class="process-handle-brn">
  94. <el-button type="primary" icon="el-icon-s-promotion" :loading="loading"
  95. @click="auditFlow(service.agreeURI)">同意</el-button>
  96. <el-button type="danger" icon="el-icon-warning-outline" :loading="loading"
  97. @click="auditFlow(service.rejectURI)">退回</el-button>
  98. <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭
  99. </el-button>
  100. </div>
  101. </el-form>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. <!-- 业务流转 -->
  107. <space-plugin-flow audit="${auditid}" apply="${applyid}" :open="true"></space-plugin-flow>
  108. </div>
  109. </body>
  110. <script type="text/javascript">
  111. $('#applyInfo').attr("src", "${applyInfoToken}");
  112. space.vue = new Vue({
  113. el: space.appContent,
  114. data: function () {
  115. return {
  116. obj: {
  117. cmsId: undefined,
  118. body: ''
  119. },
  120. service: {
  121. agreeURI: '@service{ name: `sys.sys_agree_audit_flow`, page: `toAuditResult`, params: `{applyid: "${applyid}", auditid: "${auditid}"}` }@',
  122. rejectURI: '@service{ name: `sys.sys_reject_audit_flow`, page: `toAuditResult`, params: `{applyid: "${applyid}", auditid: "${auditid}"}` }@',
  123. },
  124. loading: false,
  125. }
  126. },
  127. mounted: function () {
  128. var _this = this;
  129. var winInterval = setInterval(function () {
  130. if (!_this.$refs.editor.editor) {
  131. return;
  132. }
  133. window.clearInterval(winInterval);
  134. space.plugins.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
  135. _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
  136. }, 100);
  137. },
  138. methods: {
  139. /**
  140. * 审核流程(同意、退回)
  141. */
  142. auditFlow(url) {
  143. $("form").attr('action', url);
  144. space.plugins.ckEditor.CMS.submit(this.$refs.editor.editor);
  145. space.forms.submit();
  146. },
  147. }
  148. })
  149. </script>
  150. </html>