| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <html>
- <head>
- <style>
- .batchManage{
- position: relative;
- }
- .batchManage .el-aside{
- border-right: 1px solid #eee;
- position: relative;
- overflow: initial;
- }
- .batchManage .el-main{
- padding: 0;
- }
- .batchManage .el-main iframe{
- width: 100%;
- height: 100%;
- }
- .batchManage-list dl{
- overflow: hidden;
- padding: 16px 12px 16px 16px;
- cursor: pointer;
- }
- .batchManage-active,.batchManage-list dl:hover{
- background-color: #e3e3e3;
- }
- .batchManage-list{
- height: 100%;
- overflow-y: auto;
- }
- .batchManage-list dt{
- width: 40px;
- height: 40px;
- border-radius: 3px;
- overflow: hidden;
- float: left;
- }
- .batchManage-list dt img{
- width: 100%;
- height: 100%;
- }
- .batchManage-title{
- overflow: hidden;
- text-overflow:ellipsis;
- white-space: nowrap;
- margin: 2px 0 8px;
- font-size: 14px;
- }
- .batchManage-info{
- font-size: 13px;
- color: #666;
- }
- .batchManage-info i{
- float: right;
- font-style: normal;
- }
- .batchManage-fold{
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- transition: all 0.12s ease;
- -webkit-transition: all 0.12s ease;
- z-index: 10;
- }
- .batchManage .el-aside .batchManage-fold{
- left: auto;
- right: -16px;
- }
- .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-right: none;
- border-left: 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-right: none;
- border-left: 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;
- left: 0;
- transition: left .15s;
- }
- .slide-enter, .slide-leave-to /* .slide-leave-active below version 2.1.8 */ {
- left: -270px;
- }
- .opacity-enter-active, .opacity-leave-active {
- opacity: 0;
- transition: all .15s;
- }
- .opacity-leave-to /* .opacity-leave-active below version 2.1.8 */ {
- opacity: 1;
- }
- .batchManage-info .icon-img {
- vertical-align: middle;
- width: 16px;
- max-height: 16px;
- border-radius: 50%;
- }
- </style>
- </head>
- <body style="overflow-y: hidden;">
- <div id="space-content">
- <el-container class="space-container batchManage">
- <!-- 右边列表 -->
- <transition name="slide">
- <el-aside width="270px" v-show="!isFold">
- <!-- 列表 -->
- <div class="batchManage-list niceScrollAuto">
- <div class="batchManage-list-wrap">
- <dl v-for="(item, index) in auditData" :class="index == activeIndex ? 'batchManage-active' : ''" @click="openAudit(index)">
- <el-tooltip class="item" effect="dark" :content="item.title" placement="top-start">
- <dd class="batchManage-title">
- {{item.title}}
- </dd>
- </el-tooltip>
- <dd class="batchManage-info">
- <el-image :src="item.applyPersonIconPath" class="icon-img"></el-image>
- <span style="margin-left: 5px;">
- {{item.applyPersonName}}
- </span>
- <i>
- {{item.time}}
- </i>
- </dd>
- </dl>
- </div>
- </div>
- <!-- 折叠图标 -->
- <div class="batchManage-fold" @click="isFold = !isFold" v-show="!isFold">
- <div class="batchManage-fold-bg"></div>
- <div class="batchManage-fold-icon">
- <i class="el-icon-arrow-left"></i>
- </div>
- </div>
- </el-aside>
- </transition>
- <!-- 左边iframe框 -->
- <el-main v-loading="v_loading" element-loading-text="正在加载,请稍后" style="overflow-y: hidden;">
- <iframe :src="windowSRC" @load="loadingIframe"></iframe>
- </el-main>
- <!-- 收起图标 -->
- <transition name="opacity">
- <div class="batchManage-fold" @click="isFold = !isFold" v-show="isFold">
- <div class="batchManage-fold-bg"></div>
- <div class="batchManage-fold-icon">
- <i class="el-icon-arrow-right"></i>
- </div>
- </div>
- </transition>
- </el-container>
- </div>
- </body>
- <script type="text/javascript">
- var auditList = '${batchAuditList}';
- space.topWin.layer.title("${batchAuditTitle}", window.space.vars.curLayerIndex);
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- auditData: space.utils.isNull(auditList) ? [] : JSON.parse(auditList),
- v_loading: false,
- isFold: false,
- windowSRC: '',
- activeIndex: '0'
- }
- },
- mounted: function() {
- if (this.auditData.length > 0) {
- this.openAudit(0);
- } else if (this.auditData.length == 0) {
- space.allFunction.closeDialog(true);
- }
- },
- methods: {
- /**
- * 打开审核页
- */
- openAudit: function(index) {
- this.activeIndex = index;
- this.v_loading = true;
- this.windowSRC = this.auditData[index].token + "&rn=" + space.utils.random(6);
- if (this.auditData[index].isHasCheck) {
- space.utils.ajax({
- url: '@service{ name: `sys.sys_check_audit_info` }@',
- data: this.auditData[index].params,
- dataType: 'json'
- });
- }
- },
- /**
- * 刷新当前窗口
- */
- refreshBacklog: function() {
- window.location.reload();
- },
- /**
- * 关闭加载动画
- */
- loadingIframe: function() {
- this.v_loading = false;
- }
- }
- })
- </script>
- </html>
|