From 9fdafcb9491812db272b38d752baed7d5a2f598b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=93=BC=E5=94=A7L?= Date: Thu, 8 Feb 2024 09:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/assets/img/star-grey.png | Bin 0 -> 710 bytes src/components/page/Dashboard_.vue | 120 ++-- src/components/page/articleAdd.vue | 169 +++-- src/components/page/articleDetailEditor.vue | 17 +- src/components/page/articleList.vue | 184 +++-- src/components/page/articleListEditor_A.vue | 739 ++++++++++++-------- vue.config.js | 90 ++- 8 files changed, 820 insertions(+), 500 deletions(-) create mode 100644 src/assets/img/star-grey.png diff --git a/.gitignore b/.gitignore index d978c71..168db20 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ node_modules /package-lock.json /src/api/index.js /src/components/common/common.vue +/vue.config.js diff --git a/src/assets/img/star-grey.png b/src/assets/img/star-grey.png new file mode 100644 index 0000000000000000000000000000000000000000..035fd41e0962fd36ecef886227b862f3666572c2 GIT binary patch literal 710 zcmV;%0y+JOP)Px%fJsC_RA@uxnQd;uFbsxcKF%?A6OafJr`R|Na1yu$KY}!Nl5r0zGP!D|s03oC zF-x~fNJwp3KYjfXyP*Ea0n!}Cn5ngPvREwklFt$aIUEj?(P;FA0994JE|<%*6pSc{ zF=nll+BC**wAS0+f%s}T<0VxQQ>3MaV-ZtD1SF(}v??MXchnG7B|FF?H6&HZ4iZsA zOqHx46g8w&$qGVLLqwHqARIL$RLKUyR3p18IYDg7_9Iud&jOODMpjiifw(O?0PIrK zaBHl!D*!lGRdr6?AxA+xV_yJZa=l)sXaN52Vti!n3Bjzjxb6RJ+JJ|UH3(*$;cz$w zfZAAWgzzV9Ec-nm7y|l`sABzMkH_QATKmqvYe5TYz>a}h1P%b~YuD;C3_{H3^VLtV z_YuZH)G^}wMxS7Oh#Qa|x!Fz29IPWHD}%)|G$XrP5D^B`a!Ix19z@W!+A&iK%p-^> zh>MxuhKWItKnj4FX{}GO${XD@x*Pmb%#a|+iuf?zEI0O&I-RGulm7s+B5s%Lrt6)o zBrN83j>Uo~rO0mee_iXD6~Dcgig_c;wTv+zN~yZleZq0lTFuhUwS z?IT~9GD%DYaO*gkiwuI(6r~ip*3%A7E#ZLpA2y!?QyR#|&BM4Y0Vi{D6k%m7G~#l( zZ2ie0j-GJ9#{eQ{E)EDOV}$^GKg6Ul9*@^lAZoyqKqwh22G9;FOdbI676Zx(63JND zD{Lt}LnuQu_r^pLEVR^sCn<7gYtjiIq>xhT28bH)DIi$^LO|Bqol6MWL7KjOmFhy= s!qa@t*bN4Q6OKe<>q&~lZc@VeZ@3(_XST>3asU7T07*qoM6N<$f&^4EA^-pY literal 0 HcmV?d00001 diff --git a/src/components/page/Dashboard_.vue b/src/components/page/Dashboard_.vue index 1812418..25c3ebf 100644 --- a/src/components/page/Dashboard_.vue +++ b/src/components/page/Dashboard_.vue @@ -151,7 +151,8 @@ Website :
- Personal academic introduction + Personal academic + introduction
@@ -240,11 +241,12 @@

Published articles

- {{authorTable.tj}} + {{authorTable.tj}}

Recommended manuscripts

-
- {{reviewTable.successReview}} +
+ {{reviewTable.successReview}} 0

Reviewed manuscripts

@@ -562,11 +564,11 @@
-

+

