1001310048_edit.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <div id="space-content">
  6. <div class="space-tbs urge-tbs">
  7. <div class="space-tabs-wrap">
  8. <div class="space-tabs-nav">
  9. <ul>
  10. <c:if test="${isShowUrgeNotManage == true}">
  11. <li active data-src='@service{ name=`sys_not_audit`, page:`urge_notManage`, params:`{applyid: "${applyid}"}`}@' @click="handleClick('first')">
  12. 未办理({{notManagePeople}}人)
  13. </li>
  14. </c:if>
  15. <li data-src='@service{ name=`sys_already_dealt`, page:`urge_managed`, params:`{applyid: "${applyid}"}` }@' @click="handleClick('second')">
  16. 已办理({{managePeople}}人)
  17. </li>
  18. <li data-src='@service{ name=`sys_flow_chart`, page:`flow_chart`, params:`{applyid: "${applyid}"}`}@' @click="handleClick('third')">
  19. 流程图
  20. </li>
  21. </ul>
  22. </div>
  23. <div class="space-tabs-content">
  24. <ul>
  25. <li>
  26. <iframe src="" ></iframe>
  27. </li>
  28. </ul>
  29. </div>
  30. </div>
  31. <!--右上方搜索框-->
  32. <div class="tab-right">
  33. <el-button type="primary" v-if="applyInfo" @click="viewInfo()" plain>查看发起内容</el-button>
  34. <c:if test="${isShowUrgeNotManage == true}">
  35. <el-button type="danger" @click="withdraw()" v-if="reclaimFlow == 11" :disabled="activeName == 'first' ? false : true " plain>收回</el-button>
  36. </c:if>
  37. <c:if test="${isShowUrgeNotManage != true}">
  38. <el-button type="danger" @click="withdraw()" v-if="reclaimFlow == 11" :disabled="true" plain>收回</el-button>
  39. </c:if>
  40. </div>
  41. </div>
  42. </div>
  43. </body>
  44. <script type="text/javascript">
  45. var notHandle = '${notHandle}',
  46. alreadyProcessed = '${alreadyProcessed}',
  47. applyInfoData = '${applyInfo}';
  48. space.vue = new Vue({
  49. el: space.appContent,
  50. data() {
  51. return {
  52. reclaimFlow: '${reclaimFlow}',
  53. activeName: 'first', //tab当前项
  54. notManagePeople: notHandle, //未办理人数
  55. managePeople: alreadyProcessed, //已办理人数
  56. applyInfo: space.utils.isNull(applyInfoData) ? undefined : JSON.parse(applyInfoData),
  57. service: {
  58. withdrawApplyUri: '@service{ name=`sys_withdraw_apply`, params:`{applyid: "${applyid}"}`}@'
  59. },
  60. };
  61. },
  62. methods: {
  63. handleClick: function(str) {
  64. this.activeName = str;
  65. },
  66. withdraw() {
  67. var _this = this;
  68. this.$confirm('此操作将收回该流程, 是否继续?', '提示', {
  69. confirmButtonText: '确定',
  70. cancelButtonText: '取消',
  71. type: 'warning'
  72. }).then(() => {
  73. space.utils.ajax({
  74. url: _this.service.withdrawApplyUri,
  75. dataType: 'json',
  76. callback: function(data) {
  77. if (data.code == "success") {
  78. space.topWin.spaceIndex.info.success("收回成功");
  79. space.allFunction.closeDialog(true, undefined);
  80. }
  81. else {
  82. space.topWin.spaceIndex.info.error("系统繁忙,请稍后再试");
  83. }
  84. }
  85. });
  86. }).catch(() => {
  87. this.$message({
  88. type: 'info',
  89. message: '已取消回收流程'
  90. });
  91. });
  92. },
  93. viewInfo() {
  94. if (this.applyInfo) {
  95. var _this = this;
  96. space.plugins.layer.openPage({
  97. open: true,
  98. width: _this.applyInfo.width,
  99. height: _this.applyInfo.height,
  100. title: _this.applyInfo.title,
  101. url: _this.applyInfo.url
  102. });
  103. }
  104. }
  105. }
  106. })
  107. </script>
  108. </html>