Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-761cc406.474d21e9.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
7.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-761cc406"],{"2ad1":function(e,t,a){},"9e08":function(e,t,a){"use strict";a("2ad1")},aa78:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;return t("div",[t("privilege-staff-info",{ref:"privilegeStaffInfo"}),t("el-row",{staticClass:"row"},[t("el-col",{attrs:{span:16}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("权限列表")])]),t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.staffPrivilegeInfo.privileges,border:"",stripe:""}},[t("el-table-column",{attrs:{prop:"pId",label:"权限ID",align:"center"}}),t("el-table-column",{attrs:{prop:"pName",label:"权限名称",align:"center"}}),t("el-table-column",{attrs:{prop:"pgId",label:"隶属权限组ID",align:"center"}}),t("el-table-column",{attrs:{prop:"pgName",label:"隶属权限组名称",align:"center"}}),t("el-table-column",{attrs:{label:"状态",align:"center"}},[[t("el-tag",{attrs:{type:"success"}},[e._v("在用")])]],2),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(t){return e._openDeleteStaffPrivilegeModel(a.row)}}},[e._v("删除")])]}}])})],1),t("el-pagination",{staticClass:"pagination",attrs:{layout:"prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1)],1),t("el-col",{attrs:{span:8}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"clearfix flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("树形结构")])]),t("el-tree",{attrs:{data:e.treeData,"show-checkbox":"","node-key":"id",props:e.defaultProps,"default-expand-all":""}})],1)],1)],1),t("delete-staff-privilege",{ref:"deleteStaffPrivilege"})],1)},i=[],r=function(){var e=this,t=e._self._c;return t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("员工信息")]),t("div",[t("el-button",{attrs:{type:"primary",size:"small",icon:"el-icon-search"},on:{click:e.openSearchStaffModel}},[e._v("定位员工")]),e.privilegeStaffInfo.userId?t("el-button",{staticStyle:{"margin-left":"10px"},attrs:{type:"primary",size:"small",icon:"el-icon-plus"},on:{click:e.openAddStaffPrivilegeModel}},[e._v("添加权限")]):e._e()],1)]),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"员工ID"}},[t("el-input",{attrs:{readonly:""},model:{value:e.privilegeStaffInfo.userId,callback:function(t){e.$set(e.privilegeStaffInfo,"userId",t)},expression:"privilegeStaffInfo.userId"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"员工名称:"}},[t("el-input",{attrs:{readonly:""},model:{value:e.privilegeStaffInfo.name,callback:function(t){e.$set(e.privilegeStaffInfo,"name",t)},expression:"privilegeStaffInfo.name"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"手机号:"}},[t("el-input",{attrs:{readonly:""},model:{value:e.privilegeStaffInfo.tel,callback:function(t){e.$set(e.privilegeStaffInfo,"tel",t)},expression:"privilegeStaffInfo.tel"}})],1)],1),t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"邮箱:"}},[t("el-input",{attrs:{readonly:""},model:{value:e.privilegeStaffInfo.email,callback:function(t){e.$set(e.privilegeStaffInfo,"email",t)},expression:"privilegeStaffInfo.email"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:6}},[t("el-form-item",{attrs:{label:"性别:"}},[t("el-input",{attrs:{value:0===e.privilegeStaffInfo.sex?"男":1===e.privilegeStaffInfo.sex?"女":"",readonly:""}})],1)],1),t("el-col",{attrs:{span:18}},[t("el-form-item",{attrs:{label:"地址:"}},[t("el-input",{attrs:{readonly:""},model:{value:e.privilegeStaffInfo.address,callback:function(t){e.$set(e.privilegeStaffInfo,"address",t)},expression:"privilegeStaffInfo.address"}})],1)],1)],1)],1)},s=[],f={name:"PrivilegeStaffInfo",data(){return{privilegeStaffInfo:{userId:"",name:"",tel:"",email:"",sex:"",address:""}}},methods:{openSearchStaffModel(){this.$emit("openSearchStaff")},openAddStaffPrivilegeModel(){this.$emit("openAddStaffPrivilege",{userId:this.privilegeStaffInfo.userId})},chooseStaff(e){this.privilegeStaffInfo=e}}},n=f,o=(a("9e08"),a("2877")),d=Object(o["a"])(n,r,s,!1,null,"48d9fa00",null),c=d.exports,g=function(){var e=this,t=e._self._c;return t("el-dialog",{attrs:{title:"请确认您的操作!",visible:e.dialogVisible,width:"30%","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("div",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[e._v(" "+e._s(e.deleteStaffPrivilegeInfo.deleteMessage)+" ")]),t("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{on:{click:e.closeDeleteStaffPrivilegeModel}},[e._v("点错了")]),t("el-button",{attrs:{type:"primary"},on:{click:e.deleteStaffPrivilege}},[e._v("确认删除")])],1)])},p=[],u=a("b775");function v(e){return new Promise((t,a)=>{Object(u["a"])({url:"/system.deleteStaffPrivilege",method:"post",data:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}var I={name:"DeleteStaffPrivilege",data(){return{dialogVisible:!1,deleteStaffPrivilegeInfo:{_currentStaffId:"",_currentPId:"",_currentPFlag:"",deleteMessage:"",errorInfo:""}}},methods:{open(e){this.dialogVisible=!0,this.deleteStaffPrivilegeInfo._currentStaffId=e.staffId,this.deleteStaffPrivilegeInfo._currentPId=e.pId,"-1"===e.pgId?(this.deleteStaffPrivilegeInfo._currentPFlag="0",this.deleteStaffPrivilegeInfo.deleteMessage="确定是否删除当前权限"):(this.deleteStaffPrivilegeInfo._currentPId=e.pgId,this.deleteStaffPrivilegeInfo._currentPFlag="1",this.deleteStaffPrivilegeInfo.deleteMessage="您删除是权限组下权限,会删除整个权限组权限,确认是否删除")},handleClose(){this.dialogVisible=!1},deleteStaffPrivilege(){const e={userId:this.deleteStaffPrivilegeInfo._currentStaffId,pId:this.deleteStaffPrivilegeInfo._currentPId,pFlag:this.deleteStaffPrivilegeInfo._currentPFlag};v(e).then(()=>{this.dialogVisible=!1,this.$emit("loadStaffPrivileges",{staffId:this.deleteStaffPrivilegeInfo._currentStaffId}),this.$message.success("删除成功")}).catch(e=>{console.log("请求失败处理",e)})},closeDeleteStaffPrivilegeModel(){this.dialogVisible=!1}}},S=I,h=Object(o["a"])(S,g,p,!1,null,null,null),b=h.exports;var m={name:"StaffPrivilege",components:{PrivilegeStaffInfo:c,DeleteStaffPrivilege:b},data(){return{staffPrivilegeInfo:{privileges:[],_currentStaffId:""},treeData:[],defaultProps:{children:"children",label:"text"},total:0}},methods:{_loadStaffPrivileges(e){this.staffPrivilegeInfo._currentStaffId=e.staffId,(void 0)({staffId:e.staffId}).then(e=>{this.staffPrivilegeInfo.privileges=e.datas,this._initTreeData(e.datas)}).catch(e=>{console.log("请求失败处理",e)})},_openDeleteStaffPrivilegeModel(e){e.staffId=this.staffPrivilegeInfo._currentStaffId,this.$refs.deleteStaffPrivilege.open(e)},_initTreeData(e){this.treeData=this._doTreeData(e)},_doTreeData(e){console.log(e)},handleCurrentChange(e){console.log(e)}},created(){}},P=m,_=(a("da67"),Object(o["a"])(P,l,i,!1,null,"339eae06",null));t["default"]=_.exports},b42a:function(e,t,a){},da67:function(e,t,a){"use strict";a("b42a")}}]);
//# sourceMappingURL=chunk-761cc406.474d21e9.js.map