From fc3679a5ebde8354787b273a46837bc06947050f Mon Sep 17 00:00:00 2001 From: Billy <1015018684@qq.com> Date: Mon, 7 Mar 2022 15:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=EF=BC=8C=E9=80=82=E7=94=A8?= =?UTF-8?q?=E4=BA=8E=E5=BF=AB=E9=80=9F=E6=90=AD=E5=BB=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/MenuIcons/Secondary/Clients.png | Bin 945 -> 0 bytes .../MenuIcons/Secondary/CloudDesktop.png | Bin 729 -> 0 bytes src/assets/MenuIcons/Secondary/Partners.png | Bin 847 -> 0 bytes .../MenuIcons/Secondary/PersonalComputer.png | Bin 379 -> 0 bytes .../Secondary/QuickDemonstrations.png | Bin 653 -> 0 bytes .../MenuIcons/Secondary/QuickFavorites.png | Bin 839 -> 0 bytes src/biz/Back/Log.js | 70 --- src/biz/Back/_Menu.js | 67 --- src/biz/Menu.js | 77 +-- src/components/Back/Header.vue | 218 -------- src/components/Back/Menu(backup).vue | 195 ------- src/components/Back/Menu.vue | 96 ---- src/components/Home/Header2.vue | 113 ---- src/components/Home/Menu.vue | 46 +- src/components/Rbac/Organization/OrgAdd.vue | 99 ---- src/components/Rbac/Organization/OrgEdit.vue | 105 ---- src/components/Rbac/Organization/OrgMove.vue | 161 ------ src/components/Rbac/Role/RoleAdd.vue | 80 --- src/components/Rbac/Role/RoleEdit.vue | 93 ---- src/components/Rbac/User/UserAdd.vue | 121 ---- src/components/Rbac/User/UserList4Org.vue | 381 ------------- src/components/Rbac/User/UserMove.vue | 157 ------ src/components/_Common/Dialog.vue | 47 -- src/components/_Common/Sliders.vue | 386 ------------- src/components/_Common/Tab/TabViewer2.vue | 162 ------ src/const.js | 17 +- src/entity/Ui/Tab/Tab.js | 21 - src/main.js | 46 +- src/router/_index.js | 18 +- src/router/back.js | 117 ---- src/router/secondary.js | 33 -- src/scss/Back/back.scss | 61 -- src/scss/Back/element-ui-reset.scss | 38 -- src/views/Back.vue | 136 ----- .../BackViews/Authorization4Customer.vue | 211 ------- src/views/BackViews/Authorization4Partner.vue | 211 ------- src/views/BackViews/Classification.vue | 84 --- src/views/BackViews/Log.vue | 108 ---- src/views/BackViews/Org.vue | 390 ------------- src/views/BackViews/PlatformSetting.vue | 112 ---- src/views/BackViews/Role.vue | 519 ------------------ src/views/BackViews/Statistics.vue | 23 - src/views/BackViews/Topic.vue | 23 - src/views/Home.vue | 8 +- .../HomeSubViews/Main/ProductAndCases.vue | 54 +- .../HomeSubViews/Secondary/CloudDesktop.vue | 10 - .../Secondary/QuickDemonstrations.vue | 10 - 47 files changed, 74 insertions(+), 4850 deletions(-) delete mode 100644 src/assets/MenuIcons/Secondary/Clients.png delete mode 100644 src/assets/MenuIcons/Secondary/CloudDesktop.png delete mode 100644 src/assets/MenuIcons/Secondary/Partners.png delete mode 100644 src/assets/MenuIcons/Secondary/PersonalComputer.png delete mode 100644 src/assets/MenuIcons/Secondary/QuickDemonstrations.png delete mode 100644 src/assets/MenuIcons/Secondary/QuickFavorites.png delete mode 100644 src/biz/Back/Log.js delete mode 100644 src/biz/Back/_Menu.js delete mode 100644 src/components/Back/Header.vue delete mode 100644 src/components/Back/Menu(backup).vue delete mode 100644 src/components/Back/Menu.vue delete mode 100644 src/components/Home/Header2.vue delete mode 100644 src/components/Rbac/Organization/OrgAdd.vue delete mode 100644 src/components/Rbac/Organization/OrgEdit.vue delete mode 100644 src/components/Rbac/Organization/OrgMove.vue delete mode 100644 src/components/Rbac/Role/RoleAdd.vue delete mode 100644 src/components/Rbac/Role/RoleEdit.vue delete mode 100644 src/components/Rbac/User/UserAdd.vue delete mode 100644 src/components/Rbac/User/UserList4Org.vue delete mode 100644 src/components/Rbac/User/UserMove.vue delete mode 100644 src/components/_Common/Dialog.vue delete mode 100644 src/components/_Common/Sliders.vue delete mode 100644 src/components/_Common/Tab/TabViewer2.vue delete mode 100644 src/entity/Ui/Tab/Tab.js delete mode 100644 src/router/back.js delete mode 100644 src/router/secondary.js delete mode 100644 src/scss/Back/back.scss delete mode 100644 src/scss/Back/element-ui-reset.scss delete mode 100644 src/views/Back.vue delete mode 100644 src/views/BackViews/Authorization4Customer.vue delete mode 100644 src/views/BackViews/Authorization4Partner.vue delete mode 100644 src/views/BackViews/Classification.vue delete mode 100644 src/views/BackViews/Log.vue delete mode 100644 src/views/BackViews/Org.vue delete mode 100644 src/views/BackViews/PlatformSetting.vue delete mode 100644 src/views/BackViews/Role.vue delete mode 100644 src/views/BackViews/Statistics.vue delete mode 100644 src/views/BackViews/Topic.vue delete mode 100644 src/views/HomeSubViews/Secondary/CloudDesktop.vue delete mode 100644 src/views/HomeSubViews/Secondary/QuickDemonstrations.vue diff --git a/src/assets/MenuIcons/Secondary/Clients.png b/src/assets/MenuIcons/Secondary/Clients.png deleted file mode 100644 index 03b1874481dba8f5904b992acbaa905c30da437d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 945 zcmV;i15W&jP){}6hst62o%IOMQQPl3Ze*NlA0Eq z-6$4gZDuDm^-^oHNgLbUdP702ilBlb2n9tHYZX-R`XKt?rCLPPBAXc}LNuvK<09_M z!t6Qo&Hm^7XAtLHg8%rSLV(WBPSkPX`W%z9sWuFc6HVlfmGcY;@G5j}lCcm6umRw! z0DKV#{%x?m$Q$1uc$NlvWHn)EYE>?9UO?p*>NL${cvktG#nt8IW;%Hr-9Nhb!{<}> z;z5;(y*r<$)+=PXnlV<^9;dGUkeq-(;NY-#U*B{c(&)5Yr=m1IG(fjrosqGJO$;6NldZkCz&~JH2x831bpD9o3+kigsC~Al^n1C_938q;B zHmQ$uwp@7Ptf7%Z8JpiODRC@`gm=9At2WIHs!(WoYE#Bw9meRW-G+|0G?CkxF-omA zCK{G|EEz4I_Ey((N>nA+&rWi)lw&lWG42q0e@t>d3Ip^CSB=DgzcLIx5+v`oMMGUF z=;oc_NzJ=zUl)|fql7j9GZzY-pCdruI2Kjl_!A&D9FTZ(Hk@%L_Lqu8D^C%I>^5Q~ z?osG&grQ46K+fguq6(Q*i4!_StNk%k@<}6V)FPlS#faGFu2xSV%x?()wEp3Pni@K` zw~rk)Vsw#Jojo!+c{LM~_ih zf#1@#(9dql@`2Y+SBNeeW)*-q^rcT+y`_Ez403!(Pt<~!zExO3qy6iK{quhS=SQX} T(Y5P)*X5rqBNwllj@gLfuM zK^6e~TDXk}(GWL#+Daw*)$n^NN#58!_I4@l9KavAewawSH*Q3alro=<nlJ$J!i?U^ z19H90NcI=3VB<0Yj^P7U<7TvJeu`8*M*dJM{(y}YLX?o+ikCOw1QvLk98)yC z33C)2n&SlkwiUo0!?Ly)CbYD$HC5Zd;{-^L!<5s?P}J^D0hA-aSoo4d`cdFeO$mL) zfuAa;UGfaQZ&_^0dzsaEviwQhh#Z`oqGBVT8XiURS6p`E?jT}65%3Xv9#m94y`zS1 zV2t6^{u|RpJygRZcu6;6X3wY_0QUSM>T2=S9mRUbb&ZScB?{jWLO!_x;IP-D?mKSZ zc2|J2=dbRQD=YkN%ySxnKMWyDeW|i0h{U^IQVJXdD>ap+{l%-q300000 LNkvXXu0mjf|4&%^ diff --git a/src/assets/MenuIcons/Secondary/Partners.png b/src/assets/MenuIcons/Secondary/Partners.png deleted file mode 100644 index 1c0d702e72a186a2e732138086409bcc832eb41f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 847 zcmV-V1F-ywP)CD>5y6&uNAfV45*Orf8fAk{`4Fz2Ib}~o}PtM3x zu^Dr6_hW4NnM{)u;Bfe|KhI9R3wcSd$tvCi2t5wEg}!(L6Hi(pq%hzXoz+%6Wz5-H zim`1v5wZecYj)>FXTFVxz0Q11Y~pbcLGEd_!A)PR6YH~YF< z*^QDvXD#9rLuTgbMF21M8(2H`bPEsT<#jEt?K9EueH5askVlM}s~z@f_R9o>Xd(l` zX1^PcB_e9<&V!01MteQ@mU@_PXfK)nB^PL&qpl2vg1WGmWa|a7>i2-CiX Zncod$ma>%$dYAwJ002ovPDHLkV1i~QiP``F diff --git a/src/assets/MenuIcons/Secondary/PersonalComputer.png b/src/assets/MenuIcons/Secondary/PersonalComputer.png deleted file mode 100644 index f491e7433043a5b81e15d524d1513daeecb188c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 379 zcmV->0fhdEP)^Z(;y=AgvVUw{7pSv0l%EzAtK1&KK| zPK^JVni-k?D^p^@|NjhE8U8a)nK!j*J;)rm1r+ZBNJwblVB-0^ zb>5U_XA}#Pa_jE@V`g$(FrncAB^H2!`7ayW!?{zM1xT_0=zvm&|Nrg4mNWk^nK!ZJ zCN_tVZ9#Hwt>M3a|D{2O{%2)50`%zzs#-v7u#xS9Q41IbJedxGILN8p`0xM!nM^DU zcZqc^Hg$i0GKw&>GB(be+~k6ilM}KUB$ycgO<`dAuS1CiK)sil{{JtVGo|G|iUkxJ zic>rNDx9R8x+Vt3|C&_t$)kCbn~PC`C?%)H;V&bD2sJEV{>Suj&eW#e!z>P{5j5D$ Z006vN!WogIH~#}7E!!tiXs@OvDQjA z)&xaJvf1rH+NO4A`R-LdMJ7j@mADJ^;E=TFS|SQ+%0b1loB%wg5aEn znR(yOydU!h5RsCfx^P{ME*_Cwh7>gGt0>nkeUv)4MW~V71;LPK+W9SV>#AA4#2k1$a}MR_w&Xuh7M73DE|xqb|Sz# zH>Mp(U^ft4u9o#nL5MKGY&7JL^KV~9l*sthM79wW8yGfv9mcNI%6gB#E(}Pjg(otF zxk^cUx>;2X+%(QR$j;Rs=oh_xA;4f-KV;i1T`e0IT9s^4)fTrZ(S(;1AwW{iO%arK z)lB_V5YU&>F3S?#=C5(a;xeV0@z)>S*VbOX5Wq7?s`+_YR!Wu0 z?5j0_UjUAHhajB=30K|L((RV;Yp=Zs1IET?VxPV(KUX4h_Tgl1@i&0nip4q(n4`B> zf}+9z@7BfQTy*K{mly7oBf+Rdpze7ff#(5PWt?{d3F$$wdae(T9JP^m9^Sis`oq%q zPTR3h`}=2 nmc`D70nmul`qK|1`X`&8s%j!PnLGEY00000NkvXXu0mjf8niSM diff --git a/src/assets/MenuIcons/Secondary/QuickFavorites.png b/src/assets/MenuIcons/Secondary/QuickFavorites.png deleted file mode 100644 index 3f70ee13a673c402c595d79bc0ff6e2605ab606b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 839 zcmV-N1GxN&P)&g zrI<$z25p6_Sl;&_IsNU?F<5=7>=oMnWf~d*> z0*2HiOyO zS^Q+`Ma6wxX~Q6)UJ7@^N4JNOfQU2UIo1DPG3veng<8A?$F^d$~=0wbJY z5Q$SxNrZY`Z!-I{fLJU>28Jh>3C7b1<2XSiK^VNayR0H^w_i#YI$<~*<`)*fXr+`? zr62_kMzsK~g?{Z?2W0DNb2n01J{t*&O~0yZp>@4Qc+6sEWXSIv-2lkEm~3vHEGrix zL09ANKnxaPgka`T$nPBc@%>LKGPa5r6^S-PgDzb$5K!6}A>@A8@0`f}F0V{YHu1b9 z(;Pl zjouZvZ*;Hww1z>_fY14SldF>_Yxb7b*VoIcdeGb|9!yKLADWz<`zBlGAz7AsD8k<` zqC7a9=QZ4o{@#xH%sR;PJx};6eZE@@ssKitcp1h<4PRQ)y|$9<0l$|MhINF!9j`J0 znr&Uj({kDa<6&u=hI1rSk{c$#OvEodR0pt#w-qW^BZ_yjEOEdT9nV)^lhs`(DKcb+ zmcawB0dP|l02HLdn3RVDf=`VPjAp^E5N0Ww} 日志对象数组 - */ - -async function findByAction() { - return [ - { - user: '张三', - time: '2021-12-31 18:40:11', - module: '演示方案', - position: '101主题', - action: '编辑' - }, - { - user: '张三', - time: '2021-12-31 18:40:11', - module: '演示方案', - position: '101主题', - action: '编辑' - }, - { - user: '张三', - time: '2021-12-31 18:40:11', - module: '演示方案', - position: '101主题', - action: '编辑' - }, - ] -} - -/** - * @description 查询登录日志列表 - * @returns {Array.} 日志对象数组 - */ -async function findByLogin() { - return [ - { - user: '张三', - time: '2021-12-31 18:43:55', - result: '成功', - ip: '192.168.0.0.228' - }, - { - user: '张三', - time: '2021-12-31 18:43:55', - result: '成功', - ip: '192.168.0.0.228' - }, - { - user: '张三', - time: '2021-12-31 18:43:55', - result: '成功', - ip: '192.168.0.0.228' - }, - ] -} - -export default { - findByAction, - findByLogin -} diff --git a/src/biz/Back/_Menu.js b/src/biz/Back/_Menu.js deleted file mode 100644 index e00e32e..0000000 --- a/src/biz/Back/_Menu.js +++ /dev/null @@ -1,67 +0,0 @@ -/* - * @Author: Billy - * @Date: 2021-12-31 14:31:45 - * @LastEditors: Billy - * @LastEditTime: 2022-01-04 14:00:53 - * @Description: 请输入 - */ -import MenuItem from "../../entity/Ui/Menu/MenuItem.js"; - -async function getBackMenuItems() { - return [ - new MenuItem({ - title: '组织架构', - iconClass: 'el-icon-s-operation', - routerName: 'Org', - }), - new MenuItem({ - title: '角色管理', - iconClass: 'el-icon-user', - routerName: 'Role', - }), - new MenuItem({ - title: '分类管理', - iconClass: 'el-icon-film', - routerName: 'Classification', - }), - new MenuItem({ - title: '数据统计', - iconClass: 'el-icon-s-data', - routerName: 'Statistics', - }), - new MenuItem({ - title: '专题管理', - iconClass: 'el-icon-edit-outline', - routerName: 'Topic', - }), - new MenuItem({ - title: '平台设置', - iconClass: 'el-icon-setting', - routerName: 'PlatformSetting', - }), - new MenuItem({ - title: '授权管理', - iconClass: 'el-icon-finished', - routerName: 'Authorization', - children: [ - new MenuItem({ - title: '合作伙伴授权管理', - routerName: 'Authorization4Partner', - }), - new MenuItem({ - title: '客户授权管理', - routerName: 'Authorization4Customer', - }) - ] - }), - new MenuItem({ - title: '系统日志', - iconClass: 'el-icon-notebook-2', - routerName: 'Log', - }), - ]; -} - -export default { - getBackMenuItems -}; \ No newline at end of file diff --git a/src/biz/Menu.js b/src/biz/Menu.js index ceb1904..9a1f684 100644 --- a/src/biz/Menu.js +++ b/src/biz/Menu.js @@ -2,7 +2,7 @@ * @Author: Billy * @Date: 2021-12-18 02:20:09 * @LastEditors: Billy - * @LastEditTime: 2022-01-07 16:40:08 + * @LastEditTime: 2022-03-07 14:36:12 * @Description: 请输入 */ @@ -10,6 +10,13 @@ import MenuItem from "../entity/Ui/Menu/MenuItem.js"; async function getMainMenuItems() { return [ + + new MenuItem({ + id: 'ProductAndCases', + title: '产品案例', + + routerName: 'ProductAndCases', + }), // 内部标签 new MenuItem({ id: 'ProductAndCases', @@ -51,68 +58,16 @@ async function getMainMenuItems() { routerName: 'PersonalSpace', }), // popover - new MenuItem({ - id: 'More', - title: '更多', - iconSrc: require("../assets/MenuIcons/Main/More1.png"), - iconSrcInactive: require("../assets/MenuIcons/Main/More2.png"), - // routerName: 'More', - }), - ] -} - -async function getSecondaryMenuItems() { - return [ - // 抽屉 - new MenuItem({ - id: 'QuickFavorites', - title: '快捷收藏', - iconSrc: require("../assets/MenuIcons/Secondary/QuickFavorites.png"), - // routerName: 'QuickFavorites', - drawerName: 'QuickFavorites' - }), - // 内部标签 - new MenuItem({ - id: 'QuickDemonstrations', - title: '快捷演示方案', - iconSrc: require("../assets/MenuIcons/Secondary/QuickDemonstrations.png"), - routerName: 'QuickDemonstrations', - }), - // 抽屉 - new MenuItem({ - id: 'Clients', - title: '客户列表', - iconSrc: require("../assets/MenuIcons/Secondary/Clients.png"), - // routerName: 'Clients', - drawerName: 'Clients' - }), - // 抽屉 - new MenuItem({ - id: 'Partners', - title: '合作伙伴', - iconSrc: require("../assets/MenuIcons/Secondary/Partners.png"), - // routerName: 'Partners', - drawerName: 'Partners' - }), - // 抽屉 - new MenuItem({ - id: 'PersonalComputer', - title: '我的电脑', - iconSrc: require("../assets/MenuIcons/Secondary/PersonalComputer.png"), - // routerName: 'PersonalComputer', - drawerName: 'PersonalComputer' - }), - // 内部标签 - new MenuItem({ - id: 'CloudDesktop', - title: '云桌面', - iconSrc: require("../assets/MenuIcons/Secondary/CloudDesktop.png"), - routerName: 'CloudDesktop', - }), + // new MenuItem({ + // id: 'More', + // title: '更多', + // iconSrc: require("../assets/MenuIcons/Main/More1.png"), + // iconSrcInactive: require("../assets/MenuIcons/Main/More2.png"), + // // routerName: 'More', + // }), ] } export default { - getMainMenuItems, - getSecondaryMenuItems + getMainMenuItems }; \ No newline at end of file diff --git a/src/components/Back/Header.vue b/src/components/Back/Header.vue deleted file mode 100644 index afcc323..0000000 --- a/src/components/Back/Header.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - - diff --git a/src/components/Back/Menu(backup).vue b/src/components/Back/Menu(backup).vue deleted file mode 100644 index 8663a4b..0000000 --- a/src/components/Back/Menu(backup).vue +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/components/Back/Menu.vue b/src/components/Back/Menu.vue deleted file mode 100644 index fbb96c6..0000000 --- a/src/components/Back/Menu.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Home/Header2.vue b/src/components/Home/Header2.vue deleted file mode 100644 index b7f77cd..0000000 --- a/src/components/Home/Header2.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/src/components/Home/Menu.vue b/src/components/Home/Menu.vue index ce96d12..f51bcb2 100644 --- a/src/components/Home/Menu.vue +++ b/src/components/Home/Menu.vue @@ -2,7 +2,7 @@ * @Author: Billy * @Date: 2021-12-18 16:30:05 * @LastEditors: Billy - * @LastEditTime: 2022-01-10 21:19:25 + * @LastEditTime: 2022-03-07 14:54:56 * @Description: 请输入 --> - - - \ No newline at end of file diff --git a/src/components/Rbac/Organization/OrgEdit.vue b/src/components/Rbac/Organization/OrgEdit.vue deleted file mode 100644 index 6e739c5..0000000 --- a/src/components/Rbac/Organization/OrgEdit.vue +++ /dev/null @@ -1,105 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/Rbac/Organization/OrgMove.vue b/src/components/Rbac/Organization/OrgMove.vue deleted file mode 100644 index e727b28..0000000 --- a/src/components/Rbac/Organization/OrgMove.vue +++ /dev/null @@ -1,161 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/Rbac/Role/RoleAdd.vue b/src/components/Rbac/Role/RoleAdd.vue deleted file mode 100644 index 6ed427e..0000000 --- a/src/components/Rbac/Role/RoleAdd.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - diff --git a/src/components/Rbac/Role/RoleEdit.vue b/src/components/Rbac/Role/RoleEdit.vue deleted file mode 100644 index b19734b..0000000 --- a/src/components/Rbac/Role/RoleEdit.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - diff --git a/src/components/Rbac/User/UserAdd.vue b/src/components/Rbac/User/UserAdd.vue deleted file mode 100644 index 9917d60..0000000 --- a/src/components/Rbac/User/UserAdd.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - diff --git a/src/components/Rbac/User/UserList4Org.vue b/src/components/Rbac/User/UserList4Org.vue deleted file mode 100644 index a1547a0..0000000 --- a/src/components/Rbac/User/UserList4Org.vue +++ /dev/null @@ -1,381 +0,0 @@ - - - - - - diff --git a/src/components/Rbac/User/UserMove.vue b/src/components/Rbac/User/UserMove.vue deleted file mode 100644 index 11b86c7..0000000 --- a/src/components/Rbac/User/UserMove.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/components/_Common/Dialog.vue b/src/components/_Common/Dialog.vue deleted file mode 100644 index f0e3b05..0000000 --- a/src/components/_Common/Dialog.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - diff --git a/src/components/_Common/Sliders.vue b/src/components/_Common/Sliders.vue deleted file mode 100644 index d1c825f..0000000 --- a/src/components/_Common/Sliders.vue +++ /dev/null @@ -1,386 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/_Common/Tab/TabViewer2.vue b/src/components/_Common/Tab/TabViewer2.vue deleted file mode 100644 index feae8c7..0000000 --- a/src/components/_Common/Tab/TabViewer2.vue +++ /dev/null @@ -1,162 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/const.js b/src/const.js index 42ab87e..44ea9ca 100644 --- a/src/const.js +++ b/src/const.js @@ -2,10 +2,10 @@ * @Author: Billy * @Date: 2020-09-10 09:49:13 * @LastEditors: Billy - * @LastEditTime: 2022-01-11 10:47:12 + * @LastEditTime: 2022-03-07 15:17:54 * @Description: 配置文件 */ -export const PROJECT_NAME = '销售'; +export const PROJECT_NAME = '示例'; export const LOGIN_PAGE_TITLE = '前端示例 2'; export const TOKEY_ATTR_NAME = 'X-Access-Token'; // TOKEN的属性名(即客户端传token到服务端,token的属性名) export const IS_LOGIN_NEEDED = true; // 系统是否需要登录后使用 @@ -13,11 +13,11 @@ export const IS_LOGIN_NEEDED = true; // 系统是否需要登录后使用 let baseUrl; // 基础API地址 switch (process.env.NODE_ENV) { case "production": // 发布到服务器 npm run build - baseUrl = 'http://ty.y68.fun/sales-expo-saas'; // swagger http://ty.y68.fun/sales-expo-saas/#/ - break; case "preview": // 发布前预览 npm run preview + { baseUrl = 'http://ty.y68.fun/sales-expo-saas'; // swagger http://ty.y68.fun/sales-expo-saas/#/ break; + } case "development": // 本机前端开发调试 npm run serve default: baseUrl = 'http://ty.y68.fun/sales-show-3'; // swagger http://ty.y68.fun/sales-expo-saas/#/ @@ -53,11 +53,4 @@ export const UPLOAD_TIMEOUT = 0; // 指定文件上传请求超时的毫秒数(0 export const DEFAULT_HOME_LAYOUT = ['top-bottom', 'left-right'][0]; // 网站前台是上下布局还是左右布局 export const DEFAULT_BACK_LAYOUT = ['top-bottom', 'left-right'][0]; // 网站后台是上下布局还是左右布局 -export const HEADER_THICKNESS = 48; // 首页头部尺寸(单位:像素) -export const HIDE_DRAWER_WHEN_PUSH = false; // 当跳转页面时,抽屉是否隐藏 - -// 弹框类型 -export const DIALOG_TYPE = { - ADD: 'add', // 添加(新建) - EDIT: 'edit', // 编辑(更新) -} \ No newline at end of file +export const HEADER_THICKNESS = 48; // 首页头部尺寸(单位:像素) \ No newline at end of file diff --git a/src/entity/Ui/Tab/Tab.js b/src/entity/Ui/Tab/Tab.js deleted file mode 100644 index fc8b3f5..0000000 --- a/src/entity/Ui/Tab/Tab.js +++ /dev/null @@ -1,21 +0,0 @@ -/* - * @Author: Billy - * @Date: 2021-12-23 01:22:12 - * @LastEditors: Billy - * @LastEditTime: 2022-01-04 22:02:35 - * @Description: 请输入 - */ - -class Tab { - /** - * @description 标签栏的每个标签 - * @param {string} title 标题 - */ - constructor({ - title - }) { - this.title = title; - } -} - -export default Tab; \ No newline at end of file diff --git a/src/main.js b/src/main.js index 7e21204..8798853 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,7 @@ * @Author: Billy * @Date: 2020-09-10 09:12:00 * @LastEditors: Billy - * @LastEditTime: 2022-01-01 05:26:15 + * @LastEditTime: 2022-03-07 15:03:20 * @Description: 请输入 */ import Vue from 'vue'; @@ -13,7 +13,7 @@ import ElementUI from 'element-ui'; import './scss/element-variables.scss'; import "./svgicon/index.js"; import Event from './util/Event'; -import AuthHelper from "./auth/AuthHelper.js"; +// import AuthHelper from "./auth/AuthHelper.js"; import SafePush from './util/SafePush'; Vue.config.productionTip = false; @@ -24,31 +24,31 @@ Vue.use(ElementUI, { Vue.prototype.$safePush = SafePush; // 注册一个全局自定义指令 `v-auth`,用于验证权限 -Vue.directive('auth', { - bind: function (el, param) { }, - // 当被绑定的元素插入到 DOM 中时…… - inserted: function (el, param) { - let pass = AuthHelper.checkAuth(param.value); - if (!pass) { - el.remove() - } - }, - update: function (el, param) { }, - componentUpdated: function (el, param) { }, - unbind: function (el, param) { } -}); +// Vue.directive('auth', { +// bind: function (el, param) { }, +// // 当被绑定的元素插入到 DOM 中时…… +// inserted: function (el, param) { +// let pass = AuthHelper.checkAuth(param.value); +// if (!pass) { +// el.remove() +// } +// }, +// update: function (el, param) { }, +// componentUpdated: function (el, param) { }, +// unbind: function (el, param) { } +// }); // 全局事件总线 // 参考:https://zhuanlan.zhihu.com/p/72777951 // 不到必要时,不建议使用,否则容易增加全局代码复杂度 -let EventBus = new Vue(); -Object.defineProperties(Vue.prototype, { - $bus: { - get: function () { - return EventBus; - } - } -}); +// let EventBus = new Vue(); +// Object.defineProperties(Vue.prototype, { +// $bus: { +// get: function () { +// return EventBus; +// } +// } +// }); new Vue({ router, diff --git a/src/router/_index.js b/src/router/_index.js index 2bbe565..748475b 100644 --- a/src/router/_index.js +++ b/src/router/_index.js @@ -2,7 +2,7 @@ * @Author: Billy * @Date: 2020-09-10 09:12:00 * @LastEditors: Billy - * @LastEditTime: 2022-01-10 20:27:12 + * @LastEditTime: 2022-03-07 13:35:34 * @Description: 静态路由 */ import Vue from 'vue' @@ -16,8 +16,6 @@ import { import LoginInfo from "../storage/login-info.js"; import TestChildren from "./test.js"; import MainChildren from "./main.js"; -import SecondaryChildren from "./secondary.js"; -import BackChildren from "./back.js"; Vue.use(VueRouter) @@ -40,22 +38,8 @@ const routes = [{ }, children: [ ...MainChildren, - ...SecondaryChildren, ...TestChildren ] -}, { - path: '/back', - name: 'Back', - redirect: { - name: 'Org' - }, - component: () => import( /* webpackChunkName: "Back" */ '../views/Back.vue'), - meta: { - title: '' - }, - children: [ - ...BackChildren - ] }, { path: '/login', name: 'Login', diff --git a/src/router/back.js b/src/router/back.js deleted file mode 100644 index 360cc20..0000000 --- a/src/router/back.js +++ /dev/null @@ -1,117 +0,0 @@ -/* - * @Author: Billy - * @Date: 2021-12-29 17:34:21 - * @LastEditors: Billy - * @LastEditTime: 2022-01-04 13:59:15 - * @Description: 请输入 - */ - -export default [{ - path: 'org', - name: 'Org', - component: () => import( - /* webpackChunkName: "Org" */ - '../views/BackViews/Org.vue' - ), - meta: { - title: '组织架构', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'role', - name: 'Role', - component: () => import( - /* webpackChunkName: "Role" */ - '../views/BackViews/Role.vue' - ), - meta: { - title: '角色管理', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'classification', - name: 'Classification', - component: () => import( - /* webpackChunkName: "Classification" */ - '../views/BackViews/Classification.vue' - ), - meta: { - title: '分类管理', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'statistics', - name: 'Statistics', - component: () => import( - /* webpackChunkName: "Statistics" */ - '../views/BackViews/Statistics.vue' - ), - meta: { - title: '数据统计', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'topic', - name: 'Topic', - component: () => import( - /* webpackChunkName: "Topic" */ - '../views/BackViews/Topic.vue' - ), - meta: { - title: '专题管理', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'platformsetting', - name: 'PlatformSetting', - component: () => import( - /* webpackChunkName: "PlatformSetting" */ - '../views/BackViews/PlatformSetting.vue' - ), - meta: { - title: '平台设置', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'authorization-for-partner', - name: 'Authorization4Partner', - component: () => import( - /* webpackChunkName: "Authorization4Partner" */ - '../views/BackViews/Authorization4Partner.vue' - ), - meta: { - title: '合作伙伴授权管理', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'authorization-for-customer', - name: 'Authorization4Customer', - component: () => import( - /* webpackChunkName: "Authorization4Customer" */ - '../views/BackViews/Authorization4Customer.vue' - ), - meta: { - title: '客户授权管理', - // headerActiveIndex: '1', - // keepAlive: false - } -}, { - path: 'log', - name: 'Log', - component: () => import( - /* webpackChunkName: "Log" */ - '../views/BackViews/Log.vue' - ), - meta: { - title: '系统日志', - // headerActiveIndex: '1', - // keepAlive: false - } -}] \ No newline at end of file diff --git a/src/router/secondary.js b/src/router/secondary.js deleted file mode 100644 index 3264781..0000000 --- a/src/router/secondary.js +++ /dev/null @@ -1,33 +0,0 @@ -/* - * @Author: Billy - * @Date: 2022-01-06 18:23:05 - * @LastEditors: Billy - * @LastEditTime: 2022-01-06 18:28:19 - * @Description: 请输入 - */ - -export default [{ - path: '/quick-demonstrations', - name: 'QuickDemonstrations', - component: () => import( - /* webpackChunkName: "QuickDemonstrations" */ - '../views/HomeSubViews/Secondary/QuickDemonstrations.vue' - ), - meta: { - title: '快捷演示方案', - // headerActiveIndex: '1', - keepAlive: true - } -}, { - path: '/cloud-desktop', - name: 'CloudDesktop', - component: () => import( - /* webpackChunkName: "CloudDesktop" */ - '../views/HomeSubViews/Secondary/CloudDesktop.vue' - ), - meta: { - title: '云桌面', - // headerActiveIndex: '1', - keepAlive: true - } -}] \ No newline at end of file diff --git a/src/scss/Back/back.scss b/src/scss/Back/back.scss deleted file mode 100644 index 5544381..0000000 --- a/src/scss/Back/back.scss +++ /dev/null @@ -1,61 +0,0 @@ -@import "../variables.scss"; - -// 自定义类 -// 水平两列结构(左列溢出可垂直滚动,右列溢出隐藏) -.back-column-two { - display: flex; - height: 100%; - - .column-left { - width: calc(100% * 0.186); - min-width: 300px; - padding: 20px; - box-sizing: border-box; - overflow: hidden; - overflow-y: auto; - } - - .column-right { - flex: 1; - padding: 20px; - border-left: 2px solid $theme-background-light; - box-sizing: border-box; - } -} - -// 水平一列结构 -.back-column-one { - padding: 20px; -} - -// 标题区域变量 -$title-height: 36; // 标题区域高度(不包含外边距) -$title-margin-bottom: 20; // 标题下外边距 - -// 标题区域样式 -.back-title { - height: #{$title-height + px}; // 减掉外边距 - margin-bottom: #{$title-margin-bottom + px}; - font-size: 16px; - font-weight: 700; - line-height: 16px; - color: #25262b; - box-sizing: border-box; - overflow: hidden; -} - -.pagination { - margin-top: 20px; - overflow: hidden; - - .el-pagination { - float: right; - } -} - -// 清除默认样式 -ul { - list-style: none; - margin: 0; - padding: 0; -} \ No newline at end of file diff --git a/src/scss/Back/element-ui-reset.scss b/src/scss/Back/element-ui-reset.scss deleted file mode 100644 index aa87540..0000000 --- a/src/scss/Back/element-ui-reset.scss +++ /dev/null @@ -1,38 +0,0 @@ -@import "./back.scss"; - -// 暗色背景输入框 -.bg-dark.el-input::v-deep { - .el-input__icon { - line-height: 36px; - } - - .el-input__inner { - height: 36px; - background-color: #e5e7ed; - } -} - -.back-title-el-tabs.el-tabs::v-deep { - height: 100%; - - .el-tabs__header { - margin-bottom: #{$title-margin-bottom + px}; - } - - .el-tabs__nav-wrap::after { - background-color: $theme-background-light; - } - - .el-tabs__item { - height: #{$title-height + px}; - font-size: 16px; - line-height: 16px; - box-sizing: border-box; - - // 取消当前tab默认样式,否则电脑切换应用后会显示 - &.is-active { - box-shadow: none !important; - border-radius: 0 !important; - } - } -} \ No newline at end of file diff --git a/src/views/Back.vue b/src/views/Back.vue deleted file mode 100644 index 0a9bb57..0000000 --- a/src/views/Back.vue +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/views/BackViews/Authorization4Customer.vue b/src/views/BackViews/Authorization4Customer.vue deleted file mode 100644 index d545d6b..0000000 --- a/src/views/BackViews/Authorization4Customer.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Authorization4Partner.vue b/src/views/BackViews/Authorization4Partner.vue deleted file mode 100644 index 7fd2343..0000000 --- a/src/views/BackViews/Authorization4Partner.vue +++ /dev/null @@ -1,211 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Classification.vue b/src/views/BackViews/Classification.vue deleted file mode 100644 index e258d40..0000000 --- a/src/views/BackViews/Classification.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Log.vue b/src/views/BackViews/Log.vue deleted file mode 100644 index c728c15..0000000 --- a/src/views/BackViews/Log.vue +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Org.vue b/src/views/BackViews/Org.vue deleted file mode 100644 index 57ef724..0000000 --- a/src/views/BackViews/Org.vue +++ /dev/null @@ -1,390 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/views/BackViews/PlatformSetting.vue b/src/views/BackViews/PlatformSetting.vue deleted file mode 100644 index 6b47ace..0000000 --- a/src/views/BackViews/PlatformSetting.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Role.vue b/src/views/BackViews/Role.vue deleted file mode 100644 index 31b62a3..0000000 --- a/src/views/BackViews/Role.vue +++ /dev/null @@ -1,519 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Statistics.vue b/src/views/BackViews/Statistics.vue deleted file mode 100644 index 135bf53..0000000 --- a/src/views/BackViews/Statistics.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/BackViews/Topic.vue b/src/views/BackViews/Topic.vue deleted file mode 100644 index 0865581..0000000 --- a/src/views/BackViews/Topic.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/Home.vue b/src/views/Home.vue index 806fddd..51753eb 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -2,7 +2,7 @@ * @Author: Billy * @Date: 2020-09-10 09:12:00 * @LastEditors: Billy - * @LastEditTime: 2022-01-10 21:10:42 + * @LastEditTime: 2022-03-07 14:32:23 * @Description: 首页框架 -->