(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70d3390f"],{"464a":function(t,e,u){"use strict";var i=u("66da"),a=u.n(i);a.a},"66da":function(t,e,u){},"71f6":function(t,e,u){"use strict";u.d(e,"a",(function(){return a}));u("ac6a"),u("456d");var i=u("b775");function a(t,e){t=t||{};var u=Object.keys(t);return u.forEach((function(u){var a=t[u];"string"===typeof a&&(a={url:a}),a.url="".concat(e).concat(a.url),t[u]=function(t,e){return Object(i["a"])(a,t,e)}})),t}},"96b6":function(t,e,u){"use strict";var i=u("71f6"),a={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};a=Object(i["a"])(a,"/hb-manage-web"),e["a"]=a},ff23:function(t,e,u){"use strict";u.r(e);var i=function(){var t=this,e=t.$createElement,u=t._self._c||e;return u("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"audit-group-list"},[u("div",{staticClass:"audit-group-header"},[u("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toCreateGroup()}}},[t._v("新建审核组")])],1),u("el-table",{attrs:{data:t.groupList}},[u("el-table-column",{attrs:{label:"审核组",prop:"auditGroupName",formatter:function(t,e,u){return u||"--"},"show-overflow-tooltip":""}}),u("el-table-column",{attrs:{label:"管理员","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var u=e.row;return[t._v(t._s(t._f("formatAuditer")(u.auditPerson)))]}}])}),u("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[u("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toCreateGroup(i)}}},[t._v("编辑")]),u("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelGroup(i)}}},[t._v("删除")])]}}])})],1)],1)},a=[],r=u("96b6"),o=r["a"].getAuditGroupList,n=r["a"].delAuditGroup,d={name:"AuditGroupList",data:function(){return{groupList:[],loading:!1}},created:function(){var t=JSON.parse(localStorage.getItem("haoBanUser")||"{}");this.wxEnterpriseId=t.wxEnterpriseId,this.$emit("showTab","/audit-group-list"),this.getGroupList()},methods:{getGroupList:function(){var t=this,e=this;e.loading=!0,o({wxEnterpriseId:this.wxEnterpriseId}).then((function(u){e.loading=!1,t.groupList=u.result||[]})).catch((function(t){e.loading=!1}))},onDelGroup:function(t){var e=this,u=t.auditGroupName,i=t.auditGroupId;this.$confirm("确定删除【 ".concat(u," 】吗？"),"提示",{type:"warning"}).then((function(){n({auditGroupId:i}).then((function(t){e.$message.success("删除成功！"),e.getGroupList()}))}))},toCreateGroup:function(t){var e=t||{},u=e.auditGroupId,i="/create-audit-group";this.$router.push(u?"".concat(i,"?auditGroupId=").concat(u):i)}},filters:{formatAuditer:function(t){if(!Array.isArray(t))return"--";var e=t.map((function(t){return t.staffName||"--"}));return e.length>0?e.join("、"):"--"}}},s=d,p=(u("464a"),u("2877")),l=Object(p["a"])(s,i,a,!1,null,"ba36b180",null);e["default"]=l.exports}}]);