tree-grid-component
Version:
2 lines • 44 kB
JavaScript
webpackJsonp([0],{"+GuK":function(t,e,n){"use strict";var o=n("Wdy1"),r=n("iANj"),i=n("YjQv"),a=n("BfX3"),s=n("qC2Z");o(o.P+o.R,"Promise",{finally:function(t){var e=a(this,r.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"//Fk":function(t,e,n){t.exports={default:n("x/31"),__esModule:!0}},"1H6C":function(t,e,n){var o=function(){return this}()||Function("return this")(),r=o.regeneratorRuntime&&Object.getOwnPropertyNames(o).indexOf("regeneratorRuntime")>=0,i=r&&o.regeneratorRuntime;if(o.regeneratorRuntime=void 0,t.exports=n("HhN8"),r)o.regeneratorRuntime=i;else try{delete o.regeneratorRuntime}catch(t){o.regeneratorRuntime=void 0}},"1yV6":function(t,e,n){var o=n("FHqv"),r=n("hgbu")("iterator"),i=n("yYxz");t.exports=n("iANj").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||i[o(t)]}},"3HN9":function(t,e,n){"use strict";var o=n("SWGL");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,o){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=o}),this.resolve=o(e),this.reject=o(n)}(t)}},"4S0F":function(t,e){t.exports=function(t,e,n,o){if(!(t instanceof e)||void 0!==o&&o in t)throw TypeError(n+": incorrect invocation!");return t}},"9uBv":function(t,e,n){"use strict";var o=n("3fMt"),r=n("Wdy1"),i=n("wXdB"),a=n("tn1D"),s=n("yuYM"),l=n("GhAV"),c=n("Uy0O"),u=n("1yV6");r(r.S+r.F*!n("wWcv")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,d,h=i(t),f="function"==typeof this?this:Array,m=arguments.length,p=m>1?arguments[1]:void 0,_=void 0!==p,v=0,g=u(h);if(_&&(p=o(p,m>2?arguments[2]:void 0,2)),void 0==g||f==Array&&s(g))for(n=new f(e=l(h.length));e>v;v++)c(n,v,_?p(h[v],v):h[v]);else for(d=g.call(h),n=new f;!(r=d.next()).done;v++)c(n,v,_?a(d,p,[r.value,v],!0):r.value);return n.length=v,n}})},AWMC:function(t,e){},AgWD:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},BO1k:function(t,e,n){t.exports={default:n("oY0/"),__esModule:!0}},BfX3:function(t,e,n){var o=n("FKWp"),r=n("SWGL"),i=n("hgbu")("species");t.exports=function(t,e){var n,a=o(t).constructor;return void 0===a||void 0==(n=o(a)[i])?e:r(n)}},EFoD:function(t,e,n){"use strict";var o=n("YjQv"),r=n("iANj"),i=n("GCs6"),a=n("qs+f"),s=n("hgbu")("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:o[t];a&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},FHqv:function(t,e,n){var o=n("NZra"),r=n("hgbu")("toStringTag"),i="Arguments"==o(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:i?o(e):"Object"==(a=o(e))&&"function"==typeof e.callee?"Arguments":a}},Gu7T:function(t,e,n){"use strict";e.__esModule=!0;var o,r=n("c/Tr"),i=(o=r)&&o.__esModule?o:{default:o};e.default=function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return(0,i.default)(t)}},HhN8:function(t,e){!function(e){"use strict";var n,o=Object.prototype,r=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag",c="object"==typeof t,u=e.regeneratorRuntime;if(u)c&&(t.exports=u);else{(u=e.regeneratorRuntime=c?t.exports:{}).wrap=y;var d="suspendedStart",h="suspendedYield",f="executing",m="completed",p={},_={};_[a]=function(){return this};var v=Object.getPrototypeOf,g=v&&v(v(H([])));g&&g!==o&&r.call(g,a)&&(_=g);var b=T.prototype=w.prototype=Object.create(_);C.prototype=b.constructor=T,T.constructor=C,T[l]=C.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===C||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},S(D.prototype),D.prototype[s]=function(){return this},u.AsyncIterator=D,u.async=function(t,e,n,o){var r=new D(y(t,e,n,o));return u.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},S(b),b[l]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},u.values=H,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(o,r){return s.type="throw",s.arg=t,e.next=o,r&&(e.method="next",e.arg=n),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var o=n.completion;if("throw"===o.type){var r=o.arg;E(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:H(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=n),p}}}function y(t,e,n,o){var r=e&&e.prototype instanceof w?e:w,i=Object.create(r.prototype),a=new k(o||[]);return i._invoke=function(t,e,n){var o=d;return function(r,i){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===r)throw i;return F()}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=L(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var l=x(t,e,n);if("normal"===l.type){if(o=n.done?m:h,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=m,n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function x(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function C(){}function T(){}function S(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function D(t){var e;this._invoke=function(n,o){function i(){return new Promise(function(e,i){!function e(n,o,i,a){var s=x(t[n],t,o);if("throw"!==s.type){var l=s.arg,c=l.value;return c&&"object"==typeof c&&r.call(c,"__await")?Promise.resolve(c.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(c).then(function(t){l.value=t,i(l)},a)}a(s.arg)}(n,o,e,i)})}return e=e?e.then(i,i):i()}}function L(t,e){var o=t.iterator[e.method];if(o===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,L(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=x(o,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function H(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:F}}function F(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},LKnP:function(t,e,n){var o=n("YjQv"),r=n("kkvn").set,i=o.MutationObserver||o.WebKitMutationObserver,a=o.process,s=o.Promise,l="process"==n("NZra")(a);t.exports=function(){var t,e,n,c=function(){var o,r;for(l&&(o=a.domain)&&o.exit();t;){r=t.fn,t=t.next;try{r()}catch(o){throw t?n():e=void 0,o}}e=void 0,o&&o.enter()};if(l)n=function(){a.nextTick(c)};else if(!i||o.navigator&&o.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){r.call(o,c)};else{var d=!0,h=document.createTextNode("");new i(c).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(o){var r={fn:o,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},Nrqz:function(t,e,n){"use strict";var o=n("Wdy1"),r=n("3HN9"),i=n("AgWD");o(o.S,"Promise",{try:function(t){var e=r.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},QF4L:function(t,e){},RLCm:function(t,e){},St71:function(t,e,n){var o=n("FKWp"),r=n("1yV6");t.exports=n("iANj").getIterator=function(t){var e=r(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return o(e.call(t))}},Sz5k:function(t,e,n){"use strict";var o=n("mvHQ"),r=n.n(o),i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.tdClass},[0!==t.root&&1!==t.nodes?n("span",{staticClass:"before-line",style:{left:t.model.bLeft+"px"}}):t._e(),t._v(" "),n("table",[n("tr",[n("td",{attrs:{colspan:t.colSpan}},[n("table",[n("tr",{staticClass:"level",class:t.levelClass},[n("td",{staticClass:"td1"},[n("div",{staticClass:"td-title"},[n("div",[t.model.children&&t.model.children.length>0?n("i",{class:"zk-table--tree-icon zk-icon "+(t.model.isFold?"zk-icon-minus-square-o zk-shield":"zk-icon-plus-square-o"),on:{click:function(e){return t.handlerFold(t.model)}}}):t._e(),t._v(" "),n("div",{staticClass:"tree-row"},t._l(t.treeColumnList,function(e){return n("div",{key:e.key,staticClass:"tree-column",style:t.treeColumnRender(e,t.model)},[[e.slotName?t._e():n("span",{staticClass:"node-title",style:{width:e.expandFunc?"40px":"auto"}},[t._v("\n "+t._s(t.model[e.fieldName])),e.mainAccountSlotName&&1===t.model.level?t._t(e.mainAccountSlotName,null,{data:t.model}):t._e()],2),t._v(" "),e.expandFunc&&t.model[t.tableListName]&&t.model[t.tableListName].length>0?n("div",{staticClass:"zk-table__cell-inner zk-table--expand-inner",class:{"zk-table--expanded-inner":t.model.isExpand},on:{click:function(e){return t.handlerExpand(t.model)}}},[n("i",{staticClass:"zk-icon zk-icon-angle-right"})]):t._e(),t._v(" "),e.slotName?t._t(e.slotName,null,{data:t.model}):t._e()]],2)}),0),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.model.isExpand&&t.model[t.tableListName].length>0,expression:"model.isExpand && model[tableListName].length > 0"}],staticClass:"extend-table",style:t.tableRowRender},[n("span",{directives:[{name:"show",rawName:"v-show",value:t.model.isFold&&t.model.isExpand&&t.model.children.length>0,expression:"\n model.isFold &&\n model.isExpand &&\n model.children.length > 0\n "}],staticClass:"level-line"}),t._v(" "),t._t("extendTable",null,{data:t.model})],2)])])])])])])])]),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.model.isFold,expression:"model.isFold"}],staticClass:"other-node",class:t.otherNodeClass},t._l(t.model.children,function(e,o){return n("tree-unit",{key:String("child_node"+o),attrs:{num:o,root:1,nodes:t.model[t.tableListName].length,trees:t.trees,model:e,treeColumnList:t.treeColumnList,columnList:t.columnList,tableListName:t.tableListName},on:{handlerFold:t.handlerFold,handlerExpand:t.handlerExpand,"update:nodes":function(e){return t.$set(t.model[t.tableListName],"length",e)},"update:trees":function(e){t.trees=e}},scopedSlots:t._u([{key:"extendTable",fn:function(e){return[t._t("extendTable",null,{data:e.data})]}},t._l(t.treeColumnList,function(e){return{key:e.slotName,fn:function(n){return[t._t(e.slotName,null,{data:n.data})]}}}),t._l(t.treeColumnList,function(e){return{key:e.mainAccountSlotName,fn:function(n){return[t._t(e.mainAccountSlotName,null,{data:n.data})]}}})],null,!0)})}),1)])},staticRenderFns:[]};var a={name:"treeGrid",props:["list","treeColumnList","columnList","tableListName"],data:function(){return{treeDataSource:[]}},watch:{list:{handler:function(){this.initTreeData()},deep:!0}},computed:{},methods:{treeHeaderRender:function(t,e,n){return e!==n.length-1?{"flex-basis":t.minWidth+"px"||"100px","min-width":t.minWidth+"px"||"100px","max-width":t.maxWidth+"px"||"500px"}:{"flex-basis":t.minWidth+"px"||"100px","min-width":t.minWidth+"px"||"100px","max-width":t.maxWidth+"px"||"500px","padding-left":"80px"}},initTreeData:function(){console.log("处理前的:",JSON.parse(r()(this.list)));var t=JSON.parse(r()(this.list));!function t(e,n){e.map(function(e,o){e.isFold=!0,e.isExpand=!0,e.children=e.children||[],e.level=n,e.bLeft=1===n?65:14*(n-2)+65,e.children.length>0&&t(e.children,n+1)})}(t,1),console.log("处理后的:",t),this.treeDataSource=t},getMore:function(){alert("滚动到底部加载更多"),$("#scrollWrap").mCustomScrollbar("scrollTo","top",{scrollInertia:0})},handlerFold:function(t){this.$emit("handlerFold",t)},handlerExpand:function(t){this.$emit("handlerExpand",t)}},components:{"tree-unit":n("VU/8")({name:"treeUnit",props:["model","num","nodes","root","trees","treeColumnList","columnList","tableListName"],data:function(){return{parentNodeModel:null}},computed:{colSpan:function(){return 0===this.root?"":6},tdClass:function(){return 0===this.root?"td-border":"not-border"},levelClass:function(){return this.model?"level-"+this.model.level:""},childNodeClass:function(){return 0===this.root?"":"child-node"},otherNodeClass:function(){return this.model?"other-node-"+this.model.level:""},tableRowRender:function(){return{"padding-top":"20px","padding-bottom":"20px","margin-left":-15*(this.model.level-1)-54+"px","padding-left":65+15*(this.model.level-1)+"px","background-color":"#f4f6fa"}}},watch:{},methods:{columnRender:function(t,e){return 1===t.key?e.children&&e.children.length>0?"26px":"12px":"0px"},treeColumnRender:function(t,e){return{"flex-basis":2!==t.key?t.minWidth-14*(e.level-1)+"px":t.minWidth+13*(e.level-1)+"px","min-width":2!==t.key?t.minWidth-14*(e.level-1)+"px":t.minWidth+13*(e.level-1)+"px",display:t.expandFunc?"flex":"inline-block","padding-left":this.columnRender(t,e),"padding-right":3===t.key?"30px":"0","text-align":3===t.key?"right":"left","text-overflow":"ellipsis"}},getParentNode:function(t){var e=this;!function n(o,r){o.forEach(function(o){o.id===t.id&&(e.parentNodeModel=r),o.children&&n(o.children,o)})}(this.trees,this.trees)},handlerFold:function(t){this.$emit("handlerFold",t)},handlerExpand:function(t){this.$emit("handlerExpand",t)}},filters:{formatDate:function(t){return t}}},i,!1,function(t){n("RLCm")},null,null).exports},mounted:function(){var t=this;t.$nextTick(function(){t.initTreeData()})}},s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tree-grid"},[n("div",{staticClass:"tree-head"},[n("table",[n("tr",t._l(t.treeColumnList,function(e,o){return n("th",{key:e.key,class:"th"+(o+1),style:t.treeHeaderRender(e,o,t.treeColumnList)},[t._v("\n "+t._s(e.name)+"\n ")])}),0)])]),t._v(" "),n("div",{staticClass:"tree-wrap",attrs:{id:"scrollWrap"}},[n("div",{staticClass:"tree-body"},[t.treeDataSource.length>0?n("table",[n("tbody",[n("tr",[n("td",t._l(t.treeDataSource,function(e,o){return n("tree-unit",{key:"root_node_"+o,attrs:{root:0,num:o,nodes:t.treeDataSource.length,trees:t.treeDataSource,model:e,treeColumnList:t.treeColumnList,columnList:t.columnList,tableListName:t.tableListName},on:{handlerFold:t.handlerFold,handlerExpand:t.handlerExpand,"update:trees":function(e){t.treeDataSource=e}},scopedSlots:t._u([t._l(t.treeColumnList,function(e){return{key:e.slotName,fn:function(n){return[t._t(e.slotName,null,{data:n.data})]}}}),t._l(t.treeColumnList,function(e){return{key:e.mainAccountSlotName,fn:function(n){return[t._t(e.mainAccountSlotName,null,{data:n.data})]}}}),{key:"extendTable",fn:function(e){return[t._t("extendTable",null,{data:e.data})]}}],null,!0)})}),1)])])]):t._e()])])])},staticRenderFns:[]};var l=n("VU/8")(a,s,!1,function(t){n("QF4L")},null,null);e.a=l.exports},Uy0O:function(t,e,n){"use strict";var o=n("GCs6"),r=n("YTz9");t.exports=function(t,e,n){e in t?o.f(t,e,r(0,n)):t[e]=n}},WBDt:function(t,e){t.exports=[{org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",sub_account_total:8,sub_account_list:[{sub_account_user_id:"0b7823a4-7856-4269-9760-ff5c1edac668",sub_account_user_name:"linshaoqiang66",sub_account_display_name:"linshaoqiang66",sub_account_relation_status:1,sub_account_relation_time:1664440928e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"7a43fd3d-9897-461e-b493-a63d861857e0",sub_account_user_name:"r12640",sub_account_display_name:"12640",sub_account_relation_status:1,sub_account_relation_time:1666078277e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"f39ca23b-133a-48aa-9d7e-c8db4d922168",sub_account_user_name:"testlyy11111111111111111111111",sub_account_display_name:"r123123",sub_account_relation_status:1,sub_account_relation_time:1658301905e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"1995a3ee-654f-4775-a63d-24eedfab7cc9",sub_account_user_name:"xioahahha",sub_account_display_name:"xioahahha",sub_account_relation_status:1,sub_account_relation_time:1656296289e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"86a28127-f9b4-4721-be65-c5b1350bc99a",sub_account_user_name:"zx3344",sub_account_display_name:"zx3344",sub_account_relation_status:1,sub_account_relation_time:165707294e4,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"230c2ac3-607e-4cef-9a73-9df1a1acda1c",sub_account_user_name:"zx9988",sub_account_display_name:"zx9988",sub_account_relation_status:1,sub_account_relation_time:1657073076e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"8cb442c8-9627-4fd3-97e3-07a97c50eedc",sub_account_user_name:"zxtest331",sub_account_display_name:"zxtest331",sub_account_relation_status:1,sub_account_relation_time:1653879501e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"},{sub_account_user_id:"5c36172d-3991-40db-be2a-83924e83ccb0",sub_account_user_name:"zxtest332",sub_account_display_name:"ssssssssssssssssssss",sub_account_relation_status:1,sub_account_relation_time:1665560605e3,org_id:"d9cbe04a-6973-4acd-bd3a-e938d5b091dd",org_name:"黑白公司",role:"sub"}],children:[{org_id:"6ca0799b-9b73-4b8f-9f0e-fbf6038880ec",org_name:"1的的顶顶顶顶顶顶顶顶顶顶的顶顶顶顶顶顶顶顶顶顶顶顶顶顶顶dddd2",sub_account_total:0,sub_account_list:[],children:[]},{org_id:"191f638f-0f92-47f1-8a72-9f1163130c09",org_name:"ddd",sub_account_total:0,sub_account_list:[],children:[]},{org_id:"d1e26ad2-d110-4b6a-a418-3cba8dfb2f56",org_name:"方法反反复复付付付付oooooo付付付付付付付8付付付付付付付付付孤寡孤寡孤寡过过过过过过过过过过",sub_account_total:0,sub_account_list:[],children:[]},{org_id:"c1ab7200-6a8e-4931-84b6-fb6fcc39f68a",org_name:"卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔",sub_account_total:2,sub_account_list:[{sub_account_user_id:"f6f4e768-606a-46b1-9594-e9c934b1b55d",sub_account_user_name:"34fertrtr",sub_account_display_name:"ddd语言呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀呀晕晕晕晕晕晕晕晕晕晕晕晕晕晕晕",sub_account_relation_status:1,sub_account_relation_time:1656296772e3,org_id:"c1ab7200-6a8e-4931-84b6-fb6fcc39f68a",org_name:"卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔",role:"sub"},{sub_account_user_id:"94c53c14-6e29-4ef8-8354-570717ecbb16",sub_account_user_name:"zx0099",sub_account_display_name:"zx0099",sub_account_relation_status:1,sub_account_relation_time:1657073763e3,org_id:"c1ab7200-6a8e-4931-84b6-fb6fcc39f68a",org_name:"卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔尔卡塔",role:"sub"}],children:[{org_id:"85664c65-40de-4adb-aa09-fa13437c4aba",org_name:"立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛立陶宛",sub_account_total:0,sub_account_list:[],children:[{org_id:"ef97b52e-14ec-491a-9ca5-146bde073ffe",org_name:"阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷阿根廷",sub_account_total:0,sub_account_list:[],children:[{org_id:"f967f6cc-ba2d-4d3e-9284-a6581b906649",org_name:"葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄牙葡萄",sub_account_total:0,sub_account_list:[],children:[]}]}]}]}]}]},Xxa5:function(t,e,n){t.exports=n("1H6C")},Zbun:function(t,e,n){var o=n("iANj"),r=o.JSON||(o.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},"c/Tr":function(t,e,n){t.exports={default:n("fRJi"),__esModule:!0}},dudK:function(t,e,n){var o=n("3fMt"),r=n("tn1D"),i=n("yuYM"),a=n("FKWp"),s=n("GhAV"),l=n("1yV6"),c={},u={};(e=t.exports=function(t,e,n,d,h){var f,m,p,_,v=h?function(){return t}:l(t),g=o(n,d,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(i(v)){for(f=s(t.length);f>b;b++)if((_=e?g(a(m=t[b])[0],m[1]):g(t[b]))===c||_===u)return _}else for(p=v.call(t);!(m=p.next()).done;)if((_=r(p,g,m.value,e))===c||_===u)return _}).BREAK=c,e.RETURN=u},eg8w:function(t,e){t.exports=function(t,e,n){var o=void 0===n;switch(e.length){case 0:return o?t():t.call(n);case 1:return o?t(e[0]):t.call(n,e[0]);case 2:return o?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return o?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return o?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},ewvD:function(t,e){},exGp:function(t,e,n){"use strict";e.__esModule=!0;var o,r=n("//Fk"),i=(o=r)&&o.__esModule?o:{default:o};e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,n){return function o(r,a){try{var s=e[r](a),l=s.value}catch(t){return void n(t)}if(!s.done)return i.default.resolve(l).then(function(t){o("next",t)},function(t){o("throw",t)});t(l)}("next")})}}},fRJi:function(t,e,n){n("tz60"),n("9uBv"),t.exports=n("iANj").Array.from},ht0Q:function(t,e,n){var o=n("YjQv").navigator;t.exports=o&&o.userAgent||""},kkvn:function(t,e,n){var o,r,i,a=n("3fMt"),s=n("eg8w"),l=n("+iDZ"),c=n("PY1i"),u=n("YjQv"),d=u.process,h=u.setImmediate,f=u.clearImmediate,m=u.MessageChannel,p=u.Dispatch,_=0,v={},g=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){g.call(t.data)};h&&f||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++_]=function(){s("function"==typeof t?t:Function(t),e)},o(_),_},f=function(t){delete v[t]},"process"==n("NZra")(d)?o=function(t){d.nextTick(a(g,t,1))}:p&&p.now?o=function(t){p.now(a(g,t,1))}:m?(i=(r=new m).port2,r.port1.onmessage=b,o=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(o=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):o="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:h,clear:f}},mgCp:function(t,e,n){"use strict";var o,r,i,a,s=n("c8Kh"),l=n("YjQv"),c=n("3fMt"),u=n("FHqv"),d=n("Wdy1"),h=n("8ANE"),f=n("SWGL"),m=n("4S0F"),p=n("dudK"),_=n("BfX3"),v=n("kkvn").set,g=n("LKnP")(),b=n("3HN9"),y=n("AgWD"),x=n("ht0Q"),w=n("qC2Z"),C=l.TypeError,T=l.process,S=T&&T.versions,D=S&&S.v8||"",L=l.Promise,N="process"==u(T),E=function(){},k=r=b.f,H=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n("hgbu")("species")]=function(t){t(E,E)};return(N||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==D.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),F=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},W=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var o=t._v,r=1==t._s,i=0,a=function(e){var n,i,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&M(t),t._h=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),a=!0)),n===e.promise?c(C("Promise-chain cycle")):(i=F(n))?i.call(n,l,c):l(n)):c(o)}catch(t){u&&!a&&u.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&O(t)})}},O=function(t){v.call(l,function(){var e,n,o,r=t._v,i=A(t);if(i&&(e=y(function(){N?T.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(o=l.console)&&o.error&&o.error("Unhandled promise rejection",r)}),t._h=N||A(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},A=function(t){return 1!==t._h&&0===(t._a||t._c).length},M=function(t){v.call(l,function(){var e;N?T.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},P=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),W(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw C("Promise can't be resolved itself");(e=F(t))?g(function(){var o={_w:n,_d:!1};try{e.call(t,c(j,o,1),c(P,o,1))}catch(t){P.call(o,t)}}):(n._v=t,n._s=1,W(n,!1))}catch(t){P.call({_w:n,_d:!1},t)}}};H||(L=function(t){m(this,L,"Promise","_h"),f(t),o.call(this);try{t(c(j,this,1),c(P,this,1))}catch(t){P.call(this,t)}},(o=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("nJ75")(L.prototype,{then:function(t,e){var n=k(_(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=N?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&W(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new o;this.promise=t,this.resolve=c(j,t,1),this.reject=c(P,t,1)},b.f=k=function(t){return t===L||t===a?new i(t):r(t)}),d(d.G+d.W+d.F*!H,{Promise:L}),n("LhDF")(L,"Promise"),n("EFoD")("Promise"),a=n("iANj").Promise,d(d.S+d.F*!H,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),d(d.S+d.F*(s||!H),"Promise",{resolve:function(t){return w(s&&this===a?L:this,t)}}),d(d.S+d.F*!(H&&n("wWcv")(function(t){L.all(t).catch(E)})),"Promise",{all:function(t){var e=this,n=k(e),o=n.resolve,r=n.reject,i=y(function(){var n=[],i=0,a=1;p(t,!1,function(t){var s=i++,l=!1;n.push(void 0),a++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--a||o(n))},r)}),--a||o(n)});return i.e&&r(i.v),n.promise},race:function(t){var e=this,n=k(e),o=n.reject,r=y(function(){p(t,!1,function(t){e.resolve(t).then(n.resolve,o)})});return r.e&&o(r.v),n.promise}})},mjzG:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("Xxa5"),r=n.n(o),i=n("exGp"),a=n.n(i),s=n("BO1k"),l=n.n(s),c=n("WBDt"),u=n.n(c),d=n("Sz5k"),h=n("woOf"),f=n.n(h),m=n("Gu7T"),p=n.n(m),_=n("pFYg"),v=n.n(_),g={name:"InfiniteScrollTable",props:{scrollData:Array,loadConfig:Object,getMoreData:Function,scrollWraperType:{type:String,default:"table"},loadImmediate:{type:Boolean,default:!0},showTopBtn:{type:Boolean,default:!0},showBottomBar:{type:Boolean,default:!0}},data:function(){return{showLoadmoreBtn:!1,start:0,canLoadMore:!0,loadStatus:"none",first:!0,slotDom:null,selectWrap:null,tableDom:null,tablebodyDom:null,currTableRowList:[],scrollConfig:{distanceSign:20,visibleCount:20,startOffset:0,itemHeight:0,listHeight:0,virtualDom:null,wrapperHeight:0},loadFnCount:0,$currCount:0,my_showHintBar:!1,showHintTimer:null,beforeScrollDistance:0,defaultSlot:null,DURATION:2e3,PADDING_BOTTOM:0,showTopBtn_private:!1,SHOW_TOP_BTN_DISTANCE:200,DEFAULT_ITEMHEIGHT:10}},watch:{scrollData:{immediate:!1,deep:!1,handler:function(t){var e=this.start+this.scrollConfig.visibleCount;this.$currCount=t.length,this.handleCurrCountChange(this.$currCount),this.setTableData(this.start,e)}}},mounted:function(){var t=this;if(!(this.scrollData&&this.scrollData instanceof Array))return this.logErr("infiniteScrollPlus 组件中必传 scrollData参数(实际数据列表,为数组)"),this.$message.warning("infiniteScrollPlus 组件中必传 scrollData参数(实际数据列表,为数组)");if(!this.loadConfig||"object"!==v()(this.loadConfig))return this.logErr("infiniteScrollPlus 组件中必传 loadConfig 参数(配置参数对象)"),this.$message.warning("infiniteScrollPlus 组件中必传 loadConfig 参数(配置参数对象)");if(void 0===this.loadConfig.totalCount&&void 0===this.loadConfig.isOver)return this.logErr("loadConfig 参数对象中必传 totalCount(数据库里数据总数) 或 isOver(是否结束)"),this.$message.warning("loadConfig 参数对象中必传 totalCount(数据库里数据总数) 或 isOver(是否结束)");if(this.loadConfig.itemHeight||(this.logErr("loadConfig 参数对象中未找到 itemHeight(每行高度),为数字(不带px单位);已取默认值40"),this.loadConfig.itemHeight=40),this.loadConfig.loadingText||(this.loadConfig.loadingText="玩命加载中"),this.loadConfig.overText||(this.loadConfig.overText="你已经碰到我的底线了(没有更多数据)"),this.loadConfig.distance&&(this.scrollConfig.distanceSign=this.loadConfig.distance),this.scrollConfig.visibleCount=this.$currCount||30,this.defaultSlot=this.$slots.default[0],this.scrollConfig.itemHeight=this.loadConfig.itemHeight||this.DEFAULT_ITEMHEIGHT,this.loadConfig.totalCount||(this.loadConfig.totalCount=1/0),!this.defaultSlot)return this.logErr("infiniteScrollPlus组件中需要包含子组件,且为一个"),this.$message.warning("infiniteScrollPlus组件中需要包含子组件,且为一个");if(this.$slots.default.length>1)return this.logErr("infiniteScrollPlus组件中只能包含一个子组件"),this.$message.warning("infiniteScrollPlus组件中只能包含一个子组件");if(this.slotDom=this.defaultSlot.componentInstance.$el,"table"==this.scrollWraperType){if(this.selectWrap=this.slotDom.querySelector(".el-table__body-wrapper"),!this.selectWrap)return this.$message("slot组件中未找到el-table容器");if(this.tableDom=this.selectWrap.querySelector("table"),this.tablebodyDom=this.selectWrap.querySelector("tbody"),!this.tableDom)return this.$message("slot组件中未找到table容器")}else this.selectWrap=document.createElement("div"),this.selectWrap.appendChild(this.slotDom),this.tableDom=this.slotDom,this.tablebodyDom=this.slotDom;this.$nextTick(function(){t.initScrollDom(),t.immediateGetMore(),t.selectWrap.style.height=t.scrollConfig.wrapperHeight+"px"})},updated:function(){this.end-this.start>0&&(this.currTableRowList=[].concat(p()(this.tablebodyDom.children)),this.calcRowHeight())},methods:{calcRowHeight:function(){for(var t=this.end-this.start,e=0;e<t;e++)this.currTableRowList[e]&&this.scrollData[this.start+e]&&(this.scrollData[this.start+e].__height__=this.currTableRowList[e].offsetHeight);this.updateVirtualDom()},handleCurrCountChange:function(t){var e=this;this.updateVirtualDom(),0==t&&(this.loadStatus="none",this.loadFnCount=0,this.selectWrap.scrollTo({top:0}),this.start=0,setTimeout(function(){e.tableDom.style.transform=e.getTranformTop(0)},100))},updateTableSize:function(){var t=this;setTimeout(function(){t.initScrollDom(),t.selectWrap.style.height=t.scrollConfig.wrapperHeight+"px",setTimeout(function(){t.tableScrollEvent(!0)},100)},100)},immediateGetMore:function(){this.$currCount<this.scrollConfig.visibleCount&&this.loadImmediate&&this.loadFnCount<10&&(this.getMoreData(),this.loadFnCount++)},scrollToTop:function(){this.selectWrap.scrollTo({top:0,behavior:"smooth"})},scrollToNextPage:function(){var t=this.scrollConfig,e=t.startOffset,n=t.itemHeight,o=e+(t.wrapperHeight-n/2);this.selectWrap.scrollTo({top:o,behavior:"smooth"})},scrollToPrePage:function(){var t=this.scrollConfig,e=t.startOffset,n=t.itemHeight,o=e-(t.wrapperHeight-n/2);this.selectWrap.scrollTo({top:o,behavior:"smooth"})},initScrollDom:function(){var t=this.selectWrap,e=this.tableDom,n=this.slotDom,o=this.scrollConfig,r=this.loadConfig.itemHeight;if("string"==typeof r&&(r=r.replace("px","")),!(r=Number(r)||36))return this.logErr("未正确获取到子元素高度");if("table"==this.scrollWraperType){var i=n.querySelector(".el-table__header-wrapper");if(!i)return this.logErr("未获取到thead dom元素");if(n.clientHeight<=100){var a=this.defaultSlot.componentInstance.height;a&&"string"==typeof a?(a=Number(a.replace(/px/g,"")),o.wrapperHeight=a-i.clientHeight):o.wrapperHeight=100}else console.log(n.clientHeight),o.wrapperHeight=n.clientHeight-i.clientHeight}else o.wrapperHeight=e.clientHeight;if(o.wrapperHeight<=100&&(o.wrapperHeight=100),this.scrollConfig.visibleCount=Math.ceil((o.wrapperHeight+500)/r),o.itemHeight=r,t.style["overflow-y"]="auto",e.style.position="absolute",e.style.left=0,e.style.top=0,e.style.width="auto",e.style["padding-bottom"]=this.PADDING_BOTTOM+"px",!o.virtualDom){o.virtualDom=document.createElement("div");var s={height:o.listHeight+"px",width:"100%",position:"absolute",left:0,top:0,"z-index":-1};f()(o.virtualDom.style,s),t.appendChild(o.virtualDom)}this.$currCount=this.scrollData.length,this.updateVirtualDom(),this.addScrollEvent(t,e)},updateVirtualDom:function(){var t=this,e=this.scrollConfig,n=0;this.scrollData.forEach(function(e){var o=e.__height__||t.loadConfig.itemHeight;n+=o}),e.listHeight=n+this.PADDING_BOTTOM,e.virtualDom&&(e.virtualDom.style.height=e.listHeight+"px")},addScrollEvent:function(t){var e=this;t.addEventListener("scroll",function(){e.tableScrollEvent()})},getTranformTop:function(t){return"translate3d(0, "+t+"px, 0)"},tableScrollEvent:function(t){var e=this.selectWrap,n=this.scrollConfig,o=this.tableDom,r=this.beforeScrollDistance-e.scrollTop;if(t||!(Math.abs(r)<5)){var i=n.distanceSign,a=e.scrollHeight,s=e.scrollTop,l=e.clientHeight;s>this.SHOW_TOP_BTN_DISTANCE?this.showTopBtn_private=!0:this.showTopBtn_private=!1,this.beforeScrollDistance=s;for(var c=a-s-l,u=0,d=0,h=0;h<this.$currCount;h++){var f=this.scrollData[h].__height__||n.itemHeight;if((u+=f)>s){n.startOffset=u-f,d=h;break}}o.style.transform=this.getTranformTop(n.startOffset);var m=d+n.visibleCount;this.setTableData(d,m),c<i&&this.canLoadMore&&!t&&("over"==this.loadStatus?this.addLoadSign("over",1e3):this.getMoreData())}},setTableData:function(t,e){this.start=t,this.end=e,this.$emit("setTableData",this.scrollData.slice(t,e),[t,e])},loadStart:function(){this.infiniteLoadStart()},infiniteLoadStart:function(){"over"!=this.loadStatus?this.canLoadMore&&(this.canLoadMore=!1,this.loadStatus="loading",this.addLoadSign("loading")):this.addLoadSign("over")},loadEnd:function(){this.infiniteLoadEnd()},infiniteLoadEnd:function(){var t=this;setTimeout(function(){t.canLoadMore=!0;var e=t.loadConfig;if(t.$currCount>=e.totalCount||e.isOver)return t.loadStatus="over",void t.addLoadSign("over");t.loadStatus="none",t.addLoadSign("none"),t.loadImmediate&&t.immediateGetMore()},0)},addLoadSign:function(t,e){var n=this,o=this.loadConfig;o.noSign||(e||(e=this.DURATION),this.my_showHintBar=!0,clearTimeout(this.showHintTimer),setTimeout(function(){var e=n.$refs.ref_hint_bar;if(e){var r=o.totalCount!=1/0?"/"+o.totalCount:"";"loading"==t?(n.showLoadmoreBtn=!1,e.innerHTML=o.loadingText+" "+n.$currCount+r+' <i class="el-icon-loading"></i>'):"over"==t?(n.showLoadmoreBtn=!1,e.innerHTML=o.overText+" "+n.$currCount+r):(n.$currCount<n.scrollConfig.visibleCount&&!n.loadImmediate?n.showLoadmoreBtn=!0:n.showLoadmoreBtn=!1,e.innerHTML="数据:"+n.$currCount+r)}},0),this.showHintTimer=setTimeout(function(){n.my_showHintBar=!1},e))},logErr:function(t){console.log(" ==== tableLoadmore error ==== "+t)}}},b={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticStyle:{position:"relative"}},[t._t("default",function(){return[t._v("无限滚动组件中未添加任何内容")]}),t._v(" "),t.showTopBtn&&t.showTopBtn_private?n("div",{staticClass:"to_top_btn",on:{click:t.scrollToTop}},[n("i",{staticClass:"el-icon-arrow-up"})]):t._e(),t._v(" "),t.showLoadmoreBtn?n("div",{staticClass:"load_more_btn"},[n("el-button",{on:{click:function(e){return t.getMoreData(!1)}}},[t._v("加载更多")])],1):t._e(),t._v(" "),t._t("hintBar",function(){return[t.my_showHintBar&&t.showBottomBar?n("div",{ref:"ref_hint_bar",staticClass:"hint_bar"}):t._e()]})],2)])},staticRenderFns:[]};var y=n("VU/8")(g,b,!1,function(t){n("AWMC")},"data-v-e5534354",null).exports,x={data:function(){return{treeDataSource:[],treeColumns:[{key:1,name:"组织名称",fieldName:"org_name",minWidth:380,maxWidth:500,mainAccountSlotName:"mainAccount"},{key:2,name:"子账号数量(个)",fieldName:"sub_account_total",minWidth:130,expandFunc:!0},{key:3,name:"操作",fieldName:"operate",minWidth:290,slotName:"treeOperate"}],tableColumns:[{key:1,name:"子账号名称",fieldName:"sub_account_user_name",minWidth:200,showTooltip:!0},{key:2,name:"显示名",fieldName:"sub_account_display_name",minWidth:200,showTooltip:!0},{key:3,name:"关联状态",fieldName:"sub_account_relation_status",minWidth:90,showTooltip:!1},{key:4,name:"关联时间",fieldName:"sub_account_relation_time",minWidth:140,showTooltip:!1},{key:5,name:"操作",fieldName:"operate",minWidth:160,showTooltip:!1,slotName:"tableOperate"}],childrenAlias:"sub_account_list",loadConfig:{loadingText:"加载中",verText:"",totalCount:0,itemHeight:40,distance:40},scrollData:[]}},components:{treeGrid:d.a,InfiniteScrollTable:y},methods:{deepTraversal2:function(t){if(t.tableData=t.sub_account_list.slice(0,13),t.children&&t.children.length>0){var e=t.children,n=!0,o=!1,r=void 0;try{for(var i,a=l()(e);!(n=(i=a.next()).done);n=!0){var s=i.value;this.deepTraversal2(s)}}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}}return t},virtualList:function(){var t=this;return u.a.map(function(e){return t.deepTraversal2(e)})},deepTraversal:function(t){if(t.isExpand=!1,t.children&&t.children.length>0){var e=t.children,n=!0,o=!1,r=void 0;try{for(var i,a=l()(e);!(n=(i=a.next()).done);n=!0){var s=i.value;this.deepTraversal(s)}}catch(t){o=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw r}}}},handlerFold:function(t){console.log("展开/折叠"),t.isFold=!t.isFold,t.isFold||this.deepTraversal(t)},handlerExpand:function(t){console.log("扩展/收起"),t.isExpand=!t.isExpand},getMoreDataFn:function(){var t=this;return a()(r.a.mark(function e(){return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.$refs.ref_infinite_table.loadStart(),t.loadConfig.totalCount=2e3,t.$refs.ref_infinite_table.loadEnd();case 3:case"end":return e.stop()}},e,t)}))()},setTableDataFn:function(t,e){e.tableData=t[0]}},created:function(){this.treeDataSource=this.virtualList()}},w={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-css contains"},[n("tree-grid",{ref:"recTree",attrs:{list:t.treeDataSource,treeColumnList:t.treeColumns,columnList:t.tableColumns,tableListName:t.childrenAlias},on:{"update:list":function(e){t.treeDataSource=e},handlerFold:t.handlerFold,handlerExpand:t.handlerExpand},scopedSlots:t._u([{key:"mainAccount",fn:function(){return[n("i",{staticClass:"tree-account"},[t._v("\n 【主账号: SPgmdd】\n ")])]},proxy:!0},{key:"treeOperate",fn:function(){return[n("el-button",{attrs:{type:"text"}},[t._v("添加子账号")]),t._v(" "),n("el-button",{attrs:{type:"text"}},[t._v("修改")]),t._v(" "),n("el-button",{attrs:{type:"text"}},[t._v("删除组织")])]},proxy:!0},{key:"extendTable",fn:function(e){return[n("InfiniteScrollTable",{ref:"ref_infinite_table",attrs:{scrollData:e.data.sub_account_list,getMoreData:t.getMoreDataFn,loadConfig:t.loadConfig,showTopBtn:!1,showBottomBar:!1,loadImmediate:!0},on:{setTableData:function(n){return t.setTableDataFn(arguments,e.data)}}},[n("el-table",{staticClass:"show-border",staticStyle:{width:"90%"},style:e.data.children&&e.data.children.length>0?"margin-left: 13px":"",attrs:{data:e.data.tableData,border:"",lazy:"",height:e.data.tableData.length>10?432:40*e.data.tableData.length+32,"max-height":432}},t._l(t.tableColumns,function(e){return n("el-table-column",{key:e.key,attrs:{prop:e.fieldName,label:e.name,"min-width":e.minWidth,"show-overflow-tooltip":e.showTooltip},scopedSlots:t._u([{key:"default",fn:function(o){return[e.slotName?t._e():n("span",[t._v("\n "+t._s(o.row[e.fieldName])+"\n ")]),t._v(" "),e.slotName?t._t(e.slotName,function(){return[n("el-button",{attrs:{type:"text"}},[t._v("解除关联")]),t._v(" "),n("el-button",{attrs:{type:"text"}},[t._v("变更组织")])]},{data:o.row}):t._e()]}}],null,!0)})}),1)],1)]}}])})],1)},staticRenderFns:[]};var C=n("VU/8")(x,w,!1,function(t){n("ewvD")},"data-v-7931f402",null);e.default=C.exports},mvHQ:function(t,e,n){t.exports={default:n("Zbun"),__esModule:!0}},nJ75:function(t,e,n){var o=n("aLzV");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:o(t,r,e[r]);return t}},"oY0/":function(t,e,n){n("+3lO"),n("tz60"),t.exports=n("St71")},qC2Z:function(t,e,n){var o=n("FKWp"),r=n("8ANE"),i=n("3HN9");t.exports=function(t,e){if(o(t),r(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},tn1D:function(t,e,n){var o=n("FKWp");t.exports=function(t,e,n,r){try{return r?e(o(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&o(i.call(t)),e}}},wWcv:function(t,e,n){var o=n("hgbu")("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var i=[7],a=i[o]();a.next=function(){return{done:n=!0}},i[o]=function(){return a},t(i)}catch(t){}return n}},"x/31":function(t,e,n){n("gCWN"),n("tz60"),n("+3lO"),n("mgCp"),n("+GuK"),n("Nrqz"),t.exports=n("iANj").Promise},yuYM:function(t,e,n){var o=n("yYxz"),r=n("hgbu")("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||i[r]===t)}}});
//# sourceMappingURL=0.3e80474a25c985f9a30b.js.map