|
12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fe40532"],{ddca:function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{attrs:{id:"app"}},[e("div",{staticClass:"layout_content"},[t._m(0),e("section",{staticClass:"yiyun_section houtai"},[e("div",{staticClass:"fl_navBox"},[e("div",{staticClass:"fl_navBox_body"},[e("div",{staticClass:"admin_treeBox navtree"},[e("div",{staticClass:"navtreebox fulltreebox"},[[e("nav",{staticClass:"Treenavbox mt-10"},[e("ul",{staticClass:"treeNav"},[e("li",{class:{contentNav:1==t.isShowPermManager},on:{click:t.toPermManager}},[t._v(" 权限管理 ")]),e("li",{class:{contentNav:1==t.isShowtestSwitch},on:{click:t.toTestPage}},[t._v(" 功能测试开关 ")])])])]],2)])])]),e("div",{staticClass:"fl_contentBox"},[e("div",{staticClass:"admin_contentBox_body"},[(t.isShowCompanyInfo=!1)?e("div",{staticClass:"admin_contentBox_bodyPain"},[e("div",{staticClass:"mlr-10"}),e("div",{staticClass:"mlr-10"}),t._m(1),e("div",{staticClass:"clear"}),e("div",{staticClass:"largecontentBox"},[e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"yiyunTable_list mt-10"},[void 0],2)])])]):t._e(),1==t.isShowPermManager?e("div",{staticClass:"admin_contentBox_bodyPain"},[t._m(2),t._m(3),e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"topOption"},[e("div",{staticClass:"fl"},[e("button",{staticClass:"EC_button shadow bt_small_20 primaryBtn",attrs:{type:"button"},on:{click:t.BtnAddUserManager}},[t._v(" 添加超级管理员 ")]),e("button",{staticClass:"EC_button bt_small_20",attrs:{type:"button"},on:{click:t.BtnDeleteUserManager}},[t._v(" 移除 ")])]),t._m(4)])]),e("div",{staticClass:"clear"}),e("div",{staticClass:"largecontentBox"},[e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"yiyunTable_list mt-10"},[[e("el-table",{staticClass:"listmaxheight userlist_table",staticStyle:{width:"100%"},attrs:{data:t.administratorData},on:{"selection-change":t.changeSelectPermUser}},[e("el-table-column",{attrs:{type:"selection",width:"38",align:"center"}}),e("el-table-column",{attrs:{prop:"headImgUrl",label:"头像",width:"55"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",{staticClass:"toxiang_box"},[e("img",{staticClass:"imgHead",attrs:{src:t.headSrc+s.headImgUrl}})])]}}],null,!1,2633952388)}),e("el-table-column",{attrs:{prop:"cnName",label:"姓名",width:"160"}}),e("el-table-column",{attrs:{prop:"position",label:"职位"}}),e("el-table-column",{attrs:{prop:"deptName",label:"部门"}}),e("el-table-column",{attrs:{prop:"phone",label:"电话"}}),e("el-table-column",{attrs:{prop:"roleName",label:"角色"}}),e("el-table-column",{attrs:{prop:"",width:"120",align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(s){return[e("button",{staticClass:"EC_button textStrong bt_mini"},[t._v(" 操作记录 ")])]}}],null,!1,3833639560)})],1),t._m(5)]],2)])])]):t._e(),1==t.isShowtestSwitch?e("div",{staticClass:"admin_contentBox_bodyPain"},[t._m(6),t._m(7),e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"yiyunTable_list"},[t._m(8),t._m(9),e("div",{staticClass:"textlabelgray UserEditinfoBox DivInputHeight"},t._l(t.listSettings,(function(s,a){return e("div",{key:a,staticClass:"yiyun_col-6"},[e("div",{staticClass:"filelist"},[e("span",{staticClass:"fl"},[t._v(t._s(s.name))]),e("el-switch",{staticClass:"fr",attrs:{"active-value":1,"inactive-value":0},on:{change:function(e){return t.modifySetting(s)}},model:{value:s.status,callback:function(e){t.$set(s,"status",e)},expression:"setting.status"}})],1)])})),0)])])]):t._e()])])]),e("div",{staticClass:"yiyun_col-12 mt-10"},[e("div",{staticClass:"el-form-itemBox"},[e("selectUser",{attrs:{isShow:t.isEdit,selectArray:t.selectUserArray,titleName:t.titleText},on:{selectedOver:t.saveUserManager}})],1)])])])},i=[function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("section",{staticClass:"title_section"},[e("div",{staticClass:"EC_col_8"},[e("div",{staticClass:"adminnavBox"},[e("h3",[t._v("总体权限")])])]),e("div",{staticClass:"EC_col_8"},[e("div",{staticClass:"EC_searchBox"})]),e("div",{staticClass:"EC_col_8"},[e("div",{staticClass:"fr mt-15"},[e("div",[e("span",{staticClass:"ECclockText"})])])])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"topOption"},[e("div",{staticClass:"fl"}),e("div",{staticClass:"fr page_button"})])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mlr-10"},[e("h4",{staticClass:"admintitle"},[t._v("管理员指派")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"border-line"})])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"fr page_button"},[e("span",[t._v("上一页")]),e("span",[t._v("1")]),t._v(" / "),e("span",[t._v("1")]),e("span",[t._v("下一页")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"bzInfo"},[e("span",{staticClass:"labelTosize"},[t._v("超级管理员具有对所有成员查看和管理权限,也具有对所有应用和管理的权限。")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mlr-10"},[e("h4",{staticClass:"admintitle"},[t._v("测试版本开关设置")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"mlr-10"},[e("div",{staticClass:"border-line"})])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("h3",{staticClass:"secondListTitle"},[t._v("协作空间")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"border-line_light"})])}],n=(e("4160"),e("b0c0"),e("159b"),e("2b0e")),l=e("a429"),o=e("de0d");n["default"].use(l["a"]);var r={components:{selectUser:o["a"]},elNew:"#app",data:function(){return{imgSrc:"/api/archives/cover?path=",headSrc:"/api/archives/head?path=",isShowPermManager:!0,administratorData:[],isEdit:!1,selectUserArray:[],permUserArray:[],titleText:"选择用户",listCurrSelectUserPerm:[],isShowtestSwitch:!1,submitfile:!0,listSettings:[]}},mounted:function(){this.loadPermsion()},methods:{isShow:function(){this.isShowPermManager=!1,this.isShowtestSwitch=!1},BtnAddUserManager:function(){this.selectUserArray=this.permUserArray,this.isEdit=!0},BtnDeleteUserManager:function(){if(0!=this.listCurrSelectUserPerm.length){var t=[];this.listCurrSelectUserPerm.forEach((function(s){t.push(s.userID)}));var s=this;this.$axios({method:"put",url:encodeURI("/api/sysinfo/users/manager/noperm"),data:{listUserID:t,userID:sessionStorage.userId}}).then((function(t){1==t.data.state?(s.$notify({message:t.data.message,type:["success"],offset:100,duration:2500}),s.permUserArray=[],s.loadPermsion()):s.$notify({message:t.data.message,type:["error"],offset:100,duration:5e3})})).catch((function(t){console.log(t)}))}else this.$notify.warning({message:"请选择人员后再进行移除操作。",offset:100,duration:2500})},toPermManager:function(){this.isShow(),this.isShowPermManager=!0},changeSelectPermUser:function(t){this.listCurrSelectUserPerm=t},loadPermsion:function(){var t=this;this.$axios({method:"get",url:encodeURI("/api/sysinfo/users/sysmanager/"+sessionStorage.companyId),data:{companyid:sessionStorage.companyId}}).then((function(s){t.administratorData=s.data,s.data.forEach((function(s){t.permUserArray.push(s.userID)}))})).catch((function(t){console.log(t)}))},saveUserManager:function(t,s,e){if(s.length>0){var a=this;this.$axios({method:"put",url:encodeURI("/api/sysinfo/users/sysmanager"),data:{listUserID:t,userID:sessionStorage.userId}}).then((function(t){1==t.data.state?(a.$notify({message:t.data.message,type:["success"],offset:100,duration:2500}),a.loadPermsion()):a.$notify({message:t.data.message,type:["error"],offset:100,duration:5e3})})).catch((function(t){console.log(t)}))}this.isEdit=!1},toTestPage:function(){this.isShow(),this.loadSettings(),this.isShowtestSwitch=!0},loadSettings:function(){var t=this;this.$axios({method:"get",url:encodeURI("/api/sysinfo/setting")}).then((function(s){t.listSettings=s.data})).catch((function(t){console.log(t)}))},modifySetting:function(t){var s=this,e="禁用功能";1==t.status&&(e="启用功能"),this.$confirm(e+"【"+t.name+"】,是否继续?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.modifyUserID=sessionStorage.userId;var e=s;s.$axios({method:"put",url:encodeURI("/api/sysinfo/setting"),data:t}).then((function(t){1==t.data.state?(e.$notify({message:t.data.message,type:["success"],offset:100,duration:2500}),e.loadSettings()):e.$notify({message:t.data.message,type:["error"],offset:100,duration:5e3})})).catch((function(t){console.log(t)}))})).catch((function(){1==t.status?t.status=0:t.status=1}))}}},c=r,d=e("2877"),u=Object(d["a"])(c,a,i,!1,null,null,null);s["default"]=u.exports},de0d:function(t,s,e){"use strict";var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("el-dialog",{attrs:{visible:t.isShowDialog,title:t.titleText,width:"700px","close-on-click-modal":!1},on:{"update:visible":function(s){t.isShowDialog=s},close:t.cancelClick}},[e("div",{staticClass:"middiaHeight"},[e("el-tree",{ref:"tree",attrs:{data:t.listManagerDeptUsers,"default-checked-keys":t.selectedArray,"show-checkbox":"","default-expand-all":"","node-key":"id",height:"500","check-on-click-node":!0,"expand-on-click-node":!1,indent:8,"highlight-current":""},scopedSlots:t._u([{key:"default",fn:function(s){var a=s.node;return e("span",{staticClass:"custom-tree-node"},[e("span",[0==a.isLeaf?e("i",{staticClass:"el-icon-location color1"}):t._e(),1==a.isLeaf?e("i",{staticClass:"el-icon-user-solid color2"}):t._e(),e("span",[t._v(t._s(a.label))])])])}}])})],1),e("span",{staticClass:"dialog-footer centerfooter",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{attrs:{round:""},on:{click:t.cancelClick}},[t._v("取 消")]),e("el-button",{attrs:{round:"",type:"primary"},on:{click:t.sureClick}},[t._v("确 定")])],1)])},i=[],n=(e("4160"),e("159b"),{props:{isShow:{type:Boolean,default:!1},selectArray:{type:Array,default:function(){return[]}},titleName:{type:String,default:"选择用户"}},data:function(){return{listManagerDeptUsers:[],isShowDialog:!1,selectedArray:[],titleText:this.titleName}},mounted:function(){this.loadDeptUsers()},methods:{loadDeptUsers:function(){var t=this;this.$axios({method:"get",url:encodeURI("/api/sysinfo/deptusers/tree/"+sessionStorage.companyId)}).then((function(s){t.listManagerDeptUsers=s.data.data})).catch((function(t){console.log(t)}))},cancelClick:function(){this.isShowDialog=!1,this.$emit("selectedOver",[],[],"")},sureClick:function(){this.isShowDialog=!1;var t=this.$refs.tree.getCheckedNodes(),s=[],e=[],a="";t.length>0&&t.forEach((function(t){t.isLeaf&&(s.push(t.id),e.push(t.data),a=""!=a?a+"、"+t.label:t.label)})),this.$emit("selectedOver",s,e,a)}},watch:{isShow:function(t){this.isShowDialog=t},selectArray:function(t){var s=this;this.selectedArray=t,this.$nextTick((function(){s.$refs.tree.setCheckedKeys(t)}))},titleName:function(t){this.titleText=t}}}),l=n,o=e("2877"),r=Object(o["a"])(l,a,i,!1,null,null,null);s["a"]=r.exports}}]);
- //# sourceMappingURL=chunk-1fe40532.5bf10451.js.map
|