| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- <html>
- <head>
- <style type="text/css">
- body {
- overflow-y: hidden;
- }
- .process-iframe iframe {
- width: 100%;
- height: 100%;
- }
- .batchManage-fold {
- position: absolute;
- right: -2px;
- top: 50%;
- transform: translateY(-50%);
- transition: all 0.12s ease;
- -webkit-transition: all 0.12s ease;
- z-index: 10;
- }
- .batchManage-fold-bg {
- position: absolute;
- top: 0;
- left: 0;
- transition: all 0.12s ease;
- -webkit-transition: all 0.12s ease;
- height: 50px;
- width: 0;
- border-bottom: 8px solid transparent;
- border-left: none;
- border-right: 12px solid #EBEBEB;
- border-top: 8px solid transparent;
- }
- .batchManage-fold-icon {
- position: relative;
- height: 66px;
- line-height: 66px;
- left: 0;
- right: auto;
- text-align: center;
- cursor: pointer;
- -o-transition: all 0.1s ease, 0.1s ease;
- -ms-transition: all 0.1s ease, 0.1s ease;
- -moz-transition: all 0.1s ease, 0.1s ease;
- -webkit-transition: all 0.1s ease, 0.1s ease;
- color: #b9b9b9;
- }
- .batchManage-fold-icon i {
- font-weight: bold;
- }
- .batchManage-fold:hover .batchManage-fold-bg {
- left: 0;
- right: auto;
- border-bottom: 7px solid transparent;
- border-left: none;
- border-right: 14px solid #DEDEDE;
- border-top: 7px solid transparent;
- }
- .batchManage-fold:hover .batchManage-fold-icon {
- color: #888;
- }
- .slide-enter-active,
- .slide-leave-active {
- position: relative;
- top: 0;
- right: 0;
- transition: right .15s;
- }
- .slide-enter,
- .slide-leave-to
- /* .slide-leave-active below version 2.1.8 */
- {
- right: -352px;
- }
- .ck-toolbar,
- .ck-editor__editable_inline {
- border: none !important;
- }
- </style>
- </head>
- <body>
- <div id="space-content">
- <div class="space-container">
- <div class="process">
- <!-- 左边 -->
- <div class="process-left">
- <div class="process-iframe" style="height: calc(100% - 174px);">
- <iframe id="applyInfo"></iframe>
- </div>
- <div class="process-editor" style="height: 174px;">
- <space-editor v-model="obj.body" type="flow" height="85px" placeholder="请输入审核意见" ref="editor">
- </space-editor>
- <el-form method="post" :model="obj" ref="obj" label-width="100px">
- <div class="process-handle-brn">
- <el-button type="primary" icon="el-icon-s-promotion" :loading="loading"
- @click="auditFlow(service.agreeURI)">同意</el-button>
- <el-button type="danger" icon="el-icon-warning-outline" :loading="loading"
- @click="auditFlow(service.rejectURI)">退回</el-button>
- <el-button icon="el-icon-circle-close" onclick="space.allFunction.closeDialog();">关闭
- </el-button>
- </div>
- </el-form>
- </div>
- </div>
- </div>
- </div>
- <!-- 业务流转 -->
- <space-plugin-flow audit="${auditid}" apply="${applyid}" :open="true"></space-plugin-flow>
- </div>
- </body>
- <script type="text/javascript">
- $('#applyInfo').attr("src", "${applyInfoToken}");
- space.vue = new Vue({
- el: space.appContent,
- data: function () {
- return {
- obj: {
- cmsId: undefined,
- body: ''
- },
- service: {
- agreeURI: '@service{ name: `sys.sys_agree_audit_flow`, page: `toAuditResult`, params: `{applyid: "${applyid}", auditid: "${auditid}"}` }@',
- rejectURI: '@service{ name: `sys.sys_reject_audit_flow`, page: `toAuditResult`, params: `{applyid: "${applyid}", auditid: "${auditid}"}` }@',
- },
- loading: false,
- }
- },
- mounted: function () {
- var _this = this;
- var winInterval = setInterval(function () {
- if (!_this.$refs.editor.editor) {
- return;
- }
- window.clearInterval(winInterval);
- space.plugins.ckEditor.CMS.init.applyCMS(_this.$refs.editor.editor);
- _this.obj.cmsId = _this.$refs.editor.editor.CMS.id;
- }, 100);
- },
- methods: {
- /**
- * 审核流程(同意、退回)
- */
- auditFlow(url) {
- $("form").attr('action', url);
- space.plugins.ckEditor.CMS.submit(this.$refs.editor.editor);
- space.forms.submit();
- },
- }
- })
- </script>
- </html>
|