Telephone number : +64 02108293806 @@ -1018,54 +1020,54 @@ youth_journal: [], df_country: [], df_technical: [{ - label: 'Professor', - }, { - label: 'Associate Professor', - }, { - label: 'Assistant Professor', - }, - // { - // label: 'Ph.D.', - // }, - { - label: 'Researcher', - }, { - label: 'Associate research fellow', - }, { - label: 'Assistant research fellow', - }, { - label: 'Engineer', - }, { - label: 'Senior engineer', - }, - { - label: 'Associate Researcher', - }, - { - label: 'Lecturer', - }, - { - label: 'Associate Chief Physician', - }, - { - label: 'Assistant Researcher', - }, - { - label: 'Physician', - }, - { - label: 'Chief Physician', - }, - { - label: 'Senior Lecturer', - }, - { - label: 'Research Fellow', - }, - { - label: 'Senior Investigator', - }, - ], + label: 'Professor', + }, { + label: 'Associate Professor', + }, { + label: 'Assistant Professor', + }, + // { + // label: 'Ph.D.', + // }, + { + label: 'Researcher', + }, { + label: 'Associate research fellow', + }, { + label: 'Assistant research fellow', + }, { + label: 'Engineer', + }, { + label: 'Senior engineer', + }, + { + label: 'Associate Researcher', + }, + { + label: 'Lecturer', + }, + { + label: 'Associate Chief Physician', + }, + { + label: 'Assistant Researcher', + }, + { + label: 'Physician', + }, + { + label: 'Chief Physician', + }, + { + label: 'Senior Lecturer', + }, + { + label: 'Research Fellow', + }, + { + label: 'Senior Investigator', + }, + ], fileL_pdf1: [], pwdVisible: false, usermsgList: [], @@ -1477,7 +1479,7 @@ } if (res.data.asReviewer) { this.review_journal = res.data.asReviewer.journal - this.reviewTable = res.data.asReviewer + this.reviewTable = res.data.asReviewer if (!this.usercap.includes('reviewer')) { localStorage.setItem('U_role', this.usercap + ',reviewer') } @@ -1491,7 +1493,11 @@ if (res.data.Yboard) { this.youth_journal = res.data.Yboard for (let i = 0; i < this.youth_journal.length; i++) { - this.youth_journal[i].arrowMark = 0 + if (i == 0) { + this.youth_journal[i].arrowMark = 1 + } else { + this.youth_journal[i].arrowMark = 0 + } } if (!this.usercap.includes('yboard')) { localStorage.setItem('U_role', this.usercap + ',yboard') @@ -2685,4 +2691,4 @@ line-height: 140px; text-align: center; } */ - + \ No newline at end of file diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 197f378..13a0543 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -76,7 +76,7 @@ - + - - -

- For authors who selected 'Yes', please provide the approval number and name of the - ethics committee or institutional review board that approved the study. -

+ + Yes + No + + + + +
+ Upload +
+
+ Only Word and compressed files can be uploaded (file format: .pdf). +
+
+
+ + - + + placeholder="Please select major" style="width: 270px;" clearable> @@ -653,7 +671,7 @@ checkedjours: [], abstrart: '', type: '', - approval: false, + approval: '', istransfer: false, becomeRev: false, keyWords: '', @@ -664,6 +682,8 @@ totalpage: '', manuscirpt: '', supplementary: '', + approval_file:'', + approval_content:'', code: '', // topics:null }, @@ -756,6 +776,7 @@ major_all: '' }], countrys: [], + fileL_articleApproval: [], fileL_coverLetter: [], fileL_picturesAndTables: [], fileL_manuscirpt: [], @@ -857,6 +878,21 @@ message: 'Please select major', trigger: 'blur' }], + approval: [{ + required: true, + message: 'Please select whether ethical approval was obtained', + trigger: 'blur' + }], + approval_content: [{ + required: true, + message: 'Please enter reason', + trigger: 'blur' + }], + approval_file: [{ + required: true, + message: 'Please upload ethical approva file', + trigger: 'blur' + }], }, activeNames: [1], keywordsList: [{ @@ -874,22 +910,22 @@ companyList: [], countrys: [], majorList: [], - step4MajorList:[], // 第四步的major数据 + step4MajorList: [], // 第四步的major数据 jl_major: [], defaultParams: { label: 'title', value: 'major_id', children: 'children' }, - default4Params:{ + default4Params: { label: 'major_title', value: 'major_id', children: 'children' }, mj_jour: [], jour_name: '', - topicsList:null, // 话题列表 - topicsProps:{ + topicsList: null, // 话题列表 + topicsProps: { multiple: true, emitPath: false, // 只返回该节点的值 value: "journal_topic_id", // 自定义要映射的键名 @@ -917,6 +953,9 @@ } }, computed: { + upload_articleApproval: function() { + return this.baseUrl + 'api/Article/up_approval_file'; + }, upload_coverLetter: function() { return this.baseUrl + 'api/Article/up_file/type/coverLetter'; }, @@ -1030,14 +1069,15 @@ if (vali) { tuijian_yanzheng += 0 //this.tuiJianForm[i].major = this.tuiJianForm[i].major_all[0] - this.tuiJianForm[i].major = this.tuiJianForm[i].major_all[this.tuiJianForm[i].major_all.length - 1] + this.tuiJianForm[i].major = this.tuiJianForm[i].major_all[this + .tuiJianForm[i].major_all.length - 1] //this.tuiJianForm[i].cmajor = this.tuiJianForm[i].major_all[1] } else { tuijian_yanzheng += 1 } }) } - this.form.reviewers = this.tuiJianForm + this.form.reviewers = this.tuiJianForm } else { this.form.reviewers = [] } @@ -1192,21 +1232,20 @@ 'value': res.data.companys[i].title }) } - }); + }); this.$api .post('/api/Reviewer/getMajorForReviewer', { username: localStorage.getItem('U_name'), - }).then(res => { + }).then(res => { if (res.data.major != 0) { this.$api .post('api/User/getMajorList') .then(res => { this.majorList = res.data; - + }) } }) - this.$api .post('api/Reviewer/getAllMajor') .then(res => { @@ -1219,12 +1258,12 @@ this.checkReviewer() this.$api - .post('api/Major/getMajorList') - .then(res => { - console.log(res,99) - this.step4MajorList = res.data.majors; - - }) + .post('api/Major/getMajorList') + .then(res => { + console.log(res, 99) + this.step4MajorList = res.data.majors; + + }) }, @@ -1396,6 +1435,17 @@ document.body.removeChild(downloadElement); }, //检验上传文件的格式 + beforeupload_articleApproval(file) { + // const ismau = + // file.type === 'application/msword' || + // file.type === 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' || + // file.type === 'application/x-zip-compressed' || + // file.name.split('.')[1] === 'rar'; + // if (!ismau) { + // this.$message.error('Only word and compressed files(.doc,.docx,.rar,.zip)'); + // } + // return ismau; + }, beforeupload_coverLetter(file) { // const isWORd = // file.type === 'application/msword' || @@ -1451,6 +1501,17 @@ // return ismau; }, //文件上传成功后的操作 + upSuccess_articleApproval(res, file) { + if (res.code == 0) { + this.form.approval_file = 'articleApproval/' + res.upurl; + this.fileL_articleApproval = [{}]; + this.fileL_articleApproval[0].name = "Ethical approval File"; + this.fileL_articleApproval[0].url = 'articleApproval/' + res.upurl; + } else { + this.$message.error('service error: ' + res.msg); + } + console.log(this.form) + }, upSuccess_coverLetter(res, file) { if (res.code == 0) { this.form.coverLetter = 'coverLetter/' + res.upurl; @@ -1510,6 +1571,10 @@ this.$message.error('The maximum number of uploaded files has been exceeded'); }, //清除文件时的事件 + removefilearticleApproval(file, fileList) { + this.form.approval_file = ''; + this.fileL_articleApproval = []; + }, removefilecoverLetter(file, fileList) { this.form.coverLetter = ''; this.fileL_coverLetter = [] @@ -1709,9 +1774,15 @@ } } }, - + showFiles() { // 文件显示出来 + this.fileL_articleApproval = []; + if (this.form.approval_file != '') { + this.fileL_articleApproval = [{}] + this.fileL_articleApproval[0].name = "Ethical approval file"; + this.fileL_articleApproval[0].url = this.form.approval_file; + } this.fileL_coverLetter = []; if (this.form.coverLetter != '') { this.fileL_coverLetter = [{}] @@ -1965,8 +2036,10 @@ this.form.type = res.data.base.type this.form.title = res.data.base.title this.form.approval = res.data.base.approval + this.form.approval_content = res.data.base.approval_content this.form.abstrart = res.data.base.abstrart this.form.fund = res.data.base.fund + console.log(res.data.base) // this.form.topics = res.data.base.topics // 领域 this.$api @@ -2034,6 +2107,10 @@ // 文件 if (res.data.files.length > 0) { for (let i = 0; i < res.data.files.length; i++) { + if (res.data.files[i].type_name == 'articleApprova') { + this.form.approval_file = res.data.files[i].file_url + this.form.approval_fileId = res.data.files[i].file_id + } if (res.data.files[i].type_name == 'coverLetter') { this.form.coverLetter = res.data.files[i].file_url this.form.coverLetterId = res.data.files[i].file_id @@ -2065,20 +2142,22 @@ }, // 获取话题 - getTopics(){ - this.$api - .post('api/Article/getJournalTopics', {'journal_id': this.Reviewerof.journal}) - .then((res) => { - if (res.code == 0) { - this.topicsList = res.data.topics - // console.log(res.data.topics,'话题') - } else { - this.$message.error(res.msg); - } - }); + getTopics() { + this.$api + .post('api/Article/getJournalTopics', { + 'journal_id': this.Reviewerof.journal + }) + .then((res) => { + if (res.code == 0) { + this.topicsList = res.data.topics + // console.log(res.data.topics,'话题') + } else { + this.$message.error(res.msg); + } + }); }, // 选中值变化 - topicsChange(e){ + topicsChange(e) { // console.log(this.form.topics,'选中的话题id') } @@ -2087,7 +2166,7 @@ @@ -2343,7 +2422,7 @@ .jour_ku_all { font-size: 12px; float: left; - width: 210px; + width: 265px; padding-left: 10px; cursor: pointer; color: #666; @@ -2351,11 +2430,11 @@ } .jour_ku_all:nth-child(3n+1) { - width: 270px; + width: 230px; } .jour_ku_all:nth-child(3n+2) { - width: 240px; + width: 220px; } .jour_ku_all.B_style { @@ -2419,4 +2498,4 @@ word-break: break-word; text-align: left; } - + \ No newline at end of file diff --git a/src/components/page/articleDetailEditor.vue b/src/components/page/articleDetailEditor.vue index 47e66dc..b60dad6 100644 --- a/src/components/page/articleDetailEditor.vue +++ b/src/components/page/articleDetailEditor.vue @@ -22,8 +22,19 @@ Title : {{form.title}}

-

+ +

+ Ethical Approval :{{form.approval?'Yes':'No'}} + + + Ethical approval file + + +

+

+ Explain the reason clearly :{{form.approval_content}}

Special Issues :{{ form.special_title }} @@ -499,6 +510,8 @@ type: '', major: '', approval: false, + approval_file:'', + approval_content:'', repetition: '', manuscirpt: '', remarks: '', @@ -767,6 +780,8 @@ this.form.special_title = res.article.special_title; this.form.major = res.major; this.form.approval = res.article.approval == 1 ? true : false; + this.form.approval_file = res.article.approval_file + this.form.approval_content = res.article.approval_content this.form.repetition = res.article.repetition; this.form.remarks = res.article.remarks; this.form.repeurl = res.article.repeurl; diff --git a/src/components/page/articleList.vue b/src/components/page/articleList.vue index 5ba348f..9e867db 100644 --- a/src/components/page/articleList.vue +++ b/src/components/page/articleList.vue @@ -1,5 +1,5 @@ - - - -

-

Under review

- -
-

- Does the title represent manuscript's contents? -

{{item1.qu9_contents}}
-

-

- Is the Abstract accurate and concise? -

{{item1.qu10_contents}}
-

-

- Are the approach/ methods properly described? -

{{item1.qu11_contents}}
-

-

- Are the conclusions and interpretations sound? -

{{item1.qu12_contents}}
-

-

- Are the references properly cited? -

{{item1.qu13_contents}}
-

-

- Comments for the Authors -

{{item1.comments}}
-

-
-
-
- - Second review -

- {{item1.recommend | getOpinion}} - {{item1.recommend | getOpinion}} - {{item1.recommend | getOpinion}} -

-

- Comments for the Authors -

{{item1.content}}
-

-

- Response time: {{item1.stime|formatDatehms}} * {{item1.stime}} -

-
- - - - + + + +
+

Under review

+ +
+

+ Does the title represent manuscript's contents? +

{{item1.qu9_contents}}
+

+

+ Is the Abstract accurate and concise? +

{{item1.qu10_contents}}
+

+

+ Are the approach/ methods properly described? +

{{item1.qu11_contents}}
+

+

+ Are the conclusions and interpretations sound? +

{{item1.qu12_contents}}
+

+

+ Are the references properly cited? +

{{item1.qu13_contents}}
+

+

+ Comments for the Authors +

{{item1.comments}}
+

+
+
+
+ + Second review +

+ {{item1.recommend | getOpinion}} + {{item1.recommend | getOpinion}} + {{item1.recommend | getOpinion}} +

+

+ Comments for the + Authors +

{{item1.content}}
+

+

+ Response time: {{item1.stime|formatDatehms}} * {{item1.stime}} +

+
+
+
+ +

No Comment

@@ -473,11 +486,11 @@ }, // 显示预收录页面 - goPre_ingested(id){ + goPre_ingested(id) { this.$router.push({ path: 'PreIngested', query: { - id: id + id: id // id: 3070 } }); @@ -503,8 +516,8 @@ // 弹出框 this.comentDeploy = res.suggest this.comentDeploy.map(item => { - if(item.question && item.question.length > 0) - item.question = item.question.reverse() + if (item.question && item.question.length > 0) + item.question = item.question.reverse() }) // this.activeComment = [] // for (var i = 0; i < res.suggest.length; i++) { @@ -572,6 +585,7 @@ .catch(err => { console.log(err); }); + }, @@ -594,9 +608,9 @@ }, }, filters: { - + // 复审意见结果 - getOpinion(value){ + getOpinion(value) { switch (value) { case 1: return 'Accept' @@ -609,7 +623,7 @@ break; } }, - + // 文章类型 ellipsis(value) { let frag = ''; @@ -786,14 +800,36 @@ + \ No newline at end of file diff --git a/src/components/page/articleListEditor_A.vue b/src/components/page/articleListEditor_A.vue index c4f2f7d..743acde 100644 --- a/src/components/page/articleListEditor_A.vue +++ b/src/components/page/articleListEditor_A.vue @@ -39,274 +39,283 @@ Search
-
-
-
- ID : - S - - {{item.accept_sn}} - - Type : - - {{artType(item.type)}} - - Countries : - + Type : + + {{artType(item.type)}} + + Countries : + {{iken}} , - - Status : - - {{stateFormat(item.state)}} - - - Change - - - Begin Produce - - Plagiarism Check : - - {{item.repetition}} % - - - Change - - - Manuscript Tracking - -
-
- - - {{item.title}} + + Status : + + {{stateFormat(item.state)}} + + + Change + + + Begin Produce + + Plagiarism Check : + + {{item.repetition}} % + + + Change + + + Manuscript Tracking - -
- -
-
- Manuscript Files -

