Commit e5825cf4 by 蒋勇

d

parent 592e7434
<!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-0e49e0e0.9e7173ae.css rel=prefetch><link href=/css/chunk-12ad0968.71e3d438.css rel=prefetch><link href=/css/chunk-14b9857b.0dc416de.css rel=prefetch><link href=/css/chunk-2be162c2.6e6ae301.css rel=prefetch><link href=/css/chunk-2c359864.0dc416de.css rel=prefetch><link href=/css/chunk-2f5f87d6.9e7173ae.css rel=prefetch><link href=/css/chunk-3385141a.0dc416de.css rel=prefetch><link href=/css/chunk-46b916e6.9e7173ae.css rel=prefetch><link href=/css/chunk-536fd493.84fd9662.css rel=prefetch><link href=/css/chunk-6523067c.7a825095.css rel=prefetch><link href=/css/chunk-8419046c.9e7173ae.css rel=prefetch><link href=/css/chunk-8a24a96a.e8e9a917.css rel=prefetch><link href=/css/chunk-fa30b8f2.9e7173ae.css rel=prefetch><link href=/js/chunk-01087725.2243c5d7.js rel=prefetch><link href=/js/chunk-03756f9a.10319518.js rel=prefetch><link href=/js/chunk-0aa146fd.cc46693b.js rel=prefetch><link href=/js/chunk-0e49e0e0.9a5d537c.js rel=prefetch><link href=/js/chunk-12ad0968.35bdbdaf.js rel=prefetch><link href=/js/chunk-138091e6.9f54d20a.js rel=prefetch><link href=/js/chunk-14b9857b.fffc8d61.js rel=prefetch><link href=/js/chunk-15c7622f.fe46a05e.js rel=prefetch><link href=/js/chunk-17916361.963dbc4a.js rel=prefetch><link href=/js/chunk-22331440.08e8ff61.js rel=prefetch><link href=/js/chunk-25dc6da4.34467edc.js rel=prefetch><link href=/js/chunk-2af06968.ea8f906f.js rel=prefetch><link href=/js/chunk-2b5c7a88.788f3d68.js rel=prefetch><link href=/js/chunk-2be162c2.1458db98.js rel=prefetch><link href=/js/chunk-2c359864.931438c0.js rel=prefetch><link href=/js/chunk-2d0d61ef.84d721c9.js rel=prefetch><link href=/js/chunk-2d0e68e0.a7250a3f.js rel=prefetch><link href=/js/chunk-2d0efc5d.146e3bce.js rel=prefetch><link href=/js/chunk-2f5f87d6.8b25e19b.js rel=prefetch><link href=/js/chunk-3385141a.275cf957.js rel=prefetch><link href=/js/chunk-404534a8.72b9b35f.js rel=prefetch><link href=/js/chunk-46b916e6.4342d0ba.js rel=prefetch><link href=/js/chunk-47792d5a.38eb3d99.js rel=prefetch><link href=/js/chunk-536fd493.744a70fd.js rel=prefetch><link href=/js/chunk-5e7a3166.1523e4a4.js rel=prefetch><link href=/js/chunk-6523067c.7c507fb0.js rel=prefetch><link href=/js/chunk-65daace2.473fbc69.js rel=prefetch><link href=/js/chunk-682c1ef7.b9a68126.js rel=prefetch><link href=/js/chunk-8419046c.1dd41036.js rel=prefetch><link href=/js/chunk-8a24a96a.1e8b433e.js rel=prefetch><link href=/js/chunk-d9cdc768.5f81a064.js rel=prefetch><link href=/js/chunk-fa30b8f2.f2027c63.js rel=prefetch><link href=/css/app.4189c8e8.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.ad436aff.js rel=preload as=script><link href=/js/chunk-vendors.a82bf905.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4189c8e8.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.a82bf905.js></script><script src=/js/app.ad436aff.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.7a825095.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-34953cb0.71e3d438.css rel=prefetch><link href=/css/chunk-480215f6.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-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-0109d85c.5e8b8a8c.js rel=prefetch><link href=/js/chunk-037694a5.dbac4481.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-15c8c366.5c2f80ad.js rel=prefetch><link href=/js/chunk-175acaff.28cd78c0.js rel=prefetch><link href=/js/chunk-1792c498.4042b98c.js rel=prefetch><link href=/js/chunk-1b756945.6e35468e.js rel=prefetch><link href=/js/chunk-21b5182a.74708748.js rel=prefetch><link href=/js/chunk-22347577.40ebeba7.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.ef8e7d58.js rel=prefetch><link href=/js/chunk-2c359864.90a950b1.js rel=prefetch><link href=/js/chunk-2d0d61ef.b45759ac.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-34953cb0.5d4f8ee5.js rel=prefetch><link href=/js/chunk-3a0bcea0.c3c2b7ff.js rel=prefetch><link href=/js/chunk-404695df.62b2f80f.js rel=prefetch><link href=/js/chunk-477a8e91.64ed92d7.js rel=prefetch><link href=/js/chunk-480215f6.01e097a9.js rel=prefetch><link href=/js/chunk-5ccefbbb.0f021a99.js rel=prefetch><link href=/js/chunk-5e7b929d.19a070c0.js rel=prefetch><link href=/js/chunk-61b0b1e5.954dfc4f.js rel=prefetch><link href=/js/chunk-65dc0e19.217bf97c.js rel=prefetch><link href=/js/chunk-8e32057a.e4a9d2d4.js rel=prefetch><link href=/js/chunk-d9cb04fa.195de55a.js rel=prefetch><link href=/js/chunk-e7e51fa0.43f146c4.js rel=prefetch><link href=/js/chunk-ff3eaeb0.dc42a26b.js rel=prefetch><link href=/css/app.4189c8e8.css rel=preload as=style><link href=/css/chunk-vendors.1d90d08d.css rel=preload as=style><link href=/js/app.62b5bf62.js rel=preload as=script><link href=/js/chunk-vendors.9ae5f635.js rel=preload as=script><link href=/css/chunk-vendors.1d90d08d.css rel=stylesheet><link href=/css/app.4189c8e8.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.9ae5f635.js></script><script src=/js/app.62b5bf62.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-0aa146fd"],{"391e":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],a=n("6db5"),o=a["a"],c=n("2877"),f=Object(c["a"])(o,r,i,!1,null,null,null);t["a"]=f.exports},"560c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"product_info",modelName:"product",packageName:"product",tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,noExpandAuth:""},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],a=(n("ac6a"),n("7f7f"),n("c5f6"),n("06d3")),o=n("391e"),c=(n("60b7"),{name:"appinfo_page",data:function(){return{}},components:{PageSpace:o["a"],BizTable:a["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){},validmethod:function(e,t,n){return n()},formatCol:function(e,t,n){if("isEnabled"==t){var r=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(r,"</span>"):'<span style="color:orange">'.concat(r,"</span>")}if("deliverfile"==t){var i=e["deliverfile"];return"<img src='".concat(i,"' style='height:40px'>")}if("extrafile"==t){var a=e["extrafile"];return"<img src='".concat(a,"' style='height:40px'>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("pname"==t)return e.pname=e.product.name,e.product.name;if("strategyitems"==t)return e.strategyitems=e.pricestrategy.optionunion,e.pricestrategy.optionunion;if("code"==t){var o=[];return e.skus.forEach((function(e){o.push(e.pricestrategy_id)})),e.sts=o,e["code"]}}}}),f=c,u=n("2877"),s=Object(u["a"])(f,r,i,!1,null,null,null);t["default"]=s.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),r=n.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0aa2a834"],{"391e":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],a=n("9ee1"),o=a["a"],c=n("9ca4"),u=Object(c["a"])(o,r,i,!1,null,null,null);t["a"]=u.exports},"560c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"product_info",modelName:"product",packageName:"product",tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,noExpandAuth:""},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],a=(n("6d57"),n("cc57"),n("163d"),n("06d3")),o=n("391e"),c=(n("60b7"),{name:"appinfo_page",data:function(){return{}},components:{PageSpace:o["a"],BizTable:a["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){},validmethod:function(e,t,n){return n()},formatCol:function(e,t,n){if("isEnabled"==t){var r=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(r,"</span>"):'<span style="color:orange">'.concat(r,"</span>")}if("deliverfile"==t){var i=e["deliverfile"];return"<img src='".concat(i,"' style='height:40px'>")}if("extrafile"==t){var a=e["extrafile"];return"<img src='".concat(a,"' style='height:40px'>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("pname"==t)return e.pname=e.product.name,e.product.name;if("strategyitems"==t)return e.strategyitems=e.pricestrategy.optionunion,e.pricestrategy.optionunion;if("code"==t){var o=[];return e.skus.forEach((function(e){o.push(e.pricestrategy_id)})),e.sts=o,e["code"]}}}}),u=c,s=n("9ca4"),f=Object(s["a"])(u,r,i,!1,null,null,null);t["default"]=f.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),r=n.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e49e0e0"],{4635:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",[t.isOperator?t._e():a("div",{attrs:{slot:"title"},slot:"title"},[a("Select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择要授权的应用"},on:{"on-change":t.onchange},model:{value:t.selAppId,callback:function(e){t.selAppId=e},expression:"selAppId"}},t._l(t.myapps,(function(e){return a("Option",{key:e.title,attrs:{value:e.id}},[t._v(t._s(e.title))])})),1)],1),a("Tree",{staticClass:"ptree",attrs:{data:t.treedata,render:t.renderContent}})],1)],1)},n=[],o=a("e1f0"),r=o["a"],i=(a("83d8"),a("2877")),l=Object(i["a"])(r,s,n,!1,null,null,null);e["default"]=l.exports},"83d8":function(t,e,a){"use strict";var s=a("d494"),n=a.n(s);n.a},d494:function(t,e,a){},e1f0:function(t,e,a){"use strict";(function(t){a("7514"),a("28a5"),a("ac6a");var s=a("60b7"),n=a("e247");a("f121");e["a"]={name:"roleauth_page",data:function(){return{myapps:JSON.parse(localStorage.getItem("myapps")),selAppId:"",roleid:-1,rolecode:"",roleauths:null,treedata:[],buttonProps:{type:"default",size:"small"}}},components:{Checks:n["a"]},computed:{authdic:function(){var t={};return this.roleauths.forEach((function(e){t[e.bizcode]=e.authstrs.split(",")})),t},isOperator:function(){return 1==this.$store.state.user.userobj.company.id}},mounted:function(){this.roleid=this.$route.query.roleid,this.rolecode=this.$route.query.rolecode,this.isOperator&&this.initTree()},methods:{onchange:function(t){var e=this,a=this.myapps.filter((function(e){return e.id==t}));this.treedata=JSON.parse(a[0].functionJSON),Object(s["c"])([this.roleid]).then((function(t){var a=t.data;0==a.status?(e.roleauths=a.data,e.setAuthData(e.treedata)):console.log("fetch auths fails.....---------------------------------------------------------")}))},initTree:function(){var t=this;Object(s["d"])().then((function(e){var a=e.data;0==a.status&&(t.treedata=a.data.funcJson,Object(s["c"])([t.roleid]).then((function(e){var a=e.data;0==a.status?(t.roleauths=a.data,t.setAuthData(t.treedata)):console.log("fetch auths fails.....---------------------------------------------------------")})))}))},setAuthData:function(t){var e=this;t.forEach((function(t){t.children&&t.children.length>0?e.setAuthData(t.children):t.sels?t.sels=e.authdic[t.code]?e.authdic[t.code]:[]:t.sels=[]}))},makeauths:function(t,e){var a=this;console.log(t,"makeauths"),t.forEach((function(t){if(t.children&&t.children.length>0)a.makeauths(t.children,e);else if(t.sels){var s={role_id:a.roleid,rolecode:a.rolecode,bizcode:t.code,codepath:t.orgpath,authstrs:t.sels.join(",")};e.push(s)}}))},saveAuths:function(){var t=this,e=[];this.makeauths(this.treedata,e),Object(s["h"])(e).then((function(e){var a=e.data;0==a.status?(t.roleauths=a.data,t.$Message.success("当前操作成功完成")):t.$Message.success("当前操作未完成,请稍后重试或联系管理员")}))},refreshFunc:function(){},renderContent:function(e,a){var s=this,n=a.root,o=a.node,r=a.data,i=n.find((function(t){return t===o})).parent;return console.log(i),e("span",{style:{display:"inline-block",width:"100%",cursor:"pointer"},on:{click:function(e){t("span",".ptree").removeClass("spansel"),t(e.target).addClass("spansel")}}},[e("span",[e("Icon",{props:{type:r.auths?"ios-paper-outline":"ios-folder-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"100px"}},[r.auths&&r.auths.length>0?e("Checkbox",{on:{"on-change":function(t){t?(console.log(r.auths),r.sels=r.auths):r.sels=[]}},style:{display:"inline-block",float:"left",marginRight:"10px",marginTop:"3px"}},[e("span",["all"])]):"root"==r.code?e("span",[e("Button",{props:{type:"primary"},on:{click:function(){s.saveAuths()}}},["保存"]),e("Button",{props:{type:"text"},on:{click:function(){s.refreshFunc()}}},["刷新"])]):"",r.auths&&r.auths.length>0?e("CheckboxGroup",{props:{value:r.sels},on:{"on-change":function(t){r.sels=t}}},[r.auths.map((function(t){return e("Checkbox",{props:{label:t}},[e("span",[t])])}))]):""])])}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-138091e6"],{"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],i=a("6db5"),o=i["a"],u=a("2877"),s=Object(u["a"])(o,n,r,!1,null,null,null);t["a"]=s.exports},"3ca5":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"role_info",packageName:"auth",isMulti:"",savebefore:e.savebefore,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},r=[],i=a("06d3"),o=a("391e"),u={name:"roleinfo_page",data:function(){return{}},components:{BizTable:i["a"],PageSpace:o["a"]},methods:{savebefore:function(e,t,a){return a(t)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"auth"==e&&this.$router.push({name:"role_auth",query:{roleid:t.id,rolecode:t.code}})},formatCol:function(e,t,a){if("isSystem"==t){var n=e["isSystem"]?"是":"否";return"<span>".concat(n,"</span>")}return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},s=u,c=a("2877"),f=Object(c["a"])(s,n,r,!1,null,null,null);t["default"]=f.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],r=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-137dcf78"],{"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],i=a("9ee1"),o=i["a"],u=a("9ca4"),s=Object(u["a"])(o,n,r,!1,null,null,null);t["a"]=s.exports},"3ca5":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"role_info",packageName:"auth",isMulti:"",savebefore:e.savebefore,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},r=[],i=a("06d3"),o=a("391e"),u={name:"roleinfo_page",data:function(){return{}},components:{BizTable:i["a"],PageSpace:o["a"]},methods:{savebefore:function(e,t,a){return a(t)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"auth"==e&&this.$router.push({name:"role_auth",query:{roleid:t.id,rolecode:t.code}})},formatCol:function(e,t,a){if("isSystem"==t){var n=e["isSystem"]?"是":"否";return"<span>".concat(n,"</span>")}return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},s=u,c=a("9ca4"),f=Object(c["a"])(s,n,r,!1,null,null,null);t["default"]=f.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],r=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14b9857b"],{"0eb4":function(t,e,n){},3026:function(t,e,n){t.exports=n.p+"img/error-401.98bba5b1.svg"},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("a481"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("2877"),l=Object(u["a"])(i,o,s,!1,null,null,null),b=l.exports,d={name:"error_content",components:{backBtnGroup:b},props:{code:String,desc:String,src:String}},f=d,p=Object(u["a"])(f,r,c,!1,null,null,null);e["a"]=p.exports},f94f:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"401",desc:"Oh~~您没有浏览这个页面的权限~",src:t.src}})},c=[],o=n("3026"),s=n.n(o),a=n("9454"),i={name:"error_401",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("2877"),b=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=b.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14b9857b"],{"0eb4":function(t,e,n){},3026:function(t,e,n){t.exports=n.p+"img/error-401.98bba5b1.svg"},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("f548"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("9ca4"),l=Object(u["a"])(i,o,s,!1,null,null,null),b=l.exports,f={name:"error_content",components:{backBtnGroup:b},props:{code:String,desc:String,src:String}},d=f,p=Object(u["a"])(d,r,c,!1,null,null,null);e["a"]=p.exports},f94f:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"401",desc:"Oh~~您没有浏览这个页面的权限~",src:t.src}})},c=[],o=n("3026"),s=n.n(o),a=n("9454"),i={name:"error_401",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("9ca4"),b=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=b.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17916361"],{"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],s=a("6db5"),n=s["a"],o=a("2877"),l=Object(o["a"])(n,r,i,!1,null,null,null);t["a"]=l.exports},"5f98":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"settleapply_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],s=(a("c5f6"),a("ac6a"),a("06d3")),n=a("391e"),o=a("db7f"),l=a("f121"),c=a("7e1e"),u=l["a"].deliverUrl.pro,f={name:"alldeliver_page",data:function(){return{baseUrl:u,smf:[{field:"cost_price",label:"服务费合计(元)"}]}},components:{PageSpace:n["a"],BizTable:s["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("settleapply"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要给交付商结算的交付单,改变页码可以增加结算的明细!"});var r=[],i=this.$refs.bt.currentSels[0].facilitator_name,s=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){e.facilitator_name==i?r.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择过滤相同的交付商申请结算."});Object(c["j"])("/web/bizchance/deliverybillCtl/settleApply",{ids:r,spname:i,spid:Number(s)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前的结算申请已经发送给财务审核."),a.$refs.bt.fetchData()):a.$Message.error("当前的结算申请生成失败,请联系管理员或稍后重试.")}))}if("settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var o=[],l=this.$refs.bt.currentSels[0].facilitator_name,f=this.$refs.bt.currentSels[0].facilitator_id,d=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?o.push(e.id):d=!0})),d)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["j"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:o,spname:l,spid:Number(f)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var i=o["a"].businessType[r];return i}if("settle_status"===t){var s=o["a"].settle_status[r];return s}if("sourceName"===t){var n=o["a"].source[r];return n}}}},d=f,h=a("2877"),b=Object(h["a"])(d,r,i,!1,null,null,null);t["default"]=b.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1792c498"],{"391e":function(e,t,a){"use strict";var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],s=a("9ee1"),n=s["a"],o=a("9ca4"),l=Object(o["a"])(n,r,i,!1,null,null,null);t["a"]=l.exports},"5f98":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var r=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"deliverybill",metaName:"settleapply_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:r-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],s=(a("163d"),a("6d57"),a("06d3")),n=a("391e"),o=a("db7f"),l=a("f121"),c=a("7e1e"),u=l["a"].deliverUrl.pro,f={name:"alldeliver_page",data:function(){return{baseUrl:u,smf:[{field:"cost_price",label:"服务费合计(元)"}]}},components:{PageSpace:n["a"],BizTable:s["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("settleapply"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要给交付商结算的交付单,改变页码可以增加结算的明细!"});var r=[],i=this.$refs.bt.currentSels[0].facilitator_name,s=this.$refs.bt.currentSels[0].facilitator_id,n=!1;if(this.$refs.bt.currentSels.forEach((function(e){e.facilitator_name==i?r.push(e.id):n=!0})),n)return void this.$Modal.error({title:"提示",content:"请选择过滤相同的交付商申请结算."});Object(c["j"])("/web/bizchance/deliverybillCtl/settleApply",{ids:r,spname:i,spid:Number(s)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前的结算申请已经发送给财务审核."),a.$refs.bt.fetchData()):a.$Message.error("当前的结算申请生成失败,请联系管理员或稍后重试.")}))}if("settlewriteoff"===e){if(0==this.$refs.bt.currentSels.length)return void this.$Modal.error({title:"提示",content:"请选择要进行结算核销的交付单,改变页码可以增加结算核销的明细. "});var o=[],l=this.$refs.bt.currentSels[0].facilitator_name,f=this.$refs.bt.currentSels[0].facilitator_id,d=!1;if(this.$refs.bt.currentSels.forEach((function(e){"waittosettle"==e.settle_status?o.push(e.id):d=!0})),d)return void this.$Modal.error({title:"提示",content:"请选择未结算的交付进行结算核销."});Object(c["j"])("/web/bizchance/deliverybillCtl/settleApplyForTacent",{ids:o,spname:l,spid:Number(f)},u).then((function(e){var t=e.data;0==t.status?(a.$Message.success("当前选择的结算核销已经完成,请到结算管理进行查看."),a.$refs.bt.fetchData()):a.$Message.error("当前选择的结算核销失败,请联系管理员或稍后重试.")}))}},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var r=e[t];if("businessType"===t){var i=o["a"].businessType[r];return i}if("settle_status"===t){var s=o["a"].settle_status[r];return s}if("sourceName"===t){var n=o["a"].source[r];return n}}}},d=f,h=a("9ca4"),b=Object(h["a"])(d,r,i,!1,null,null,null);t["default"]=b.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),r=a.get()[0],i=window.innerHeight-r.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b756945"],{"1ded":function(e,t,n){},"232d":function(e,t,n){"use strict";(function(e){n("60b7");var i=n("391e"),a=n("7e1e"),r=n("302e"),o=n("832e"),s=n("a526");n("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:r["a"],SplitPanel:o["a"],PageSpace:i["a"],ArticleInfo:s["a"]},data:function(){return{treedata:[],isshowlist:!0,currow:{}}},mounted:function(){this.initData()},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},renderContent:function(e,t){var n=this,i=t.root,a=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(a,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=a,n.rootNode=i,n.selclick(i,a,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[])])},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},selclick:function(e,t,n){this.$refs.articleInfo.searchWhere({archpath:n.code})},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},setHeight:function(){var t=e("#orgdiv"),n=t.get()[0],i=window.innerHeight-n.offsetTop;t.css("height",i+"px"),this.$refs.userinfo.setHeight(i-120)},initData:function(){var e=this;Object(a["g"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取数据出错");e.treedata=n.data.sysArchJSON}))}}}}).call(this,n("a336"))},"25cd":function(e,t,n){"use strict";var i=n("1ded"),a=n.n(i);a.a},a526:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"article_info",modelName:"article",packageName:"common",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)},a=[],r=(n("163d"),n("06d3")),o=(n("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:r["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){"show"==e&&this.$emit("articleShow",t)},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){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=o,c=n("9ca4"),l=Object(c["a"])(s,i,a,!1,null,null,null);t["a"]=l.exports},a9ab:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[e.isshowlist?n("SplitPanel",[n("Tree",{staticClass:"ptree",attrs:{slot:"left",data:e.treedata,render:e.renderContent},slot:"left"}),n("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:i-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):n("div",{staticStyle:{height:"100%",weight:"100%"}},[n("h1",[n("Button",{attrs:{icon:"md-arrow-round-back",type:"primary"},on:{click:e.rtnback}},[e._v("返回")]),e._v(" 主题:"+e._s(e.currow.title))],1),n("div",{staticStyle:{"margin-top":"5px"}},[e._v("最后更新时间:"+e._s(new Date(e.currow.updated_at).toLocaleString()))]),n("div",{staticStyle:{width:"100%","margin-top":"10px"},domProps:{innerHTML:e._s(e.currow.htmlcontent)}})])]}}])})},a=[],r=n("232d"),o=r["a"],s=(n("25cd"),n("9ca4")),c=Object(s["a"])(o,i,a,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22331440"],{"03c1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"pricecatinfo_info",modelName:"pricecat",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},o=[],r=a("7e1e"),i=a("06d3"),s=a("923a"),c=a("391e"),u=a("a026"),l={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:c["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e){var t=this;if("makestragetys"==e){var a=this.$refs.bt.currentSels;0==a.length?this.$Modal.warning({title:"提示",content:"请选择要参与生成定价策略的定价类型."}):Object(r["j"])("/web/product/pricecatCtl/buildPriceStrategy",{pricetypes:a}).then((function(e){var a=e.data;0==a.status?t.$Message.success("定价策略生成成功."):t.$Message.error("定价策略生成失败.")}))}},formatCol:function(e,t,a){if(console.log(t,".........................."),"options"==t){this.currentRow=e,this.tags=e["options"];var n='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),r=u["default"].extend({components:{Tags:s["a"]},template:"<div>".concat(n,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),i=(new r).$mount().$el;return i}return e[t]}}},f=l,d=a("2877"),h=Object(d["a"])(f,n,o,!1,null,null,null);t["default"]=h.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],r=a("6db5"),i=r["a"],s=a("2877"),c=Object(s["a"])(i,n,o,!1,null,null,null);t["a"]=c.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22347577"],{"03c1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"pricecatinfo_info",modelName:"pricecat",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec}})]}}])})},o=[],r=a("7e1e"),i=a("06d3"),s=a("923a"),c=a("391e"),u=a("a59a"),l={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:c["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e){var t=this;if("makestragetys"==e){var a=this.$refs.bt.currentSels;0==a.length?this.$Modal.warning({title:"提示",content:"请选择要参与生成定价策略的定价类型."}):Object(r["j"])("/web/product/pricecatCtl/buildPriceStrategy",{pricetypes:a}).then((function(e){var a=e.data;0==a.status?t.$Message.success("定价策略生成成功."):t.$Message.error("定价策略生成失败.")}))}},formatCol:function(e,t,a){if(console.log(t,".........................."),"options"==t){this.currentRow=e,this.tags=e["options"];var n='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),r=u["default"].extend({components:{Tags:s["a"]},template:"<div>".concat(n,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),i=(new r).$mount().$el;return i}return e[t]}}},f=l,d=a("9ca4"),h=Object(d["a"])(f,n,o,!1,null,null,null);t["default"]=h.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],r=a("9ee1"),i=r["a"],s=a("9ca4"),c=Object(s["a"])(i,n,o,!1,null,null,null);t["a"]=c.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24a41303"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],i=n("9ee1"),o=i["a"],s=n("9ca4"),c=Object(s["a"])(o,a,r,!1,null,null,null);t["a"]=c.exports},6491:function(e,t,n){"use strict";var a=n("e46b"),r=n("eafa"),i=n("7c0a"),o="startsWith",s=""[o];a(a.P+a.F*n("bc96")(o),"String",{startsWith:function(e){var t=i(this,e,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return s?s.call(t,a,n):t.slice(n,n+a.length)===a}})},7104: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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"app_info",modelName:"app",packageName:"common",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],i=(n("6491"),n("6d57"),n("9a33"),n("06d3")),o=n("391e"),s=n("60b7"),c={name:"appinfo_page",data:function(){return{}},components:{PageSpace:o["a"],BizTable:i["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"func"==e&&this.$router.push({name:"functree_info",query:{appkey:t.appkey}}),"frontroute"==e&&Object(s["b"])(t.appkey).then((function(e){var t=e.data;0==t.status?(n.$Message.success("当前操作已完成"),n.$refs.bt.fetchData()):n.$Message.error(t.msg)}))},validmethod:function(e,t,n){if("functionJSON"==e.field)try{var a=JSON.parse(t);console.log(a)}catch(o){return n(new Error(o))}if("hosts"==e.field){var r=t.split(",");0==r.length&&n(new Error("多个域名需要以逗号分隔"))}if("paths"==e.field){var i=t.split(",");0==i.length?n(new Error("多个路径需要以逗号分隔")):i.forEach((function(e){if(!e.startsWith("/"))return n(new Error("路径必须以/开始"))}))}return"backport"==e.field&&isNaN(t)?n(new Error("请输入数字")):n()},formatCol:function(e,t,n){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},u=c,f=n("9ca4"),l=Object(f["a"])(u,a,r,!1,null,null,null);t["default"]=l.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25dc6da4"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],i=n("6db5"),r=i["a"],u=n("2877"),c=Object(u["a"])(r,a,o,!1,null,null,null);t["a"]=c.exports},"6cb8":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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{tblheight:a-120,formatCol:e.formatCol,modelName:"company",metaName:"company_info",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec}})]}}])})],1)},o=[],i=n("06d3"),r=n("391e"),u={name:"userinfo_page",data:function(){return{isshowref:!1,companyid:-1}},components:{BizTable:i["a"],PageSpace:r["a"]},mounted:function(){},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return t.roles=[1],n(t)},onexec:function(e,t,n){},onnew:function(){},onedit:function(){},formatCol:function(e,t,n){return e[t]}}},c=u,f=n("2877"),s=Object(f["a"])(c,a,o,!1,null,null,null);t["default"]=s.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],o=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-25d9ab36"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],i=n("9ee1"),r=i["a"],u=n("9ca4"),c=Object(u["a"])(r,a,o,!1,null,null,null);t["a"]=c.exports},"6cb8":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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{tblheight:a-120,formatCol:e.formatCol,modelName:"company",metaName:"company_info",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onnew:e.onnew,onedit:e.onedit,onexec:e.onexec}})]}}])})],1)},o=[],i=n("06d3"),r=n("391e"),u={name:"userinfo_page",data:function(){return{isshowref:!1,companyid:-1}},components:{BizTable:i["a"],PageSpace:r["a"]},mounted:function(){},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return t.roles=[1],n(t)},onexec:function(e,t,n){},onnew:function(){},onedit:function(){},formatCol:function(e,t,n){return e[t]}}},c=u,s=n("9ca4"),f=Object(s["a"])(c,a,o,!1,null,null,null);t["default"]=f.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],o=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2aeda6fa"],{"0995":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var n=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:n-120,metaName:"pricestrategyt_info",modelName:"pricestrategy",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})]}}])})},o=[],i=(a("7e1e"),a("06d3")),r=a("923a"),u=a("391e"),s=a("a59a"),c={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:u["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},formatCol:function(e,t,a){if(console.log(t,".........................."),"optionunion"==t){this.currentRow=e,this.tags=e["optionunion"];var n='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),i=s["default"].extend({components:{Tags:r["a"]},template:"<div>".concat(n,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),u=(new i).$mount().$el;return u}return e[t]}}},l=c,f=a("9ca4"),d=Object(f["a"])(l,n,o,!1,null,null,null);t["default"]=d.exports},"391e":function(e,t,a){"use strict";var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],i=a("9ee1"),r=i["a"],u=a("9ca4"),s=Object(u["a"])(r,n,o,!1,null,null,null);t["a"]=s.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),n=a.get()[0],o=window.innerHeight-n.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2af06968"],{"0995":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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,tblheight:a-120,metaName:"pricestrategyt_info",modelName:"pricestrategy",packageName:"product",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})]}}])})},o=[],i=(n("7e1e"),n("06d3")),r=n("923a"),u=n("391e"),s=n("a026"),c={name:"productcat_page",data:function(){return{currentRow:null,tags:""}},components:{BizTable:i["a"],PageSpace:u["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},formatCol:function(e,t,n){if(console.log(t,".........................."),"optionunion"==t){this.currentRow=e,this.tags=e["optionunion"];var a='<Tags :currow=\'currentRow\' v-model="tags" :ishideadd="true" @change="ch"></Tags>',o=Object.assign({},this.$data),i=s["default"].extend({components:{Tags:r["a"]},template:"<div>".concat(a,"</div>"),data:function(){return o},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),u=(new i).$mount().$el;return u}return e[t]}}},l=c,f=n("2877"),d=Object(f["a"])(l,a,o,!1,null,null,null);t["default"]=d.exports},"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},o=[],i=n("6db5"),r=i["a"],u=n("2877"),s=Object(u["a"])(r,a,o,!1,null,null,null);t["a"]=s.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],o=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=o,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("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["j"])("/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["j"])("/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["d"])().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-2b5c7a88","chunk-2d0d61ef"],{"68d0":function(e,t,r){"use strict";(function(e){r("28a5"),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["j"])("/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["d"])().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"))},"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("7f7f"),r("c5f6"),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["j"])("/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("2877"),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("68d0"),s=a["a"],i=r("2877"),l=Object(i["a"])(s,o,n,!1,null,null,null);t["default"]=l.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c359864"],{"0eb4":function(t,e,n){},4740:function(t,e,n){t.exports=n.p+"img/error-500.a371eabc.svg"},"88b2":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"500",desc:"Oh~~鬼知道服务器经历了什么~",src:t.src}})},c=[],o=n("4740"),s=n.n(o),a=n("9454"),i={name:"error_500",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("2877"),d=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=d.exports},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("a481"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("2877"),l=Object(u["a"])(i,o,s,!1,null,null,null),d=l.exports,p={name:"error_content",components:{backBtnGroup:d},props:{code:String,desc:String,src:String}},b=p,f=Object(u["a"])(b,r,c,!1,null,null,null);e["a"]=f.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c359864"],{"0eb4":function(t,e,n){},4740:function(t,e,n){t.exports=n.p+"img/error-500.a371eabc.svg"},"88b2":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"500",desc:"Oh~~鬼知道服务器经历了什么~",src:t.src}})},c=[],o=n("4740"),s=n.n(o),a=n("9454"),i={name:"error_500",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("9ca4"),d=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=d.exports},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("f548"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("9ca4"),l=Object(u["a"])(i,o,s,!1,null,null,null),d=l.exports,p={name:"error_content",components:{backBtnGroup:d},props:{code:String,desc:String,src:String}},b=p,f=Object(u["a"])(b,r,c,!1,null,null,null);e["a"]=f.exports}}]);
\ No newline at end of file \ 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("7f7f"),t("c5f6"),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["j"])("/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,l=t("2877"),c=Object(l["a"])(u,a,o,!1,null,null,null);n["default"]=c.exports}}]); (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["j"])("/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 \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e68e0"],{"98f1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"pathmap_info",modelName:"pathtomethod",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})],1)},o=[],r=a("06d3"),u={name:"routeinfo_page",data:function(){return{}},components:{BizTable:r["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},formatCol:function(e,t,a){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},f=u,l=a("2877"),i=Object(l["a"])(f,n,o,!1,null,null,null);t["default"]=i.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e68e0"],{"98f1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"pathmap_info",modelName:"pathtomethod",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})],1)},o=[],r=a("06d3"),u={name:"routeinfo_page",data:function(){return{}},components:{BizTable:r["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},formatCol:function(e,t,a){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},f=u,l=a("9ca4"),c=Object(l["a"])(f,n,o,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0efc5d"],{"9a10":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:"route_info",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})],1)},o=[],r=n("06d3"),u={name:"routeinfo_page",data:function(){return{}},components:{BizTable:r["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},formatCol:function(e,t,n){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},f=u,c=n("2877"),i=Object(c["a"])(f,a,o,!1,null,null,null);t["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0efc5d"],{"9a10":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"route_info",packageName:"common",isMulti:"",savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd}})],1)},o=[],r=a("06d3"),u={name:"routeinfo_page",data:function(){return{}},components:{BizTable:r["a"]},methods:{beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},formatCol:function(e,t,a){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},f=u,c=a("9ca4"),i=Object(c["a"])(f,n,o,!1,null,null,null);t["default"]=i.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2f5f87d6"],{"14ed":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})],1)},r=[],i=(n("60b7"),n("7e1e")),a=n("302e"),s=(n("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"层级",key:"baseinfo",cols:2,ctls:[{type:"input",rules:[],label:"级别",prop:"level",disabled:!0,style:{},isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,n){},orgsave:function(e,t){var n=this;Object(i["j"])("/web/common/treearchCtl/saveRegions",{regionJson:e}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var o=t.data.regionJson;console.log("save org...............................",o),n.$refs.functree.treedata=o,n.$refs.functree.refreshTree(),n.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,n){},initData:function(){var e=this;e.appkey;return function(e){Object(i["f"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取功能清单数据出错");var o=n.data.regionJson;e(o)}))}}}}),l=s,d=n("2877"),c=Object(d["a"])(l,o,r,!1,null,null,null);t["default"]=c.exports},"2c7b":function(e,t,n){},"302e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[n("Card",{staticStyle:{height:"100%"}},[n("Alert",{attrs:{type:"error"}},[n("template",{slot:"desc"},[n("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),n("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():n("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),n("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[n("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("ok",t.fm)}}},[e._v("保存")]),n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},r=[],i=n("6e29"),a=i["a"],s=(n("8d99"),n("2877")),l=Object(s["a"])(a,o,r,!1,null,null,null);t["a"]=l.exports},"6e29":function(e,t,n){"use strict";(function(e){n("7514"),n("c5f6"),n("55dd"),n("ac6a"),n("60b7");var o=n("0086");n("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:o["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,n="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:n,render:function(t,n){var o=n.root,r=n.node,i=n.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(r,i)},click:function(){e.currentData=i,e.currentNode=r,e.rootNode=o,e.selclick(o,r,i)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[i.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(i)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,n,o){o||(o=0),o++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,o)):n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o)}))}},methods:{selclick:function(e,t,n){this.$emit("onselnode",e,t,n)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,n){this.$emit("controlctl",e,t,n)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var n=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=n.$refs.nodeform.getNewModel();modiTreeNodeByCode(n.treedata,t,null),n.showedform=!1,n.$emit("modisave",n.treedata,t,n.oldnodedata),n.resetForm(),console.log(n.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var n=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=n,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),n=t.get()[0],o=window.innerHeight-n.offsetTop-30;t.css("height",o+"px"),this.treeheight=o},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var n=this,o=t.root,r=t.node,i=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(r,i)},click:function(e){n.setSelCss(e),n.currentData=i,n.currentNode=r,n.rootNode=o,n.selclick(o,r,i)}}},[e("Icon",{props:{type:i.children&&i.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",i.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){n.append(i)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){n.remove(o,r,i)}}})])])},append:function(e){var t=e.children||[],n=this.$refs.nodeform.getNewModel();console.log("new model.........................",n),n.expand=!0,t.push(n),this.$set(e,"children",t)},remove:function(e,t,n){var o=e.find((function(e){return e===t})).parent,r=e.find((function(e){return e.nodeKey===o})).node,i=r.children.indexOf(n);r.children.splice(i,1),this.$emit("deletenode",this.treedata,n)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,n=this.rootNode.find((function(e){return e.nodeKey===t})).node;return n}}}}).call(this,n("a336"))},"8d99":function(e,t,n){"use strict";var o=n("2c7b"),r=n.n(o);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3385141a"],{"0eb4":function(t,e,n){},"35f5":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"404",desc:"Oh~~您的页面好像飞走了~",src:t.src}})},c=[],o=n("c436"),s=n.n(o),a=n("9454"),i={name:"error_404",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("2877"),d=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=d.exports},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("a481"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("2877"),l=Object(u["a"])(i,o,s,!1,null,null,null),d=l.exports,f={name:"error_content",components:{backBtnGroup:d},props:{code:String,desc:String,src:String}},p=f,m=Object(u["a"])(p,r,c,!1,null,null,null);e["a"]=m.exports},c436:function(t,e,n){t.exports=n.p+"img/error-404.94756dcf.svg"}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3385141a"],{"0eb4":function(t,e,n){},"35f5":function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("error-content",{attrs:{code:"404",desc:"Oh~~您的页面好像飞走了~",src:t.src}})},c=[],o=n("c436"),s=n.n(o),a=n("9454"),i={name:"error_404",components:{errorContent:a["a"]},data:function(){return{src:s.a}}},u=i,l=n("9ca4"),d=Object(l["a"])(u,r,c,!1,null,null,null);e["default"]=d.exports},9454:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"error-page"},[n("div",{staticClass:"content-con"},[n("img",{attrs:{src:t.src,alt:t.code}}),n("div",{staticClass:"text-con"},[n("h4",[t._v(t._s(t.code))]),n("h5",[t._v(t._s(t.desc))])]),n("back-btn-group",{staticClass:"back-btn-group"})],1)])},c=[],o=(n("0eb4"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backHome}},[t._v("返回首页")]),n("Button",{attrs:{size:"large",type:"text"},on:{click:t.backPrev}},[t._v("返回上一页("+t._s(t.second)+"s)")])],1)}),s=[],a=(n("f548"),{name:"backBtnGroup",data:function(){return{second:5,timer:null}},methods:{backHome:function(){this.$router.replace({name:this.$config.homeName})},backPrev:function(){this.$router.go(-1)}},mounted:function(){var t=this;this.timer=setInterval((function(){0===t.second?t.backPrev():t.second--}),1e3)},beforeDestroy:function(){clearInterval(this.timer)}}),i=a,u=n("9ca4"),l=Object(u["a"])(i,o,s,!1,null,null,null),d=l.exports,f={name:"error_content",components:{backBtnGroup:d},props:{code:String,desc:String,src:String}},p=f,m=Object(u["a"])(p,r,c,!1,null,null,null);e["a"]=m.exports},c436:function(t,e,n){t.exports=n.p+"img/error-404.94756dcf.svg"}}]);
\ 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.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-404534a8"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],o=n("6db5"),r=o["a"],u=n("2877"),c=Object(u["a"])(r,a,i,!1,null,null,null);t["a"]=c.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],i=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},"93e6":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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"channel_info",modelName:"channel",packageName:"common",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],o=n("06d3"),r=n("391e"),u=(n("60b7"),{name:"appinfo_page",data:function(){return{}},components:{PageSpace:r["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){},validmethod:function(e,t,n){return n()},formatCol:function(e,t,n){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),c=u,f=n("2877"),s=Object(f["a"])(c,a,i,!1,null,null,null);t["default"]=s.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-404695df"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},i=[],o=n("9ee1"),r=o["a"],u=n("9ca4"),c=Object(u["a"])(r,a,i,!1,null,null,null);t["a"]=c.exports},"93e6":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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"channel_info",modelName:"channel",packageName:"common",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},i=[],o=n("06d3"),r=n("391e"),u=(n("60b7"),{name:"appinfo_page",data:function(){return{}},components:{PageSpace:r["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){},validmethod:function(e,t,n){return n()},formatCol:function(e,t,n){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),c=u,f=n("9ca4"),s=Object(f["a"])(c,a,i,!1,null,null,null);t["default"]=s.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],i=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=i,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46b916e6"],{"2c7b":function(e,t,o){},"302e":function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[o("Card",{staticStyle:{height:"100%"}},[o("Alert",{attrs:{type:"error"}},[o("template",{slot:"desc"},[o("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),o("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():o("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),o("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[o("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[o("Button",{attrs:{type:"text"},on:{click:function(o){return e.doexec("ok",t.fm)}}},[e._v("保存")]),o("Button",{attrs:{type:"text"},on:{click:function(o){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},i=[],r=o("6e29"),a=r["a"],s=(o("8d99"),o("2877")),l=Object(s["a"])(a,n,i,!1,null,null,null);t["a"]=l.exports},"6e29":function(e,t,o){"use strict";(function(e){o("7514"),o("c5f6"),o("55dd"),o("ac6a"),o("60b7");var n=o("0086");o("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:n["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,o="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:o,render:function(t,o){var n=o.root,i=o.node,r=o.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(i,r)},click:function(){e.currentData=r,e.currentNode=i,e.rootNode=n,e.selclick(n,i,r)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[r.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(r)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,o,n){n||(n=0),n++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(o?(e.orgpath=o.orgpath+"/"+e.code,e.titlepath=o.titlepath+"/"+e.title,e.level=n):(e.orgpath=e.code,e.titlepath=e.title,e.level=n),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,n)):o?(e.orgpath=o.orgpath+"/"+e.code,e.titlepath=o.titlepath+"/"+e.title,e.level=n):(e.orgpath=e.code,e.titlepath=e.title,e.level=n)}))}},methods:{selclick:function(e,t,o){this.$emit("onselnode",e,t,o)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,o){this.$emit("controlctl",e,t,o)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var o=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=o.$refs.nodeform.getNewModel();modiTreeNodeByCode(o.treedata,t,null),o.showedform=!1,o.$emit("modisave",o.treedata,t,o.oldnodedata),o.resetForm(),console.log(o.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var o=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=o,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),o=t.get()[0],n=window.innerHeight-o.offsetTop-30;t.css("height",n+"px"),this.treeheight=n},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var o=this,n=t.root,i=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){o.setSelCss(e),o.onselnode(i,r)},click:function(e){o.setSelCss(e),o.currentData=r,o.currentNode=i,o.rootNode=n,o.selclick(n,i,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){o.append(r)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){o.remove(n,i,r)}}})])])},append:function(e){var t=e.children||[],o=this.$refs.nodeform.getNewModel();console.log("new model.........................",o),o.expand=!0,t.push(o),this.$set(e,"children",t)},remove:function(e,t,o){var n=e.find((function(e){return e===t})).parent,i=e.find((function(e){return e.nodeKey===n})).node,r=i.children.indexOf(o);i.children.splice(r,1),this.$emit("deletenode",this.treedata,o)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,o=this.rootNode.find((function(e){return e.nodeKey===t})).node;return o}}}}).call(this,o("a336"))},8442:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})],1)},i=[],r=(o("60b7"),o("7e1e")),a=o("302e"),s=(o("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"附件信息",key:"baseinfo",cols:2,ctls:[{type:"upload",rules:[],label:"列表图片",prop:"listimg",disabled:!0,style:{},isHide:!1},{type:"input",rules:[],label:"类别简介",prop:"simpleDesc",disabled:!1,style:"width:300px",isHide:!1},{type:"upload",rules:[],label:"详情图片",prop:"detailimg",disabled:!0,style:{},isHide:!1},{type:"textarea",rules:[],label:"详情描述",prop:"desc",disabled:!0,style:"width:300px",isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,o){},orgsave:function(e,t){var o=this;Object(r["j"])("/web/common/treearchCtl/saveProductcats",{productcatJson:e}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var n=t.data.productcatJson;console.log("save org...............................",n),o.$refs.functree.treedata=n,o.$refs.functree.refreshTree(),o.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,o){},initData:function(){var e=this;e.appkey;return function(e){Object(r["e"])().then((function(t){var o=t.data;if(0!=o.status)throw new Error("获取功能清单数据出错");var n=o.data.productcatJson;e(n)}))}}}}),l=s,d=o("2877"),c=Object(d["a"])(l,n,i,!1,null,null,null);t["default"]=c.exports},"8d99":function(e,t,o){"use strict";var n=o("2c7b"),i=o.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-47792d5a"],{"1b06":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"settlebill",metaName:"settlebill_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),o=(a("db7f"),a("f121")),b=a("7e1e"),l=o["a"].deliverUrl.pro,d={name:"alldeliver_page",data:function(){return{baseUrl:l,smf:[{field:"settle_amount",label:"结算合计(元)"}]}},components:{PageSpace:r["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){"audit"==e.key&&(1==t.auditedStatus?e.ishide=!0:e.ishide=!1),"pay"==e.key&&(t.isPayedStatus?e.ishide=!0:t.auditedStatus?e.ishide=!1:e.ishide=!0),"delete"==e.key&&(t.isPayedStatus?e.ishide=!0:e.ishide=!1)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("audit"==e&&this.$refs.bt.doexec("edit",t),"disagree"==e){var i=t.memo?t.memo.trim():"";if(""==i)return void this.$Modal.error({title:"提示",content:"请添加结算建议."});Object(b["j"])("/web/bizchance/settlebillCtl/advice",{advice:{settleId:t.id,memo:i}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))}"agree"==e&&Object(b["j"])("/web/bizchance/settlebillCtl/auditPass",{pass:{settleId:t.id}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")})),"pay"==e&&Object(b["j"])("/web/bizchance/settlebillCtl/pay",{pay:{settleId:t.id}},l).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var i=e[t];if("auditedStatus"===t){var s=e[t]?"已审核":"待审核";return s}if("isPayedStatus"==t){var n=e[t]?"已付款":"未付款";return n}if("created_at"==t){console.log(i,"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");var r=new Date(i).toLocaleString();return r}}}},u=d,c=a("2877"),f=Object(c["a"])(u,i,s,!1,null,null,null);t["default"]=f.exports},"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("6db5"),r=n["a"],o=a("2877"),b=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=b.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-477a8e91"],{"1b06":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"settlebill",metaName:"settlebill_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),o=(a("db7f"),a("f121")),l=a("7e1e"),b=o["a"].deliverUrl.pro,u={name:"alldeliver_page",data:function(){return{baseUrl:b,smf:[{field:"settle_amount",label:"结算合计(元)"}]}},components:{PageSpace:r["a"],BizTable:n["a"]},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e,t){"audit"==e.key&&(1==t.auditedStatus?e.ishide=!0:e.ishide=!1),"pay"==e.key&&(t.isPayedStatus?e.ishide=!0:t.auditedStatus?e.ishide=!1:e.ishide=!0),"delete"==e.key&&(t.isPayedStatus?e.ishide=!0:e.ishide=!1)},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){var a=this;if("audit"==e&&this.$refs.bt.doexec("edit",t),"disagree"==e){var i=t.memo?t.memo.trim():"";if(""==i)return void this.$Modal.error({title:"提示",content:"请添加结算建议."});Object(l["j"])("/web/bizchance/settlebillCtl/advice",{advice:{settleId:t.id,memo:i}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))}"agree"==e&&Object(l["j"])("/web/bizchance/settlebillCtl/auditPass",{pass:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")})),"pay"==e&&Object(l["j"])("/web/bizchance/settlebillCtl/pay",{pay:{settleId:t.id}},b).then((function(e){var t=e.data;0==t.status?(a.$refs.bt.showedform=!1,a.$Message.success("当前操作成功完成."),a.$refs.bt.fetchData()):a.$Message.error("当前操作未完成,请联系管理员或稍后重试.")}))},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){var i=e[t];if("auditedStatus"===t){var s=e[t]?"已审核":"待审核";return s}if("isPayedStatus"==t){var n=e[t]?"已付款":"未付款";return n}if("created_at"==t){console.log(i,"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb");var r=new Date(i).toLocaleString();return r}}}},d=u,c=a("9ca4"),f=Object(c["a"])(d,i,s,!1,null,null,null);t["default"]=f.exports},"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("9ee1"),r=n["a"],o=a("9ca4"),l=Object(o["a"])(r,i,s,!1,null,null,null);t["a"]=l.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ 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-5ccefbbb"],{"1de5":function(t,e,a){},4635:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("Card",[t.isOperator?t._e():a("div",{attrs:{slot:"title"},slot:"title"},[a("Select",{staticStyle:{width:"200px"},attrs:{placeholder:"请选择要授权的应用"},on:{"on-change":t.onchange},model:{value:t.selAppId,callback:function(e){t.selAppId=e},expression:"selAppId"}},t._l(t.myapps,(function(e){return a("Option",{key:e.title,attrs:{value:e.id}},[t._v(t._s(e.title))])})),1)],1),a("Tree",{staticClass:"ptree",attrs:{data:t.treedata,render:t.renderContent}})],1)],1)},n=[],o=a("aca2"),r=o["a"],i=(a("83d8"),a("9ca4")),c=Object(i["a"])(r,s,n,!1,null,null,null);e["default"]=c.exports},"83d8":function(t,e,a){"use strict";var s=a("1de5"),n=a.n(s);n.a},aca2:function(t,e,a){"use strict";(function(t){a("e697"),a("9a33"),a("6d57");var s=a("60b7"),n=a("e247");a("f121");e["a"]={name:"roleauth_page",data:function(){return{myapps:JSON.parse(localStorage.getItem("myapps")),selAppId:"",roleid:-1,rolecode:"",roleauths:null,treedata:[],buttonProps:{type:"default",size:"small"}}},components:{Checks:n["a"]},computed:{authdic:function(){var t={};return this.roleauths.forEach((function(e){t[e.bizcode]=e.authstrs.split(",")})),t},isOperator:function(){return 1==this.$store.state.user.userobj.company.id}},mounted:function(){this.roleid=this.$route.query.roleid,this.rolecode=this.$route.query.rolecode,this.isOperator&&this.initTree()},methods:{onchange:function(t){var e=this,a=this.myapps.filter((function(e){return e.id==t}));this.treedata=JSON.parse(a[0].functionJSON),Object(s["c"])([this.roleid]).then((function(t){var a=t.data;0==a.status?(e.roleauths=a.data,e.setAuthData(e.treedata)):console.log("fetch auths fails.....---------------------------------------------------------")}))},initTree:function(){var t=this;Object(s["d"])().then((function(e){var a=e.data;0==a.status&&(t.treedata=a.data.funcJson,Object(s["c"])([t.roleid]).then((function(e){var a=e.data;0==a.status?(t.roleauths=a.data,t.setAuthData(t.treedata)):console.log("fetch auths fails.....---------------------------------------------------------")})))}))},setAuthData:function(t){var e=this;t.forEach((function(t){t.children&&t.children.length>0?e.setAuthData(t.children):t.sels?t.sels=e.authdic[t.code]?e.authdic[t.code]:[]:t.sels=[]}))},makeauths:function(t,e){var a=this;console.log(t,"makeauths"),t.forEach((function(t){if(t.children&&t.children.length>0)a.makeauths(t.children,e);else if(t.sels){var s={role_id:a.roleid,rolecode:a.rolecode,bizcode:t.code,codepath:t.orgpath,authstrs:t.sels.join(",")};e.push(s)}}))},saveAuths:function(){var t=this,e=[];this.makeauths(this.treedata,e),Object(s["h"])(e).then((function(e){var a=e.data;0==a.status?(t.roleauths=a.data,t.$Message.success("当前操作成功完成")):t.$Message.success("当前操作未完成,请稍后重试或联系管理员")}))},refreshFunc:function(){},renderContent:function(e,a){var s=this,n=a.root,o=a.node,r=a.data,i=n.find((function(t){return t===o})).parent;return console.log(i),e("span",{style:{display:"inline-block",width:"100%",cursor:"pointer"},on:{click:function(e){t("span",".ptree").removeClass("spansel"),t(e.target).addClass("spansel")}}},[e("span",[e("Icon",{props:{type:r.auths?"ios-paper-outline":"ios-folder-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"100px"}},[r.auths&&r.auths.length>0?e("Checkbox",{on:{"on-change":function(t){t?(console.log(r.auths),r.sels=r.auths):r.sels=[]}},style:{display:"inline-block",float:"left",marginRight:"10px",marginTop:"3px"}},[e("span",["all"])]):"root"==r.code?e("span",[e("Button",{props:{type:"primary"},on:{click:function(){s.saveAuths()}}},["保存"]),e("Button",{props:{type:"text"},on:{click:function(){s.refreshFunc()}}},["刷新"])]):"",r.auths&&r.auths.length>0?e("CheckboxGroup",{props:{value:r.sels},on:{"on-change":function(t){r.sels=t}}},[r.auths.map((function(t){return e("Checkbox",{props:{label:t}},[e("span",[t])])}))]):""])])}}}}).call(this,a("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e7a3166"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],o=n("6db5"),i=o["a"],c=n("2877"),s=Object(c["a"])(i,a,r,!1,null,null,null);t["a"]=s.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},eb8f: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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"productprice_info",modelName:"productprice",packageName:"product",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],o=(n("c5f6"),n("06d3")),i=n("391e"),c=n("7e1e"),s=n("db7f"),u=n("923a"),l=n("a026"),f={name:"appinfo_page",data:function(){return{productpricetmp:null,smf:[{field:"lowpriceref",label:"最低参考合计"}],currentRow:null,sptags:"",channeltags:""}},components:{PageSpace:i["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){if(e&&"upline"==e.key){var n=t["isEnabled"]?"下架":"上架";e.title=n}},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return this.productpricetmp=e,t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"upline"==e&&Object(c["j"])("/web/product/productpriceCtl/updownProduct",{curid:t.id}).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},validmethod:function(e,t,n,a){if(console.log(t,"mmmmmmmmmmmmmmmmmmmmm",a),"costamount"==e.field){var r=this.productpricetmp.lowpriceref,o=(t/r).toFixed(2);a.costratio=Number(o)}return n()},formatCol:function(e,t,n){if("isEnabled"==t){var a=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(a,"</span>"):'<span style="color:orange">'.concat(a,"</span>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("deliverfile"==t){var r=e["deliverfile"];return"<img src='".concat(r,"' style='height:40px'>")}if("extrafile"==t){var o=e["extrafile"];return"<img src='".concat(o,"' style='height:40px'>")}if("pcostratio"==t){e["costratio"]=Number(e["costratio"]);var i="%"+100*e["costratio"];return"".concat(i)}if("costamount"==t){e["costamount"]=Number(e["costamount"]);var c=e["costamount"];return"".concat(c)}if("expensetype"==t){e["costamount"]=Number(e["costamount"]);var f=e["expensetype"],d=s["a"]["expense_type"][f];return"".concat(d)}if("sptags"==t){this.currentRow=e,this.sptags=e["sptags"];var m='<Tags :currow=\'currentRow\' v-model="sptags" :ishideadd="true" @change="ch"></Tags>',p=Object.assign({},this.$data),h=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(m,"</div>"),data:function(){return p},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),g=(new h).$mount().$el;return g}if("channeltags"==t){this.currentRow=e,this.channeltags=e["channeltags"];var b='<Tags :currow=\'currentRow\' v-model="channeltags" :ishideadd="true" @change="ch"></Tags>',v=Object.assign({},this.$data),w=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(b,"</div>"),data:function(){return v},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),x=(new w).$mount().$el;return x}}}},d=f,m=n("2877"),p=Object(m["a"])(d,a,r,!1,null,null,null);t["default"]=p.exports}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e7b929d"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],o=n("9ee1"),i=o["a"],c=n("9ca4"),s=Object(c["a"])(i,a,r,!1,null,null,null);t["a"]=s.exports},"9ee1":function(e,t,n){"use strict";(function(e){n("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},eb8f: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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"productprice_info",modelName:"productprice",packageName:"product",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,sumfields:e.smf},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],o=(n("163d"),n("06d3")),i=n("391e"),c=n("7e1e"),s=n("db7f"),u=n("923a"),l=n("a59a"),f={name:"appinfo_page",data:function(){return{productpricetmp:null,smf:[{field:"lowpriceref",label:"最低参考合计"}],currentRow:null,sptags:"",channeltags:""}},components:{PageSpace:i["a"],BizTable:o["a"]},methods:{oninitbtn:function(e,t){if(e&&"upline"==e.key){var n=t["isEnabled"]?"下架":"上架";e.title=n}},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t,n){return this.productpricetmp=e,t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"upline"==e&&Object(c["j"])("/web/product/productpriceCtl/updownProduct",{curid:t.id}).then((function(e){var t=e.data;0==t.status?(n.$refs.bt.fetchData(),n.$Message.success("当前操作已经成功完成.")):n.$Message.error("当前操作未完成.")}))},validmethod:function(e,t,n,a){if(console.log(t,"mmmmmmmmmmmmmmmmmmmmm",a),"costamount"==e.field){var r=this.productpricetmp.lowpriceref,o=(t/r).toFixed(2);a.costratio=Number(o)}return n()},formatCol:function(e,t,n){if("isEnabled"==t){var a=e["isEnabled"]?"已上架":"待上架";return e["isEnabled"]?'<span style="color:green">'.concat(a,"</span>"):'<span style="color:orange">'.concat(a,"</span>")}if("lowpriceref"==t)return e["lowpriceref"]=Number(e["lowpriceref"]),"".concat(e["lowpriceref"]);if("hignpriceref"==t)return e["hignpriceref"]=Number(e["hignpriceref"]),"".concat(e["hignpriceref"]);if("deliverfile"==t){var r=e["deliverfile"];return"<img src='".concat(r,"' style='height:40px'>")}if("extrafile"==t){var o=e["extrafile"];return"<img src='".concat(o,"' style='height:40px'>")}if("pcostratio"==t){e["costratio"]=Number(e["costratio"]);var i="%"+100*e["costratio"];return"".concat(i)}if("costamount"==t){e["costamount"]=Number(e["costamount"]);var c=e["costamount"];return"".concat(c)}if("expensetype"==t){e["costamount"]=Number(e["costamount"]);var f=e["expensetype"],d=s["a"]["expense_type"][f];return"".concat(d)}if("sptags"==t){this.currentRow=e,this.sptags=e["sptags"];var m='<Tags :currow=\'currentRow\' v-model="sptags" :ishideadd="true" @change="ch"></Tags>',p=Object.assign({},this.$data),h=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(m,"</div>"),data:function(){return p},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),g=(new h).$mount().$el;return g}if("channeltags"==t){this.currentRow=e,this.channeltags=e["channeltags"];var v='<Tags :currow=\'currentRow\' v-model="channeltags" :ishideadd="true" @change="ch"></Tags>',b=Object.assign({},this.$data),w=l["default"].extend({components:{Tags:u["a"]},template:"<div>".concat(v,"</div>"),data:function(){return b},methods:{testok:function(){console.log("test.....................................")},ch:function(e,t){console.log(e,t)}}}),x=(new w).$mount().$el;return x}}}},d=f,m=n("9ca4"),p=Object(m["a"])(d,a,r,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61b0b1e5"],{"302e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[n("Card",{staticStyle:{height:"100%"}},[n("Alert",{attrs:{type:"error"}},[n("template",{slot:"desc"},[n("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),n("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():n("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),n("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[n("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("ok",t.fm)}}},[e._v("保存")]),n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},i=[],r=n("7dfe"),a=r["a"],s=(n("8d99"),n("9ca4")),l=Object(s["a"])(a,o,i,!1,null,null,null);t["a"]=l.exports},"7dfe":function(e,t,n){"use strict";(function(e){n("e697"),n("163d"),n("c904"),n("6d57"),n("60b7");var o=n("0086");n("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:o["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,n="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:n,render:function(t,n){var o=n.root,i=n.node,r=n.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(i,r)},click:function(){e.currentData=r,e.currentNode=i,e.rootNode=o,e.selclick(o,i,r)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[r.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(r)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,n,o){o||(o=0),o++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,o)):n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o)}))}},methods:{selclick:function(e,t,n){this.$emit("onselnode",e,t,n)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,n){this.$emit("controlctl",e,t,n)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var n=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=n.$refs.nodeform.getNewModel();modiTreeNodeByCode(n.treedata,t,null),n.showedform=!1,n.$emit("modisave",n.treedata,t,n.oldnodedata),n.resetForm(),console.log(n.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var n=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=n,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),n=t.get()[0],o=window.innerHeight-n.offsetTop-30;t.css("height",o+"px"),this.treeheight=o},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var n=this,o=t.root,i=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(i,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=i,n.rootNode=o,n.selclick(o,i,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){n.append(r)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){n.remove(o,i,r)}}})])])},append:function(e){var t=e.children||[],n=this.$refs.nodeform.getNewModel();console.log("new model.........................",n),n.expand=!0,t.push(n),this.$set(e,"children",t)},remove:function(e,t,n){var o=e.find((function(e){return e===t})).parent,i=e.find((function(e){return e.nodeKey===o})).node,r=i.children.indexOf(n);i.children.splice(r,1),this.$emit("deletenode",this.treedata,n)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,n=this.rootNode.find((function(e){return e.nodeKey===t})).node;return n}}}}).call(this,n("a336"))},"8d99":function(e,t,n){"use strict";var o=n("a064"),i=n.n(o);i.a},"93e4":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})},i=[],r=(n("60b7"),n("7e1e")),a=n("302e"),s=(n("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"可授权范围",key:"baseinfo",cols:2,ctls:[{type:"checkgroup",dicName:"authType",label:"权限",prop:"auths",labelField:"name",valueField:"id",style:{},isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,n){},orgsave:function(e,t){var n=this;Object(r["j"])("/web/common/appCtl/saveFuncTree",{funcJson:e,curdata:t,appkey:this.appkey}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var o=t.data.funcJson;console.log("save org...............................",o),n.$refs.functree.treedata=o,n.$refs.functree.refreshTree(),n.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,n){},initData:function(){var e=this,t=e.appkey;return function(e){Object(r["c"])({appkey:t}).then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取功能清单数据出错");var o=n.data.funcJson;e(o)}))}}}}),l=s,d=n("9ca4"),c=Object(d["a"])(l,o,i,!1,null,null,null);t["default"]=c.exports},a064:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-682c1ef7"],{"391e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},r=[],i=n("6db5"),o=i["a"],s=n("2877"),c=Object(s["a"])(o,a,r,!1,null,null,null);t["a"]=c.exports},"6db5":function(e,t,n){"use strict";(function(e){n("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var n=e("#framediv"),a=n.get()[0],r=window.innerHeight-a.offsetTop-t.advalue;t.frameHeight=r,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,n("a336"))},7104: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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[n("BizTable",{ref:"bt",attrs:{formatCol:e.formatCol,metaName:"app_info",modelName:"app",packageName:"common",tblheight:a-120,isMulti:"",refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},r=[],i=(n("f559"),n("ac6a"),n("28a5"),n("06d3")),o=n("391e"),s=n("60b7"),c={name:"appinfo_page",data:function(){return{}},components:{PageSpace:o["a"],BizTable:i["a"]},methods:{oninitbtn:function(e,t){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},onexec:function(e,t){var n=this;"func"==e&&this.$router.push({name:"functree_info",query:{appkey:t.appkey}}),"frontroute"==e&&Object(s["b"])(t.appkey).then((function(e){var t=e.data;0==t.status?(n.$Message.success("当前操作已完成"),n.$refs.bt.fetchData()):n.$Message.error(t.msg)}))},validmethod:function(e,t,n){if("functionJSON"==e.field)try{var a=JSON.parse(t);console.log(a)}catch(o){return n(new Error(o))}if("hosts"==e.field){var r=t.split(",");0==r.length&&n(new Error("多个域名需要以逗号分隔"))}if("paths"==e.field){var i=t.split(",");0==i.length?n(new Error("多个路径需要以逗号分隔")):i.forEach((function(e){if(!e.startsWith("/"))return n(new Error("路径必须以/开始"))}))}return"backport"==e.field&&isNaN(t)?n(new Error("请输入数字")):n()},formatCol:function(e,t,n){return"created_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}},f=c,u=n("2877"),l=Object(u["a"])(f,a,r,!1,null,null,null);t["default"]=l.exports},f559:function(e,t,n){"use strict";var a=n("5ca1"),r=n("9def"),i=n("d2c8"),o="startsWith",s=""[o];a(a.P+a.F*n("5147")(o),"String",{startsWith:function(e){var t=i(this,e,o),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),a=String(e);return s?s.call(t,a,n):t.slice(n,n+a.length)===a}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8419046c"],{"2c7b":function(e,t,n){},"302e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[n("Card",{staticStyle:{height:"100%"}},[n("Alert",{attrs:{type:"error"}},[n("template",{slot:"desc"},[n("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),n("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():n("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),n("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[n("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("ok",t.fm)}}},[e._v("保存")]),n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},i=[],r=n("6e29"),a=r["a"],s=(n("8d99"),n("2877")),l=Object(s["a"])(a,o,i,!1,null,null,null);t["a"]=l.exports},"6e29":function(e,t,n){"use strict";(function(e){n("7514"),n("c5f6"),n("55dd"),n("ac6a"),n("60b7");var o=n("0086");n("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:o["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,n="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:n,render:function(t,n){var o=n.root,i=n.node,r=n.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(i,r)},click:function(){e.currentData=r,e.currentNode=i,e.rootNode=o,e.selclick(o,i,r)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[r.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(r)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,n,o){o||(o=0),o++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,o)):n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o)}))}},methods:{selclick:function(e,t,n){this.$emit("onselnode",e,t,n)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,n){this.$emit("controlctl",e,t,n)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var n=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=n.$refs.nodeform.getNewModel();modiTreeNodeByCode(n.treedata,t,null),n.showedform=!1,n.$emit("modisave",n.treedata,t,n.oldnodedata),n.resetForm(),console.log(n.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var n=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=n,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),n=t.get()[0],o=window.innerHeight-n.offsetTop-30;t.css("height",o+"px"),this.treeheight=o},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var n=this,o=t.root,i=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(i,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=i,n.rootNode=o,n.selclick(o,i,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){n.append(r)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){n.remove(o,i,r)}}})])])},append:function(e){var t=e.children||[],n=this.$refs.nodeform.getNewModel();console.log("new model.........................",n),n.expand=!0,t.push(n),this.$set(e,"children",t)},remove:function(e,t,n){var o=e.find((function(e){return e===t})).parent,i=e.find((function(e){return e.nodeKey===o})).node,r=i.children.indexOf(n);i.children.splice(r,1),this.$emit("deletenode",this.treedata,n)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,n=this.rootNode.find((function(e){return e.nodeKey===t})).node;return n}}}}).call(this,n("a336"))},"8d99":function(e,t,n){"use strict";var o=n("2c7b"),i=n.n(o);i.a},"93e4":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})},i=[],r=(n("60b7"),n("7e1e")),a=n("302e"),s=(n("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"可授权范围",key:"baseinfo",cols:2,ctls:[{type:"checkgroup",dicName:"authType",label:"权限",prop:"auths",labelField:"name",valueField:"id",style:{},isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,n){},orgsave:function(e,t){var n=this;Object(r["j"])("/web/common/appCtl/saveFuncTree",{funcJson:e,curdata:t,appkey:this.appkey}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var o=t.data.funcJson;console.log("save org...............................",o),n.$refs.functree.treedata=o,n.$refs.functree.refreshTree(),n.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,n){},initData:function(){var e=this,t=e.appkey;return function(e){Object(r["c"])({appkey:t}).then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取功能清单数据出错");var o=n.data.funcJson;e(o)}))}}}}),l=s,d=n("2877"),c=Object(d["a"])(l,o,i,!1,null,null,null);t["default"]=c.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9cdc768"],{"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("6db5"),r=n["a"],u=a("2877"),o=Object(u["a"])(r,i,s,!1,null,null,null);t["a"]=o.exports},"4b45":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"bizopt",metaName:"allchance_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),u=a("db7f"),o=a("f121"),c=a("a026"),f=o["a"].deliverUrl.pro,l={name:"allchance_page",data:function(){return{baseUrl:f,row:null}},components:{PageSpace:r["a"],BizTable:n["a"]},created:function(){},watch:{$route:function(e){e.query.spname?(e.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:e.query.spname,business_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:e.query.spname},this.$refs.bt.fetchData()):e.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:e.query.bizStatus,dateType:e.query.dateType},this.$refs.bt.fetchData())}},mounted:function(){this.$route.query.spname?(this.$route.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,dateType:this.$route.query.dateType},this.$refs.bt.fetchData()):this.$route.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType},this.$refs.bt.fetchData())},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"submit_case"===e?(console.log("turn to case page: ",t),this.$router.push({name:"bizcase",query:{bizType:t.business_type,bizCode:t.demand_code}})):"bizdetails"===e&&alert("detail")},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){if("expand"==t){this.row=e;var i="<span>xxxxxxx</span>",s=Object.assign({},this.$data),n=c["default"].extend({components:{},template:"<div>".concat(i,"</div>"),data:function(){return s},methods:{}}),r=new n;return r}var o=e[t];if("business_type"===t){var f=u["a"].business_type[o];return f}if("business_status"===t){var l=u["a"].business_status[o];return l}if("source"===t){var d=u["a"].source[o];return d}}}},d=l,h=a("2877"),b=Object(h["a"])(d,i,s,!1,null,null,null);t["default"]=b.exports},"6db5":function(e,t,a){"use strict";(function(e){a("c5f6");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d9cb04fa"],{"391e":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"},attrs:{id:"framediv"}},[e._t("default",null,{adjustHeight:e.frameHeight})],2)},s=[],n=a("9ee1"),r=n["a"],u=a("9ca4"),o=Object(u["a"])(r,i,s,!1,null,null,null);t["a"]=o.exports},"4b45":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var i=t.adjustHeight;return[a("BizTable",{ref:"bt",attrs:{showTotal:"",formatCol:e.formatCol,modelName:"bizopt",metaName:"allchance_info",packageName:"bizchance",baseUrl:e.baseUrl,tblheight:i-120,refvalidatemethod:e.validmethod,savebefore:e.beforesave,editbefore:e.beforedit,addbefore:e.beforeadd,colVisable:e.colVisable},on:{onexec:e.onexec,oninitbtn:e.oninitbtn}})]}}])})},s=[],n=a("06d3"),r=a("391e"),u=a("db7f"),o=a("f121"),c=a("a59a"),f=o["a"].deliverUrl.pro,l={name:"allchance_page",data:function(){return{baseUrl:f,row:null}},components:{PageSpace:r["a"],BizTable:n["a"]},created:function(){},watch:{$route:function(e){e.query.spname?(e.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:e.query.spname,business_status:e.query.bizStatus,dateType:e.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:e.query.spname},this.$refs.bt.fetchData()):e.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:e.query.bizStatus,dateType:e.query.dateType},this.$refs.bt.fetchData())}},mounted:function(){this.$route.query.spname?(this.$route.query.bizStatus?this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType}:this.$refs.bt.initWhereData={facilitator_name:this.$route.query.spname,dateType:this.$route.query.dateType},this.$refs.bt.fetchData()):this.$route.query.bizStatus&&(this.$refs.bt.initWhereData={business_status:this.$route.query.bizStatus,dateType:this.$route.query.dateType},this.$refs.bt.fetchData())},methods:{colVisable:function(e){return"facilitator_name"!=e.key||1==this.$store.state.user.userobj.company.id},oninitbtn:function(e){},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,a){return a(t)},onexec:function(e,t){"submit_case"===e?(console.log("turn to case page: ",t),this.$router.push({name:"bizcase",query:{bizType:t.business_type,bizCode:t.demand_code}})):"bizdetails"===e&&alert("detail")},validmethod:function(e,t,a){return a()},formatCol:function(e,t,a){if("expand"==t){this.row=e;var i="<span>xxxxxxx</span>",s=Object.assign({},this.$data),n=c["default"].extend({components:{},template:"<div>".concat(i,"</div>"),data:function(){return s},methods:{}}),r=new n;return r}var o=e[t];if("business_type"===t){var f=u["a"].business_type[o];return f}if("business_status"===t){var l=u["a"].business_status[o];return l}if("source"===t){var h=u["a"].source[o];return h}}}},h=l,d=a("9ca4"),b=Object(d["a"])(h,i,s,!1,null,null,null);t["default"]=b.exports},"9ee1":function(e,t,a){"use strict";(function(e){a("163d");t["a"]={name:"pagespace_page",prop:{tweak:Number},data:function(){return{frameHeight:0,advalue:this.tweak?this.tweak:0}},components:{},mounted:function(){var t=this;this.setHeight(),e(window).resize((function(){t.setHeight()}))},methods:{setHeight:function(){var t=this;this.$nextTick((function(){var a=e("#framediv"),i=a.get()[0],s=window.innerHeight-i.offsetTop-t.advalue;t.frameHeight=s,t.$emit("sizechange",t.frameHeight)}))}}}}).call(this,a("a336"))}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e7e51fa0"],{"14ed":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})],1)},r=[],i=(n("60b7"),n("7e1e")),a=n("302e"),s=(n("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"层级",key:"baseinfo",cols:2,ctls:[{type:"input",rules:[],label:"级别",prop:"level",disabled:!0,style:{},isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,n){},orgsave:function(e,t){var n=this;Object(i["j"])("/web/common/treearchCtl/saveRegions",{regionJson:e}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var o=t.data.regionJson;console.log("save org...............................",o),n.$refs.functree.treedata=o,n.$refs.functree.refreshTree(),n.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,n){},initData:function(){var e=this;e.appkey;return function(e){Object(i["f"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取功能清单数据出错");var o=n.data.regionJson;e(o)}))}}}}),l=s,d=n("9ca4"),c=Object(d["a"])(l,o,r,!1,null,null,null);t["default"]=c.exports},"302e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[n("Card",{staticStyle:{height:"100%"}},[n("Alert",{attrs:{type:"error"}},[n("template",{slot:"desc"},[n("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),n("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():n("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),n("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[n("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("ok",t.fm)}}},[e._v("保存")]),n("Button",{attrs:{type:"text"},on:{click:function(n){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},r=[],i=n("7dfe"),a=i["a"],s=(n("8d99"),n("9ca4")),l=Object(s["a"])(a,o,r,!1,null,null,null);t["a"]=l.exports},"7dfe":function(e,t,n){"use strict";(function(e){n("e697"),n("163d"),n("c904"),n("6d57"),n("60b7");var o=n("0086");n("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:o["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,n="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:n,render:function(t,n){var o=n.root,r=n.node,i=n.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(r,i)},click:function(){e.currentData=i,e.currentNode=r,e.rootNode=o,e.selclick(o,r,i)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[i.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(i)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,n,o){o||(o=0),o++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,o)):n?(e.orgpath=n.orgpath+"/"+e.code,e.titlepath=n.titlepath+"/"+e.title,e.level=o):(e.orgpath=e.code,e.titlepath=e.title,e.level=o)}))}},methods:{selclick:function(e,t,n){this.$emit("onselnode",e,t,n)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,n){this.$emit("controlctl",e,t,n)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var n=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=n.$refs.nodeform.getNewModel();modiTreeNodeByCode(n.treedata,t,null),n.showedform=!1,n.$emit("modisave",n.treedata,t,n.oldnodedata),n.resetForm(),console.log(n.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var n=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=n,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),n=t.get()[0],o=window.innerHeight-n.offsetTop-30;t.css("height",o+"px"),this.treeheight=o},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var n=this,o=t.root,r=t.node,i=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(r,i)},click:function(e){n.setSelCss(e),n.currentData=i,n.currentNode=r,n.rootNode=o,n.selclick(o,r,i)}}},[e("Icon",{props:{type:i.children&&i.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",i.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){n.append(i)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){n.remove(o,r,i)}}})])])},append:function(e){var t=e.children||[],n=this.$refs.nodeform.getNewModel();console.log("new model.........................",n),n.expand=!0,t.push(n),this.$set(e,"children",t)},remove:function(e,t,n){var o=e.find((function(e){return e===t})).parent,r=e.find((function(e){return e.nodeKey===o})).node,i=r.children.indexOf(n);r.children.splice(i,1),this.$emit("deletenode",this.treedata,n)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,n=this.rootNode.find((function(e){return e.nodeKey===t})).node;return n}}}}).call(this,n("a336"))},"8d99":function(e,t,n){"use strict";var o=n("a064"),r=n.n(o);r.a},a064:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fa30b8f2"],{"25cd":function(e,t,n){"use strict";var a=n("e0ca"),i=n.n(a);i.a},a526:function(e,t,n){"use strict";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:"article_info",modelName:"article",packageName:"common",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)},i=[],r=(n("c5f6"),n("06d3")),o=(n("7e1e"),{name:"articleinfo_page",data:function(){return{}},components:{BizTable:r["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){"show"==e&&this.$emit("articleShow",t)},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){return"isPubed"==t?e["isPubed"]?'<span style="color:green">是</span>':'<span style="color:orange">否</span>':"created_at"==t||"updated_at"==t?"<span>".concat(new Date(e[t]).toLocaleString(),"</span>"):e[t]}}}),s=o,c=n("2877"),l=Object(c["a"])(s,a,i,!1,null,null,null);t["a"]=l.exports},a9ab: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("PageSpace",{scopedSlots:e._u([{key:"default",fn:function(t){var a=t.adjustHeight;return[e.isshowlist?n("SplitPanel",[n("Tree",{staticClass:"ptree",attrs:{slot:"left",data:e.treedata,render:e.renderContent},slot:"left"}),n("ArticleInfo",{ref:"articleInfo",attrs:{slot:"right",tblheight:a-60,beforesave:e.beforesave,beforedit:e.beforedit,beforeadd:e.beforeadd},on:{articleShow:e.articleShow},slot:"right"})],1):n("div",{staticStyle:{height:"100%",weight:"100%"}},[n("h1",[n("Button",{attrs:{icon:"md-arrow-round-back",type:"primary"},on:{click:e.rtnback}},[e._v("返回")]),e._v(" 主题:"+e._s(e.currow.title))],1),n("div",{staticStyle:{"margin-top":"5px"}},[e._v("最后更新时间:"+e._s(new Date(e.currow.updated_at).toLocaleString()))]),n("div",{staticStyle:{width:"100%","margin-top":"10px"},domProps:{innerHTML:e._s(e.currow.htmlcontent)}})])]}}])})},i=[],r=n("e90d"),o=r["a"],s=(n("25cd"),n("2877")),c=Object(s["a"])(o,a,i,!1,null,null,null);t["default"]=c.exports},e0ca:function(e,t,n){},e90d:function(e,t,n){"use strict";(function(e){n("60b7");var a=n("391e"),i=n("7e1e"),r=n("302e"),o=n("832e"),s=n("a526");n("f121");t["a"]={name:"treeinfo_page",props:{},components:{ArchEditor:r["a"],SplitPanel:o["a"],PageSpace:a["a"],ArticleInfo:s["a"]},data:function(){return{treedata:[],isshowlist:!0,currow:{}}},mounted:function(){this.initData()},methods:{rtnback:function(){this.isshowlist=!0},articleShow:function(e){this.isshowlist=!1,this.currow=e},renderContent:function(e,t){var n=this,a=t.root,i=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){n.setSelCss(e),n.onselnode(i,r)},click:function(e){n.setSelCss(e),n.currentData=r,n.currentNode=i,n.rootNode=a,n.selclick(a,i,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[])])},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},selclick:function(e,t,n){this.$refs.articleInfo.searchWhere({archpath:n.code})},beforeadd:function(e,t){return t({value:!0,message:null})},beforedit:function(e,t){return t({value:!0,message:null})},beforesave:function(e,t,n){return n(t)},setHeight:function(){var t=e("#orgdiv"),n=t.get()[0],a=window.innerHeight-n.offsetTop;t.css("height",a+"px"),this.$refs.userinfo.setHeight(a-120)},initData:function(){var e=this;Object(i["g"])().then((function(t){var n=t.data;if(0!=n.status)throw new Error("获取数据出错");e.treedata=n.data.sysArchJSON}))}}}}).call(this,n("a336"))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ff3eaeb0"],{"302e":function(e,t,o){"use strict";var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticStyle:{height:"100%"},attrs:{id:"orgcard"}},[o("Card",{staticStyle:{height:"100%"}},[o("Alert",{attrs:{type:"error"}},[o("template",{slot:"desc"},[o("Icon",{attrs:{type:"ios-alert-outline"}}),e._v("双击编辑,单击选择\n "),o("br"),e._v("\n      当前节点:\n "+e._s(e.currentData?e.currentData.title:"请选择操作节点")+"\n ")],1)],2),e.isupdate?e._e():o("Tree",{staticClass:"ptree",attrs:{data:e.treedata,render:e.renderContent}}),o("Drawer",{ref:"eddrawer",attrs:{placement:"right",closable:!1,"mask-closable":!1,width:"70"},on:{"on-visible-change":e.ondrawvisable},model:{value:e.showedform,callback:function(t){e.showedform=t},expression:"showedform"}},[o("NodeForm",{ref:"nodeform",attrs:{fminfo:e.nodeinfo,isEditForm:""},on:{controlctl:e.controlctl},scopedSlots:e._u([{key:"default",fn:function(t){return[o("Button",{attrs:{type:"text"},on:{click:function(o){return e.doexec("ok",t.fm)}}},[e._v("保存")]),o("Button",{attrs:{type:"text"},on:{click:function(o){return e.doexec("cancel",t.fm)}}},[e._v("取消")])]}}])})],1)],1)],1)},i=[],r=o("7dfe"),a=r["a"],s=(o("8d99"),o("9ca4")),l=Object(s["a"])(a,n,i,!1,null,null,null);t["a"]=l.exports},"7dfe":function(e,t,o){"use strict";(function(e){o("e697"),o("163d"),o("c904"),o("6d57"),o("60b7");var n=o("0086");o("f121");t["a"]={name:"jsoneditor",props:{initData:{type:Function,default:function(){var e=this;return function(t){t(e.originalRoot)}}},metainfo:{type:Object}},components:{NodeForm:n["a"]},data:function(){var e=this,t="root"+this.$store.state.user.userobj.company.id,o="/"+t;return{oldnodedata:null,isupdate:!1,rootNode:null,currentData:null,currentNode:null,code:"root",treedata:[],originalMetaInfo:[{title:"基本信息",key:"baseinfo",cols:1,ctls:[{type:"number",label:"序号",prop:"seq",placeHolder:"请输入序号",style:{width:"165px"},rules:[]},{type:"input",label:"编码",prop:"code",placeHolder:"请输入编码",style:"",rules:[{required:!0,message:" ",trigger:"blur"}]},{type:"input",label:"标题",prop:"title",placeHolder:"请输入节点标题",style:"",rules:[{required:!0,message:" ",trigger:"blur"}],default:"点击修改"}]},{title:"节点路径",key:"baseinfo",cols:3,ctls:[{type:"input",label:"KEY",prop:"nodeKey",placeHolder:"请输入编码",disabled:!0,style:"",rules:[]},{type:"input",label:"路径",prop:"orgpath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"input",label:"标题路径",prop:"titlepath",placeHolder:"",disabled:!0,style:"",rules:[]},{type:"number",label:"级别",prop:"level",disabled:!0,placeHolder:"",style:{width:"165px"},rules:[]}]}],originalRoot:{title:"使用者定义",code:t,expand:!0,orgpath:o,render:function(t,o){var n=o.root,i=o.node,r=o.data;return t("span",{style:{display:"inline-block",width:"100%"}},[t("span",{on:{dblclick:function(){e.onselnode(i,r)},click:function(){e.currentData=r,e.currentNode=i,e.rootNode=n,e.selclick(n,i,r)}}},[t("Icon",{props:{type:"ios-folder-outline"},style:{marginRight:"8px"}}),t("span",{},[r.title])]),t("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[t("Button",{props:Object.assign({},e.buttonProps,{icon:"md-add",type:"text"}),style:{width:"64px"},on:{click:function(){e.append(r)}}})])])},children:[]},showedform:!1,buttonProps:{type:"default",size:"small"},nodeinfo:{},treeheight:0}},mounted:function(){this.initTree()},created:function(){this.metainfo&&(this.nodeinfo=Object.assign(this.nodeinfo,this.metainfo),this.nodeinfo.main=this.nodeinfo.main.concat(this.originalMetaInfo)),window.modiTreeNodeByCode=function(e,t,o,n){n||(n=0),n++,e.forEach((function(e){e.nodeKey==t.nodeKey&&(e=Object.assign(e,t)),e.children?(o?(e.orgpath=o.orgpath+"/"+e.code,e.titlepath=o.titlepath+"/"+e.title,e.level=n):(e.orgpath=e.code,e.titlepath=e.title,e.level=n),e.children.sort((function(e,t){return Number(e.seq)>Number(t.seq)})),modiTreeNodeByCode(e.children,t,e,n)):o?(e.orgpath=o.orgpath+"/"+e.code,e.titlepath=o.titlepath+"/"+e.title,e.level=n):(e.orgpath=e.code,e.titlepath=e.title,e.level=n)}))}},methods:{selclick:function(e,t,o){this.$emit("onselnode",e,t,o)},setCtlVisable:function(e,t){this.$refs.nodeform.setCtlVisable(e,t)},controlctl:function(e,t,o){this.$emit("controlctl",e,t,o)},ondrawvisable:function(e){this.$emit("drawaction",e,this.$refs.nodeform)},resetForm:function(){this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel.children=[]},refreshTree:function(){var e=this;this.isupdate=!0,this.$nextTick((function(){e.isupdate=!1}))},doexec:function(e,t){var o=this;"ok"==e?this.$refs.nodeform.validate((function(e){if(console.log("ddddddddddddddddd",e),e){var t=o.$refs.nodeform.getNewModel();modiTreeNodeByCode(o.treedata,t,null),o.showedform=!1,o.$emit("modisave",o.treedata,t,o.oldnodedata),o.resetForm(),console.log(o.treedata)}})):(this.showedform=!1,this.resetForm())},deepclone:function(e){var t=JSON.stringify(e);return JSON.parse(t)},onselnode:function(e,t){this.showedform=!0,this.currentData=t,this.currentNode=e;var o=this.deepclone(t);this.$refs.nodeform.resetForm(),this.$refs.nodeform.formModel=o,this.oldnodedata=this.deepclone(t),this.$refs.nodeform.forminfo.main.forEach((function(e){e.ctls.forEach((function(e){"code"==e.prop&&("root"==t.code?e.disabled=!0:e.disabled=!1)}))}))},initTree:function(){var e=this;this.$nextTick((function(){e.initData&&0==e.treedata.length&&e.initData((function(t){console.log("mmmmmmmmmmmmmmmm",t),!t||t&&t[0]&&(!t.children||t.children&&0==t.children.length)||t&&0==t.length?(e.originalRoot=Object.assign(e.originalRoot,t&&t[0]?t[0]:[]),e.treedata=[e.originalRoot]):(t[0].render=e.originalRoot.render,e.treedata=t)}))}))},setHeight:function(){var t=e("#orgcard"),o=t.get()[0],n=window.innerHeight-o.offsetTop-30;t.css("height",n+"px"),this.treeheight=n},setSelCss:function(t){e("span",".ptree").removeClass("spansel"),e(t.target).parent().parent().addClass("spansel")},renderContent:function(e,t){var o=this,n=t.root,i=t.node,r=t.data;return e("span",{style:{display:"inline-block",width:"100%"}},[e("span",{on:{dblclick:function(e){o.setSelCss(e),o.onselnode(i,r)},click:function(e){o.setSelCss(e),o.currentData=r,o.currentNode=i,o.rootNode=n,o.selclick(n,i,r)}}},[e("Icon",{props:{type:r.children&&r.children.length>0?"ios-folder-outline":"ios-paper-outline"},style:{marginRight:"8px"}}),e("span",r.title)]),e("span",{style:{display:"inline-block",float:"right",marginRight:"32px"}},[e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-add"}),style:{marginRight:"8px"},on:{click:function(){o.append(r)}}}),e("Button",{props:Object.assign({},this.buttonProps,{icon:"ios-remove"}),on:{click:function(){o.remove(n,i,r)}}})])])},append:function(e){var t=e.children||[],o=this.$refs.nodeform.getNewModel();console.log("new model.........................",o),o.expand=!0,t.push(o),this.$set(e,"children",t)},remove:function(e,t,o){var n=e.find((function(e){return e===t})).parent,i=e.find((function(e){return e.nodeKey===n})).node,r=i.children.indexOf(o);i.children.splice(r,1),this.$emit("deletenode",this.treedata,o)},findParentByNode:function(e){var t=this.rootNode.find((function(t){return t===e})).parent,o=this.rootNode.find((function(e){return e.nodeKey===t})).node;return o}}}}).call(this,o("a336"))},8442:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("OrgEditor",{ref:"functree",attrs:{initData:e.initData(),metainfo:e.metainfo},on:{controlctl:e.controlctl,drawaction:e.drawaction,modisave:e.orgsave,deletenode:e.orgsave,onselnode:e.onselnode}})],1)},i=[],r=(o("60b7"),o("7e1e")),a=o("302e"),s=(o("f121"),{name:"treeinfo_page",props:{},components:{OrgEditor:a["a"]},data:function(){return{appkey:"",metainfo:{name:"节点编辑",main:[{title:"附件信息",key:"baseinfo",cols:2,ctls:[{type:"upload",rules:[],label:"列表图片",prop:"listimg",disabled:!0,style:{},isHide:!1},{type:"input",rules:[],label:"类别简介",prop:"simpleDesc",disabled:!1,style:"width:300px",isHide:!1},{type:"upload",rules:[],label:"详情图片",prop:"detailimg",disabled:!0,style:{},isHide:!1},{type:"textarea",rules:[],label:"详情描述",prop:"desc",disabled:!0,style:"width:300px",isHide:!1}]}],lists:null}}},mounted:function(){this.appkey=this.$route.query.appkey},methods:{onselnode:function(e,t,o){},orgsave:function(e,t){var o=this;Object(r["j"])("/web/common/treearchCtl/saveProductcats",{productcatJson:e}).then((function(e){var t=e.data;if(console.log("ddddddddddddddddd",t),0==t.status){var n=t.data.productcatJson;console.log("save org...............................",n),o.$refs.functree.treedata=n,o.$refs.functree.refreshTree(),o.$Message.success("当前操作成功完成")}}))},drawaction:function(e,t){},controlctl:function(e,t,o){},initData:function(){var e=this;e.appkey;return function(e){Object(r["e"])().then((function(t){var o=t.data;if(0!=o.status)throw new Error("获取功能清单数据出错");var n=o.data.productcatJson;e(n)}))}}}}),l=s,d=o("9ca4"),c=Object(d["a"])(l,n,i,!1,null,null,null);t["default"]=c.exports},"8d99":function(e,t,o){"use strict";var n=o("a064"),i=o.n(n);i.a},a064:function(e,t,o){}}]);
\ 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