You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

chunk-1fe40532.1fb1a32b.js 11 KiB

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