diff --git a/src/components/page/Complete_profile.vue b/src/components/page/Complete_profile.vue index 13dcbd2..771cf07 100644 --- a/src/components/page/Complete_profile.vue +++ b/src/components/page/Complete_profile.vue @@ -156,8 +156,11 @@ >

- A total of - {{ Ainfo.refer_state.num }} references in this manuscript is identified. + + +

diff --git a/src/components/page/PreIngestedEditor.vue b/src/components/page/PreIngestedEditor.vue index 5dd1229..c13d796 100644 --- a/src/components/page/PreIngestedEditor.vue +++ b/src/components/page/PreIngestedEditor.vue @@ -721,10 +721,10 @@ export default { console.log('res at line 191:', res); if (res.code == 0) { this.article_pay_info = { - fee: res.data.article.fee, - is_buy: res.data.article.is_buy, - original_price: res.data.journal.fee, - fee_remark: res.data.article.fee_remark, + fee: res.data.article ? res.data.article.fee : 0, + is_buy: res.data.article ? res.data.article.is_buy : 0, + original_price: res.data.journal ? res.data.journal.fee : 0, + fee_remark: res.data.article ? res.data.article.fee_remark : '', order: res.data.order, paystation_fee: res.data.order && res.data.order.paystation ? res.data.order.paystation.amount : '', paystation_time: res.data.order && res.data.order.paystation ? res.data.order.paystation.request_time : '', @@ -732,7 +732,7 @@ export default { }; if (this.article_pay_info.is_buy == 1) { - if (this.article_pay_info.fee == 0) { + if (Number(this.article_pay_info.fee) == 0) { this.feeStatus = 2; } else { this.feeStatus = 1; @@ -864,7 +864,10 @@ export default { } this.$nextTick(() => { // 更新引用列表 - this.$refs.editPublicRefRdit.init(this.chanFerForm); + if(this.$refs.editPublicRefRdit){ + this.$refs.editPublicRefRdit.init(this.chanFerForm); + } + }); }) .catch((err) => { @@ -2153,7 +2156,7 @@ export default { width: 260px !important; } .scroll-item { - margin: 10px 20px 20px 276px; + margin: 10px 20px 20px 280px; } .payment_info_box { margin-bottom: 10px; diff --git a/src/components/page/ReferenceEditor.vue b/src/components/page/ReferenceEditor.vue index 96d340e..73542d0 100644 --- a/src/components/page/ReferenceEditor.vue +++ b/src/components/page/ReferenceEditor.vue @@ -1,110 +1,27 @@ @@ -1183,11 +1009,11 @@ this.linVisible=false; } .status { display: block; - width: 40px; - height: 40px; - border-radius: 40px; + width: 36px; + height: 36px; + border-radius: 36px; font-size: 22px; - line-height: 40px; + line-height: 36px; color: #fff; text-align: center; } @@ -1201,7 +1027,9 @@ this.linVisible=false; display: inline-block; } .topInfo { - padding: 20px; + padding: 0px; + margin-top: -10px; + margin-bottom: 30px; } .topInfo ul { padding-left: 30px; @@ -1231,7 +1059,7 @@ this.linVisible=false; font-size: 26px; } .mt20 { - margin-top: 20px; + margin-top: 14px; } .content_box { padding: 15px 10px; @@ -1245,7 +1073,7 @@ p { font-size: 14px; } .mt10 { - margin-top: 10px; + margin-top: 14px; } .more { font-weight: bold; @@ -1295,43 +1123,75 @@ p { /deep/ .el-table tr:nth-child(2n) { background: #fff; } -::v-deep .reference-dialog .el-dialog__body{ +::v-deep .reference-dialog .el-dialog__body { padding: 0 20px !important; } .newpro .el-progress-bar__inner:before { - content: ""; - width: 100%; - height: 100%; - display: block; - background-image: repeating-linear-gradient( - -45deg, - hsla(0, 0%, 100%, 0.15) 25%, - transparent 0, - transparent 50%, - hsla(0, 0%, 100%, 0.15) 0, - hsla(0, 0%, 100%, 0.15) 75%, - transparent 0, - transparent - ); - background-size: 40px 40px; - animation: mymove 2s linear infinite; + content: ''; + width: 100%; + height: 100%; + display: block; + background-image: repeating-linear-gradient( + -45deg, + hsla(0, 0%, 100%, 0.15) 25%, + transparent 0, + transparent 50%, + hsla(0, 0%, 100%, 0.15) 0, + hsla(0, 0%, 100%, 0.15) 75%, + transparent 0, + transparent + ); + background-size: 40px 40px; + animation: mymove 2s linear infinite; } @keyframes mymove { - 0% { - background-position: 0; - } - 25% { - background-position: 50px; - } - 50% { - background-position: 100px; - } - 75% { - background-position: 150px; - } - 100% { - background-position: 200px; - } + 0% { + background-position: 0; + } + 25% { + background-position: 50px; + } + 50% { + background-position: 100px; + } + 75% { + background-position: 150px; + } + 100% { + background-position: 200px; + } } +::v-deep .operation1 .el-button--mini { + font-size: 14px !important; + padding: 6px 10px !important; + zoom: 0.9; +} +.itemChanged { + display: inline-block; + background: #006699; + color: #fff; + padding: 5px; + border-radius: 0 0 7px 7px; + left: 0; + top: 0; +} +.template-info { + margin-top: 20px; + background: rgb(244, 244, 245); + border: 1px solid rgb(211, 212, 214); + font-size: 14px; + color: #606266; + padding-left: 15px; + border-radius: 4px; + padding: 14px; + box-sizing: border-box; +} +.template-title { + /* font-size: 16px; */ + font-weight: bold; + margin-bottom: 10px; + color: #333; + display: inline-block; +} diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue index 7ee65cc..2220b13 100644 --- a/src/components/page/articleAdd.vue +++ b/src/components/page/articleAdd.vue @@ -819,7 +819,10 @@
3.Value: This manuscript belongs to the advanced topic and can attract wide attention. -

+
+ please download the manuscript template Microsoft Word template. + +

item.rated).filter(rated => rated&&rated>0).length; + let str = 0; + let all = 0; + for (let i = 0; i < arry.length; i++) { + all += Number(arry[i].rated); + } + str = (all / ratedLength).toFixed(1); + return str; + }, toggleShowAll(item, i) { this.$set(this.tableData[i], 'showAll', !item.showAll); this.$forceUpdate(); @@ -2639,20 +2648,7 @@ export default { //文章类型 - // 算平均分 - avegeCount(arry) { - console.log('arry at line 2643:', arry) - var ratedLength = arry.map(item => item.rated).filter(rated => rated&&rated>0).length; - - let str = 0; - let all = 0; - for (let i = 0; i < arry.length; i++) { - all += arry[i].rated; - } - str = (all / ratedLength).toFixed(1); - return str; - }, - + // 算终审分 finalCount(arry) { let str = 0; diff --git a/src/components/page/articleListEditor_B.vue b/src/components/page/articleListEditor_B.vue index 935f3a3..e792d15 100644 --- a/src/components/page/articleListEditor_B.vue +++ b/src/components/page/articleListEditor_B.vue @@ -222,7 +222,17 @@ export default { // 跳页录入排版 changeEnter(val) { - this.$router.push('/articleListEditor_B1?id=' + val.p_article_id); + window.open( + this.$router.resolve({ + path: '/articleListEditor_B1', + query: { + id: val.p_article_id, + + } + }).href, + '_blank' + ); + } } }; diff --git a/src/components/page/articleListEditor_B1.vue b/src/components/page/articleListEditor_B1.vue index 6accbcb..282129e 100644 --- a/src/components/page/articleListEditor_B1.vue +++ b/src/components/page/articleListEditor_B1.vue @@ -1,16 +1,17 @@ - + - + @@ -250,13 +255,13 @@ - {{ index+1 }}. {{ item.organ_name }} + {{ index + 1 }}. {{ item.organ_name }} @@ -316,12 +321,12 @@ - {{ index+1 }}. {{ item.organ_name }} + {{ index + 1 }}. {{ item.organ_name }} @@ -364,12 +369,24 @@ @@ -402,7 +419,7 @@
-
+

{{ tabsList[2].name }}

@@ -572,7 +589,7 @@
-
+

{{ tabsList[3].name }}

-
+
-
+

{{ tabsList[4].name }}

-

HTML typesetting and AI proofreading

+

+ HTML typesetting and AI proofreading +

- + - Proofread + Proofread
@@ -614,7 +633,7 @@ > - + Create Manuscript @@ -663,8 +682,16 @@ :on-remove="removefileUpTy" style="display: inline-block" > -
- +
+ Click Re upload @@ -680,7 +707,6 @@
Improve information
- https://doi.org/10.53388/ @@ -698,7 +724,7 @@
- + Save Essential Information @@ -724,7 +750,7 @@
- + Ask the author to confirm @@ -831,7 +857,13 @@ - +
{{ deMesYul.journal_title }} @@ -962,8 +994,7 @@ export default { ], detailMes: { type: '', - journal_special_id: 'None', - + journal_special_id: 'None' }, abstract: '', opInstal: [], @@ -1336,47 +1367,40 @@ export default { this.getHight(); window.addEventListener('resize', this.getHight); this.getData(); - - + this.getAuthorJG(); this.getCount(); this.getWorldPdf(); }, methods: { - getArticleFinal(id){ + getArticleFinal(id) { // api/Finalreview/getRecord this.$api .post('api/Finalreview/getRecord', { - article_id: id, + article_id: id // article_id: 6075 }) .then((res) => { - console.log('res at line 1460:', res) + console.log('res at line 1460:', res); if (res.status == 1) { this.finalReview = res.data; - - - }else{ - this.finalReview = {reviewer_id: null}; + } else { + this.finalReview = { reviewer_id: null }; } - }) + }); }, - updateChange(content){ - - this.abstract = content - + updateChange(content) { + this.abstract = content; }, getTinymceContent(type) { this.$refs.tinymceChild1.getContent(type); }, getContent(type, content) { - console.log('content at line 1449:', content) - console.log('type at line 1449:', type) - - + console.log('content at line 1449:', content); + console.log('type at line 1449:', type); }, - // 跳转文章详情 - showdetaileditor(data) { + // 跳转文章详情 + showdetaileditor(data) { this.$router.push({ path: 'articleDetailEditor', query: { @@ -1421,7 +1445,7 @@ export default { this.addFomauthor.p_article_id = this.p_article_id; this.addFomschool.p_article_id = this.p_article_id; this.UpTypeFile.p_article_id = this.p_article_id; -this.abstract = '' + this.abstract = ''; const loading = this.$loading({ lock: true, text: 'Loading...', @@ -1436,11 +1460,10 @@ this.abstract = '' if (res.code == 0) { this.detailMes = res.data.production; this.abstract = res.data.production.abstract; - if(this.abstract != ''){ - this.$nextTick(()=>{ + if (this.abstract != '') { + this.$nextTick(() => { this.$refs.tinymceChild1.setContent(this.abstract); - }) - + }); } this.UpTyFIle = res.data.production.file_pdf; this.getArticleFinal(res.data.production.article_id); @@ -1571,8 +1594,10 @@ this.abstract = '' this.deMesYul.journal_title = res.data.journal.title; let reg = new RegExp('', 'g'); let reb = new RegExp('', 'g'); - this.deAuthorYul.author = this.deAuthorYul.author.replace(reg, ''); - this.deAuthorYul.author = this.deAuthorYul.author.replace(reb, ','); + this.deAuthorYul.author = this.deAuthorYul.author ? this.deAuthorYul.author.replace(reg, '') : ''; + this.deAuthorYul.author = this.deAuthorYul.author + ? this.deAuthorYul.author.replace(reb, ',') + : ''; let lastIndex = this.deAuthorYul.author.lastIndexOf(','); this.deAuthorYul.author = this.deAuthorYul.author.substring(0, lastIndex) + @@ -1728,63 +1753,61 @@ this.abstract = '' return e.stage_year + ' Vol.' + e.stage_vol + ' issue.' + e.stage_no + e.stage_pagename + e.stage_page; }, async abstractFormat(content) { - content = this.$commonJS.transformHtmlString(content); - var div = document.createElement('div'); - div.innerHTML = content; + content = this.$commonJS.transformHtmlString(content); + var div = document.createElement('div'); + div.innerHTML = content; - // 1. 剔除所有 img 标签 - var imgTags = div.getElementsByTagName('img'); - for (var i = imgTags.length - 1; i >= 0; i--) { - imgTags[i].parentNode.removeChild(imgTags[i]); - } + // 1. 剔除所有 img 标签 + var imgTags = div.getElementsByTagName('img'); + for (var i = imgTags.length - 1; i >= 0; i--) { + imgTags[i].parentNode.removeChild(imgTags[i]); + } - // 2. 新增:剔除所有 table 相关标签(table、tr、td) - var tableTags = div.getElementsByTagName('table'); - for (var i = tableTags.length - 1; i >= 0; i--) { - tableTags[i].parentNode.removeChild(tableTags[i]); - } + // 2. 新增:剔除所有 table 相关标签(table、tr、td) + var tableTags = div.getElementsByTagName('table'); + for (var i = tableTags.length - 1; i >= 0; i--) { + tableTags[i].parentNode.removeChild(tableTags[i]); + } - // 3. 替换 strong → b、em → i(原有逻辑) - var strongTags = div.getElementsByTagName('strong'); - for (var i = 0; i < strongTags.length; i++) { - var bTag = document.createElement('b'); - bTag.innerHTML = strongTags[i].innerHTML; - strongTags[i].parentNode.replaceChild(bTag, strongTags[i]); - } - var emTags = div.getElementsByTagName('em'); - for (var i = 0; i < emTags.length; i++) { - var iTag = document.createElement('i'); - iTag.innerHTML = emTags[i].innerHTML; - emTags[i].parentNode.replaceChild(iTag, emTags[i]); - } + // 3. 替换 strong → b、em → i(原有逻辑) + var strongTags = div.getElementsByTagName('strong'); + for (var i = 0; i < strongTags.length; i++) { + var bTag = document.createElement('b'); + bTag.innerHTML = strongTags[i].innerHTML; + strongTags[i].parentNode.replaceChild(bTag, strongTags[i]); + } + var emTags = div.getElementsByTagName('em'); + for (var i = 0; i < emTags.length; i++) { + var iTag = document.createElement('i'); + iTag.innerHTML = emTags[i].innerHTML; + emTags[i].parentNode.replaceChild(iTag, emTags[i]); + } - // 处理 p 标签 + 解码 - content = div.innerHTML; - content = content.replace(/^

\s*(.*?)\s*<\/p>$/, '$1').trim(); - content = await this.$commonJS.decodeHtml(content); - return content; -}, + // 处理 p 标签 + 解码 + content = div.innerHTML; + content = content.replace(/^

\s*(.*?)\s*<\/p>$/, '$1').trim(); + content = await this.$commonJS.decodeHtml(content); + return content; + }, // 1----保存稿件信息 - async ZsSaveMes() { - - var abstractStr = ""; + async ZsSaveMes() { + var abstractStr = ''; if (this.detailMes.journal_stage_id == 0) { this.$message.error('Please select an installment!'); return; } - if (this.abstract == "") { + if (this.abstract == '') { this.$message.error('Please input abstract!'); return; - } else{ + } else { abstractStr = await this.abstractFormat(this.abstract); - } - console.log('abstractStr at line 1820:', abstractStr) - + console.log('abstractStr at line 1820:', abstractStr); + this.$refs.Mes_Form.validate((valid) => { if (valid) { this.$api - .post('api/Production/editProduction', {...this.detailMes,abstract:abstractStr}) + .post('api/Production/editProduction', { ...this.detailMes, abstract: abstractStr }) .then((res) => { if (res.code == 0) { this.$message.success(`Successfully save the article!`); @@ -1807,11 +1830,11 @@ this.abstract = '' // 2----添加作者操作 add_Authorclick(index, row) { this.aid = index; - this. addFomauthor={ + this.addFomauthor = { is_first: '0', is_report: '0', organs: [] - } + }; this.addFomauthor.p_article_id = this.p_article_id; this.addAuthor = true; }, @@ -1901,7 +1924,7 @@ this.abstract = '' // 2----添加机构操作 add_Schoolclick(index, row) { this.aid = index; - this.addFomschool={} + this.addFomschool = {}; this.addFomschool.p_article_id = this.p_article_id; this.addSchool = true; }, @@ -2880,26 +2903,34 @@ this.abstract = '' } }, - // 滚动条滚动 onScroll(e) { - let scrollItems = document.querySelectorAll('.scroll-item'); - for (let i = scrollItems.length - 1; i >= 0; i--) { - // 判断滚动条滚动距离是否大于当前滚动项可滚动距离 - let judge = e.target.scrollTop >= scrollItems[i].offsetTop - scrollItems[0].offsetTop; - if (judge) { - - this.tabIndex = i.toString(); - - // 找对应的tab-name值 - this.tabName = this.tabsList[this.tabIndex].refName; - // this.tabClick = this.tabsList[this.tabIndex].refName - break; - } + const scrollContainer = e.target; + const scrollItems = document.querySelectorAll('.scroll-item'); + + // 遍历所有滚动项,找到“当前在可视区域内”的项 + for (let i = 0; i < scrollItems.length; i++) { + const item = scrollItems[i]; + // 计算项相对于滚动容器的位置(顶部距离) + const itemTop = item.offsetTop - scrollContainer.offsetTop; + // 计算项的底部距离 + const itemBottom = itemTop + item.offsetHeight; + + // 判断:项的顶部 <= 滚动距离,且项的底部 >= 滚动距离(即项在可视区域内) + const isInView = (itemTop <= scrollContainer.scrollTop) && (itemBottom >= scrollContainer.scrollTop); + + if (isInView) { + this.tabIndex = i.toString(); + // 先判断tabsList是否存在对应索引,避免报错 + if (this.tabsList[i]) { + this.tabName = this.tabsList[i].refName; } - }, + break; // 找到第一个匹配的项就停止 + } + } +}, getHight() { - this.contentStyleObj.height = window.innerHeight - 140 + 'px'; + this.contentStyleObj.height = window.innerHeight - 60 + 'px'; // this.jumpTab(0,this.tabsList[0]) } }, @@ -2921,6 +2952,27 @@ this.abstract = '' color: #888; font-size: 12px; } +.bor_style_onli { + height: auto !important; + overflow: auto; + /* min-height: 400px; */ +} +.save-btn { + width: 250px !important; + margin: 20px 0px 0px; + float: right; +} +.operation { + zoom: 0.9; +} +::v-deep .operation .el-button--mini { + font-size: 14px !important; + padding: 6px 10px !important; +} +.tab_item{ +height: 6vh; +min-height: 60px; +} \ No newline at end of file diff --git a/src/components/page/components/pendingPayment/success.vue b/src/components/page/components/pendingPayment/success.vue index 7fc5110..e15aa3b 100644 --- a/src/components/page/components/pendingPayment/success.vue +++ b/src/components/page/components/pendingPayment/success.vue @@ -1,28 +1,42 @@ @@ -33,34 +47,33 @@ export default { return { alertShow: true, urlList: { - detail: 'api/Preaccept/getPreacceptPayment', - + detail: 'api/Order/PaystationLookup', + createdOrder: 'api/Order/creatArticleOrder' }, articleInfo: {}, journalInfo: {}, total: '', articleId: this.$route.query.id, dingshi: null, - hideSec: 5 + hideSec: 10 }; }, created() { this.getDetail(); }, mounted() { - this.hideAlert(); + }, methods: { hideAlert() { - this.dingshi = setInterval(() => { + this.dingshi = setInterval(() => { this.hideSec -= 1; if (this.hideSec == 1) { this.goBack(); - return false + return false; } - + // console.log(this.hideSec) - }, 1000); }, formatAmount(amount) { @@ -80,15 +93,24 @@ export default { .then((res) => { console.log('res at line 191:', res); if (res.code == 0) { + this.hideAlert(); setTimeout(() => { + if (res.data.result == 'success') { + this.articleInfo = res.data.paystation; + this.articleInfo.state = 1; + this.total = Number(this.articleInfo.amount / 100); + } else if (res.data.result == 'fail') { + this.articleInfo.state = 0; + this.$forceUpdate(); + } loading.close(); - this.articleInfo = res.data.order; - - this.total = Number(res.data.order.paystation.amount / 100); }, 1000); - + } else { + loading.close(); + this.$message.error(res.msg); } - }).catch(() => { + }) + .catch(() => { loading.close(); }); }, @@ -112,9 +134,9 @@ export default { this.$router.replace({ name: 'success' }); this.$router.push({ path: '/PreIngested', - query:{ - id: id - } + query: { + id: id + } }); // } // @@ -144,7 +166,7 @@ export default { background-color: #fff; border: 1px solid #fcc3c3; border-radius: 16px; - color: #F56C6C; + color: #f56c6c; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */ width: 600px; } @@ -159,7 +181,7 @@ p { button { padding: 10px 20px; - + color: #fff; border: none; border-radius: 5px; @@ -167,20 +189,19 @@ button { margin-top: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 按钮添加阴影效果 */ } -.btn-success{ -background-color: #00c286; -} -.btn-danger{ -background-color: #F56C6C; -} -.btn-success:hover{ -background-color: #00c286; -} -.btn-danger:hover{ -background-color: #F56C6C; -} +.btn-success { + background-color: #00c286; +} +.btn-danger { + background-color: #f56c6c; +} +.btn-success:hover { + background-color: #00c286; +} +.btn-danger:hover { + background-color: #f56c6c; +} button:hover { - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 按钮悬停时的阴影效果 */ } .success-box { diff --git a/src/components/page/editPublicRefRdit.vue b/src/components/page/editPublicRefRdit.vue index 72501ff..0e486bb 100644 --- a/src/components/page/editPublicRefRdit.vue +++ b/src/components/page/editPublicRefRdit.vue @@ -1,39 +1,49 @@