-
-

- Cover letter - ({{item.file.coverLetter.length}}) : - - -

-
- - - Uploader : {{ikrm.username}} - {{formatDate(ikrm.ctime)}} - - - - -
-
-
-

- Figures - ({{item.file.picturesAndTables.length}}) : - - -

-
- - - Uploader : {{ikrm.username}} - {{formatDate(ikrm.ctime)}} - - - - -
-
-
-

- Title page - ({{item.file.totalpage.length}}) : - - -

-
- - - Uploader : {{ikrm.username}} - {{formatDate(ikrm.ctime)}} - - - - -
-
-
-

- Manuscirpt - ({{item.file.manuscirpt.length}}) : - - -

-
- - - Uploader : {{ikrm.username}} - {{formatDate(ikrm.ctime)}} - - - - -
-
-
-

- Supplementary Material - ({{item.file.supplementary.length}}) : - - -

-
- - - Uploader : {{ikrm.username}} - {{formatDate(ikrm.ctime)}} - - - - -
-
-
-
- AI scoring -

- Initial review score : - {{item.scoring}} - -

-

- Initial review score : - {{item.scoring}} -

-

{{item.H.google_editor}} -

-

- {{formatDate(item.H.google_time)}} -

- - Edit Hindex +
+ + + {{item.title}} + + + + Author's previous articles - -

