(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1cb19c5b"],{"0256":function(t,e,n){!function(e,n){t.exports=n()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";var r=n(2);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i={isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isArray:function(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)},isDate:function(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)},isNumber:function(t){return t instanceof Number||"[object Number]"===Object.prototype.toString.call(t)},isString:function(t){return t instanceof String||"[object String]"===Object.prototype.toString.call(t)},isBoolean:function(t){return"boolean"==typeof t},isFunction:function(t){return"function"==typeof t},isNull:function(t){return null==t},isPlainObject:function(t){if(t&&"[object Object]"===Object.prototype.toString.call(t)&&t.constructor===Object&&!hasOwnProperty.call(t,"constructor")){var e;for(e in t);return void 0===e||hasOwnProperty.call(t,e)}return!1},extend:function(){var t,e,n,r,i,a,u=arguments[0]||{},c=1,s=arguments.length,l=!1;for("boolean"==typeof u&&(l=u,u=arguments[1]||{},c=2),"object"===(0,o.default)(u)||this.isFunction(u)||(u={}),s===c&&(u=this,--c);ca&&(r=r[a])}else r=t[o];return n.length>0?this.getKeyValue(r,n):r},setKeyValue:function(t,e,n,r){if(!this.isObject(t))return!1;var o=null;if(this.isArray(e)?o=e:this.isString(e)&&(o=e.split("."),r=t),null==o||0==o.length)return!1;var i=null,a=0,u=o.shift(),c=u.match(new RegExp("^(\\w+)\\[(\\d+)\\]$"));if(c){if(u=c[1],a=c[2],i=t[u],this.isArray(i)&&i.length>a){if(o.length>0)return this.setKeyValue(i[a],o,n,r);i[a]=n}}else{if(o.length>0)return this.setKeyValue(t[u],o,n,r);t[u]=n}return r},toArray:function(t,e,n){var r="";if(!this.isObject(t))return[];this.isString(n)&&(r=n);var o=[];for(var i in t){var a=t[i],u={};this.isObject(a)?u=a:u[r]=a,e&&(u[e]=i),o.push(u)}return o},toObject:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"id",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={},o=0;o0?t.splice(t.indexOf(n[0]),1):t.push(e)},toSimpleArray:function(t,e){var n=[];if(this.isObject(t))for(var r=0,o=Object.keys(t);r1?arguments[1]:void 0)}})},3422:function(t,e,n){"use strict";var r=n("4292"),o=n("6ff7"),i=n("11a1"),a=n("8531");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(i(this)).indexOf(o(t),arguments.length>1?arguments[1]:void 0)}})},"365c":function(t,e,n){"use strict";n.d(e,"Q",(function(){return o})),n.d(e,"z",(function(){return i})),n.d(e,"l",(function(){return a})),n.d(e,"y",(function(){return u})),n.d(e,"O",(function(){return c})),n.d(e,"P",(function(){return s})),n.d(e,"eb",(function(){return l})),n.d(e,"fb",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"o",(function(){return f})),n.d(e,"D",(function(){return m})),n.d(e,"T",(function(){return h})),n.d(e,"E",(function(){return b})),n.d(e,"d",(function(){return g})),n.d(e,"U",(function(){return v})),n.d(e,"p",(function(){return y})),n.d(e,"J",(function(){return j})),n.d(e,"K",(function(){return O})),n.d(e,"bb",(function(){return x})),n.d(e,"u",(function(){return k})),n.d(e,"L",(function(){return w})),n.d(e,"j",(function(){return S})),n.d(e,"cb",(function(){return _})),n.d(e,"w",(function(){return A})),n.d(e,"I",(function(){return C})),n.d(e,"i",(function(){return P})),n.d(e,"Z",(function(){return T})),n.d(e,"t",(function(){return z})),n.d(e,"g",(function(){return D})),n.d(e,"A",(function(){return $})),n.d(e,"f",(function(){return L})),n.d(e,"W",(function(){return N})),n.d(e,"r",(function(){return V})),n.d(e,"G",(function(){return M})),n.d(e,"h",(function(){return U})),n.d(e,"s",(function(){return E})),n.d(e,"H",(function(){return F})),n.d(e,"a",(function(){return R})),n.d(e,"m",(function(){return J})),n.d(e,"B",(function(){return K})),n.d(e,"v",(function(){return I})),n.d(e,"R",(function(){return q})),n.d(e,"X",(function(){return B})),n.d(e,"Y",(function(){return G})),n.d(e,"ab",(function(){return H})),n.d(e,"C",(function(){return Y})),n.d(e,"b",(function(){return Z})),n.d(e,"S",(function(){return Q})),n.d(e,"n",(function(){return W})),n.d(e,"M",(function(){return X})),n.d(e,"N",(function(){return tt})),n.d(e,"k",(function(){return et})),n.d(e,"db",(function(){return nt})),n.d(e,"x",(function(){return rt})),n.d(e,"F",(function(){return ot})),n.d(e,"e",(function(){return it})),n.d(e,"V",(function(){return at})),n.d(e,"q",(function(){return ut}));var r=n("b775");function o(t){return Object(r["a"])({url:"/api/v1/kxpms/workbench/query",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/api/v1/kxpms/login/login",method:"post",data:t})}function a(t){return Object(r["a"])({url:"/api/v1/kxpms/user/add",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/api/v1/kxpms/user/delete/".concat(t),method:"post"})}function c(t){return Object(r["a"])({url:"/api/v1/kxpms/user/get",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/api/v1/kxpms/user/list",method:"post",data:t})}function l(t,e){return Object(r["a"])({url:"/api/v1/kxpms/user/update/".concat(t),method:"post",data:e})}function d(t){return Object(r["a"])({url:"/api/v1/kxpms/updatePassword",method:"post",data:t})}function p(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/add",method:"post",data:t})}function f(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/delete/".concat(t),method:"post"})}function m(t){return Object(r["a"])({url:"/api/v1/kxpms/depot/list",method:"post",data:t})}function h(t,e){return Object(r["a"])({url:"/api/v1/kxpms/depot/update/".concat(t),method:"post",data:e})}function b(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/list",method:"post",data:t})}function g(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/add",method:"post",data:t})}function v(t,e){return Object(r["a"])({url:"/api/v1/kxpms/dict/update/".concat(t),method:"post",data:e})}function y(t){return Object(r["a"])({url:"/api/v1/kxpms/dict/delete/".concat(t),method:"post"})}function j(t){return Object(r["a"])({url:"/api/v1/kxpms/project/get",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/api/v1/kxpms/project/list",method:"post",data:t})}function x(t,e){return Object(r["a"])({url:"/api/v1/kxpms/project/update/".concat(t),method:"post",data:e})}function k(t){return Object(r["a"])({url:"/api/v1/kxpms/project/delete/".concat(t),method:"post"})}function w(t){return Object(r["a"])({url:"/api/v1/kxpms/role/list",method:"post",data:t})}function S(t){return Object(r["a"])({url:"/api/v1/kxpms/role/add",method:"post",data:t})}function _(t,e){return Object(r["a"])({url:"/api/v1/kxpms/role/update/".concat(t),method:"post",data:e})}function A(t){return Object(r["a"])({url:"/api/v1/kxpms/role/delete/".concat(t),method:"delete"})}function C(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/list",method:"post",data:t})}function P(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/add",method:"post",data:t})}function T(t,e){return Object(r["a"])({url:"/api/v1/kxpms/permission/update/".concat(t),method:"post",data:e})}function z(t){return Object(r["a"])({url:"/api/v1/kxpms/permission/delete/".concat(t),method:"post"})}function D(t){return Object(r["a"])({url:"/api/v1/kxpms/system/addProject",method:"post",data:t})}function $(t){return Object(r["a"])({url:"/api/v1/kxpms/system/exportProject",method:"post",data:t})}function L(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/add",method:"post",data:t})}function N(t,e){return Object(r["a"])({url:"/api/v1/kxpms/flow/update/".concat(t),method:"post",data:e})}function V(t){return Object(r["a"])({url:"/api/v1/kxpms/flow/delete/".concat(t),method:"delete"})}function M(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getFlowList",method:"post",data:t})}function U(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/add",method:"post",data:t})}function E(t){return Object(r["a"])({url:"/api/v1/kxpms/payback/delete/".concat(t),method:"post"})}function F(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getPaybackList",method:"post",data:t})}function R(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/add",method:"post",data:t})}function J(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/delete/".concat(t),method:"post"})}function K(t){return Object(r["a"])({url:"/api/v1/kxpms/annex/list",method:"post",data:t})}function I(t){return Object(r["a"])({url:"/api/v1/kxpms/system/deleteProjectUser",method:"post",data:t})}function q(t){return Object(r["a"])({url:"/api/v1/kxpms/system/modifyProjectUser",method:"post",data:t})}function B(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateFlow",method:"post",data:t})}function G(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updatePayback",method:"post",data:t})}function H(t){return Object(r["a"])({url:"/api/v1/kxpms/system/updateProductionPlan",method:"post",data:t})}function Y(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/list",method:"post",data:t})}function Z(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/add",method:"post",data:t})}function Q(t,e){return Object(r["a"])({url:"/api/v1/kxpms/calendar/update/".concat(t),method:"post",data:e})}function W(t){return Object(r["a"])({url:"/api/v1/kxpms/calendar/delete/".concat(t),method:"post"})}function X(t){return Object(r["a"])({url:"/api/v1/kxpms/system/getRoleUsers",method:"post",data:t})}function tt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/list",method:"post",data:t})}function et(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/add",method:"post",data:t})}function nt(t,e){return Object(r["a"])({url:"/api/v1/kxpms/summary/update/".concat(t),method:"post",data:e})}function rt(t){return Object(r["a"])({url:"/api/v1/kxpms/summary/delete/".concat(t),method:"post"})}function ot(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/list",method:"post",data:t})}function it(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/add",method:"post",data:t})}function at(t,e){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/update/".concat(t),method:"post",data:e})}function ut(t){return Object(r["a"])({url:"/api/v1/kxpms/netdisc/delete",method:"post",data:t})}},"5d8a":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"app-container"},[n("el-form",{attrs:{inline:!0,model:t.form,size:"mini"}},[n("el-form-item",{attrs:{label:"权限名称"}},[n("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.roles,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.uuid}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onSubmit}},[t._v("查询")])],1),n("el-form-item",[n("el-button",{on:{click:t.onReset}},[t._v("重置")])],1),n("el-form-item",[n("el-button",{attrs:{type:"warning"},on:{click:t.onAdd}},[t._v("添加")])],1)],1),n("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":""}},[n("el-table-column",{attrs:{prop:"name",label:"权限名称",align:"center","min-width":"100"}}),n("el-table-column",{attrs:{prop:"create_at",label:"创建时间",width:"150"}}),n("el-table-column",{attrs:{prop:"create_by.username",label:"创建者",width:"150"}}),n("el-table-column",{attrs:{prop:"update_at",label:"更新时间",width:"150","show-overflow-tooltip":!0}}),n("el-table-column",{attrs:{prop:"update_by.username",label:"更新者",width:"150"}}),n("el-table-column",{attrs:{label:"操作",align:"center",width:"180",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{size:"mini",type:"success"},on:{click:function(n){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),n("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(n){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),n("div",{staticClass:"page-wrapper"},[n("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),n("el-dialog",{attrs:{title:t.dialogTitle,visible:t.dialogVisible,width:"45%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("el-form",{ref:"post",attrs:{model:t.post,"status-icon":"",rules:t.rules,inline:!0,size:"mini","label-width":"80px"}},[n("el-form-item",{attrs:{label:"权限名称",prop:"permission"}},[n("el-input",{attrs:{type:"text",autocomplete:"off"},model:{value:t.post.permission,callback:function(e){t.$set(t.post,"permission",e)},expression:"post.permission"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(e){return t.submitForm("post")}}},[t._v("提交")]),n("el-button",{attrs:{type:"success",size:"mini",plain:""},on:{click:function(e){return t.onReset("post")}}},[t._v("重置")]),n("el-button",{attrs:{size:"mini"},on:{click:function(e){t.dialogVisible=!1}}},[t._v("关闭")])],1)],1)],1)},o=[],i=(n("95e8"),n("2a39"),n("365c")),a=n("e350"),u=n("ed08"),c=n("fa7d"),s={data:function(){return{total:0,list:[],isLoading:!1,roles:[],depots:[],form:{uuid:null,name:null,pagesize:15,pagenum:1},dialogTitle:"",dialogVisible:!1,post:{permission:null,name:null},rules:{permission:[{type:"string",required:!0,message:"权限名称不能为空",trigger:"blur"}],name:[{type:"string",required:!0,message:"用户名不能为空",trigger:"blur"},{min:1,max:20,message:"字符串长度在 1 到 20 之间",trigger:"blur"}]}}},methods:{checkPermission:a["a"],fetchData:function(t){var e=this;this.isLoading=!0,Object(i["I"])(Object.assign({pagenum:this.form.pagenum,pagesize:this.form.pagesize},t)).then((function(t){200==t.code&&(e.total=t.count,e.list=t.data.map((function(t){return t.create_at=Object(c["a"])(t.create_at),t.update_at=Object(c["a"])(t.update_at),t})))})).catch((function(t){console.log(t.message)})).finally((function(){e.isLoading=!1}))},fetchSelectData:function(){var t=this;Object(i["I"])({scope_type:"list"}).then((function(e){200==e.code&&(t.roles=e.data)})).catch((function(t){console.log(t.message)}))},handleSizeChange:function(t){this.form.pagesize=t,this.fetchData(Object(u["e"])(this.form))},handleCurrentChange:function(t){this.form.pagenum=t,this.fetchData(Object(u["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,this.post.depot=e.depot,this.dialogTitle="编辑",this.dialogVisible=!0},handleDelete:function(t,e){var n=this;this.$alert("您确定要删除么?删除操作将不可恢复。如需取消操作,请点击右上角关闭按钮。","删除提醒",{confirmButtonText:"确定",callback:function(r){"confirm"==r&&Object(i["t"])(e.id).then((function(e){console.log(e),n.total-=1,n.$delete(n.list,t),n.$message({type:"success",message:"成功删除第".concat(t,"行")})})).catch((function(t){n.$message.error(t.message)}))}})},submitForm:function(t){var e=this;this.$refs[t].validate((function(t){var n=!0;return t?"添加"===e.dialogTitle?Object(i["i"])(Object(u["e"])(e.post)).then((function(t){console.log(t),e.$message({type:"success",message:"添加成功"})})).catch((function(t){e.$message.error(t.message)})):"编辑"===e.dialogTitle&&Object(i["Z"])(e.currentValue.id,Object(u["a"])(e.post,e.currentValue)).then((function(t){console.log(t),e.$message({type:"success",message:"更新成功"})})).catch((function(t){e.$message.error(t.message)})):n=!1,e.dialogVisible=!1,n}))},onAdd:function(){this.dialogTitle="添加",this.dialogVisible=!0},onSubmit:function(){this.form.pagenum=1,this.form.pagesize=15,this.fetchData(Object(u["e"])(this.form))},onReset:function(t){this.form={account:null,username:null,pagesize:15,pagenum:1},this.$refs[t].resetFields(),this.fetchData()}},mounted:function(){},created:function(){this.fetchData(),this.fetchSelectData()}},l=s,d=(n("c543"),n("5d22")),p=Object(d["a"])(l,r,o,!1,null,"f226f22c",null);e["default"]=p.exports},"60a8":function(t,e,n){"use strict";var r=n("4292"),o=n("4c15").includes,i=n("e517");r({target:"Array",proto:!0},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},"6ff7":function(t,e,n){var r=n("0c6e");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},8531:function(t,e,n){var r=n("9345"),o=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[o]=!1,"/./"[t](e)}catch(r){}}return!1}},b059:function(t,e,n){},c543:function(t,e,n){"use strict";n("b059")},e350:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));n("60a8"),n("2c51"),n("3422");var r=n("4360");function o(t){if(t&&t instanceof Array&&t.length>0){var e=r["a"].getters&&r["a"].getters.permissions,n=t,o=e.some((function(t){return n.includes(t)}));return!!o}return console.error("need roles! Like v-permission=\"['admin','editor']\""),!1}},fa7d:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));n("5ff7"),n("180d"),n("95e8"),n("2a39"),n("a5bc"),n("cfa8"),n("0482"),n("96f8");var r=n("0256"),o=n.n(r),i=/[\t\r\n\f]/g;o.a.extend({},o.a,{getClass:function(t){return t.getAttribute&&t.getAttribute("class")||""},hasClass:function(t,e){var n;return n=" ".concat(e," "),1===t.nodeType&&" ".concat(this.getClass(t)," ").replace(i," ").indexOf(n)>-1}});function a(t){return t=t.toString(),t[1]?t:"0"+t}function u(t){var e=t.getUTCFullYear(),n=t.getUTCMonth()+1,r=t.getUTCDate(),o=t.getUTCHours(),i=t.getUTCMinutes(),u=t.getUTCSeconds();return[e,n,r,o,i,u].map(a)}function c(t){t instanceof Date||(t=new Date(t)),t=u(t);var e=["-","-"," ",":",":"],n="";return t.forEach((function(t,r){n+=r<5?t+e[r]:t})),n}}}]);