diff --git a/public/favicon.ico b/public/favicon.ico index 086ac80..47a62f6 100644 Binary files a/public/favicon.ico and b/public/favicon.ico differ 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 @@