diff --git a/src/components/common/Sidebar.vue b/src/components/common/Sidebar.vue index e66332f..c0ad5ae 100644 --- a/src/components/common/Sidebar.vue +++ b/src/components/common/Sidebar.vue @@ -432,6 +432,23 @@ title: this.$t('sidebar.party3') }] }, + { // 编委系统 + icon: 'el-icon-s-custom', + index: '8', + title: this.$t('sidebar.editorialBoard'), + subs: [{ + index: 'editorialBoard', + title: this.$t('sidebar.editorialBoard1') + }, + // { + // index: 'partyList', + // title: this.$t('sidebar.party2') + // }, { + // index: 'partyDelete', + // title: this.$t('sidebar.party3') + // } + ] + }, // ,{ // icon: 'el-icon-data-analysis', // index: 'citationanalysis', diff --git a/src/components/common/langs/en.js b/src/components/common/langs/en.js index 58b85a7..f88961c 100644 --- a/src/components/common/langs/en.js +++ b/src/components/common/langs/en.js @@ -120,6 +120,8 @@ const en = { mailbox3: 'Mailbox template', tools: 'Assistant tools', ReArticles: 'Rejected Manuscripts', // 被拒稿件 + editorialBoard:'Editor Border', + editorialBoard1:'List' }, home: { authortop: 'Author guide', diff --git a/src/components/common/langs/zh.js b/src/components/common/langs/zh.js index eeebe31..add8621 100644 --- a/src/components/common/langs/zh.js +++ b/src/components/common/langs/zh.js @@ -119,6 +119,8 @@ const zh = { mailbox3: '模板管理', tools: '辅助工具', ReArticles: '被拒稿件', // 被拒稿件 + editorialBoard:'编委管理', + editorialBoard1:'编委列表' }, home: { authortop: '用户指南', diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 3aa5b7b..197f378 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -347,7 +347,7 @@ - +

@@ -1654,6 +1654,7 @@ // 点击tab变化 StepCode(e) { + console.log(e) if (this.move_step > e) { if (this.move_step == 2) { this.onStaging(2) diff --git a/src/components/page/editorBorder.vue b/src/components/page/editorBorder.vue index 8f763a2..aa3d4b4 100644 --- a/src/components/page/editorBorder.vue +++ b/src/components/page/editorBorder.vue @@ -14,14 +14,14 @@ - {{item.group_name}} ({{item.person_num}}) - + --> Group management @@ -33,34 +33,34 @@ header-cell-class-name="table-header" empty-text="New messages (0)"> - + - + - +

Editor-in-Chief

- + - + - + - + @@ -95,23 +97,23 @@ - + - + - + - + @@ -147,23 +151,23 @@

{{key}}

- + - + - + - + @@ -217,15 +223,16 @@ {{addForm.email}} - + - + {{addForm.name}} + - + + * Picture - + --> @@ -256,29 +263,32 @@ :value="item.board_group_id"> - + + + + + + @@ -385,7 +395,32 @@ Save - + + + + + + Editor-in-Chief + Vice Editor-in-Chief + Editorial Board Members + + + + + + + + + + + + + Cancel + Save + +

@@ -408,6 +443,13 @@ add_country: [], addVisible: false, editVisible: false, + BoardEditorForm:{ + btj_id:null, + type:0, + board_group_id:null, + research_areas:'' + }, + BoardEditorFormVisible:false, addForm: { email: '', board_icon:'', @@ -631,6 +673,13 @@ message: 'Please select a country', trigger: 'blur' }], + }, + BoardEditorFormRule:{ + research_areas: [{ + required: true, + message: 'Please input research areas', + trigger: 'blur' + }], } }; }, @@ -762,6 +811,28 @@ this.getgroup() }, + // 编辑编委 + saveBoard(){ + this.$refs.BoardEditorForm.validate((valid) => { + if (valid) { + this.$api + .post('/api/Board/editBoard', this.BoardEditorForm) + .then(res => { + if (res.code == 0) { + this.getDate() + this.$refs.BoardEditorForm.resetFields() + this.BoardEditorFormVisible = false + } else { + this.$message.error(res.msg); + } + }) + .catch(err => { + this.$message.error(err); + }); + }else{ + return false; + }}) + }, // 评分 getScoreDataA(i, e) { @@ -900,7 +971,17 @@ }); }, - + // 编辑编委操作 + bhandleEdit(index, row) { + this.$nextTick(() => { + // console.log(row,'row') + this.BoardEditorForm.btj_id = row.btj_id + this.BoardEditorForm.type = row.type + this.BoardEditorForm.board_group_id = row.board_group_id + this.BoardEditorForm.research_areas = row.research_areas + this.BoardEditorFormVisible = true + }) + }, // 查找账号 saerNa_U() { if (this.addForm.email != '') { @@ -936,12 +1017,18 @@ saveAdd() { this.$refs.add_Form.validate((valid) => { if (valid) { - if (this.addForm.board_icon == '' || this.addForm.board_icon == undefined) { - this.$message.error('Please upload the picture!'); - return - } + // if (this.addForm.board_icon == '' || this.addForm.board_icon == undefined) { + // this.$message.error('Please upload the picture!'); + // return + // } this.$api - .post('api/Board/addBoard', this.addForm) + .post('api/Board/addBoard', { + 'user_id': this.addForm.user_id, + 'journal_id': this.addForm.journal_id, + 'board_group_id': this.addForm.board_group_id, + 'type': this.addForm.type, + 'research_areas': this.addForm.field + }) .then(res => { if (res.code == 0) { this.addVisible = false; @@ -1047,7 +1134,7 @@ this.$confirm('Are you sure you want to delete?', 'Tips', { type: 'warning' }) - .then(() => { + .then(() => { this.$api .post('api/Board/delBoard', row) .then(res => { diff --git a/src/components/page/editorialBoard.vue b/src/components/page/editorialBoard.vue new file mode 100644 index 0000000..875669e --- /dev/null +++ b/src/components/page/editorialBoard.vue @@ -0,0 +1,71 @@ + + + + + \ No newline at end of file diff --git a/src/components/page/editorialBoardList.vue b/src/components/page/editorialBoardList.vue new file mode 100644 index 0000000..8d7709f --- /dev/null +++ b/src/components/page/editorialBoardList.vue @@ -0,0 +1,992 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index f8bb666..5ae17a4 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -926,6 +926,22 @@ export default new Router({ title: 'Re-review' } }, + { + name:'Editorial-Board', + path: '/editorialBoard', // 编委管理 + component: () => import('../components/page/editorialBoard'), + meta: { + title: 'editorialBoard' + } + }, + { + name:'editorial-Board-List', + path: '/Board-List', // 单刊编委列表 + component: () => import('../components/page/editorialBoardList'), + meta: { + title: 'editorialBoardList' + } + }, { path: '/404', component: () => import( /* webpackChunkName: "404" */