- Comprehensive Score : - {{finalCount(item)}} -

-
-
-
- Reviewer Decision -

-

- Reviewer{{index+1}} score : {{iken.rated}}Re-review -

-

- Average : {{avegeCount(item.reviewScore)}} -

-

- - - - - - - - -

-

- - Inviting Reviewer - - -

-
-
-
- Corresponding Author -

-
-

- Name : - {{item.realname}} - ({{item.phone}}) +

+ Comprehensive Score : + {{finalCount(item)}}

-

- Email : - {{item.email}} - - Email +

+
+
+ Reviewer Decision +

+

+ Reviewer{{index+1}} score : {{iken.rated}}Re-review +

+

+ Average : {{avegeCount(item.reviewScore)}} +

+

+ + + + + + + + +

+

+ + Inviting Reviewer - - History + +

+
+
+
+ Corresponding Author +

+
+

+ Name : + {{item.realname}} + ({{item.phone}}) +

+

+ Email : + {{item.email}} + + Email + + + History + +

+
+

+ + Communication

-

- - Communication - -

+
+
+ Remarks : + {{item.remarks}} + + Change + +
- -
- Remarks : - {{item.remarks}} - - Change - -
-
@@ -570,7 +579,8 @@ - + @@ -772,6 +782,7 @@ +

