HEX
Server: nginx/1.28.1
System: Linux 10-41-63-61 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
User: www (1001)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot//douyin.dsfnj.com/static/js/chunk-1ee3.f415d679.js
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ee3"],{"0pCk":function(e,t,i){},"6R3Q":function(e,t,i){"use strict";var n={name:"reminder",components:{},computed:{},data:function(){return{}},props:{content:{type:String,default:"内容"},fontSize:{type:String,default:"13"}},mounted:function(){},methods:{},destroyed:function(){}},s=(i("7h1T"),i("KHd+")),l=Object(s.a)(n,function(){var e=this.$createElement,t=this._self._c||e;return t("flexbox",{staticClass:"reminder-wrapper"},[t("flexbox",{staticClass:"reminder-body",attrs:{align:"stretch"}},[t("i",{staticClass:"wukong wukong-reminder reminder-icon"}),this._v(" "),t("div",{staticClass:"reminder-content",style:{"font-size":this.fontSize+"px"}},[this._v("\n      "+this._s(this.content)+"\n    ")])])],1)},[],!1,null,"123d95d5",null);l.options.__file="reminder.vue";t.a=l.exports},"7h1T":function(e,t,i){"use strict";var n=i("0pCk");i.n(n).a},IDwW:function(e,t,i){"use strict";i.r(t);var n=i("sGAf"),s={name:"relate-empoyee",components:{XhUserCell:i("8GhS").p},mixins:[],watch:{visible:function(e){e&&(this.selectUsers=[])}},props:{visible:{type:Boolean,required:!0,default:!1},roleId:[Number,String]},data:function(){return{loading:!0,selectUsers:[]}},computed:{},mounted:function(){},methods:{handleCancel:function(){this.$emit("update:visible",!1)},changeCheckout:function(e){this.selectUsers=e.value},handleConfirm:function(){var e=this;0==this.selectUsers.length?this.$message.error("请选择员工"):Object(n.i)({users:this.selectUsers.map(function(e){return e.id}),groups:[this.roleId]}).then(function(t){e.$message.success(t.data),e.$emit("save")}).catch(function(e){})}}},l=(i("K+20"),i("KHd+")),o=Object(l.a)(s,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{title:"关联员工",visible:e.visible,"append-to-body":!0,width:"600px"},on:{close:e.handleCancel}},[i("div",{staticClass:"handle-box"},[i("flexbox",{staticClass:"handle-item",attrs:{align:"stretch"}},[i("div",{staticClass:"handle-item-name",staticStyle:{"margin-top":"8px"}},[e._v("选择员工:")]),e._v(" "),i("xh-user-cell",{staticClass:"handle-item-content",attrs:{radio:!1,value:e.selectUsers},on:{"value-change":e.changeCheckout}})],1)],1),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{nativeOn:{click:function(t){return e.handleCancel(t)}}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},nativeOn:{click:function(t){return e.handleConfirm(t)}}},[e._v("保存")])],1)])},[],!1,null,"52c0d199",null);o.options.__file="relateEmpoyee.vue";var a=o.exports,r=i("csZP"),c={components:{RelateEmpoyee:a,Reminder:i("6R3Q").a},data:function(){return{pid:"",title:"",tableData:[],tableHeight:document.documentElement.clientHeight-300,treeHeight:document.documentElement.clientHeight-230,currentPage:1,pageSize:15,pageSizes:[15,30,45,60],total:0,tableList:[{label:"姓名",field:"realname"},{label:"部门",field:"s_name"},{label:"职位",field:"post"},{label:"角色",field:"groups"}],newRoleVisible:!1,role:{},roleList:[],mainMenuIndex:"user",ruleMenuIndex:"data",ruleMenuList:[],defaultProps:{children:"children",label:"title"},relateEmpoyeeShow:!1,roleActive:null,dropdownHandleRole:null,roleTitle:"",roleMenuLoading:!1,ruleLoading:!1,userLoading:!1}},watch:{},computed:{roleId:function(){return this.roleActive?this.roleActive.id:""},showRuleSet:function(){return!!this.roleActive&&(1!=this.roleActive.types&&7!=this.roleActive.types)},showReminder:function(){return!!this.roleActive&&7==this.roleActive.types}},mounted:function(){var e=this;window.onresize=function(){e.tableHeight=document.documentElement.clientHeight-300,e.treeHeight=document.documentElement.clientHeight-230},this.pid=this.$route.params.pid,this.title=this.$route.params.title,this.getRulesList(),this.getRoleList()},beforeRouteUpdate:function(e,t,i){this.pid=e.params.pid,this.title=e.params.title,this.roleActive=null,this.roleList=[],this.currentPage=1,this.total=0,this.tableData=[],this.getRulesList(),this.getRoleList(),i()},methods:{getRulesList:function(){var e=this;Object(n.g)({type:"tree",pid:this.pid}).then(function(t){2==t.data.length?e.ruleMenuList=[{label:"模块功能",index:"data",type:"tree",value:[],data:[t.data[0]]},{label:"数据分析",index:"bi",type:"tree",value:[],data:[t.data[1]]}]:1==t.data.length?e.ruleMenuList=[{label:"模块功能",index:"data",type:"tree",value:[],data:[t.data[0]]}]:e.ruleMenuList=[],e.getRoleRulesInfo()})},getRoleList:function(){var e=this;this.roleMenuLoading=!0,Object(n.e)({pid:this.pid,rules:1}).then(function(t){e.roleList=t.data;var i=!1;if(e.roleActive)for(var n=0;n<e.roleList.length;n++){var s=e.roleList[n];if(s.id==e.roleActive.id){e.roleActive=s,e.getRoleRulesInfo(),i=!0;break}}!i&&e.roleList.length&&(e.roleActive=e.roleList[0],e.getRoleRulesInfo()),e.getUserList(e.roleActive),e.roleMenuLoading=!1}).catch(function(t){e.roleMenuLoading=!1})},addEmployees:function(){this.relateEmpoyeeShow=!0},employeesSave:function(e){this.relateEmpoyeeShow=!1,this.getUserList(this.roleActive)},delectEmployees:function(e){var t=this;this.$confirm("此操作将永久删除是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){t.userLoading=!0,Object(n.h)({user_id:e.id,group_id:t.roleActive.id}).then(function(e){t.userLoading=!0,t.getUserList(t.roleActive),t.$message.success("删除成功")})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},newRoleClose:function(){this.newRoleVisible=!1},newRoleBtn:function(){this.roleTitle="新建角色",this.newRoleVisible=!0,this.role={}},roleDropdownClick:function(e){this.dropdownHandleRole=e},roleHandleClick:function(e){"edit"==e?this.roleEditBtn(this.dropdownHandleRole):"copy"==e?this.ticketsBtn(this.dropdownHandleRole):"delete"==e&&this.roleDelect(this.dropdownHandleRole)},getReminderContent:function(){return this.roleActive&&7==this.roleActive.types?"项目管理员拥有“项目管理”模块所有权限,能看到并维护所有项目信息":""},roleEditBtn:function(e){this.roleTitle="编辑角色",this.role={title:e.title,pid:e.pid,id:e.id},this.newRoleVisible=!0},ticketsBtn:function(e){var t=this;this.$confirm("确定此操作?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.c)({id:e.id}).then(function(e){t.$message.success("复制成功"),t.getRoleList()})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},roleDelect:function(e){var t=this;this.$confirm("此操作将永久删除是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(n.d)({id:e.id}).then(function(e){t.roleList.length&&(t.roleActive=t.roleList[0],t.getRoleRulesInfo()),t.getRoleList(),t.$message.success("删除成功")})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},newRoleSubmit:function(){var e=this;this.role.title?"新建角色"==this.roleTitle?Object(n.b)({title:this.role.title,pid:this.pid}).then(function(t){e.getRoleList(),e.$message.success("添加成功"),e.newRoleClose()}):Object(n.f)(this.role).then(function(t){e.getRoleList(),e.$message.success("编辑成功"),e.newRoleClose()}):this.$message.error("角色名称不能为空")},roleMenuSelect:function(e){this.roleActive=e,"rule"!=this.mainMenuIndex||this.showRuleSet||(this.mainMenuIndex="user"),this.getRoleRulesInfo(),this.getUserList(this.roleActive)},getRoleRulesInfo:function(){var e=this;if(this.roleActive&&this.ruleMenuList.length){if(this.roleActive.type)"data"!=this.ruleMenuList[this.ruleMenuList.length-1].type&&this.ruleMenuList.push({label:"数据权限",index:"info",type:"data",value:this.roleActive.type});for(var t=function(t){var i=e.ruleMenuList[t];"tree"==i.type?(i.rules=e.getRoleRules(e.roleActive.rules[i.index],i.data[0]),e.$nextTick(function(){var t=e.$refs["tree"+i.index];t&&("[object Array]"==Object.prototype.toString.call(t)?t.length&&t[0].setCheckedKeys(i.rules):t.setCheckedKeys(i.rules))})):i.value=e.roleActive.type},i=0;i<this.ruleMenuList.length;i++)t(i)}},getRoleRules:function(e,t){e||(e=[]);for(var i=!1,n=this.copyItem(e),s=0;s<t.children.length;s++){var l=t.children[s];if(!l.hasOwnProperty("children"))return l.length+1!=n.length&&this.removeItem(n,t.id),n;for(var o=0;o<e.length;o++){for(var a=e[o],r=[],c=0;c<l.children.length;c++){var u=l.children[c];u.id==a&&r.push(u)}r.length!=l.children.length&&(i=!0,this.removeItem(n,l.id))}}i&&this.removeItem(n,t.id);for(var d=[],h=0;h<n.length;h++){var p=n[h];p&&d.push(parseInt(p))}return d},copyItem:function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t},removeItem:function(e,t){for(var i=-1,n=0;n<e.length;n++)if(t==e[n]){i=n;break}i>0&&e.splice(i,1)},containItem:function(e,t){for(var i=0;i<e.length;i++)if(t==e[i])return!0;return!1},getUserList:function(e,t){var i=this;e&&(t||(this.currentPage=1),this.userLoading=!0,Object(r.b)({page:this.currentPage,limit:this.pageSize,group_id:e.id}).then(function(e){i.tableData=e.data.list,i.total=e.data.dataCount,i.userLoading=!1}).catch(function(e){i.userLoading=!1}))},handleSizeChange:function(e){this.pageSize=e,this.getUserList(this.roleActive,!0)},handleCurrentChange:function(e){this.currentPage=e,this.getUserList(this.roleActive,!0)},ruleSubmit:function(){var e=this;this.ruleLoading=!0;for(var t=[],i="",s=0;s<this.ruleMenuList.length;s++){var l=this.ruleMenuList[s];if("tree"==l.type){var o=this.$refs["tree"+l.index];o&&(t="[object Array]"==Object.prototype.toString.call(o)?t.concat(o[0].getCheckedKeys().concat(o[0].getHalfCheckedKeys())):t.concat(o.getCheckedKeys().concat(o.getHalfCheckedKeys())))}else i=l.value}Object(n.f)({rules:t,type:i,id:this.roleActive.id,title:this.roleActive.title}).then(function(t){e.getRoleList(),e.$message.success("编辑成功"),e.ruleLoading=!1}).catch(function(){e.ruleLoading=!1})}}},u=(i("doIp"),Object(l.a)(c,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"role-authorization"},[i("p",{ref:"title",staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),e._v(" "),i("div",{staticClass:"role-box"},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.roleMenuLoading,expression:"roleMenuLoading"}],staticClass:"nav"},[i("div",{staticClass:"nav-new-btn"},[i("el-button",{attrs:{size:"medium"},on:{click:e.newRoleBtn}},[e._v(" 新建角色 ")])],1),e._v(" "),i("div",{staticClass:"role-nav-box"},e._l(e.roleList,function(t,n){return i("div",{key:n,staticClass:"item-list",class:{"item-list-hover":t.id==e.roleActive.id},on:{click:function(i){e.roleMenuSelect(t)}}},[e._v("\n          "+e._s(t.title)+"\n          "),1!=t.types&&7!=t.types?i("div",{staticClass:"icon-close"},[i("el-dropdown",{attrs:{trigger:"click"},on:{command:e.roleHandleClick}},[i("i",{staticClass:"el-icon-arrow-down",on:{click:function(i){e.roleDropdownClick(t)}}}),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[i("el-dropdown-item",{attrs:{command:"copy"}},[e._v("复制")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"edit"}},[e._v("编辑")]),e._v(" "),i("el-dropdown-item",{attrs:{command:"delete"}},[e._v("删除")])],1)],1)],1):e._e()])}))]),e._v(" "),i("el-dialog",{attrs:{title:e.roleTitle,visible:e.newRoleVisible,width:"30%","before-close":e.newRoleClose},on:{"update:visible":function(t){e.newRoleVisible=t}}},[i("label",{staticClass:"label-title"},[e._v("角色名称")]),e._v(" "),i("el-input",{staticClass:"input-role",model:{value:e.role.title,callback:function(t){e.$set(e.role,"title",t)},expression:"role.title"}}),e._v(" "),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{attrs:{type:"primary"},on:{click:e.newRoleSubmit}},[e._v("确 定")]),e._v(" "),i("el-button",{on:{click:e.newRoleClose}},[e._v("取 消")])],1)],1),e._v(" "),i("div",{staticClass:"content-box"},[i("el-tabs",{model:{value:e.mainMenuIndex,callback:function(t){e.mainMenuIndex=t},expression:"mainMenuIndex"}},[i("el-tab-pane",{attrs:{label:"角色员工",name:"user"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.userLoading,expression:"userLoading"}],staticClass:"content-table"},[i("flexbox",{staticClass:"content-table-header"},[i("div",{staticClass:"content-table-header-reminder"},[e.showReminder?i("reminder",{attrs:{content:e.getReminderContent()}}):e._e()],1),e._v(" "),i("el-button",{attrs:{size:"medium",type:"primary"},on:{click:e.addEmployees}},[e._v(" 关联员工 ")])],1),e._v(" "),i("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:e.tableHeight}},[e._l(e.tableList,function(t,n){return i("el-table-column",{key:n,attrs:{prop:t.field,"show-overflow-tooltip":"",label:t.label},scopedSlots:e._u([{key:"header",fn:function(t){return[i("div",{staticClass:"table-head-name"},[e._v(e._s(t.column.label))])]}}])})}),e._v(" "),i("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("span",{staticClass:"el-icon-delete content-table-span",on:{click:function(i){e.delectEmployees(t.row)}}})]}}])})],2),e._v(" "),i("div",{staticClass:"p-contianer"},[i("el-pagination",{staticClass:"p-bar",attrs:{"current-page":e.currentPage,"page-sizes":e.pageSizes,"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){e.pageSize=t}}})],1)],1)]),e._v(" "),e.roleActive&&e.showRuleSet?i("el-tab-pane",{attrs:{label:"角色权限",name:"rule"}},[i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.ruleLoading,expression:"ruleLoading"}],staticClass:"jurisdiction-box"},[e.roleActive?i("el-button",{staticClass:"jurisdiction-edit",attrs:{size:"medium",type:"primary"},on:{click:e.ruleSubmit}},[e._v(" 保存 ")]):e._e(),e._v(" "),i("el-tabs",{model:{value:e.ruleMenuIndex,callback:function(t){e.ruleMenuIndex=t},expression:"ruleMenuIndex"}},e._l(e.ruleMenuList,function(t,n){return i("el-tab-pane",{key:n,attrs:{label:t.label,name:t.index}},["tree"==t.type?i("div",{staticClass:"jurisdiction-content",style:{height:e.treeHeight+"px"}},[i("div",{staticClass:"jurisdiction-content-checkbox"},[i("el-tree",{ref:"tree"+t.index,refInFor:!0,staticStyle:{height:"0"},attrs:{data:t.data,"show-checkbox":"","node-key":"id",indent:0,"empty-text":"","default-expand-all":"","expand-on-click-node":!1,props:e.defaultProps}})],1)]):i("div",{staticClass:"jurisdiction-content"},[i("div",{staticClass:"data-radio"},[i("el-radio-group",{model:{value:t.value,callback:function(i){e.$set(t,"value",i)},expression:"item.value"}},[i("el-radio",{attrs:{label:1}},[e._v("本人")]),e._v(" "),i("el-radio",{attrs:{label:2}},[e._v("本人及下属")]),e._v(" "),i("el-radio",{attrs:{label:3}},[e._v("本部门")]),e._v(" "),i("el-radio",{attrs:{label:4}},[e._v("本部门及下属部门")]),e._v(" "),i("el-radio",{attrs:{label:5}},[e._v("全部")])],1)],1)])])}))],1)]):e._e()],1)],1)],1),e._v(" "),i("relate-empoyee",{attrs:{visible:e.relateEmpoyeeShow,"role-id":e.roleId},on:{"update:visible":function(t){e.relateEmpoyeeShow=t},save:e.employeesSave}})],1)},[],!1,null,"8cc34420",null));u.options.__file="index.vue";t.default=u.exports},"K+20":function(e,t,i){"use strict";var n=i("QZB5");i.n(n).a},QZB5:function(e,t,i){},csZP:function(e,t,i){"use strict";i.d(t,"h",function(){return s}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return o}),i.d(t,"g",function(){return a}),i.d(t,"b",function(){return r}),i.d(t,"j",function(){return c}),i.d(t,"l",function(){return u}),i.d(t,"i",function(){return d}),i.d(t,"c",function(){return h}),i.d(t,"d",function(){return p}),i.d(t,"k",function(){return f}),i.d(t,"a",function(){return v});var n=i("t3Un");function s(){return Object(n.a)({url:"admin/structures/index",method:"post",data:{type:"tree"}})}function l(e){return Object(n.a)({url:"admin/structures/delete",method:"post",data:e})}function o(e){return Object(n.a)({url:"admin/structures/update",method:"post",data:e})}function a(e){return Object(n.a)({url:"admin/structures/save",method:"post",data:e})}function r(e){return Object(n.a)({url:"admin/users/index",method:"post",data:e})}function c(e){return Object(n.a)({url:"admin/users/save",method:"post",data:e})}function u(e){return Object(n.a)({url:"admin/users/update",method:"post",data:e})}function d(e){return Object(n.a)({url:"admin/groups/index",method:"post",data:e})}function h(e){return Object(n.a)({url:"admin/users/updatePwd",method:"post",data:e})}function p(e){return Object(n.a)({url:"admin/users/usernameEdit",method:"post",data:e})}function f(e){return Object(n.a)({url:"admin/users/enables",method:"post",data:e})}function v(e){return Object(n.a)({url:"admin/structures/listDialog",method:"post",data:e})}},doIp:function(e,t,i){"use strict";var n=i("xznu");i.n(n).a},xznu:function(e,t,i){}}]);