1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
![]() |
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cc105540"],{"142a":function(e,t,r){"use strict";r("a488")},3528:function(e,t,r){"use strict";r.d(t,"k",(function(){return o})),r.d(t,"j",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"m",(function(){return l})),r.d(t,"g",(function(){return i})),r.d(t,"f",(function(){return u})),r.d(t,"h",(function(){return c})),r.d(t,"b",(function(){return d})),r.d(t,"l",(function(){return m})),r.d(t,"c",(function(){return p})),r.d(t,"d",(function(){return h})),r.d(t,"e",(function(){return f})),r.d(t,"i",(function(){return b}));var n=r("b775");function o(e){return Object(n["a"])({url:"/system/role/list",method:"get",params:e})}function a(e){return Object(n["a"])({url:"/system/role/"+e,method:"get"})}function s(e){return Object(n["a"])({url:"/system/role",method:"post",data:e})}function l(e){return Object(n["a"])({url:"/system/role",method:"put",data:e})}function i(e){return Object(n["a"])({url:"/system/role/dataScope",method:"put",data:e})}function u(e,t){var r={roleId:e,status:t};return Object(n["a"])({url:"/system/role/changeStatus",method:"put",data:r})}function c(e){return Object(n["a"])({url:"/system/role/"+e,method:"delete"})}function d(e){return Object(n["a"])({url:"/system/role/authUser/allocatedList",method:"get",params:e})}function m(e){return Object(n["a"])({url:"/system/role/authUser/unallocatedList",method:"get",params:e})}function p(e){return Object(n["a"])({url:"/system/role/authUser/cancel",method:"put",data:e})}function h(e){return Object(n["a"])({url:"/system/role/authUser/cancelAll",method:"put",params:e})}function f(e){return Object(n["a"])({url:"/system/role/authUser/selectAll",method:"put",params:e})}function b(e){return Object(n["a"])({url:"/system/role/deptTree/"+e,method:"get"})}},"70eb":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"role-wrap",staticStyle:{padding:"25px"}},[r("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0}},[r("el-form-item",{attrs:{label:"归属机构",prop:"deptId"}},[r("treeselect",{staticStyle:{width:"220px"},attrs:{options:e.deptOptions,placeholder:"请选择归属机构"},model:{value:e.queryParams.deptId,callback:function(t){e.$set(e.queryParams,"deptId",t)},expression:"queryParams.deptId"}})],1),r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("el-input",{staticStyle:{width:"240px"},attrs:{placeholder:"请输入角色名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.roleName,callback:function(t){e.$set(e.queryParams,"roleName",t)},expression:"queryParams.roleName"}})],1),r("el-form-item",{attrs:{label:"状态",prop:"status"}},[r("el-select",{staticStyle:{width:"240px"},attrs:{placeholder:"角色状态",clearable:""},model:{value:e.queryParams.status,callback:function(t){e.$set(e.queryParams,"status",t)},expression:"queryParams.status"}},e._l(e.dict.type.sys_normal_disable,(function(e){return r("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),r("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),r("el-row",{staticClass:"mb8",attrs:{gutter:10}},[r("el-col",{attrs:{span:1.5}},[r("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["system:role:add"],expression:"['system:role:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增角色")])],1),r("el-col",{attrs:{span:1.5}},[r("el-checkbox",{staticStyle:{margin:"5px 0 0"},on:{change:e.handleQuery},model:{value:e.queryParams.showChild,callback:function(t){e.$set(e.queryParams,"showChild",t)},expression:"queryParams.showChild"}},[e._v("显示下级<EFBFBD>
|