| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <html>
- <head>
-
- </head>
- <body>
- <div id="space-content">
- <div class="space-tbs urge-tbs">
- <div class="space-tabs-wrap">
- <div class="space-tabs-nav">
- <ul>
- <c:if test="${isShowUrgeNotManage == true}">
- <li active data-src='@service{ name=`sys_not_audit`, page:`urge_notManage`, params:`{applyid: "${applyid}"}`}@' @click="handleClick('first')">
- 未办理({{notManagePeople}}人)
- </li>
- </c:if>
- <li data-src='@service{ name=`sys_already_dealt`, page:`urge_managed`, params:`{applyid: "${applyid}"}` }@' @click="handleClick('second')">
- 已办理({{managePeople}}人)
- </li>
- <li data-src='@service{ name=`sys_flow_chart`, page:`flow_chart`, params:`{applyid: "${applyid}"}`}@' @click="handleClick('third')">
- 流程图
- </li>
- </ul>
- </div>
- <div class="space-tabs-content">
- <ul>
- <li>
- <iframe src="" ></iframe>
- </li>
- </ul>
- </div>
- </div>
-
- <!--右上方搜索框-->
- <div class="tab-right">
- <el-button type="primary" v-if="applyInfo" @click="viewInfo()" plain>查看发起内容</el-button>
- <c:if test="${isShowUrgeNotManage == true}">
- <el-button type="danger" @click="withdraw()" v-if="reclaimFlow == 11" :disabled="activeName == 'first' ? false : true " plain>收回</el-button>
- </c:if>
- <c:if test="${isShowUrgeNotManage != true}">
- <el-button type="danger" @click="withdraw()" v-if="reclaimFlow == 11" :disabled="true" plain>收回</el-button>
- </c:if>
- </div>
- </div>
- </div>
- </body>
- <script type="text/javascript">
- var notHandle = '${notHandle}',
- alreadyProcessed = '${alreadyProcessed}',
- applyInfoData = '${applyInfo}';
-
- space.vue = new Vue({
- el: space.appContent,
- data() {
- return {
- reclaimFlow: '${reclaimFlow}',
- activeName: 'first', //tab当前项
- notManagePeople: notHandle, //未办理人数
- managePeople: alreadyProcessed, //已办理人数
- applyInfo: space.utils.isNull(applyInfoData) ? undefined : JSON.parse(applyInfoData),
- service: {
- withdrawApplyUri: '@service{ name=`sys_withdraw_apply`, params:`{applyid: "${applyid}"}`}@'
- },
- };
- },
- methods: {
- handleClick: function(str) {
- this.activeName = str;
- },
- withdraw() {
- var _this = this;
- this.$confirm('此操作将收回该流程, 是否继续?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
-
- space.utils.ajax({
- url: _this.service.withdrawApplyUri,
- dataType: 'json',
- callback: function(data) {
- if (data.code == "success") {
- space.topWin.spaceIndex.info.success("收回成功");
- space.allFunction.closeDialog(true, undefined);
- }
- else {
- space.topWin.spaceIndex.info.error("系统繁忙,请稍后再试");
- }
- }
- });
-
- }).catch(() => {
- this.$message({
- type: 'info',
- message: '已取消回收流程'
- });
- });
-
- },
- viewInfo() {
- if (this.applyInfo) {
- var _this = this;
- space.plugins.layer.openPage({
- open: true,
- width: _this.applyInfo.width,
- height: _this.applyInfo.height,
- title: _this.applyInfo.title,
- url: _this.applyInfo.url
- });
- }
- }
- }
- })
- </script>
- </html>
|