From ffb4e76dce53f9d177c8504044f84f12f8190774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A6=86=E9=92=B1=E8=90=BD=E5=B0=BD=E6=A7=BF=E8=8A=B1?= =?UTF-8?q?=E7=A8=80?= <2675540038@qq.com> Date: Thu, 6 Jun 2024 18:00:47 +0800 Subject: [PATCH] 1 --- public/favicon.ico | Bin 16958 -> 9662 bytes src/layouts/components/Header.vue | 1 + src/pages/activity/activity_index.vue | 12 ++ src/pages/association/carousel.vue | 8 +- src/pages/association/index.vue | 9 ++ src/pages/association/person.vue | 201 ++++++++++++++++++++++++++ src/pages/association/system.vue | 10 +- src/pages/news/news_index.vue | 9 ++ src/pages/user/user_edit.vue | 14 +- src/pages/user/user_edit_shen.vue | 21 ++- src/pages/user/user_info.vue | 2 +- src/pages/user/user_line.vue | 2 +- src/router/modules/components.ts | 6 + src/store/modules/user.ts | 42 ++++-- src/utils/request.ts | 2 +- 15 files changed, 305 insertions(+), 34 deletions(-) create mode 100644 src/pages/association/person.vue diff --git a/public/favicon.ico b/public/favicon.ico index 086ac804a618e9bf16e23e7e5ce1407104c04add..47a62f630dbe178b591cc23a759d24441ba7a347 100644 GIT binary patch literal 9662 zcmeI1QHYgA6vw~K(1`F#L`X#IgNaCpgoK2&A|WAS5fKqSTp~<-2oVV%qFs>)3E2nn zNqUfw3W?|;d=PPEkq`+Hk%%q!ibRM=H$pO8_xAf;@8H+xy))l;ch!CHEdP7HnK^Uj z%*;7w=KD6w2KZaGD&u!a_Vx2w_H>qI%K=qc9a!I{rMKC`--jzO2Up+`Y+4M~f;!j% zJ^{PIcCZPo0FQyWLfZTy7zO9RKcE%CE!wVt@4&lYA$Sn>y#9NBlkmytf#Y5N#F4(=7rNAX^86XfknJzquM{c?@}O7uNXyD>7` z^dt(8ft0P?+W(}VbC-;1%iZKcopUtSXNx=z&w`-8DmSLpAsO$BzzGo3^DpgnFjIO0 z1*br4tTJs|3Wlttd_1AoIm~1qT&u&0G0NDk%sx;g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`fr@4{tNd%=RaTk zUj=*bQ2xI7o_e|{CK=P;U$Wvqng4nJGvhx|bPqMw{{#F7Li3;Icj8~yf1}7*|1GV5 z9sbbz*SG(L@Ka`mn9*&o5U`#Bzw>vzrYQfr^ItN4EB?9Po6(vsAD%_$;s>w6AM}57 z`+p1bf6L-u?SC=m-v)IE@aylm^#uQg7WF^Y{>S{&1T|G;D}Jv3{rkVS{^9;d*Z(&E zk^jK@clb-djy=HRe)c`94fuZne(rxI`ag;OPon>k=>H`8KZ*WNqW_aP`;(}DCC+su z&Nk$g@?H}CpRBuFCBZMz|48&d68(=v{*ze$68(=v|0mJ^N%Vgb{1W}2TyeyZ=>H`8 zKZ*WN79D(2qW_cdzeN8h(f>*Ge{$0M4@mTX68)b<{7ck768)b<|0mJ^$&tG{O6-3U z{hvhtClUV=>mN#$sQ)GMe_yQqZ)8@c1mfR28~+A+?LGe5L=)=D1_G* zn$M1XM18JMcx}1)?AT7~bLIGd^E@nDV?H~!gZld#oIUce>>2YpXj`k#oe^H!Xg)hO zRei1zbubUh#?5EP>WPY*6K2_jJ%Qm9X-%v-k>xtPIu!b>`F`u>Y>obRsm<8f8T~oG I)r`RWH$?a1VgLXD diff --git a/src/layouts/components/Header.vue b/src/layouts/components/Header.vue index 2b7185e..292dec0 100644 --- a/src/layouts/components/Header.vue +++ b/src/layouts/components/Header.vue @@ -174,6 +174,7 @@ export default Vue.extend({ this.$store.commit('user/removeAssociation'); this.$store.commit('user/removeToken'); this.$router.push(`/login?id=`+this.association.id); + this.$store.commit('user/setUserInfo',[]); //this.$router.push(`/login?redirect=${this.$router.history.current.fullPath}`); }, changeCollapsed() { diff --git a/src/pages/activity/activity_index.vue b/src/pages/activity/activity_index.vue index c130f71..9f0b71c 100644 --- a/src/pages/activity/activity_index.vue +++ b/src/pages/activity/activity_index.vue @@ -231,6 +231,7 @@ :action="$store.state.user.apiUrl+'/api/common/upload'" v-model="addForm.activity_image_show" theme="image" + :data="{association_id:this.association.association_id}" tips="请选择单张图片文件上传" accept="image/*" :allowUploadDuplicateFile="true" @@ -420,6 +421,10 @@ export default { uploadImage: { server: store.state.user.apiUrl + '/api/common/upload', fieldName: 'file', + metaWithUrl: false, + meta:{ + association_id: 0, + }, customInsert(res: any, insertFn: InsertFnType) { // TS 语法 // customInsert(res, insertFn) { // JS 语法 // res 即服务端的返回结果 @@ -443,6 +448,7 @@ export default { JuanTotal:0, JuanId:0, getType:3, + association:{} } }, beforeDestroy() { @@ -451,6 +457,12 @@ export default { editor.destroy() // 组件销毁时,及时销毁编辑器 }, mounted() { + if(typeof (store.state.user.association)=='object'){ + this.association=store.state.user.association; + }else{ + this.association=JSON.parse(store.state.user.association); + } + this.editorConfig.MENU_CONF.uploadImage.meta.association_id=this.association.association_id; this.getList(); }, methods: { diff --git a/src/pages/association/carousel.vue b/src/pages/association/carousel.vue index ec29696..6daa024 100644 --- a/src/pages/association/carousel.vue +++ b/src/pages/association/carousel.vue @@ -56,8 +56,8 @@ v-model="addForm.news_image_show" tips="请选择单张图片/视频文件上传" accept="image/*,video/*" + :data="{association_id:this.association.association_id}" :showImageFileName="true" - :imageViewerProps="true" :format-response="formatResponse" > @@ -91,10 +91,16 @@ export default { {colKey: 'url', title: '跳转链接', align: 'center'}, {colKey: 'select', title: '操作', width: 200, align: 'center'}, ], + association:{} } }, mounted() { //this.member_id=this.$route.query.id; + if(typeof (store.state.user.association)=='object'){ + this.association=store.state.user.association; + }else{ + this.association=JSON.parse(store.state.user.association); + } this.getList(); }, methods: { diff --git a/src/pages/association/index.vue b/src/pages/association/index.vue index e9cfa22..240dfd6 100644 --- a/src/pages/association/index.vue +++ b/src/pages/association/index.vue @@ -141,6 +141,9 @@ export default { uploadImage: { server: store.state.user.apiUrl + '/api/common/upload', fieldName: 'file', + meta:{ + association_id: 0, + }, customInsert(res: any, insertFn: InsertFnType) { // TS 语法 // customInsert(res, insertFn) { // JS 语法 // res 即服务端的返回结果 @@ -160,6 +163,12 @@ export default { }, mounted() { //this.member_id=this.$route.query.id; + if(typeof (store.state.user.association)=='object'){ + this.association=store.state.user.association; + }else{ + this.association=JSON.parse(store.state.user.association); + } + this.editorConfig.MENU_CONF.uploadImage.meta.association_id=this.association.association_id; this.getList(); }, methods: { diff --git a/src/pages/association/person.vue b/src/pages/association/person.vue new file mode 100644 index 0000000..bafa09c --- /dev/null +++ b/src/pages/association/person.vue @@ -0,0 +1,201 @@ + + + diff --git a/src/pages/association/system.vue b/src/pages/association/system.vue index f4a1f31..378b5ad 100644 --- a/src/pages/association/system.vue +++ b/src/pages/association/system.vue @@ -48,20 +48,14 @@