7 lines
26 KiB
JavaScript
7 lines
26 KiB
JavaScript
|
/*!
|
||
|
* build: vue-admin-beautiful
|
||
|
* vue-admin-beautiful author: chuzhixin 1204505056@qq.com
|
||
|
* vue-admin-beautiful QQ Group(QQ群): 972435319、1139183756
|
||
|
* time: 2024-10-10 11:14:28
|
||
|
*/
|
||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75dd10a7","chunk-73a8bff0","chunk-500f0008","chunk-1ac25454","chunk-22607269","chunk-fa6ffa12","chunk-64441951"],{"00ef":function(e,t,o){"use strict";o("1443")},"120b":function(e,t,o){"use strict";o("cf5f")},1443:function(e,t,o){},"163d":function(e,t,o){"use strict";o.r(t);var a=o("f2bf");const l={class:"manage-container"},i={class:"manage-button"};function r(e,t,o,r,n,c){const s=Object(a["resolveComponent"])("el-button"),d=Object(a["resolveComponent"])("el-table-column"),u=Object(a["resolveComponent"])("el-switch"),m=Object(a["resolveComponent"])("el-table"),f=Object(a["resolveComponent"])("el-pagination"),h=Object(a["resolveComponent"])("role-edit"),b=Object(a["resolveComponent"])("role-grant");return Object(a["openBlock"])(),Object(a["createElementBlock"])("div",l,[Object(a["createElementVNode"])("div",i,[Object(a["createVNode"])(s,{type:"primary",size:"small",onClick:c.handleAdd},{default:Object(a["withCtx"])(()=>t[0]||(t[0]=[Object(a["createTextVNode"])(" 添加角色 ")])),_:1},8,["onClick"])]),Object(a["createVNode"])(m,{data:n.roleData,border:"",stripe:"",style:{width:"100%"}},{default:Object(a["withCtx"])(()=>[Object(a["createVNode"])(d,{prop:"id",label:"ID",width:"60",align:"center"}),Object(a["createVNode"])(d,{prop:"name",label:e.$t("staff.yhm"),width:"150",align:"center"},null,8,["label"]),Object(a["createVNode"])(d,{prop:"key",label:"key",width:"150",align:"center"}),Object(a["createVNode"])(d,{prop:"status",label:e.$t("dataEnquiry.zt"),align:"center",width:"120"},{default:Object(a["withCtx"])(e=>[Object(a["createVNode"])(u,{modelValue:e.row.status,"onUpdate:modelValue":t=>e.row.status=t,"active-value":"0","inactive-value":"1",onClick:t=>c.soreStatus(e.row.status,e.row.id)},null,8,["modelValue","onUpdate:modelValue","onClick"])]),_:1},8,["label"]),Object(a["createVNode"])(d,{prop:"createTime",label:e.$t("grouping.cjsj"),width:"220",align:"center"},null,8,["label"]),Object(a["createVNode"])(d,{prop:"updateTime",label:e.$t("grouping.gxsj"),width:"220",align:"center"},null,8,["label"]),Object(a["createVNode"])(d,{fixed:"right",label:e.$t("defalult.cz"),align:"center"},{default:Object(a["withCtx"])(({row:o})=>[Object(a["createVNode"])(s,{type:"text",onClick:e=>c.handleEdit(o)},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("defalult.bj")),1)]),_:2},1032,["onClick"]),Object(a["createVNode"])(s,{type:"text",onClick:e=>c.handleDelete(o)},{default:Object(a["withCtx"])(()=>[Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.$t("defalult.sc")),1)]),_:2},1032,["onClick"]),Object(a["createVNode"])(s,{type:"text",onClick:e=>c.handleauthorization(o)},{default:Object(a["withCtx"])(()=>t[1]||(t[1]=[Object(a["createTextVNode"])(" 角色授权 ")])),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"]),Object(a["createVNode"])(f,{background:n.background,"current-page":n.queryForm.page,layout:n.layout,"page-size":n.queryForm.size,total:n.total,style:{"text-align":"right"},onCurrentChange:c.handleCurrentChange,onSizeChange:c.handleSizeChange},null,8,["background","current-page","layout","page-size","total","onCurrentChange","onSizeChange"]),Object(a["createVNode"])(h,{ref:"edit"},null,512),Object(a["createVNode"])(b,{ref:"grant"},null,512)])}var n=o("cc5e"),c=o("9520b"),s=o("e3f1"),d={name:"RoleIndex",components:{roleGrant:c["default"],roleEdit:s["default"]},data(){return{roleData:[],lazy:!0,activeName:"first",layout:"total, sizes, prev, pager, next, jumper",total:0,input:"",textarea:"",list:[],background:!0,listLoading:!0,elementLoadingText:"正在加载...",queryForm:{page:1,size:20,name:""}}},computed:{height(){return 500}},created(){},methods:{appletsIndex(){this.fetchData()},async soreStatus(e,t){const{code:o,msg:a}=await Object(n["miniRoleUpdate"])({status:e,id:t});0==o?this.$notify({title:a,type:"success"}):this.$notify.error({title:a}),this.fetchData()},async fetchData(){this.listLoading=!0;const{data:e}=await Object(n["miniRoleSelect"])(this.queryForm);this.roleData=e.items,this.total=
|