(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-796bd885"],{"27a3":function(e,t,l){"use strict";l.r(t);var i=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"box"},[l("h2",{staticStyle:{"margin-bottom":"20px","padding-bottom":"7px","border-bottom":"2px solid #ddd"}},[e._v(" 权限管理 ")]),l("div",{staticClass:"box-content"},[l("div",{staticStyle:{"margin-bottom":"10px"}},[l("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!0}}},[e._v("新增角色")])],1),l("div",[l("el-table",{attrs:{data:e.tableData,border:"",height:"700px"}},[l("el-table-column",{attrs:{prop:"caseId",label:"角色ID"}}),l("el-table-column",{attrs:{prop:"name",label:"职位"}}),l("el-table-column",{attrs:{prop:"label",label:"描述"}}),l("el-table-column",{attrs:{prop:"createTime",label:"创建时间"}}),l("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(l){return e.handleEdit(t.$index,t.row)}}},[e._v("编辑")]),l("el-button",{attrs:{size:"mini",type:"warning"},on:{click:function(l){return e.handleLimits(t.$index,t.row)}}},[e._v("权限分配")]),l("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(l){return e.handleUser(t.$index,t.row)}}},[e._v("用户分配")])]}}])})],1)],1)]),l("el-dialog",{attrs:{title:"新增角色",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[l("div",[l("el-form",{ref:"form",attrs:{model:e.form,"label-width":"80px"}},[l("el-form-item",{attrs:{label:"角色ID"}},[l("el-input",{model:{value:e.form.caseId,callback:function(t){e.$set(e.form,"caseId",t)},expression:"form.caseId"}})],1),l("el-form-item",{attrs:{label:"职位"}},[l("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),l("el-form-item",{attrs:{label:"描述"}},[l("el-input",{model:{value:e.form.label,callback:function(t){e.$set(e.form,"label",t)},expression:"form.label"}})],1)],1)],1),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),l("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("新 增")])],1)]),l("el-dialog",{attrs:{title:"权限分配",visible:e.dialogLimits,width:"50%"},on:{"update:visible":function(t){e.dialogLimits=t}}},[l("div",[l("el-tree",{ref:"multipleTable",attrs:{data:e.limitList,"show-checkbox":"","node-key":"id","default-expanded-keys":[1,2],"default-checked-keys":[1,2,3,4,5,6],props:e.defaultProps},on:{check:e.selectTable}})],1),l("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(t){e.dialogLimits=!1}}},[e._v("取 消")]),l("el-button",{attrs:{type:"primary"},on:{click:e.limitSave}},[e._v("保存")])],1)])],1)},a=[],o=(l("99af"),{name:"authAdmin",data:function(){return{tableData:[{id:1,caseId:10001,name:"经理",label:"",createTime:"2020-12-10 10:11:00"},{id:2,caseId:10002,name:"综合会计",label:"",createTime:"2020-12-10 10:11:00"},{id:3,caseId:10003,name:"综合内勤",label:"",createTime:"2020-12-10 10:11:00"},{id:4,caseId:10004,name:"分拣工",label:"",createTime:"2020-12-10 10:11:00"}],dialogVisible:!1,form:{caseId:"",name:"",label:""},dialogLimits:!1,limitList:[{id:1,label:"仓库管理",children:[{id:3,label:"新增仓库"},{id:4,label:"编辑仓库"}]},{id:2,label:"储位管理",children:[{id:5,label:"新增储位"},{id:6,label:"编辑储位"}]}],defaultProps:{children:"children",label:"label"},selectList:[]}},methods:{handleEdit:function(){},handleLimits:function(){this.dialogLimits=!0},handleUser:function(){},selectTable:function(e,t){this.selectList=t.checkedKeys.concat(t.halfCheckedKeys)},onSubmit:function(){var e=this.tableData.length+1;this.form.id=e;var t=new Date;this.form.createTime=t,this.tableData.push(this.form),this.dialogVisible=!1,this.form={}},limitSave:function(){this.dialogLimits=!1,this.selectList=[]}}}),n=o,s=(l("9765"),l("2877")),r=Object(s["a"])(n,i,a,!1,null,"18eae6c7",null);t["default"]=r.exports},"611f":function(e,t,l){},9765:function(e,t,l){"use strict";l("611f")}}]);
//# sourceMappingURL=chunk-796bd885.06fe2073.js.map