@@ -804,6 +815,39 @@

+ + +
+
+ {{corresList.article.title}} +
+
+
+ {{item.firstname}} {{item.lastname}} + # + * +
+
+ {{stateFormat(pku.state)}} + {{pku.title}} + - {{pku.journal_title}} +
+
No article
+
+
User articles
+
+
+ {{stateFormat(item.state)}} + {{item.title}} + - {{item.journal_title}} +
+
No article
+
+
+
+ @@ -818,7 +862,7 @@ }, data() { return { - curState:null, + curState: null, baseUrl: this.Common.baseUrl, mediaUrl: this.Common.mediaUrl, items: '', @@ -837,35 +881,37 @@ multipleSelection: [], delList: [], statList: [{ - state: 0 - }, { - state: 1 - }, { - state: 2 - }, { - state: 4 - }, - { - state: 6 - }, - { - state: 5 - }, - { - state: 3 - }, - ], + state: 0 + }, { + state: 1 + }, { + state: 2 + }, { + state: 4 + }, + { + state: 6 + }, + { + state: 5 + }, + { + state: 3 + }, + ], Total: 0, geogleList: [], IndexForm: {}, editVisible: false, guestVisible: false, - PreAcpVisible:false, + PreAcpVisible: false, editbox: false, repebox: false, aiSorbox: false, communVisible: false, trackVisible: false, + corresVisible: false, + corresList: [], talkMsgs: [], timeLaxis: { title: '', @@ -968,22 +1014,22 @@ }); }, // 创建复审 - crateRevision(item){ + crateRevision(item) { // 二次询问 this.$confirm('Do you want to send a review invitation?', 'Tip', { type: 'warning' }) .then(() => { this.$api - .post('api/Reviewer/startRepeatReviewer', { + .post('api/Reviewer/startRepeatReviewer', { 'art_rev_id': item.art_rev_id }) .then(res => { //console.log(res) - if(res.code == 0){ + if (res.code == 0) { this.$message.success('A review invitation was successfully sent!') this.getdate() - }else{ + } else { this.$message.error(res.msg) } }) @@ -992,13 +1038,13 @@ }); }) .catch(() => {}); - - + + }, // 更新评分 - refreshScore(row){ + refreshScore(row) { this.$api - .post('api/Article/refuseScore', { + .post('api/Article/refuseScore', { 'article_id': row.article_id }) .then(res => { @@ -1011,8 +1057,14 @@ }, // 跳入预收录编辑页面 changeEnter(val) { - console.log(val,'val') - this.$router.push({name: 'PreIngestedEditor', query: {id: val.article_id, uid:val.user_id}}) + console.log(val, 'val') + this.$router.push({ + name: 'PreIngestedEditor', + query: { + id: val.article_id, + uid: val.user_id + } + }) }, // 改变期刊 chageJour() { @@ -1042,7 +1094,7 @@ this.getdate() }, // 获取数据 - getdate() { + getdate() { this.query.state == 6 ? this.PreAcpVisible = true : this.PreAcpVisible = false const loading = this.$loading({ lock: true, @@ -1077,11 +1129,12 @@ } } if (this.tableData[i].file.manuscirpt) { - if (this.tableData[i].file.coverLetter || this.tableData[i].file.picturesAndTables || this.tableData[i] + if (this.tableData[i].file.coverLetter || this.tableData[i].file.picturesAndTables || + this.tableData[i] .file.totalpage || this.tableData[i].file.supplementary) { - if(this.tableData[i].file.manuscirpt.length > 1){ - this.tableData[i].file_maun = 0 - } + if (this.tableData[i].file.manuscirpt.length > 1) { + this.tableData[i].file_maun = 0 + } } } if (this.tableData[i].file.supplementary) { @@ -1089,10 +1142,10 @@ this.tableData[i].file_supper = 0 } } - + this.tableData[i].reviewScore = [] - for (let j = 0; j < this.tableData[i].review.length; j++){ - if(this.tableData[i].review[j].rated!=null){ + for (let j = 0; j < this.tableData[i].review.length; j++) { + if (this.tableData[i].review[j].rated != null) { this.tableData[i].reviewScore.push(this.tableData[i].review[j]) } } @@ -1121,10 +1174,10 @@ }; } }; - for (let i = 0; i < res.state_num.length; i++) { + for (let i = 0; i < res.state_num.length; i++) { for (let j = 0; j < this.statList.length; j++) { if (i == this.statList[j].state) { - this.statList[j].num = res.state_num[i] + this.statList[j].num = res.state_num[i] } } } @@ -1166,7 +1219,7 @@ this.editform.state_old = e.state; this.editform.editormsg = ''; this.editform.proposal_content = ''; - + this.$api .post('api/Article/getArticleDetail', { articleId: e.article_id, @@ -1495,11 +1548,11 @@ }); }, // 留言板弹出层 - articleCommun(e) { + articleCommun(e) { this.msgform.user_id = e.user_id this.msgform.article_id = e.article_id this.msgform.title = e.title - this.talkMsgs = [] + this.talkMsgs = [] this.$api .post('api/Article/getArticleDialogs', { article_id: e.article_id @@ -1575,6 +1628,29 @@ alertlimit() { this.$message.error('The maximum number of uploaded files has been exceeded'); }, + + // 相关文章 + corrSpe(value) { + + this.$api + .post('api/Article/getArticlesByArticle', { + article_id: value.article_id + }) + .then(res => { + if (res.code == 0) { + this.corresList = res.data + this.corresList.article = value + + this.corresVisible = true + console.log(this.corresList) + } else { + this.$message.error(res.msg); + } + }); + + }, + + //格式化状态输出 stateFormat(e) { let str = ''; @@ -1695,15 +1771,15 @@ let str = 0; let sgr = 0; let all = 0; - let j = 0 // null 评分人数 + let j = 0 // null 评分人数 for (let i = 0; i < arry.review.length; i++) { - if(arry.review[i].rated == null){ - j += 1 + if (arry.review[i].rated == null) { + j += 1 continue; - }else{ + } else { all += arry.review[i].rated } - + }; str = (all / (arry.review.length - j)).toFixed(1) sgr = ((Number(str) + Number(arry.scoring)) / 2).toFixed(1) @@ -1770,12 +1846,21 @@ + + .corrPeo { + word-break: normal; + } + + + .corrPeo .corrPUser { + border-bottom: 1px solid #00669936; + color: #006699; + font-size: 16px; + padding: 0 0 10px 0; + margin: 25px 0 10px 0; + font-weight: bold; + } + + .corrPeo .corrPTim { + + line-height: 22px; + margin-bottom: 20px; + } + + .corrPeo .corrPTim:hover { + text-decoration: underline; + cursor: pointer; + + } + + .corrPeo .corrPTim span { + background: #db890e21; + color: #db890e; + display: inline-block; + padding: 1px 5px; + border-radius: 5px; + font-size: 12px; + margin-right: 10px; + letter-spacing: 0.5px; + font-weight: bold; + } + + .corrPeo .corrPTim font { + font-weight: bold; + margin-left: 10px; + letter-spacing: -0.5px; + } + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 15514df..fb35d21 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,28 +1,82 @@ +// // const webpack = require("webpack") +// module.exports = { +// publicPath: './', +// assetsDir: 'static', +// productionSourceMap: false, +// devServer: { +// // public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号 +// // host:'localhost' +// public: '0.0.0.0:8080/', +// port: '8080', +// // open: true, +// // overlay: { +// // warnings: false, +// // errors: true +// // }, +// // proxy: { +// // '/api': { +// // // target: 'https://www.tmrjournals.cn', +// // target: 'https://submission.tmrjournals.com/', +// // changeOrigin: true, +// // pathRewrite: { +// // '^/api': '' +// // } +// // } +// // } +// }, + +// // devServer: { +// // port: port, +// // open: true, +// // overlay: { +// // warnings: false, +// // errors: true +// // }, +// // // before: require('./mock/mock-server.js') // 注释掉这一行 +// // proxy: { +// // '/dev-api': { // 因为默认开发api就是dev-api,所以我这里就没有改其他名字也叫dev-api +// // target: 'https://ceshi.xxxxxxxx.com/', +// // pathRewrite: { +// // '^/dev-api': '' +// // }, // 记得也哟改dev-api +// // } +// // } +// // }, + +// // 配置插件参数 +// // configureWebpack: { +// // plugins: [ +// // new webpack.ProvidePlugin({ +// // 'window.Quill': 'quill' +// // }) +// // ] +// // } +// } + + // const webpack = require("webpack") module.exports = { publicPath: './', assetsDir: 'static', productionSourceMap: false, devServer: { - // public: 'http://192.168.110.156:8080/', // 你自己本地的ip地址:端口号 - // host:'localhost' - public: '0.0.0.0:8080/', + // public: 'http://192.168.110.159:8080/', // 你自己本地的ip地址:端口号 port: '8080', - // open: true, - // overlay: { - // warnings: false, - // errors: true - // }, - // proxy: { - // '/api': { - // // target: 'https://www.tmrjournals.cn', - // target: 'https://submission.tmrjournals.com/', - // changeOrigin: true, - // pathRewrite: { - // '^/api': '' - // } - // } - // } + open: true, + overlay: { + warnings: false, + errors: true + }, + proxy: { + '/api': { + // target: 'https://www.tmrjournals.cn', + target: 'https://submission.tmrjournals.com/', + changeOrigin: true, + pathRewrite: { + '^/api': '' + } + } + } }, // devServer: {