(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cde30aa"],{"365c":function(t,e,r){"use strict";r.d(e,"Q",(function(){return o})),r.d(e,"z",(function(){return a})),r.d(e,"l",(function(){return s})),r.d(e,"y",(function(){return i})),r.d(e,"O",(function(){return u})),r.d(e,"P",(function(){return l})),r.d(e,"eb",(function(){return c})),r.d(e,"fb",(function(){return p})),r.d(e,"c",(function(){return d})),r.d(e,"o",(function(){return m})),r.d(e,"D",(function(){return f})),r.d(e,"T",(function(){return b})),r.d(e,"E",(function(){return h})),r.d(e,"d",(function(){return g})),r.d(e,"U",(function(){return v})),r.d(e,"p",(function(){return k})),r.d(e,"J",(function(){return x})),r.d(e,"K",(function(){return y})),r.d(e,"bb",(function(){return j})),r.d(e,"u",(function(){return O})),r.d(e,"L",(function(){return w})),r.d(e,"j",(function(){return _})),r.d(e,"cb",(function(){return $})),r.d(e,"w",(function(){return D})),r.d(e,"I",(function(){return z})),r.d(e,"i",(function(){return q})),r.d(e,"Z",(function(){return M})),r.d(e,"t",(function(){return P})),r.d(e,"g",(function(){return V})),r.d(e,"A",(function(){return L})),r.d(e,"f",(function(){return C})),r.d(e,"W",(function(){return H})),r.d(e,"r",(function(){return S})),r.d(e,"G",(function(){return T})),r.d(e,"h",(function(){return R})),r.d(e,"s",(function(){return F})),r.d(e,"H",(function(){return E})),r.d(e,"a",(function(){return I})),r.d(e,"m",(function(){return J})),r.d(e,"B",(function(){return U})),r.d(e,"v",(function(){return A})),r.d(e,"R",(function(){return N})),r.d(e,"X",(function(){return B})),r.d(e,"Y",(function(){return G})),r.d(e,"ab",(function(){return K})),r.d(e,"C",(function(){return Q})),r.d(e,"b",(function(){return W})),r.d(e,"S",(function(){return X})),r.d(e,"n",(function(){return Y})),r.d(e,"M",(function(){return Z})),r.d(e,"N",(function(){return tt})),r.d(e,"k",(function(){return et})),r.d(e,"db",(function(){return rt})),r.d(e,"x",(function(){return nt})),r.d(e,"F",(function(){return ot})),r.d(e,"e",(function(){return at})),r.d(e,"V",(function(){return st})),r.d(e,"q",(function(){return it}));var n=r("b775");function o(t){return Object(n["a"])({url:"/api/v1/kxpms/workbench/query",method:"post",data:t})}function a(t){return Object(n["a"])({url:"/api/v1/kxpms/login/login",method:"post",data:t})}function s(t){return Object(n["a"])({url:"/api/v1/kxpms/user/add",method:"post",data:t})}function i(t){return Object(n["a"])({url:"/api/v1/kxpms/user/delete/".concat(t),method:"post"})}function u(t){return Object(n["a"])({url:"/api/v1/kxpms/user/get",method:"post",data:t})}function l(t){return Object(n["a"])({url:"/api/v1/kxpms/user/list",method:"post",data:t})}function c(t,e){return Object(n["a"])({url:"/api/v1/kxpms/user/update/".concat(t),method:"post",data:e})}function p(t){return Object(n["a"])({url:"/api/v1/kxpms/updatePassword",method:"post",data:t})}function d(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/add",method:"post",data:t})}function m(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/delete/".concat(t),method:"post"})}function f(t){return Object(n["a"])({url:"/api/v1/kxpms/depot/list",method:"post",data:t})}function b(t,e){return Object(n["a"])({url:"/api/v1/kxpms/depot/update/".concat(t),method:"post",data:e})}function h(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/list",method:"post",data:t})}function g(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/add",method:"post",data:t})}function v(t,e){return Object(n["a"])({url:"/api/v1/kxpms/dict/update/".concat(t),method:"post",data:e})}function k(t){return Object(n["a"])({url:"/api/v1/kxpms/dict/delete/".concat(t),method:"post"})}function x(t){return Object(n["a"])({url:"/api/v1/kxpms/project/get",method:"post",data:t})}function y(t){return Object(n["a"])({url:"/api/v1/kxpms/project/list",method:"post",data:t})}function j(t,e){return Object(n["a"])({url:"/api/v1/kxpms/project/update/".concat(t),method:"post",data:e})}function O(t){return Object(n["a"])({url:"/api/v1/kxpms/project/delete/".concat(t),method:"post"})}function w(t){return Object(n["a"])({url:"/api/v1/kxpms/role/list",method:"post",data:t})}function _(t){return Object(n["a"])({url:"/api/v1/kxpms/role/add",method:"post",data:t})}function $(t,e){return Object(n["a"])({url:"/api/v1/kxpms/role/update/".concat(t),method:"post",data:e})}function D(t){return Object(n["a"])({url:"/api/v1/kxpms/role/delete/".concat(t),method:"delete"})}function z(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/list",method:"post",data:t})}function q(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/add",method:"post",data:t})}function M(t,e){return Object(n["a"])({url:"/api/v1/kxpms/permission/update/".concat(t),method:"post",data:e})}function P(t){return Object(n["a"])({url:"/api/v1/kxpms/permission/delete/".concat(t),method:"post"})}function V(t){return Object(n["a"])({url:"/api/v1/kxpms/system/addProject",method:"post",data:t})}function L(t){return Object(n["a"])({url:"/api/v1/kxpms/system/exportProject",method:"post",data:t})}function C(t){return Object(n["a"])({url:"/api/v1/kxpms/flow/add",method:"post",data:t})}function H(t,e){return Object(n["a"])({url:"/api/v1/kxpms/flow/update/".concat(t),method:"post",data:e})}function S(t){return Object(n["a"])({url:"/api/v1/kxpms/flow/delete/".concat(t),method:"delete"})}function T(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getFlowList",method:"post",data:t})}function R(t){return Object(n["a"])({url:"/api/v1/kxpms/payback/add",method:"post",data:t})}function F(t){return Object(n["a"])({url:"/api/v1/kxpms/payback/delete/".concat(t),method:"post"})}function E(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getPaybackList",method:"post",data:t})}function I(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/add",method:"post",data:t})}function J(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/delete/".concat(t),method:"post"})}function U(t){return Object(n["a"])({url:"/api/v1/kxpms/annex/list",method:"post",data:t})}function A(t){return Object(n["a"])({url:"/api/v1/kxpms/system/deleteProjectUser",method:"post",data:t})}function N(t){return Object(n["a"])({url:"/api/v1/kxpms/system/modifyProjectUser",method:"post",data:t})}function B(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updateFlow",method:"post",data:t})}function G(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updatePayback",method:"post",data:t})}function K(t){return Object(n["a"])({url:"/api/v1/kxpms/system/updateProductionPlan",method:"post",data:t})}function Q(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/list",method:"post",data:t})}function W(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/add",method:"post",data:t})}function X(t,e){return Object(n["a"])({url:"/api/v1/kxpms/calendar/update/".concat(t),method:"post",data:e})}function Y(t){return Object(n["a"])({url:"/api/v1/kxpms/calendar/delete/".concat(t),method:"post"})}function Z(t){return Object(n["a"])({url:"/api/v1/kxpms/system/getRoleUsers",method:"post",data:t})}function tt(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/list",method:"post",data:t})}function et(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/add",method:"post",data:t})}function rt(t,e){return Object(n["a"])({url:"/api/v1/kxpms/summary/update/".concat(t),method:"post",data:e})}function nt(t){return Object(n["a"])({url:"/api/v1/kxpms/summary/delete/".concat(t),method:"post"})}function ot(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/list",method:"post",data:t})}function at(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/add",method:"post",data:t})}function st(t,e){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/update/".concat(t),method:"post",data:e})}function it(t){return Object(n["a"])({url:"/api/v1/kxpms/netdisc/delete",method:"post",data:t})}},"5c3b":function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"app-container"},[r("el-form",{ref:"form",attrs:{inline:!0,model:t.form,size:"mini"}},[r("el-form-item",{attrs:{label:"帐号",prop:"uuid"}},[r("el-select",{attrs:{filterable:"",placeholder:"请输入帐号"},model:{value:t.form.uuid,callback:function(e){t.$set(t.form,"uuid",e)},expression:"form.uuid"}},t._l(t.users,(function(t,e){return r("el-option",{key:e,attrs:{label:t.account,value:t.uuid}})})),1)],1),r("el-form-item",{attrs:{label:"角色",prop:"role"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择角色"},model:{value:t.form.role,callback:function(e){t.$set(t.form,"role",e)},expression:"form.role"}},t._l(t.roles,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),r("el-form-item",{attrs:{label:"部门",prop:"depot"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择角色"},model:{value:t.form.depot,callback:function(e){t.$set(t.form,"depot",e)},expression:"form.depot"}},t._l(t.depots,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("查询")])],1),r("el-form-item",[r("el-button",{on:{click:function(e){return t.onReset("form")}}},[t._v("重置")])],1),r("el-form-item",[r("el-button",{attrs:{type:"warning"},on:{click:t.onAdd}},[t._v("添加")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{"element-loading-text":"Loading",data:t.list,size:"mini",border:"",stripe:"",fit:"","highlight-current-row":""}},[r("el-table-column",{attrs:{prop:"username",label:"用户名",align:"center",width:"150"}}),r("el-table-column",{attrs:{prop:"account",label:"账号",align:"center",width:"120"}}),r("el-table-column",{attrs:{prop:"role.name",label:"角色",width:"120","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{prop:"depot.name",label:"部门",width:"120","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{prop:"contact",label:"联系方式",width:"150"}}),r("el-table-column",{attrs:{prop:"birthday",label:"出生年月",width:"150"}}),r("el-table-column",{attrs:{prop:"email",label:"邮箱",width:"180","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{prop:"hometown",label:"籍贯","min-width":"100"}}),r("el-table-column",{attrs:{prop:"entry_time",label:"入职时间",width:"150"}}),r("el-table-column",{attrs:{prop:"expire_date",label:"到期时间",width:"150"}},[r("template",{slot:"header"},[r("el-tooltip",{attrs:{effect:"dark",content:"劳动合同到期时间",placement:"top"}},[r("span",[t._v("到期时间")])])],1)],2),r("el-table-column",{attrs:{prop:"remarks",label:"备注",width:"180","show-overflow-tooltip":!0}}),r("el-table-column",{attrs:{prop:"create_at",label:"创建时间",width:"150"}}),r("el-table-column",{attrs:{label:"操作",align:"center",width:"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(r){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),r("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(r){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),r("div",{staticClass:"page-wrapper"},[r("el-pagination",{attrs:{"current-page":t.form.pagenum,background:"",small:"","page-size":t.form.pagesize,"pager-count":5,layout:"pager, prev, next, total",total:t.total},on:{"current-change":t.handleCurrentChange,"update:currentPage":function(e){return t.$set(t.form,"pagenum",e)},"update:current-page":function(e){return t.$set(t.form,"pagenum",e)}}})],1),r("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"45%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-form",{ref:"post",attrs:{model:t.post,"status-icon":"",rules:t.rules,inline:!0,size:"mini","label-width":"80px"}},[r("el-form-item",{attrs:{label:"账号",prop:"account"}},[r("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.account,callback:function(e){t.$set(t.post,"account",e)},expression:"post.account"}})],1),r("el-form-item",{attrs:{label:"密码",prop:"password"}},[r("el-input",{attrs:{type:"password",autocomplete:"off"},model:{value:t.post.password,callback:function(e){t.$set(t.post,"password",e)},expression:"post.password"}})],1),r("el-form-item",{attrs:{label:"用户名",prop:"username"}},[r("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.username,callback:function(e){t.$set(t.post,"username",e)},expression:"post.username"}})],1),r("el-form-item",{attrs:{label:"性别",prop:"gender"}},[r("el-radio-group",{model:{value:t.post.gender,callback:function(e){t.$set(t.post,"gender",e)},expression:"post.gender"}},[r("el-radio",{attrs:{label:0}},[t._v("女")]),r("el-radio",{attrs:{label:1}},[t._v("男")])],1)],1),r("el-form-item",{attrs:{label:"出生年月",prop:"birthday"}},[r("el-date-picker",{attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择出生年月"},model:{value:t.post.birthday,callback:function(e){t.$set(t.post,"birthday",e)},expression:"post.birthday"}})],1),r("el-form-item",{attrs:{label:"籍贯",prop:"hometown"}},[r("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.hometown,callback:function(e){t.$set(t.post,"hometown",e)},expression:"post.hometown"}})],1),r("el-form-item",{attrs:{label:"联系方式",prop:"contact"}},[r("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.contact,callback:function(e){t.$set(t.post,"contact",e)},expression:"post.contact"}})],1),r("el-form-item",{attrs:{label:"邮箱",prop:"email"}},[r("el-input",{attrs:{type:"email",autocomplete:"off"},model:{value:t.post.email,callback:function(e){t.$set(t.post,"email",e)},expression:"post.email"}})],1),r("el-form-item",{attrs:{label:"部门",prop:"depot"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择部门"},model:{value:t.post.depot,callback:function(e){t.$set(t.post,"depot",e)},expression:"post.depot"}},t._l(t.depots,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),r("el-form-item",{attrs:{label:"角色",prop:"role"}},[r("el-select",{attrs:{filterable:"",placeholder:"请选择角色"},model:{value:t.post.role,callback:function(e){t.$set(t.post,"role",e)},expression:"post.role"}},t._l(t.roles,(function(t,e){return r("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),r("el-form-item",{attrs:{label:"入职时间",prop:"entry_time"}},[r("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择入职时间"},model:{value:t.post.entry_time,callback:function(e){t.$set(t.post,"entry_time",e)},expression:"post.entry_time"}})],1),r("el-form-item",{attrs:{label:"到期时间",prop:"expire_date"}},[r("el-date-picker",{attrs:{format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择到期时间"},model:{value:t.post.expire_date,callback:function(e){t.$set(t.post,"expire_date",e)},expression:"post.expire_date"}})],1),r("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[r("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.remarks,callback:function(e){t.$set(t.post,"remarks",e)},expression:"post.remarks"}})],1)],1),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(e){return t.submitForm("post")}}},[t._v("提交")]),r("el-button",{attrs:{type:"success",size:"mini",plain:""},on:{click:function(e){return t.onReset("post")}}},[t._v("重置")]),r("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关闭")])],1)],1)],1)},o=[],a=(r("95e8"),r("2a39"),r("365c")),s=r("ed08"),i={data:function(){return{data:{},total:0,list:[],isLoading:!1,users:[],depots:[],roles:[],form:{uuid:null,role:null,depot:null,pagesize:15,pagenum:1},dialogTitle:"",dialogVisible:!1,currentValue:null,currentIndex:0,post:{account:null,username:null,contact:null,birthday:null,gender:1,email:null,hometown:null,entry_time:null,expire_date:null,depot:null,role:null,remarks:""},rules:{account:[{type:"string",required:!0,message:"账号不能为空",trigger:"blur"}],username:[{type:"string",required:!0,message:"用户名不能为空",trigger:"blur"},{min:1,max:20,message:"字符串长度在 1 到 20 之间",trigger:"blur"}],password:[{type:"string",required:!0,message:"密码不能为空",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"}],contact:[{type:"string",required:!0,message:"手机号不能为空",trigger:"blur"},{len:11,message:"手机号长度为11",trigger:"blur"}],birthday:[{required:!1,message:"出生年月不能为空",trigger:"blur"}],gender:[{type:"number",required:!0,message:"性别不能为空",trigger:"blur"}],email:[{type:"email",required:!0,message:"邮箱不能为空",trigger:"blur"}],hometown:[{type:"string",required:!0,message:"籍贯不能为空",trigger:"blur"}],entry_time:[{required:!1,message:"入职时间不能为空",trigger:"blur"}],expire_date:[{required:!1,message:"到期时间不能为空",trigger:"blur"}],depot:[{type:"string",required:!0,message:"部门不能为空",trigger:"blur"}],role:[{type:"string",required:!0,message:"角色不能为空",trigger:"blur"}],remarks:[{type:"string",required:!1,message:"备注不能为空",trigger:"blur"}]}}},methods:{fetchData:function(t){var e=this;this.isLoading=!0,Object(a["P"])(Object.assign({pagenum:this.form.pagenum,pagesize:this.form.pagesize},t)).then((function(t){e.total=t.count,e.list=t.data.map((function(t){return t.gender=1==t.gender?"男":"女","user@example.com"==t.email&&(t.email=null),t}))})).catch((function(t){e.list=t.data,console.log(t.message)})).finally((function(){e.isLoading=!1}))},fetchRoleData:function(){var t=this;Object(a["L"])({scope_type:"list"}).then((function(e){t.roles=e.data})).catch((function(t){console.log(t.message)}))},fetchDepotData:function(){var t=this;Object(a["D"])({scope_type:"list"}).then((function(e){t.depots=e.data})).catch((function(t){console.log(t.message)}))},fetchSelectData:function(){var t=this;Object(a["P"])({scope_type:"list"}).then((function(e){200==e.code&&(t.users=e.data)})).catch((function(t){console.log(t.message)}))},handleSizeChange:function(t){this.form.pagesize=t,this.fetchData(Object(s["e"])(this.form))},handleCurrentChange:function(t){this.form.pagenum=t,this.fetchData(Object(s["e"])(this.form))},handleEdit:function(t,e){this.post.account=e.account,this.post.username=e.username,this.post.contact=e.contact,this.post.birthday=e.birthday,this.post.email=e.email,this.post.hometown=e.hometown,this.post.entry_time=e.entry_time,this.post.expire_date=e.expire_date,this.post.role=e.role_id,this.post.depot=e.depot_id,this.post.remarks=e.remarks,this.dialogTitle="编辑",this.dialogVisible=!0,this.currentValue=e,this.currentIndex=t,this.rules.password[0].required=!1},handleDelete:function(t,e){var r=this;this.$alert("您确定要删除么?删除操作将不可恢复。如需取消操作,请点击右上角关闭按钮。","删除提醒",{confirmButtonText:"确定",callback:function(n){"confirm"==n&&Object(a["y"])(e.uuid).then((function(e){console.log(e),r.total-=1,r.$delete(r.list,t),r.$message({type:"success",message:"成功删除第".concat(t,"行")})})).catch((function(t){r.$message.error(t.message)}))}})},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){var r=!0;return t?(e.post.username||(e.post.username=e.post.account),"添加"===e.dialogTitle?Object(a["l"])(Object(s["e"])(e.post)).then((function(t){console.log(t),e.$message({type:"success",message:"添加成功"}),e.fetchData()})).catch((function(t){e.$message.error(t.message)})):"编辑"===e.dialogTitle&&Object(a["eb"])(e.currentValue.uuid,Object(s["a"])(e.post,e.currentValue)).then((function(t){console.log(t),e.$message({type:"success",message:"更新成功"}),e.fetchData()})).catch((function(t){e.$message.error(t.message)}))):r=!1,e.dialogVisible=!1,r}))},onAdd:function(){this.dialogTitle="添加",this.dialogVisible=!0,this.rules.password[0].required=!0},onSubmit:function(){this.form.pagenum=1,this.form.pagesize=15,this.fetchData(Object(s["e"])(this.form))},onReset:function(t){this.form.account=null,this.form.username=null,this.form.pagesize=15,this.form.pagenum=1,this.$refs[t].resetFields(),this.fetchData()}},mounted:function(){},created:function(){this.fetchData(),this.fetchSelectData(),this.fetchRoleData(),this.fetchDepotData();var t=JSON.parse(sessionStorage.getItem("user"));t&&"无权限"!=t.role.permission.users||this.$router.push("/403")}},u=i,l=(r("d570"),r("5d22")),c=Object(l["a"])(u,n,o,!1,null,"bb35bc92",null);e["default"]=c.exports},a752:function(t,e,r){},d570:function(t,e,r){"use strict";r("a752")}}]);