(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96de48a8"],{"3d59":function(t,i,s){},"51ad":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-button",{attrs:{type:"primary"},on:{click:function(i){return t.create("增加环节")}}},[t._v("添加审核")]):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("自定义环节")])]),e("div",{staticClass:"btn"},[e("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(s){return t.deleteFun(i.auditId)}}},[t._v("删除")]),e("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(s){return t.create("编辑环节",i)}}},[t._v("编辑")])],1)]),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)])]),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"),r={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["j"])().then((function(i){t.list=i.data,t.total=i.data.total,t.listLoading=!1}))},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].auditId)):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["i"])(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["h"])(t).then((function(t){i.fetchData(),i.$message({type:"success",message:"删除成功!"})}))}))}}},c=r,u=(s("891c"),s("2877")),d=Object(u["a"])(c,e,a,!1,null,"3efb819d",null);i["default"]=d.exports},"891c":function(t,i,s){"use strict";s("3d59")}}]);