This commit is contained in:
2026-08-07 15:50:28 +08:00
parent 36b13c76dc
commit 25619d8899
5 changed files with 40 additions and 38 deletions

View File

@@ -19,8 +19,8 @@ const service = axios.create({
// baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换 // baseURL: 'https://submission.tmrjournals.com/', //正式 记得切换
// baseURL: 'http://www.tougao.com/', //测试本地 记得切换 // baseURL: 'http://www.tougao.com/', //测试本地 记得切换
// baseURL: 'http://192.168.110.110/tougao/public/index.php/', // baseURL: 'http://192.168.110.110/tougao/public/index.php/',
// baseURL: '/api', //本地 baseURL: '/api', //本地
baseURL: '/', //正式 // baseURL: '/', //正式
}); });

View File

@@ -1961,8 +1961,8 @@ const en = {
factoryEmails: 'Sender accounts', factoryEmails: 'Sender accounts',
factoryEmailsPlaceholder: 'Select one or more sender accounts', factoryEmailsPlaceholder: 'Select one or more sender accounts',
factorySendCount: 'Send count', factorySendCount: 'Send count',
factoryMinInterval: 'Min interval', factoryMinInterval: 'Min interval(seconds)',
factoryMaxInterval: 'Max interval', factoryMaxInterval: 'Max interval(seconds)',
factoryNeedInterval: 'Please enter non-negative integer min interval and max interval', factoryNeedInterval: 'Please enter non-negative integer min interval and max interval',
factoryIntervalRangeInvalid: 'Min interval cannot be greater than max interval', factoryIntervalRangeInvalid: 'Min interval cannot be greater than max interval',
factoryType: 'Scenario', factoryType: 'Scenario',

View File

@@ -1941,8 +1941,8 @@ const zh = {
factoryEmails: '发送邮箱', factoryEmails: '发送邮箱',
factoryEmailsPlaceholder: '请选择发送账号(可多选)', factoryEmailsPlaceholder: '请选择发送账号(可多选)',
factorySendCount: '发送数量', factorySendCount: '发送数量',
factoryMinInterval: 'min_interval', factoryMinInterval: ' Min interval(seconds)',
factoryMaxInterval: 'max_interval', factoryMaxInterval: ' Max interval(seconds)',
factoryNeedInterval: '请填写非负整数的 min_interval 和 max_interval', factoryNeedInterval: '请填写非负整数的 min_interval 和 max_interval',
factoryIntervalRangeInvalid: 'min_interval 不能大于 max_interval', factoryIntervalRangeInvalid: 'min_interval 不能大于 max_interval',
factoryType: '场景类型', factoryType: '场景类型',

View File

@@ -964,10 +964,10 @@ export default {
} }
// 专刊封面:与列表回显统一前缀 public/specialIcon/ // 专刊封面:与列表回显统一前缀 public/specialIcon/
const base = String(this.iconBaseUrl || '').replace(/\/?$/, '/'); const base = String(this.iconBaseUrl || '').replace(/\/?$/, '/');
if (value.indexOf('specialIcon/') === 0 ) { if (value.indexOf('journalicon/') === 0 ) {
return base + value.replace(/^\/+/, ''); return base + value.replace(/^\/+/, '');
} }
return base + 'specialIcon/' + value.replace(/^\/+/, ''); return base + 'journalicon/' + value.replace(/^\/+/, '');
}, },
getGuestEditorAvatarUrl(item) { getGuestEditorAvatarUrl(item) {
if (!item) { if (!item) {

View File

@@ -608,10 +608,22 @@
v-model="refenceForm.content" v-model="refenceForm.content"
placeholder="" placeholder=""
></el-input> ></el-input>
<span v-if="isShowParsing" style="color: #409eff" <span v-if="refenceForm.content != old_refence_content&&SourceType != 'other'" style="color: #409eff"
>We have detected updates to the reference content. You need to click the "Automatic parsing" button to >We have detected updates to the reference content. You need to click the "Automatic parsing" button to
recognize them.</span recognize them.</span
> >
<el-button
v-if="SourceType != 'other'"
type="primary"
size="mini"
style="background-color: #409eff !important; border-color: #409eff !important; position: absolute;
right: 14px;
bottom: 1px;
cursor: pointer;"
@click="getParsingData()"
>Automatic parsing</el-button
>
</div>
<el-button <el-button
v-if="zyModeEnabled && SourceType === 'book'" v-if="zyModeEnabled && SourceType === 'book'"
type="primary" type="primary"
@@ -622,10 +634,10 @@
> >
{{ $t('commonTable.parseBookReference') }} {{ $t('commonTable.parseBookReference') }}
</el-button> </el-button>
</div>
</el-form-item>
<div v-if="!isShowParsing && isShowParsingData && SourceType != 'other'"> </el-form-item>
<!-- {{ !isShowParsing && isShowParsingData &&}} -->
<div v-if=" SourceType != 'other'">
<el-form-item style="margin: 0 0 30px"> <el-form-item style="margin: 0 0 30px">
<div class="line" style="border: 1px dashed #dcdfe6"></div> <div class="line" style="border: 1px dashed #dcdfe6"></div>
</el-form-item> </el-form-item>
@@ -754,15 +766,9 @@
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="cancelSave">Cancel</el-button> <el-button @click="cancelSave">Cancel</el-button>
<el-button
v-if="isShowParsing"
type="primary"
style="background-color: #409eff !important; border-color: #409eff !important"
@click="getParsingData()"
>Automatic parsing</el-button
>
<el-button v-else type="primary" @click="dialogTitle == 'Edit' ? saveChange() : saveAdd()">Save</el-button>
<el-button type="primary" @click="dialogTitle == 'Edit' ? saveChange() : saveAdd()">Save</el-button>
</span> </span>
</el-dialog> </el-dialog>
<!-- 复制word添加引用 --> <!-- 复制word添加引用 -->
@@ -5769,7 +5775,7 @@ export default {
this.SourceType = data.refer_type ? data.refer_type : ''; this.SourceType = data.refer_type ? data.refer_type : '';
this.refenceForm = { this.refenceForm = {
doi: '', doi: data.refer_doi ? data.refer_doi : '',
p_article_id: null, p_article_id: null,
p_refer_id: row.p_refer_id, // 当前行一行的引用序号 p_refer_id: row.p_refer_id, // 当前行一行的引用序号
pre_p_refer_id: null, // 上一行 pre_p_refer_id: null, // 上一行
@@ -5788,13 +5794,13 @@ export default {
this.old_refence_content = JSON.parse(JSON.stringify(data.deal_content)); this.old_refence_content = JSON.parse(JSON.stringify(data.deal_content));
this.old_refence_type = JSON.parse(JSON.stringify(data.refer_type)); this.old_refence_type = JSON.parse(JSON.stringify(data.refer_type));
if (this.SourceType == 'book') { if (this.SourceType == 'book') {
this.refenceForm.isbn = data.doilink ? data.doilink : ''; this.refenceForm.isbn = data.doilink || data.isbn || '';
}
if (this.SourceType == 'other' || this.role == 'user') {
this.refenceForm.doi = data.refer_doi ? data.refer_doi : '';
} else {
this.refenceForm.doi = '';
} }
// if (this.SourceType == 'other' || this.role == 'user') {
// this.refenceForm.doi = data.refer_doi ? data.refer_doi : '';
// } else {
// this.refenceForm.doi = '';
// }
//console.log('this.refenceForm at line 883:', this.refenceForm) //console.log('this.refenceForm at line 883:', this.refenceForm)
this.editboxVisible = true; this.editboxVisible = true;
@@ -6190,9 +6196,9 @@ export default {
if (this.$refs['refenceForm']) { if (this.$refs['refenceForm']) {
this.$refs['refenceForm'].clearValidate(); this.$refs['refenceForm'].clearValidate();
} }
// this.SourceType != this.old_refence_type || this.refenceForm.content != this.old_refence_content) &&
if ( if (
(this.SourceType != this.old_refence_type || this.refenceForm.content != this.old_refence_content) &&
this.SourceType != 'other' this.SourceType != 'other'
) { ) {
this.isShowParsing = true; this.isShowParsing = true;
@@ -6208,17 +6214,13 @@ export default {
handler(newVal, oldVal) { handler(newVal, oldVal) {
if (this.SourceType != 'other') { if (this.SourceType != 'other') {
if (this.dialogTitle == 'Edit') { if (this.dialogTitle == 'Edit') {
if (this.refenceForm.content != this.old_refence_content) {
this.isShowParsing = true; this.isShowParsing = true;
} else {
this.isShowParsing = false;
}
} else { } else {
if (this.refenceForm.content == '' || this.refenceForm.content != this.old_refence_content) {
this.isShowParsing = true; this.isShowParsing = true;
} else {
this.isShowParsing = false;
}
} }
} else { } else {
this.isShowParsing = false; this.isShowParsing = false;
@@ -7191,7 +7193,7 @@ export default {
.automatic-parsing-box span { .automatic-parsing-box span {
position: absolute; position: absolute;
right: 14px; right: 150px;
bottom: 1px; bottom: 1px;
cursor: pointer; cursor: pointer;
} }