Commit a75c723e by Sxy

build

parent b1db0772
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.d8eef113.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3f4029e7.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-738a8724.71e3d438.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-037694a5.7e50cc17.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.911f90c4.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.c1554a3b.js rel=prefetch><link href=/js/chunk-1a0615f2.b051fd28.js rel=prefetch><link href=/js/chunk-1b756945.f2391a13.js rel=prefetch><link href=/js/chunk-21b5182a.64203a99.js rel=prefetch><link href=/js/chunk-22347577.172e21a4.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.9ae15683.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.cce6bf6e.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-3f4029e7.99f54f70.js rel=prefetch><link href=/js/chunk-477a8e91.c603527d.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-5ccefbbb.0f021a99.js rel=prefetch><link href=/js/chunk-5e7b929d.f3ce9ea9.js rel=prefetch><link href=/js/chunk-61b0b1e5.e4ead4e0.js rel=prefetch><link href=/js/chunk-65e97401.3b9c7780.js rel=prefetch><link href=/js/chunk-738a8724.0af49f4b.js rel=prefetch><link href=/js/chunk-75b126e3.7ed92c02.js rel=prefetch><link href=/js/chunk-8e32057a.99a05e99.js rel=prefetch><link href=/js/chunk-9947983a.dac20f72.js rel=prefetch><link href=/js/chunk-e7e51fa0.2dc827c3.js rel=prefetch><link href=/js/chunk-ff3eaeb0.73991da8.js rel=prefetch><link href=/css/app.4f840f8a.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.963b18ae.js rel=preload as=script><link href=/js/chunk-vendors.d7971afc.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4f840f8a.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.d7971afc.js></script><script src=/js/app.963b18ae.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ccc.png><title></title><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-175acaff.d8eef113.css rel=prefetch><link href=/css/chunk-1b756945.9e7173ae.css rel=prefetch><link href=/css/chunk-21b5182a.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-3f4029e7.84fd9662.css rel=prefetch><link href=/css/chunk-5ccefbbb.9e7173ae.css rel=prefetch><link href=/css/chunk-61b0b1e5.9e7173ae.css rel=prefetch><link href=/css/chunk-738a8724.71e3d438.css rel=prefetch><link href=/css/chunk-8e32057a.e8e9a917.css rel=prefetch><link href=/css/chunk-e7e51fa0.9e7173ae.css rel=prefetch><link href=/css/chunk-ff3eaeb0.9e7173ae.css rel=prefetch><link href=/js/chunk-037694a5.7e50cc17.js rel=prefetch><link href=/js/chunk-0aa2a834.9028f9e8.js rel=prefetch><link href=/js/chunk-137dcf78.d8fcc61f.js rel=prefetch><link href=/js/chunk-14b9857b.35e42781.js rel=prefetch><link href=/js/chunk-15d6294e.911f90c4.js rel=prefetch><link href=/js/chunk-175acaff.ca3f7e65.js rel=prefetch><link href=/js/chunk-1792c498.c1554a3b.js rel=prefetch><link href=/js/chunk-1a0615f2.b051fd28.js rel=prefetch><link href=/js/chunk-1b756945.f2391a13.js rel=prefetch><link href=/js/chunk-21b5182a.64203a99.js rel=prefetch><link href=/js/chunk-22347577.172e21a4.js rel=prefetch><link href=/js/chunk-24a41303.88feac34.js rel=prefetch><link href=/js/chunk-25d9ab36.087a7b9f.js rel=prefetch><link href=/js/chunk-2aeda6fa.2bd11851.js rel=prefetch><link href=/js/chunk-2b3066fa.3441dd61.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.a431f6b6.js rel=prefetch><link href=/js/chunk-2d0e68e0.1a313c84.js rel=prefetch><link href=/js/chunk-2d0efc5d.662e1339.js rel=prefetch><link href=/js/chunk-3385141a.a6e1a986.js rel=prefetch><link href=/js/chunk-3a0bcea0.192dd1cf.js rel=prefetch><link href=/js/chunk-3f4029e7.99f54f70.js rel=prefetch><link href=/js/chunk-477a8e91.c603527d.js rel=prefetch><link href=/js/chunk-4b58f216.e79a0ff7.js rel=prefetch><link href=/js/chunk-5ccefbbb.0f021a99.js rel=prefetch><link href=/js/chunk-5e7b929d.f3ce9ea9.js rel=prefetch><link href=/js/chunk-61b0b1e5.e4ead4e0.js rel=prefetch><link href=/js/chunk-65e97401.3b9c7780.js rel=prefetch><link href=/js/chunk-738a8724.0af49f4b.js rel=prefetch><link href=/js/chunk-75b126e3.7ed92c02.js rel=prefetch><link href=/js/chunk-8e32057a.99a05e99.js rel=prefetch><link href=/js/chunk-9947983a.dac20f72.js rel=prefetch><link href=/js/chunk-e7e51fa0.2dc827c3.js rel=prefetch><link href=/js/chunk-ff3eaeb0.73991da8.js rel=prefetch><link href=/css/app.4f840f8a.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.f0575688.js rel=preload as=script><link href=/js/chunk-vendors.d7971afc.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4f840f8a.css rel=stylesheet></head><body><noscript><strong>We're sorry but iview-admin doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.d7971afc.js></script><script src=/js/app.f0575688.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b3066fa","chunk-2d0d61ef"],{"70cc":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},n=[],a=(r("cc57"),r("163d"),r("06d3")),s=r("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:a["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,r){return r(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){var r=this,o="",n={};"enablebtn"==e?(o="/web/auth/userCtl/allowOrNotToOne",n={curid:t.id,isEnabled:t.isEnabled,userName:t.userName}):"resetbtn"==e&&(o="/web/auth/userCtl/unlockUser",n={userName:t.userName}),Object(s["m"])(o,n).then((function(e){var t=e.data;0==t.status?(r.$refs.bt.fetchData(),r.$Message.success("当前操作已经成功完成.")):r.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,r){if("isEnabled"==t)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==t)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==t){var o=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(o,"</span>")}return"isAdmin"==t||"isSuper"==t?"<span>".concat(e[t]?"是":"否","</span>"):"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},l=i,c=r("9ca4"),u=Object(c["a"])(l,o,n,!1,null,null,null);t["default"]=u.exports},d610:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var o=t.adjustHeight;return[r("SplitPanel",[r("OrgEditor",{ref:"orgtree",attrs:{slot:"left",initData:e.initData,metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode},slot:"left"}),r("UserInfo",{ref:"userinfo",attrs:{slot:"right",tblheight:o-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},slot:"right"})],1)]}}])})},n=[],a=r("efa5"),s=a["a"],i=r("9ca4"),l=Object(i["a"])(s,o,n,!1,null,null,null);t["default"]=l.exports},efa5:function(e,t,r){"use strict";(function(e){r("9a33"),r("60b7");var o=r("391e"),n=r("7e1e"),a=r("302e"),s=r("832e"),i=r("70cc");r("f121");t["a"]={name:"treeinfo_page",props:{},components:{OrgEditor:a["a"],SplitPanel:s["a"],UserInfo:i["default"],PageSpace:o["a"]},data:function(){return{metainfo:{name:"节点编辑",main:[{title:"授权信息",key:"baseinfo",cols:2,ctls:[{type:"switch",label:"是否岗位",prop:"isPosition",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:""},{type:"switch",label:"是否负责人",prop:"isMain",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:"",isHide:!0},{type:"input",label:"监控",prop:"orgtag",placeHolder:"输入监控的部门编码(非岗位),逗号分隔",style:"",rules:[],isHide:!0},{type:"model-select",refModel:"auth.role",isMulti:!0,label:"角色",prop:"roles",labelField:"name",valueField:"id",style:{"margin-left":"10px",width:"165px"},isHide:!0}]}],lists:null}}},mounted:function(){},methods:{onselnode:function(e,t,r){this.$refs.userinfo.searchWhere({opath:r.code})},orgsave:function(e,t,r){var o=this;Object(n["m"])("/web/common/companyCtl/setOrgs",{orgJson:e,curdata:t,olddata:r}).then((function(e){var r=e.data;if(console.log("ddddddddddddddddd",r),0==r.status){var n=r.data.orgJson;console.log("save org...............................",n),o.$refs.orgtree.treedata=n,o.$refs.orgtree.refreshTree(),o.$Message.success("当前操作成功完成"),o.$refs.userinfo.searchWhere({opath:t.code})}}))},beforeadd:function(e,t){return this.$refs.orgtree.currentData&&this.$refs.orgtree.currentData.isPosition?t({value:!0,message:null}):t({value:!1,message:"请选择岗位节点"})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,r){return this.$refs.orgtree.currentData&&this.$refs.orgtree.currentData.isPosition&&(t.opath=this.$refs.orgtree.currentData.orgpath+"/"+t.userName,t.ptags=this.$refs.orgtree.currentData.orgtag,t.roles=this.$refs.orgtree.currentData.roles?this.$refs.orgtree.currentData.roles:[]),console.log("before.save",e,t),r(t)},setHeight:function(){var t=e("#orgdiv"),r=t.get()[0],o=window.innerHeight-r.offsetTop;t.css("height",o+"px"),this.$refs.userinfo.setHeight(o-120)},drawaction:function(e,t){t.formModel.isPosition?(t.setCtlVisable("isMain",!0),t.setCtlVisable("orgtag",!0),t.setCtlVisable("roles",!0)):(t.setCtlVisable("isMain",!1),t.setCtlVisable("orgtag",!1),t.setCtlVisable("roles",!1))},controlctl:function(e,t,r){if("isMain"==t){var o=this.$refs.orgtree.currentNode,n=this.$refs.orgtree.findParentByNode(o),a=r.formModel;if(a.orgtag&&a.orgtag.indexOf(n.code)<0){var s=a.orgtag.split(",").push(n.code).join(",");a.orgtag=s}else a.orgtag=n.code}"isPosition"==t&&(e?(r.setCtlVisable("isMain",!0),r.setCtlVisable("orgtag",!0),r.setCtlVisable("roles",!0)):(r.setCtlVisable("isMain",!1),r.setCtlVisable("orgtag",!1),r.setCtlVisable("roles",!1)))},initData:function(e){Object(n["g"])().then((function(t){var r=t.data;if(0!=r.status)throw new Error("获取组织数据出错");var o=r.data.orgJson;e(o)}))}}}}).call(this,r("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b3066fa","chunk-2d0d61ef"],{"70cc":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},n=[],a=(r("cc57"),r("163d"),r("06d3")),s=r("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:a["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,r){return r(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){var r=this;"enablebtn"==e&&Object(s["m"])("/web/auth/userCtl/allowOrNotToOne",{curid:t.id,isEnabled:t.isEnabled}).then((function(e){var t=e.data;0==t.status?(r.$refs.bt.fetchData(),r.$Message.success("当前操作已经成功完成.")):r.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,r){if("isEnabled"==t)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==t)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==t){var o=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(o,"</span>")}return"isAdmin"==t||"isSuper"==t?"<span>".concat(e[t]?"是":"否","</span>"):"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},l=i,c=r("9ca4"),f=Object(c["a"])(l,o,n,!1,null,null,null);t["default"]=f.exports},d610:function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var o=t.adjustHeight;return[r("SplitPanel",[r("OrgEditor",{ref:"orgtree",attrs:{slot:"left",initData:e.initData,metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode},slot:"left"}),r("UserInfo",{ref:"userinfo",attrs:{slot:"right",tblheight:o-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},slot:"right"})],1)]}}])})},n=[],a=r("efa5"),s=a["a"],i=r("9ca4"),l=Object(i["a"])(s,o,n,!1,null,null,null);t["default"]=l.exports},efa5:function(e,t,r){"use strict";(function(e){r("9a33"),r("60b7");var o=r("391e"),n=r("7e1e"),a=r("302e"),s=r("832e"),i=r("70cc");r("f121");t["a"]={name:"treeinfo_page",props:{},components:{OrgEditor:a["a"],SplitPanel:s["a"],UserInfo:i["default"],PageSpace:o["a"]},data:function(){return{metainfo:{name:"节点编辑",main:[{title:"授权信息",key:"baseinfo",cols:2,ctls:[{type:"switch",label:"是否岗位",prop:"isPosition",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:""},{type:"switch",label:"是否负责人",prop:"isMain",opentext:"是",closetext:"否",trurcolor:"",falsecolor:"",placeHolder:"",style:"",isHide:!0},{type:"input",label:"监控",prop:"orgtag",placeHolder:"输入监控的部门编码(非岗位),逗号分隔",style:"",rules:[],isHide:!0},{type:"model-select",refModel:"auth.role",isMulti:!0,label:"角色",prop:"roles",labelField:"name",valueField:"id",style:{"margin-left":"10px",width:"165px"},isHide:!0}]}],lists:null}}},mounted:function(){},methods:{onselnode:function(e,t,r){this.$refs.userinfo.searchWhere({opath:r.code})},orgsave:function(e,t,r){var o=this;Object(n["m"])("/web/common/companyCtl/setOrgs",{orgJson:e,curdata:t,olddata:r}).then((function(e){var r=e.data;if(console.log("ddddddddddddddddd",r),0==r.status){var n=r.data.orgJson;console.log("save org...............................",n),o.$refs.orgtree.treedata=n,o.$refs.orgtree.refreshTree(),o.$Message.success("当前操作成功完成"),o.$refs.userinfo.searchWhere({opath:t.code})}}))},beforeadd:function(e,t){return this.$refs.orgtree.currentData&&this.$refs.orgtree.currentData.isPosition?t({value:!0,message:null}):t({value:!1,message:"请选择岗位节点"})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,r){return this.$refs.orgtree.currentData&&this.$refs.orgtree.currentData.isPosition&&(t.opath=this.$refs.orgtree.currentData.orgpath+"/"+t.userName,t.ptags=this.$refs.orgtree.currentData.orgtag,t.roles=this.$refs.orgtree.currentData.roles?this.$refs.orgtree.currentData.roles:[]),console.log("before.save",e,t),r(t)},setHeight:function(){var t=e("#orgdiv"),r=t.get()[0],o=window.innerHeight-r.offsetTop;t.css("height",o+"px"),this.$refs.userinfo.setHeight(o-120)},drawaction:function(e,t){t.formModel.isPosition?(t.setCtlVisable("isMain",!0),t.setCtlVisable("orgtag",!0),t.setCtlVisable("roles",!0)):(t.setCtlVisable("isMain",!1),t.setCtlVisable("orgtag",!1),t.setCtlVisable("roles",!1))},controlctl:function(e,t,r){if("isMain"==t){var o=this.$refs.orgtree.currentNode,n=this.$refs.orgtree.findParentByNode(o),a=r.formModel;if(a.orgtag&&a.orgtag.indexOf(n.code)<0){var s=a.orgtag.split(",").push(n.code).join(",");a.orgtag=s}else a.orgtag=n.code}"isPosition"==t&&(e?(r.setCtlVisable("isMain",!0),r.setCtlVisable("orgtag",!0),r.setCtlVisable("roles",!0)):(r.setCtlVisable("isMain",!1),r.setCtlVisable("orgtag",!1),r.setCtlVisable("roles",!1)))},initData:function(e){Object(n["g"])().then((function(t){var r=t.data;if(0!=r.status)throw new Error("获取组织数据出错");var o=r.data.orgJson;e(o)}))}}}}).call(this,r("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d61ef"],{"70cc":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},r=[],o=(n("cc57"),n("163d"),n("06d3")),s=n("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:o["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,t,n){return n(t)}}},beforedit:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,t){return t({value:!0,message:null})}}}},methods:{onexec:function(e,t){var n=this,a="",r={};"enablebtn"==e?(a="/web/auth/userCtl/allowOrNotToOne",r={curid:t.id,isEnabled:t.isEnabled,userName:t.userName}):"resetbtn"==e&&(a="/web/auth/userCtl/unlockUser",r={userName:t.userName}),Object(s["m"])(a,r).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,t){"enablebtn"==e.key&&(t.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,t,n){if("isEnabled"==t)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==t)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==t){var a=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(a,"</span>")}return"isAdmin"==t||"isSuper"==t?"<span>".concat(e[t]?"是":"否","</span>"):"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},u=i,l=n("9ca4"),c=Object(l["a"])(u,a,r,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d61ef"],{"70cc":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"user_info",packageName:"auth",tblheight:e.tblheight,isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec,oninitbtn:e.oninitbtn}})],1)},o=[],r=(t("cc57"),t("163d"),t("06d3")),s=t("7e1e"),i={name:"userinfo_page",data:function(){return{}},components:{BizTable:r["a"]},props:{tblheight:Number,beforesave:{type:Function,default:function(){return function(e,n,t){return t(n)}}},beforedit:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}},beforeadd:{type:Function,default:function(){return function(e,n){return n({value:!0,message:null})}}}},methods:{onexec:function(e,n){var t=this;"enablebtn"==e&&Object(s["m"])("/web/auth/userCtl/allowOrNotToOne",{curid:n.id,isEnabled:n.isEnabled}).then((function(e){var n=e.data;0==n.status?(t.$refs.bt.fetchData(),t.$Message.success("当前操作已经成功完成.")):t.$Message.error("当前操作未完成.")}))},oninitbtn:function(e,n){"enablebtn"==e.key&&(n.isEnabled?e.title="停用":e.title="启用")},searchWhere:function(e){this.$refs.bt.initWhereData=e,this.$refs.bt.fetchData()},setHeight:function(e){this.$refs.bt.setHeight(e)},onnew:function(){this.$refs.bt.setFormCtlVisable("userName",!0)},onedit:function(){this.$refs.bt.setFormCtlVisable("userName",!1)},formatCol:function(e,n,t){if("isEnabled"==n)return e["isEnabled"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("isAllocated"==n)return e["isAllocated"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>';if("roleName"==n){var a=e.Roles.map((function(e){return e.name})).join(",");return e.roles=e.Roles.map((function(e){return e.id})),"<span>".concat(a,"</span>")}return"isAdmin"==n||"isSuper"==n?"<span>".concat(e[n]?"是":"否","</span>"):"created_at"==n?"<span>".concat(new Date(e[n]).toLocaleString(),"</span>"):e[n]}}},u=i,c=t("9ca4"),l=Object(c["a"])(u,a,o,!1,null,null,null);n["default"]=l.exports}}]);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment