From 1c10bdf86d9dd64e97509a32a2561ac53c309cc6 Mon Sep 17 00:00:00 2001 From: cagataycivici Date: Sun, 28 Jul 2019 14:28:30 +0300 Subject: [PATCH] Initiated Organization Chart --- public/demo/images/organization/jesse.jpg | Bin 0 -> 3370 bytes public/demo/images/organization/mike.jpg | Bin 0 -> 3321 bytes public/demo/images/organization/saul.jpg | Bin 0 -> 3288 bytes public/demo/images/organization/walter.jpg | Bin 0 -> 3851 bytes .../organizationchart/OrganizationChart.vue | 26 ++- .../OrganizationChartNode.vue | 59 +++++- .../OrganizationChartDemo.vue | 182 +++++++++++++----- 7 files changed, 208 insertions(+), 59 deletions(-) create mode 100644 public/demo/images/organization/jesse.jpg create mode 100644 public/demo/images/organization/mike.jpg create mode 100644 public/demo/images/organization/saul.jpg create mode 100644 public/demo/images/organization/walter.jpg diff --git a/public/demo/images/organization/jesse.jpg b/public/demo/images/organization/jesse.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e19371a9849a3079a77b6c0232b8e697d5295fe4 GIT binary patch literal 3370 zcma)$by(An_QyYC0m6upgV78LF$ify!qMR9?hyh~B1(gl5=u=e$uT-qMu>s}Lj*)h z8gzsLDkVDl`u+Xxy?@{LdCqyx^SsV^pL05O`Wax+$LL`I5C{N3e*-w31>yl11OkCV zU{EOR4D4?*(7|AI3~+jS26}op3;h4Y0%u}oVP=A}v9YtWvGJl%C|-g83Pejw%Lr#g zvald|I1n5>{{{bRbJ_(U=m2-X9SlMMGzbtF0Xppg(gA=54EihJKZ3%*5Ly}#K*s{m zfM}pJ5HJi(3;lv`*Oan7COPc7=vRbZhwzz`h%0@u{ zSpLWE{}%x;1p45OUCI80RLwI0Y(7oz!4Q9r8pXW ziCl`eFCqNoQ;vl!P@UyDS!Bq@kMzGY(b0!Y-*m|zGRhti3eDdXwGilP?SD5ki77ya z`;z9NqGz9|2rQiUgiNi!p562xLq_9=9`a}y5=+B-Y27p^qAIgif`|9wmZ5CxC-J(Q z?h?)y?EKLC%~XDB;gfl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&- z!$W6grn-~XCM@>j*h(C@rFp4EU^7nKHSyrF6~7Y^FXgPEykW~UNp0bY{?a8hycnwb O^3N$yWT+`{I{hzM7!z9n literal 0 HcmV?d00001 diff --git a/public/demo/images/organization/mike.jpg b/public/demo/images/organization/mike.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aff891f51cded343097217e60e247754982f2691 GIT binary patch literal 3321 zcma)-XHe6L*2e!KA#ouaL3-$fNJj`=snS`B^y1387D^f&=_M2aX;P#J z0s_)|M-T)-A}C!1uKT`o@7#~~cjnBTnKS2ko^R)T`g{pM+|t4603Z+mfPNKlJ_kGk zpb!Xz9s;GOhyDir)r=RQ&x#e<0w@EC?26I4dg~8!IahH#avA-+utX zU@#^)6Bh!(b(tN>e)&I(|8+QT1CSR0XTTW@LIQM15EuzM?*w82fQ}CQPt<=y4~4)0 z5ZwhZ0-ytd!F0cJgQ2j0wjeq%0724U6o5*x3aXpHq#Yizv1|AVnUXnBj+ESX8MLNT zRrLr6_@(z>g8zR<|I73r{>uwQhXe~;loB+7sQWpP&u0NR81yR{7zwBXy9>cQ!e6+8 zKC3>qSkPfLd2_FNxKWJ%qh|&Wk|WCO9B7D|sqmUP+6W4?KN_@&WZ?{|Q#7w%LeB-( zz9N#y>jN8&L;YKky%iWA8`qqw;!<7qQnas?RQK<{IYzc-TTe2u`K%e}`!_^36I@4VWCpeJ~_?A^Qw+-n!j{Jg|TJ~(Fsr|~> zpi3xNw9$7S`^l@AXjS&tcdm%z>nFAxcWP1X2xt|H+4Q;8ihB`s?^4Z{^W#rB3}6U+tq*M*D1z@e`t5 z7M@B->qDDLRl2~HkmSRPXy-?HV*97E(bsg_BvyKCSx>+TYPnlU7};tZSN|Vy9TAb% z&+XjUN@#P#oCl z6!I~Rp*Oil&N+j+I^9yO+sAq;I$ZvUKclSd^Mhs`{6`*NX=y{z0x|Ch&P~*7&B89h z<3~+2qV%;lX_>HMz86#M1%_@~Ew3o=&%RD-&rXivxJyp?6~LHz$Fj5m9Z3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Fp z5K_)=HaMy~s?aBe$}TAxs?L{)RS1We`j31&7-AoTs|j9;JC)?YcAT&g^&=CEEHV4Ruw>#FqudUL_VwcNuXG;iZ@>cb;?i3(aS z%jJ@Dps?}Vlc6x8&@e#+Rfk{DmNbDEm(qPQn@mEC+*ax7snjf5lZpE7(gazl|jV-uoMJtkJ%u(b(_MI*UB7H= z;UL!o(PR4@jjAXS{_t!yam=42PLuJklIx-C3a-HcCyhfV##N&NhiIagJvAwCX+bA0 zfsr8PV3#$8oB0i+j7CB=CY4A7aCmwR)2A4$wr1|9BIbR<3swqI|J7-!%LcvZFQ6f<<> z%=-BOP40l&aUz>ND3=YcTWG+D#5VOUZw;Q#dsmnTVQ!TZuQ(h}eZn0Rm(Ky#2B)1n za!=x0ZMRnx4)#iqPJ;}UTffF^?(Sai=sK?Z5j>Yb+^4BeZ$8DGG@S$GqH84@Zo~Ja QAI2L?CF=WB5zlA-1=e&I$N&HU literal 0 HcmV?d00001 diff --git a/public/demo/images/organization/saul.jpg b/public/demo/images/organization/saul.jpg new file mode 100644 index 0000000000000000000000000000000000000000..74d2f7daf629b77db8917d0449226be7091f0467 GIT binary patch literal 3288 zcma)3XHXN2vP}X3481B4LJ_1yQ0Yaw^eWPef~Yh>svt$GCKtWto|=( zKvdLVS~?(r1puU?0#RKU2SRB7VSyJ60L;oJNW*@MmP1Hd(?#p9Uo@x8!}nL|xGoFd zi%BcNbZJ}o2Xrs500C70XX}5a!K@cbAP|TO0HXRINg#-oO7NB@+g%rGb|Gm$|8pXM z;exy9vI5irmkizQraojvHGIg99+8dKlwGCUuf4efH>zcFH!UHk31kq8>rmIRX(2BD zmL?=!JA`9We;c2mm)c{uKwMf2=AgO*3qPJe#S~YeDA6yqVq*xX0hqVGt>Vw2C}P1d zh08G_D4EAj3gbf|uj_)v?pxqy$Xb(R%|7?;YPNh?o#+l@0{znVov7-tyGWR!XIH2A zQ>Z=)Y0D7jB`kJFw7~5~;&Boi>sTYk`$3}?rin#JvA=xkCXX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~O{Z^#%u5ISb+Moxs0JFx5 z7KSnkSFsM8D7y(8=Qk=aM%G=|-dYE1LFY;f%1Gk+ zqvrrpKImz%`9gUq=@DEYP}ye1ggUzn>7vQw_eq8#E1?tE|JH&Y>5^y2lj3y4)fG>P za{hJZ&J*F?YE*w8xg<$CU28wo_qe(uS&$iyZdg+frQU3!ypmrE`qbGb-PqbQ`4r=0 z!L2m`O3l-e6xZ)BSMm%21H62A!_uJn6p3$}n3~@X{#aQwHQBzH1)v>1h?Mh>o>>7e00w;BE3*&<;`$v1nWnK)pqlW#ce`e(jn(yp4hkEPk4 zJ2UOKk~pF6ap^fApX&bBAN{nh=Os)fJzh!J(>y-|bsYS5TWtu-Z#lt{1s8a`pVOFO zOuDc*0FkRfcZPA$4g4Y-$$52cA_h8_`oewAZopjkmgdLZls88>OJz0UJ9W!KgR=_5 z#W{t7sKq&bMOCw1&7KJsKJ8@q5L)XEtnm3MUmwKErKbi@M=tNKSGAS$9y;>J}J zT0R%_swmIxUc%!g;K|86z2fwDK1`B${Kh=`CyFgB)U3++wxLDfV27ZMH;CBL$2mHY;_L2O@#QfNU|(s@khS{S(OCuiU|5n;!C>ye z!Dv!Yzd|2%VNW5ct=wA9LpkzDv+w&M>8b1PpF?r`8r75A9SULx*ct9WFm>wy3X(xZ zWVd+21lzi~x*5F37&1OMj(>1m@Dtz0q zHe|QMnMc#>lMD)r=K!9|o@eu?JfB`FBtM8#_%c4z?%|bFs(xAB6rO<1T?z0{BHbrq mCKdN0Dn#%PBa3_63XY@#Znv$E<*5H%F%r_qY#1APKKC!ST@=Xx literal 0 HcmV?d00001 diff --git a/public/demo/images/organization/walter.jpg b/public/demo/images/organization/walter.jpg new file mode 100644 index 0000000000000000000000000000000000000000..386d236fc6520f6c0dcd8a470855dac6155629ad GIT binary patch literal 3851 zcma)$XHb)i)`j1Y&=Cktq?ah6_YO)C5CKW3h9XFj5=0^bQlyI*nuK1Z_ufR500KdZ zh=3635D=*}M}Bk-P*j-_$qM2S6Y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3T$Rv`aP)S1ncb*gY-bsU7ge)y$uT<-)}H)b}J4 zL#0o>r2{w~H;AI5fkK&4IwCEcG1{w%3^2Lk2YB$+ydfFi&+qmSgPv6+q{+!>HR0_n;c4}fL$BcxV1sl0@wk7vf&{uStuMWB|t+nhR5l>d5DT+7O zzr52JWGLu6JH>j67b`SKXOv!BAvg&PSy94GS+whsH6^TRLA~hHu*b zkj%6AtdMZ!T~W4jm+or;#dB@jMP7MJ2lssUpGO9|%MP6ArX!b<4;!;GVhWda4`FxW@p2>$7I03 zTVkrp4m)SEl3<=5B@__SPHXs?k1Pw z(d0GVu3%DfPaUEuPNKj2K=Df^HnT%NIg7KgYf$SDFQ+q>+}Bcl!DBexPb{Ix8iERF ztsh@!i{_?J*cnrQF1DPb_Q~{tv;o_rvDwlh#I^a5fRiufxZ*yuq$4s=qIo?fy&sjc z4~aq_o{*CFuE({`toz+hdjCs>N?=hclOTBiXT0(I5kIA!ABjYQ5MgI4-no|(QWB$I z#u{;~bIV-uM3pQ2)dYQ|y}w#qHO-pBjurm)D>2FAc>F2&M`AB~)VJN9gb&smmGk9U9cw(b&z5e9E(~zR% zCHWT{Q;XHDjkl2-Cx}+7+6Q$r2TJv(0q0Zwx3VHD$N>GC;b>R(!c2!l8wVG9do2dL zh$~#3um65_?h~Cyb>y6Js@Zofh78QxwXS;N>w6Vm
- +
@@ -12,6 +12,29 @@ export default { value: { type: null, default: null + }, + collapsible: { + type: Boolean, + default: false + }, + collapsedKeys: { + type: null, + default: null + } + }, + data() { + return { + d_collapsedKeys: this.collapsedKeys || {} + } + }, + methods: { + onNodeToggle(key) { + if (this.d_collapsedKeys[key]) + delete this.d_collapsedKeys[key]; + else + this.d_collapsedKeys[key] = true; + + this.d_collapsedKeys = {...this.d_collapsedKeys}; } }, components: { @@ -49,6 +72,7 @@ export default { user-select: none; -moz-user-select: none; -webkit-user-select: none; + cursor: pointer; } .p-organizationchart .p-organizationchart-line-down { diff --git a/src/components/organizationchart/OrganizationChartNode.vue b/src/components/organizationchart/OrganizationChartNode.vue index 4861a5611..185c6e2e0 100644 --- a/src/components/organizationchart/OrganizationChartNode.vue +++ b/src/components/organizationchart/OrganizationChartNode.vue @@ -4,9 +4,9 @@
@@ -24,14 +24,14 @@ - - + + @@ -39,6 +39,26 @@ diff --git a/src/views/organizationchart/OrganizationChartDemo.vue b/src/views/organizationchart/OrganizationChartDemo.vue index dfedfb371..934e21860 100644 --- a/src/views/organizationchart/OrganizationChartDemo.vue +++ b/src/views/organizationchart/OrganizationChartDemo.vue @@ -9,7 +9,27 @@

Advanced

- +

Hierarchical data with zero configuration.

+ + + + + +

Basic

+

Hierarchical data with zero configuration.

+ + +
@@ -22,102 +42,110 @@ export default { data() { return { data1: { - label: 'CEO', + key: '0', type: 'person', - className: 'p-person', - expanded: true, - data: {name:'Walter White', 'avatar': 'walter.jpg'}, + styleClass: 'p-person', + data: {label: 'CEO', name: 'Walter White', avatar: 'walter.jpg'}, children: [ { - label: 'CFO', + key: '0_0', type: 'person', - className: 'p-person', - expanded: true, - data: {name:'Saul Goodman', 'avatar': 'saul.jpg'}, + styleClass: 'p-person', + data: {label: 'CFO', name:'Saul Goodman', avatar: 'saul.jpg'}, children:[{ - label: 'Tax', - className: 'department-cfo' + key: '0_0_0', + data: {label: 'Tax'}, + styleClass: 'department-cfo' }, { - label: 'Legal', - className: 'department-cfo' + key: '0_0_1', + data: {label: 'Legal'}, + styleClass: 'department-cfo' }], }, { - label: 'COO', + key: '0_1', type: 'person', - className: 'p-person', - expanded: true, - data: {name:'Mike E.', 'avatar': 'mike.jpg'}, + styleClass: 'p-person', + data: {label: 'COO', name:'Mike E.', avatar: 'mike.jpg'}, children:[{ - label: 'Operations', - className: 'department-coo' + key: '0_1_0', + data: {label: 'Operations'}, + styleClass: 'department-coo' }] }, { - label: 'CTO', + key: '0_2', type: 'person', - className: 'p-person', - expanded: true, - data: {name:'Jesse Pinkman', 'avatar': 'jesse.jpg'}, + styleClass: 'p-person', + data: {label: 'CTO', name:'Jesse Pinkman', avatar: 'jesse.jpg'}, children:[{ - label: 'Development', - className: 'department-cto', - expanded: true, + key: '0_2_0', + data: {label: 'Development'}, + styleClass: 'department-cto', children:[{ - label: 'Analysis', - className: 'department-cto' + key: '0_2_0_0', + data: {label: 'Analysis'}, + styleClass: 'department-cto' }, { - label: 'Front End', - className: 'department-cto' + key: '0_2_0_1', + data: {label: 'Front End'}, + styleClass: 'department-cto' }, { - label: 'Back End', - className: 'department-cto' + key: '0_2_0_2', + data: {label: 'Back End'}, + styleClass: 'department-cto' }] }, { - label: 'QA', - className: 'department-cto' + key: '0_2_1', + data: {label: 'QA'}, + styleClass: 'department-cto' }, { - label: 'R&D', - className: 'department-cto' + key: '0_2_2', + data: {label: 'R&D'}, + styleClass: 'department-cto' }] } ] }, - data2 : [{ - label: 'F.C Barcelona', - expanded: true, + data2 : { + key: '0', + data: {label: 'F.C. Barcelona'}, children: [ { - label: 'F.C Barcelona', - expanded: true, + key: '0_0', + data: {label: 'F.C. Barcelona'}, children: [ { - label: 'Chelsea FC' + key: '0_0_0', + data: {label: 'Chelsea F.C.'} }, { - label: 'F.C. Barcelona' + key: '0_0_1', + data: {label: 'F.C. Barcelona'} } ] }, { - label: 'Real Madrid', - expanded: true, + key: '0_1', + data: {label: 'Real Madrid'}, children: [ { - label: 'Bayern Munich' + key: '0_1_0', + data: {label: 'Bayern Munich'} }, { - label: 'Real Madrid' + key: '0_1_1', + data: {label: 'Real Madrid'} } ] } ] - }], + }, selection: [] } }, @@ -125,4 +153,60 @@ export default { 'OrganizationChartDoc': OrganizationChartDoc } } - \ No newline at end of file + + + \ No newline at end of file