(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0814c2c"],{"223c":function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticClass:"app-container"},[0==t.list.length?e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后，后续添加岗位时都要经过审核，否则直接通过。",placement:"right-start"}},[e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.postAutoGenerate}},[t._v("开启审核")])],1):t._e(),e("div",{staticClass:"app-container1 flex"},[t._l(t.list,(function(i,a){return e("div",{key:a,staticClass:"flex"},[e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("div",{staticClass:"flex2"},[e("span",[t._v(t._s(i.auditName))]),e("i",[t._v(t._s(1==i.auditType?"固定环节":"自定义环节"))])]),e("div",{staticClass:"btn"},[2==i.auditType?e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(s){return t.deleteFun(i.deptPostAuditId)}}},[t._v("删除")]):t._e(),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return t.create("编辑环节",i)}}},[t._v("编辑")])],1)]),1==i.auditType?t._l(i.documentVoList,(function(i,s){return e("div",{key:s,staticClass:"content"},[e("div",{staticClass:"flex unit-name"},[e("i",{staticClass:"text name1"},[t._v(t._s(i.username))]),e("i",{staticClass:"text"},[t._v("审核员列表")])]),e("div",{staticClass:"user flex"},t._l(i.documentList,(function(i,s){return e("div",{key:s,staticClass:"flex1"},[i.avatar?e("el-image",{staticClass:"photo",attrs:{src:i.avatar,"preview-src-list":[i.avatar]}}):e("span",{staticClass:"photo"},[t._v("暂无")]),e("span",{staticClass:"name"},[t._v(t._s(i.name))])],1)})),0)])})):[e("div",{staticClass:"content"},[e("i",{staticClass:"text"},[t._v("审核员列表")]),e("div",{staticClass:"user flex"},[e("div",[e("i",{staticClass:"el-icon-plus photo",on:{click:function(s){return t.adduserFun(i)}}})]),t._l(i.userList,(function(i,s){return e("div",{key:s,staticClass:"flex1"},[i.avatar?e("el-image",{staticClass:"photo",attrs:{src:i.avatar,"preview-src-list":[i.avatar]}}):e("span",{staticClass:"photo"},[t._v("暂无")]),e("span",{staticClass:"name"},[t._v(t._s(i.name))])],1)}))],2)])]],2),e("img",{staticClass:"arrow",attrs:{src:s("c5d4"),alt:""}}),e("el-button",{staticClass:"add-link",attrs:{type:"primary",size:"mini"},on:{click:function(i){return t.create("增加环节",a)}}},[t._v("增加环节")])],1)})),t.userDialogVisible?e("addUser",{attrs:{form1:t.form,dialogVisible:t.userDialogVisible},on:{close:function(i){t.userDialogVisible=!1},getform:t.getform}}):t._e(),t.dialogVisible?e("handleLink",{attrs:{form1:t.form,dialogTitle:t.dialogTitle,dialogVisible:t.dialogVisible},on:{close:function(i){t.dialogVisible=!1},getform:t.getform}}):t._e()],2)],1)},a=[],n=(s("e9c4"),s("b64b"),s("f156")),l=s("63f3"),o=s("77c4"),c={components:{handleLink:n["a"],addUser:l["a"]},filters:{},computed:{},data:function(){return{list:[],listLoading:!0,dialogVisible:!1,userDialogVisible:!1,dialogTitle:null,form_copy:null,form:{personAdminType:1,personAdminId:null,userIdList:[],isExtra:!1,auditType:2,auditName:null,checkContent:null,rectificationContent:null,rejectContent:null}}},created:function(){this.fetchData(),this.form_copy=JSON.parse(JSON.stringify(this.form))},watch:{"form.aaaaa":{handler:function(t,i){this.form.addCustomList=[]}}},methods:{fetchData:function(){var t=this;this.listLoading=!0,Object(o["n"])().then((function(i){t.list=i.data,t.total=i.data.total,t.listLoading=!1}))},postAutoGenerate:function(){var t=this;Object(o["k"])().then((function(i){t.fetchData()}))},create:function(t,i){"增加环节"===t?(this.form=JSON.parse(JSON.stringify(this.form_copy)),this.list[i+1]&&(this.form.nextStepId=this.list[i+1].deptPostAuditId)):this.form=Object.assign(this.form,i),this.dialogTitle=t,this.dialogVisible=!0},adduserFun:function(t){this.form=Object.assign(this.form,t),this.userDialogVisible=!0},getform:function(t,i){var s=this;Object(o["m"])(t).then((function(t){s.fetchData(),i?s.userDialogVisible=!1:s.dialogVisible=!1,s.$message({type:"success",message:"操作成功!"})}))},deleteFun:function(t){var i=this;this.$confirm("确定要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning",center:!0}).then((function(){Object(o["l"])(t).then((function(t){i.fetchData(),i.$message({type:"success",message:"删除成功!"})}))}))}}},r=c,u=(s("78a4"),s("2877")),d=Object(u["a"])(r,e,a,!1,null,"3c8e7d60",null);i["default"]=d.exports},"78a4":function(t,i,s){"use strict";s("aa16")},aa16:function(t,i,s){}}]);