7f3c8218deaa661d58826da9cbb6e951ea730f850465f0b6bbda361c1b108a2b44acf79ce057eb58efa942134a5224cdebe72216a5200078919043f98ca3 7.0 KB

1
  1. {"code":"(window[\"webpackJsonp\"]=window[\"webpackJsonp\"]||[]).push([[\"chunk-2d216d59\"],{c3c6:function(e,t,a){\"use strict\";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a(\"div\",{staticClass:\"app-container\"},[a(\"el-row\",{attrs:{gutter:24}},[a(\"el-col\",{attrs:{span:24,xs:24}},[a(\"el-form\",{ref:\"queryForm\",attrs:{model:e.queryParams,size:\"small\",inline:!0,\"label-width\":\"68px\"}},[a(\"el-form-item\",{attrs:{label:\"审核状态\",prop:\"approveStatus\"}},[a(\"el-select\",{staticStyle:{width:\"240px\"},attrs:{placeholder:\"请选择审核状态\",clearable:\"\"},model:{value:e.queryParams.approveStatus,callback:function(t){e.$set(e.queryParams,\"approveStatus\",t)},expression:\"queryParams.approveStatus\"}},e._l(e.approveStatusOptions,(function(e){return a(\"el-option\",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a(\"el-form-item\",{attrs:{label:\"审核结果\",prop:\"approveResult\"}},[a(\"el-select\",{staticStyle:{width:\"240px\"},attrs:{placeholder:\"请选择审核结果\",clearable:\"\"},model:{value:e.queryParams.approveResult,callback:function(t){e.$set(e.queryParams,\"approveResult\",t)},expression:\"queryParams.approveResult\"}},e._l(e.approveResultOptions,(function(e){return a(\"el-option\",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a(\"el-form-item\",[a(\"el-button\",{attrs:{type:\"primary\",icon:\"el-icon-search\",size:\"mini\"},on:{click:e.handleQuery}},[e._v(\"搜索\")])],1)],1),a(\"div\",{staticStyle:{\"padding-top\":\"10px\"}},[a(\"vxe-table\",{ref:\"xTable\",staticClass:\"mytable-style\",attrs:{align:\"center\",loading:e.loading,\"auto-resize\":\"\",border:\"\",resizable:\"\",\"export-config\":\"\",\"highlight-current-row\":\"\",\"show-overflow\":\"\",\"max-height\":\"700\",data:e.approveList,\"radio-config\":{trigger:\"row\"}}},[a(\"vxe-table-column\",{attrs:{field:\"moduleName\",title:\"模块名称\"}}),a(\"vxe-table-column\",{attrs:{field:\"operation\",title:\"执行操作\",formatter:e.operationFormat}}),a(\"vxe-table-column\",{attrs:{field:\"approveStatus\",title:\"审核状态\",formatter:e.approveStatusFormat}}),a(\"vxe-table-column\",{attrs:{field:\"createTime\",title:\"提交时间\"}}),a(\"vxe-table-column\",{attrs:{field:\"parameterContent\",title:\"内容\"}}),a(\"vxe-table-column\",{attrs:{field:\"approveResult\",title:\"审核结果\",formatter:e.approveResultFormat}}),a(\"vxe-table-column\",{attrs:{title:\"操作\",width:\"320\"},scopedSlots:e._u([{key:\"default\",fn:function(t){return 0==t.row.approveStatus?[a(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"approveManager:approve:submitApprove\"],expression:\"['approveManager:approve:submitApprove']\"}],attrs:{size:\"mini\",type:\"text\",icon:\"el-icon-check\"},on:{click:function(a){return e.handleApprove(t.row,0)}}},[e._v(\"通过 \")]),a(\"el-button\",{directives:[{name:\"hasPermi\",rawName:\"v-hasPermi\",value:[\"approveManager:approve:submitApprove\"],expression:\"['approveManager:approve:submitApprove']\"}],attrs:{size:\"mini\",type:\"text\",icon:\"el-icon-close\"},on:{click:function(a){return e.handleApprove(t.row,1)}}},[e._v(\"未通过 \")])]:void 0}}],null,!0)})],1),a(\"vxe-pager\",{directives:[{name:\"show\",rawName:\"v-show\",value:e.showTable,expression:\"showTable\"}],attrs:{perfect:\"\",\"current-page\":e.currentPage,\"page-size\":e.pageSize,total:e.total,\"page-sizes\":[10,50,100],layouts:[\"PrevJump\",\"PrevPage\",\"JumpNumber\",\"NextPage\",\"NextJump\",\"Sizes\",\"FullJump\",\"Total\"]},on:{\"update:currentPage\":function(t){e.currentPage=t},\"update:current-page\":function(t){e.currentPage=t},\"update:pageSize\":function(t){e.pageSize=t},\"update:page-size\":function(t){e.pageSize=t},\"page-change\":e.handlePageChange}})],1)],1)],1)],1)},o=[],n=a(\"c7eb\"),l=a(\"1da1\"),s=a(\"2ef0\"),i={name:\"User\",data:function(){return{approveStatusOptions:[{value:\"0\",label:\"待审核\"},{value:\"1\",label:\"已审核\"}],approveResultOptions:[{value:\"0\",label:\"通过\"},{value:\"1\",label:\"未通过\"}],operationOptions:[{value:\"0\",label:\"新增\"},{value:\"1\",label:\"修改\"},{value:\"2\",label:\"注销\"},{value:\"3\",label:\"授权\"}],loading:!0,showTable:!0,ids:[],single:!0,multiple:!0,currentPage:1,pageSize:10,total:0,approveList:null,title:\"\",open:!1,form:{},queryParams:{approveStatus:void 0,approveResult:void 0},edit:!1}},watch:{},created:function(){this.getList()},methods:{handlePageChange:function(e){var t=e.currentPage,a=e.pageSize;this.currentPage=t,this.pageSize=a,this.getList()},operationFormat:function(e){for(var t=e.cellValue,a=\"未知的类型\",r=0;r<this.operationOptions.length;r++)\"0\"==t?a=\"新增\":\"1\"==t?a=\"修改\":\"2\"==t?a=\"注销\":\"3\"==t&&(a=\"授权\");return a},approveStatusFormat:function(e){for(var t=e.cellValue,a=\"未知的类型\",r=0;r<this.approveStatusOptions.length;r++)\"0\"==t?a=\"待审批\":\"1\"==t&&(a=\"已审批\");return a},approveResultFormat:function(e){for(var t=e.cellValue,a=\"\",r=0;r<this.approveResultOptions.length;r++)\"0\"==t?a=\"通过\":\"1\"==t&&(a=\"未通过\");return a},getList:function(){var e=this;return Object(l[\"a\"])(Object(n[\"a\"])().mark((function t(){var a,r,o;return Object(n[\"a\"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$axios.get(\"/sysPolicyController/getLicenseKey\").then((function(e){a=e.data.sysTime,r=e.data.lk})).catch((function(e){}));case 2:return e.loading=!0,o={currentPage:e.currentPage,pageSize:e.pageSize,approveStatus:e.queryParams.approveStatus,approveResult:e.queryParams.approveResult,sysTime:a,lk:r},t.next=6,e.$axios.get(\"/sysApproveController/getAll\",{params:o}).then((function(t){e.approveList=t.data.records,e.total=t.data.total,\"\"==t.data.records?e.showTable=!1:e.showTable=!0,e.loading=!1})).catch((function(t){e.loading=!1}));case 6:case\"end\":return t.stop()}}),t)})))()},handleQuery:Object(s[\"debounce\"])((function(){this.currentPage=1,this.pageSize=10,this.getList()}),1e3),handleApprove:function(e,t){var a=this,r=\"\";r=0==t?\"【通过】\":\"【未通过】\",this.$confirm(\"确认审核结果\"+r+\"?\",\"提示\",{confirmButtonText:\"确定\",cancelButtonText:\"取消\",type:\"warning\"}).then((function(){e.approveResult=t,a.submitApprove(e)})).catch((function(){}))},submitApprove:Object(s[\"debounce\"])(function(){var e=Object(l[\"a\"])(Object(n[\"a\"])().mark((function e(t){var a,r,o=this;return Object(n[\"a\"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.$axios.get(\"/sysPolicyController/getLicenseKey\").then((function(e){a=e.data.sysTime,r=e.data.lk})).catch((function(e){}));case 2:return t.sysTime=a,t.lk=r,e.next=6,this.$axios.post(\"/sysApproveController/submitApprove\",t).then((function(e){0==e.code&&(o.$message.success(\"审核成功\"),o.getList()),1==e.code&&(o.$message.error(e.data),o.getList())})).catch((function(e){o.getList()}));case 6:case\"end\":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),1e3)}},p=i,u=a(\"2877\"),c=Object(u[\"a\"])(p,r,o,!1,null,null,null);t[\"default\"]=c.exports}}]);","extractedComments":[]}