From 7394964cb5224a2e54513e01c619464c3eb80dd9 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 10 Aug 2022 17:12:37 +0800 Subject: [PATCH] =?UTF-8?q?ui=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 5 +- src/assets/img/article1.png | Bin 0 -> 456 bytes src/assets/img/article2.png | Bin 0 -> 390 bytes src/assets/img/article3.png | Bin 0 -> 735 bytes src/assets/img/list1.png | Bin 0 -> 505 bytes src/assets/img/list2.png | Bin 0 -> 464 bytes src/assets/img/plus.png | Bin 0 -> 287 bytes src/assets/img/style1.png | Bin 0 -> 709 bytes src/assets/img/style2.png | Bin 0 -> 877 bytes src/layouts/navbar/index.vue | 51 +-- src/pages/annex/list/index.vue | 137 +++++++ src/pages/article/add/index.vue | 626 +++++++++++++++-------------- src/pages/article/list/index.vue | 313 +++++++-------- src/pages/column/add/index.vue | 654 +++++++++++++++---------------- src/pages/column/list/index.vue | 323 ++++++++------- src/pages/page/list/index.vue | 142 +++---- src/pages/site/list/index.vue | 109 +++--- src/plugins/requests/index.js | 2 +- src/router/modules/annex.js | 23 ++ src/store/modules/content.js | 17 + src/store/modules/user.js | 40 +- src/styles/common.scss | 128 +++--- 22 files changed, 1376 insertions(+), 1194 deletions(-) create mode 100644 src/assets/img/article1.png create mode 100644 src/assets/img/article2.png create mode 100644 src/assets/img/article3.png create mode 100644 src/assets/img/list1.png create mode 100644 src/assets/img/list2.png create mode 100644 src/assets/img/plus.png create mode 100644 src/assets/img/style1.png create mode 100644 src/assets/img/style2.png create mode 100644 src/pages/annex/list/index.vue create mode 100644 src/router/modules/annex.js create mode 100644 src/store/modules/content.js diff --git a/src/api/index.js b/src/api/index.js index 184465b..b58cda7 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,11 +1,13 @@ import Setting from "@/setting"; const host = Setting.apiBaseURL -const uploadURL = Setting.upload.apiURL; const host1 = 'http://192.168.31.151:10000/' export default { logins: `iasf/sys/user/login`, verification: `${host}iasf/sys/getVerify`, + upload: `${host}iasf/sysFiles/upload`, + listByPage: `${host}iasf/sysFiles/listByPage`, + delFile: `${host}iasf/sysFiles/delete`, dept: `iasf/sys/dept`, deptTree: `iasf/sys/dept/tree`, deptId: `iasf/sys/dept`, @@ -22,4 +24,5 @@ export default { queryArticle: `${host1}iasf/sysContent/pagingQuery`, saveArticle: `${host1}iasf/sysContent/save`, updateArticle: `${host1}iasf/sysContent/update`, + longPageColumnList: `${host1}iasf/pageManagement/longPageColumnList`, } \ No newline at end of file diff --git a/src/assets/img/article1.png b/src/assets/img/article1.png new file mode 100644 index 0000000000000000000000000000000000000000..6f92f818faa2e349be218d482433c62c1650cd02 GIT binary patch literal 456 zcmV;(0XP1MP)0{{R3Zi0=Z00001b5ch_0Itp) z=>Px#hfqvZMF0Q*0CxWheE$r6{|$lm|V;s4R&|I_9F*5?1&=>Oa3|J&*R-Rl3}>;LBEk7RA}DqmRSyhKoCSxY(?B|XmvSD^jnIh^9JqaQj zYNUn2HIfMtjT6xtHf7j?v*FVdU#Lc;zclnHjU6Wzvy{`E-pux{VYmk&8Y}uTHSVmB y0yKhtPJxULu00001b5ch_0Itp) z=>Px#QBX`&MF0Q*D2M+khyN^z|1FCDIgtNFmj6tf|4p0!S)%`Fs{eGb|8%kcd$j+D zy#J-m|EA6VzS;l9-v8X`|K9EY-|PS8<>l}1@A3El{Qdv`|Nq%yTZjMv00DGTPE!Ct z=GbNc007oWL_t(&-tF3L4}u^RhGC8oWlBc$%K!hNHPT+zvc-nyG@kpDpYqx`;GC)B zdn$H#N#*JB^Kig1=0Gz0I3I9~?U&49T~K2CsroV>aKItRA!Wb7fjNbv)G|fa5?ng z2w}G((xp43tjjQ`8|FFf_wAB<-%2^h#GLC=o^xWJ`*?qW0}eRgfCG*M2SO;}KLA-i klm4Lt6*s3pP0XZ@3qlmd*dz7Cm;e9(07*qoM6N<$f-ObH)Bpeg literal 0 HcmV?d00001 diff --git a/src/assets/img/article3.png b/src/assets/img/article3.png new file mode 100644 index 0000000000000000000000000000000000000000..a40219dc9001d34d5f4590ca73a9e34c415c48f2 GIT binary patch literal 735 zcmYk4eJs>*9LLWz#IDp_EhDqWJXe&YMJM9S!|g~b$swag=R9QnQ=8&Ak%vp3^SBf) z8Y!;saOEivc|5U`r+G@AFTM{y{n~2lv)AYIe*gX2CyD9dOjXxbr%)(VhKnPMOg_0x zHD&UyAzeK(l%iP94isUJ&H~xZm~P%qM!a3KB*L78PgwAYQz?XXDseWAuuUh7dmmI=94}0cgW&vguVxJ;>r5Il=!PiQ#Zz=XG!~W&?W(5wez#%X3 ztx9~m5{Fgc@M?Ug8gqm=LWsFS#C?sUYEX17im64sCX`4bLP;XT7op@2C{>J}h*6pZ zrAtsoGZM6*Y$+;igC!lXybB8Z;M*bCFa+NX!}r6mNd`qS_;D19N1@~!Y#D>nao8>g z?Q+;L0Xru^&m`!b0{t^!a2Cks!RS1YFM^3BFt-BcSHZ$6_^}R_H^9$Lu(AnOx4_yK zSSL|{O$AVFgJ0WVdk5^0fIkyLp9>?s1uz`x-l6j4kr7s)lIEjHf2RW@I=#6xWfiRv zos*`EDpo~>r3xr+m4|XY1E|67_RX=U2U1=c+I%wh;PSolr?g)DtLx@Q4GY7K()Iuv z(?VN`J=KvLnfLveee!34Q-xpW^4-h*EW>iDk3swZtxmv5YUVKbCZWce2YFSlSs@oY zHKTb3T>|}Jz3j(j_N5CE+BViAQwH0zkrS6$u|Fe0Fn6CleOM~2SMAQ?iDeo~%QZ#? z^wzFOLyltKMoxXr(MXoIt#$F-*LABibf4Y8nm5XuGgRXsO~aJN{iN1$A9VlN!uKhHrTT{3`g;iWe3$3jlji=0y z+x8Ahs<_j~_dK7q3LV&SzX8K*q;dcN literal 0 HcmV?d00001 diff --git a/src/assets/img/list1.png b/src/assets/img/list1.png new file mode 100644 index 0000000000000000000000000000000000000000..39a80e0fde10710fc73d741c0e7f6cf5940f921d GIT binary patch literal 505 zcmVPx#cu-7KMF0Q*0CxWheE$r6{|l}1@5{|T!~g&Q0d!JMQvg8b*k%9#0U}96K~!ko z?UvaNf-n?Bak(h&)*V++^#A`*#JB}&+e>SV&b-g$ke23nr+mCD$Cr3+a-RnVFk~3W z7e;zFfFb`=90!Mj;N2*Pkw~I5YTgBgF2<}rE1Z(NgfAHEZvKmEl^Pp^-OXc6t5Y@x zyDL54Rbyq2Vc1n)(I}uGVqQ`0t`g(WC!*egg`wY7Vl3#A1q(yJtHRj&*_6MPobNjf zgRTN2ZqqgGI0+}A5eBbYI5nqR=1U>O(gcIoEt(4Hkxn`#)`{zG!PKt#H02M{snN!D zH$S!S(sNqFbZhLoiy#Q|-T0h~0z(%AX8zx1ZqcsobW7W{oo;Enw$m+b*LJ!V?HXnd vGl!WY2+SN9FmsqW%p7J8Gl!Y~l$oCa%K*yY8mcHd00000NkvXXu0mjfCBXX- literal 0 HcmV?d00001 diff --git a/src/assets/img/list2.png b/src/assets/img/list2.png new file mode 100644 index 0000000000000000000000000000000000000000..da8e548f81c6d43f9381bef9e813ae04bda94889 GIT binary patch literal 464 zcmV;>0WbcEP)Px#cu-7KMF0Q*0CxWheE$r6{|l}1@5{|T!~g&Q0d!JMQvg8b*k%9#0QpHoK~!ko z?UsoSf-n#TQCt-9tjetjg8u&>%He_0rY5FG;+qekld#*4b$Q2XIlo}Z;qiHBK!c|N z41_xy(BN;1Wbjh}?v39xDh|-ls}YQXj~bktPzv>l_P{nl!yo!4XxvE0sdNqTh~_T2 zx%N#dmqfHEb!$Y_5NX!PoL0lhgtH+hd%8mlk2<`fig&Rz4Z)^_bSF$0V~HM(n4ZjP z4YscoKfR5`anjRpR<*|FpkCuNr#{nl?Xg9o0bn3%TNE1KYM{*jyUfKJO3GZQp{C4* z8fwa1q@k$H1sW)GlsU>A0F*g2Q06FelsU>AWsWjOnOj%sK5#GRy#aav0000QaFeV{wqX6T`Z5GB1G~n*g5>S0K&6 z@LxOhze@anwS@l~N&mHy{%a)v*Gm4c31$OH&BXs&i6AZz0TnZ# z$YS38NBU_+7slodKJ&5wCv|KdNz!2yI3C>U5R4@ O`OVYS&t;ucLK6TuPi&F^ literal 0 HcmV?d00001 diff --git a/src/assets/img/style1.png b/src/assets/img/style1.png new file mode 100644 index 0000000000000000000000000000000000000000..d552c6118ebfeede88e515c72634205cd3ff61ee GIT binary patch literal 709 zcmeAS@N?(olHy`uVBq!ia0y~yU}OTaJ2{wv9xztXj1SNZ-DF`~Lm=$BrF4fByWXOP3x#e0cThRiNOND_5>vyLRv1Js^4W=FMBT zZUF^>B%Ga)kZ}L?|EEu$JbU`|{rmSHK79BH1YiDq`t<4Z=g(iheEItI>$h*;zJLGz z_ca-aI0Ulnx&PjHae_DNv;X@GxPGnRy!O($zuJDgP`H-M_-Z&X`&s%#{I+J&MAG@7DPuzapTosY4rLm!* zk#X^Bb>8laatKtuz#tL4XOf{giy+I|2F)#DUgc{eqa+mBbQ@U%DyOABUw3os&P^Oa z9B(8q?AObz=4%m9-dILO_JVcj{Imq5EXkN5M_7n+|*d3xJY9j%#Dw&gxOJ0WFdqFBn#pw;HH`X-r5 ze~ntI!=3g<(PwqY-mraHCyiW7ibTAub@QL?y1a6A%EdkDaoNj5IQ;qVPPuxm(R%M} zAGPgXVt#+}Ude4)b&1FFQ|j`&wSoKcZfia-^^KT%cQK<(^WwW*swRimy)E^BVDa+Z z)g0v~E4KIh+t+-rnSa&!*YSBq>}M`B>z&`U%Y%PL`oF`$RR^4(H9YTcpD(xlwW7P9 z*|%zEi?+Rg+sxea4qM9fJe1()lLdP8v9U~y*LD4+cQUT$Z?S1p zl{;MF;cv6#GuQNr*2k>&ADhm9@-Ozgjk?f5`D zR$z^p*rVL#$5%L9d~|aCwz-ddPaakJld>@5 e.index === path)) - this.collapse = !!this.sites[0].subs.find(e => e.index === path) + "$route"(to, from) { + let actives = this.actives; + for (let i in this.actives) { + if (actives[i].includes(this.$route.name)) this.active = `/${i}/list`; } + let arr=this.$route.path.split("/"); + let name = `/${arr[1]}/list` + this.active = name + const { path } = this.$route + this.collapse = !!this.sites[0].subs.find(e => path.includes(e.index)) + } }, created() { - this.collapse = !!this.sites[0].subs.find(e => e.index === this.$route.path) + const { path } = this.$route + console.log("🚀 ~ file: index.vue ~ line 191 ~ created ~ path", path) + this.collapse = !!this.sites[0].subs.find(e => path.includes(e.index)) + if (this.collapse) this.siteActive = '/' + path.split('/')[1] // this.getPer() }, methods: { @@ -200,21 +199,9 @@ export default { ]), // 菜单选择 menuSelect(index) { - console.log("🚀 ~ file: index.vue ~ line 180 ~ menuSelect ~ index", index) this.collapse = false if (index.includes('/')) { - this.$router.push(index) - // if (this.collapse) { - // this.reloadSite = false - // this.siteActive = '/page/list' - // this.$nextTick(() => { - // this.reloadSite = true - // }) - // this.$router.push('/page') - // } - } else { - } }, // 获取权限列表 diff --git a/src/pages/annex/list/index.vue b/src/pages/annex/list/index.vue new file mode 100644 index 0000000..33b4322 --- /dev/null +++ b/src/pages/annex/list/index.vue @@ -0,0 +1,137 @@ + + + + + \ No newline at end of file diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue index 4b0c95e..caf7ac2 100644 --- a/src/pages/article/add/index.vue +++ b/src/pages/article/add/index.vue @@ -1,256 +1,231 @@ \ No newline at end of file diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue index a1060fe..9ce54ea 100644 --- a/src/pages/article/list/index.vue +++ b/src/pages/article/list/index.vue @@ -1,192 +1,161 @@ diff --git a/src/pages/column/add/index.vue b/src/pages/column/add/index.vue index 422d0d2..727fbb1 100644 --- a/src/pages/column/add/index.vue +++ b/src/pages/column/add/index.vue @@ -1,252 +1,239 @@ \ No newline at end of file diff --git a/src/pages/column/list/index.vue b/src/pages/column/list/index.vue index c13c1c6..4e873fe 100644 --- a/src/pages/column/list/index.vue +++ b/src/pages/column/list/index.vue @@ -1,50 +1,83 @@ \ No newline at end of file diff --git a/src/pages/page/list/index.vue b/src/pages/page/list/index.vue index a23238b..5ccae21 100644 --- a/src/pages/page/list/index.vue +++ b/src/pages/page/list/index.vue @@ -1,81 +1,91 @@ diff --git a/src/pages/site/list/index.vue b/src/pages/site/list/index.vue index 50aa572..c5d2582 100644 --- a/src/pages/site/list/index.vue +++ b/src/pages/site/list/index.vue @@ -1,73 +1,69 @@