tijiao
This commit is contained in:
@@ -2,26 +2,45 @@
|
||||
<div style="">
|
||||
<div style="display: flex; justify-content: space-between">
|
||||
<div style="width: 100%; min-width: 1020px; position: relative">
|
||||
<div class="step_list_new">
|
||||
<el-steps :active="0" align-center>
|
||||
<el-step
|
||||
style="cursor: pointer"
|
||||
v-for="item in listStep"
|
||||
:key="item.index"
|
||||
:class="{ C_style: show_step === item.index }"
|
||||
<div class="step_list_new" >
|
||||
<el-steps align-center >
|
||||
<!-- 状态 已完成 未完成 正在填写 -->
|
||||
<el-step @click.native="StepCode(item)"
|
||||
style="cursor: pointer; padding: 20px 0 10px"
|
||||
v-for="(item, i) in listStep"
|
||||
:key="item.index" :data-step-index="item.index"
|
||||
:class="{
|
||||
C_style: show_step === item.index,
|
||||
'step-success': stepStatus[i] && stepStatus[i].status == 1,
|
||||
'step-edit': stepStatus[i] && stepStatus[i].status == 2
|
||||
}"
|
||||
>
|
||||
<template #icon>
|
||||
<i :class="item.icon" style="font-size: 36px" @click.stop="StepCode(item)"></i>
|
||||
|
||||
<template #icon v-if="stepStatus && stepStatus.length > 0" @click.stop="StepCode(item)">
|
||||
<span v-if="stepStatus[i].status == 0"> </span>
|
||||
<span class="step_icon" v-if="stepStatus[i].status == 1">
|
||||
<i class="el-icon-check" style="font-size: 22px"></i>
|
||||
</span>
|
||||
<span class="step_icon" v-if="stepStatus[i].status == 2">
|
||||
<i class="el-icon-edit-outline" style="font-size: 22px"></i>
|
||||
</span>
|
||||
</template>
|
||||
<template #icon v-else>
|
||||
<span @click.stop="StepCode(item)"> </span>
|
||||
</template>
|
||||
<template #title>
|
||||
<span @click.stop="StepCode(item)" style="font-size: 18px">{{ item.title }}</span>
|
||||
<div style="" class="step_title" @click.stop="StepCode(item)">
|
||||
<div style="">
|
||||
<i :class="item.icon" style="font-size: 22px; margin-right: 4px"></i>
|
||||
<span style="font-size: 17px">{{ item.title }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-step>
|
||||
</el-steps>
|
||||
</div>
|
||||
|
||||
|
||||
<ProgressBar :progress="uploadPercentage" v-if="isShowProgress" />
|
||||
<!-- <ProgressBar :progress="uploadPercentage" v-if="isShowProgress" /> -->
|
||||
<div class="manu_add" style="width: calc(100% - 20px)" v-loading="loading">
|
||||
<el-form ref="articleform" :model="form" :rules="rules" label-width="120px">
|
||||
<div class="bag_color" v-if="show_step == 1">
|
||||
@@ -47,7 +66,8 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="Manuscirpt :" prop="manuscirpt" label-width="120px">
|
||||
<el-upload :on-progress="handleProgress"
|
||||
<el-upload
|
||||
:on-progress="handleProgress"
|
||||
ref="uploadFileManuscirpt"
|
||||
class="upload-demo up_newstyle"
|
||||
:action="upload_manuscirpt"
|
||||
@@ -121,7 +141,7 @@
|
||||
label="Explain the reason clearly :"
|
||||
prop="approval_content"
|
||||
v-if="form.approval === 0"
|
||||
label-width="300px"
|
||||
label-width="290px"
|
||||
>
|
||||
<el-input type="textarea" rows="2" v-model="form.approval_content"></el-input>
|
||||
</el-form-item>
|
||||
@@ -136,14 +156,22 @@
|
||||
:props="topicsProps"
|
||||
clearable></el-cascader>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="Research areas :" prop="major" label-width="120px">
|
||||
<template slot="label">
|
||||
<span style="color: #f56c6c; margin-right: 4px">*</span>Research area :
|
||||
</template>
|
||||
<common-major-list :list="majorValueList" @load="(e) => (this.majorValueList = e)"></common-major-list>
|
||||
</el-form-item>
|
||||
<el-form-item label="Key words :">
|
||||
<el-input
|
||||
v-for="(item, index) in keywordsList"
|
||||
:key="index"
|
||||
:name="index + 1"
|
||||
v-model="item.ke"
|
||||
clearable
|
||||
style="width: 150px; margin-right: 15px; margin-bottom: 3px"
|
||||
></el-input>
|
||||
>
|
||||
</el-input>
|
||||
<el-button type="text" @click="addfund">
|
||||
<i class="el-icon-circle-plus-outline">Add</i>
|
||||
</el-button>
|
||||
@@ -258,16 +286,16 @@
|
||||
<p style="text-align: right; margin-bottom: 10px; border-bottom: 1px solid #dae8f7">
|
||||
<span style="float: left; margin-top: 5px">Author {{ index + 1 }}</span>
|
||||
<el-button @click="editAuthor(item, index)" type="text">
|
||||
<i class="el-icon-edit" style="font-weight: bold"></i>
|
||||
<i class="el-icon-edit" style="font-weight: bold;font-size: 14px"></i>
|
||||
</el-button>
|
||||
<el-button type="text" @click="gaPaiXu(item, 'top')" v-if="index != 0">
|
||||
<i class="el-icon-top" style="font-weight: bold"></i>
|
||||
<i class="el-icon-top" style="font-weight: bold;font-size: 14px"></i>
|
||||
</el-button>
|
||||
<el-button type="text" @click="gaPaiXu(item, 'bot')" v-if="index != form.authorList.length - 1">
|
||||
<i class="el-icon-bottom" style="font-weight: bold"></i>
|
||||
<i class="el-icon-bottom" style="font-weight: bold;font-size: 14px"></i>
|
||||
</el-button>
|
||||
<el-button @click="deleteAuthor(item, index)" type="text" class="Del_btn">
|
||||
<i class="el-icon-delete" style="font-weight: bold"></i>
|
||||
<i class="el-icon-delete" style="font-weight: bold;font-size: 14px"></i>
|
||||
</el-button>
|
||||
</p>
|
||||
<p style="font-weight: bold; margin-bottom: 10px">
|
||||
@@ -400,7 +428,7 @@
|
||||
<div class="el-upload__tip" slot="tip">Only word files can be uploaded(.doc,.docx)</div>
|
||||
</el-upload>
|
||||
</el-form-item> -->
|
||||
|
||||
|
||||
<el-form-item label="Supplementary Material :" label-width="200px">
|
||||
<el-upload
|
||||
class="upload-demo up_newstyle"
|
||||
@@ -441,9 +469,6 @@
|
||||
<!-- 提交 submit -->
|
||||
<div class="bag_color" v-if="show_step == 4">
|
||||
<div>
|
||||
<el-form-item label="Research areas :" prop="major" label-width="160px">
|
||||
<common-major-list :list="majorValueList" @load="(e) => (this.majorValueList = e)"></common-major-list>
|
||||
</el-form-item>
|
||||
<h3>Co-submitting</h3>
|
||||
<p style="line-height: 25px; margin: 0 10px 0 55px; font-size: 14px">
|
||||
TMR Publishing Group publishes multiple journals and offers you the opportunity to co-submit your paper.
|
||||
@@ -477,7 +502,7 @@
|
||||
</el-checkbox>
|
||||
</el-checkbox-group>
|
||||
</el-form-item>
|
||||
<p style="line-height: 25px; margin: 50px 10px 0 55px; font-size: 14px" v-if="checkReviewerof == 0">
|
||||
<p style="line-height: 25px; margin: 30px 10px 0 55px; font-size: 14px" v-if="checkReviewerof == 0">
|
||||
Would you be interested in serving as a reviewer for this journal?
|
||||
<br /><br />
|
||||
<el-switch
|
||||
@@ -648,7 +673,6 @@
|
||||
investigation in line with our misconduct policy.
|
||||
</p>
|
||||
|
||||
|
||||
<div style="margin: 30px 0 30px 0px">
|
||||
<el-form-item label-width="180px">
|
||||
<span slot="label">
|
||||
@@ -692,7 +716,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="Figure Copyright Declaration :" label-width="220px" prop="qualification">
|
||||
<div style="color: #333">
|
||||
<el-radio v-model="form.qualification" label="1"
|
||||
<el-radio v-model="form.qualification" label="1" style="width: 100%"
|
||||
>I confirm that all figures in this manuscript are original.</el-radio
|
||||
>
|
||||
<el-radio v-model="form.qualification" label="2"
|
||||
@@ -704,19 +728,19 @@
|
||||
<el-upload
|
||||
ref="uploadFile"
|
||||
class="upload-demo up_newstyle"
|
||||
:action="upload_articleApproval"
|
||||
accept=".pdf"
|
||||
name="articleApproval"
|
||||
:before-upload="beforeupload_articleApproval"
|
||||
:action="upload_articleCopyright"
|
||||
accept=".pdf,.rar,.zip"
|
||||
name="articleCopyright"
|
||||
:before-upload="beforeupload_articleCopyright"
|
||||
:on-error="uperr_coverLetter"
|
||||
:on-success="upSuccess_articleApproval"
|
||||
:on-success="upSuccess_articleCopyright"
|
||||
:limit="1"
|
||||
:on-exceed="alertlimit"
|
||||
:on-remove="removefilearticleApproval"
|
||||
:file-list="fileL_articleApproval"
|
||||
:on-remove="removefilearticleCopyright"
|
||||
:file-list="fileL_articleCopyright"
|
||||
:on-preview="dowloadFile"
|
||||
>
|
||||
<div class="el-upload__text" @click="clearUploadedFile">
|
||||
<div class="el-upload__text" @click="clearUploadedCopyrightFile">
|
||||
<em>Upload</em>
|
||||
</div>
|
||||
<div class="el-upload__tip" slot="tip" style="color: #888; left: 80px; font-size: 13px">
|
||||
@@ -763,7 +787,7 @@
|
||||
style="
|
||||
padding: 0;
|
||||
background: none;
|
||||
margin-top: 30px;
|
||||
margin-top: 20px;
|
||||
line-height: 20px;
|
||||
color: #999;
|
||||
left: 990px;
|
||||
@@ -798,10 +822,9 @@
|
||||
attention.
|
||||
</p>
|
||||
<common-word-html
|
||||
|
||||
:articleId="stagingID"
|
||||
imgHeight="120px"
|
||||
v-if="isShowCommonWord&&stagingID"
|
||||
v-if="isShowCommonWord && stagingID"
|
||||
style="margin-top: 10px; box-sizing: border-box; background-color: #fff"
|
||||
></common-word-html>
|
||||
</div>
|
||||
@@ -946,27 +969,33 @@
|
||||
<script>
|
||||
import JournalSelector from '@/components/page/components/article/journal-selector.vue';
|
||||
import ProgressBar from '@/components/page/components/article/progress.vue';
|
||||
import updateStepStatus from '@/components/page/components/article/checkStepCompletion.js';
|
||||
import deepEqual from '@/components/page/components/article/deepEqual.js';
|
||||
import { set } from 'vue';
|
||||
export default {
|
||||
components: {
|
||||
JournalSelector,
|
||||
ProgressBar
|
||||
},
|
||||
data() {
|
||||
// 自定义校验:禁止QQ邮箱
|
||||
const validateNotQQEmail = (rule, value, callback) => {
|
||||
// 正则匹配QQ邮箱(以@qq.com结尾,不区分大小写)
|
||||
const qqEmailReg = /@qq\.com$/i;
|
||||
if (value) { // 若有值(必填校验已通过),则检查是否为QQ邮箱
|
||||
if (qqEmailReg.test(value)) {
|
||||
callback(new Error('QQ email is not allowed')); // 不允许QQ邮箱
|
||||
} else {
|
||||
callback(); // 校验通过
|
||||
}
|
||||
} else {
|
||||
callback(); // 空值由必填校验处理,这里不重复判断
|
||||
}
|
||||
};
|
||||
// 自定义校验:禁止QQ邮箱
|
||||
const validateNotQQEmail = (rule, value, callback) => {
|
||||
// 正则匹配QQ邮箱(以@qq.com结尾,不区分大小写)
|
||||
const qqEmailReg = /@qq\.com$/i;
|
||||
if (value) {
|
||||
// 若有值(必填校验已通过),则检查是否为QQ邮箱
|
||||
if (qqEmailReg.test(value)) {
|
||||
callback(new Error('QQ email is not allowed')); // 不允许QQ邮箱
|
||||
} else {
|
||||
callback(); // 校验通过
|
||||
}
|
||||
} else {
|
||||
callback(); // 空值由必填校验处理,这里不重复判断
|
||||
}
|
||||
};
|
||||
return {
|
||||
formList: [],
|
||||
stepStatus: [],
|
||||
isShowProgress: false,
|
||||
hasAIContent: ['1'],
|
||||
isHasAI: '0',
|
||||
@@ -1080,8 +1109,7 @@ export default {
|
||||
department: '',
|
||||
affiliation: '',
|
||||
major_all: ''
|
||||
},
|
||||
|
||||
}
|
||||
],
|
||||
countrys: [],
|
||||
fileL_articleApproval: [],
|
||||
@@ -1104,9 +1132,9 @@ export default {
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
validator: validateNotQQEmail, // 绑定自定义校验
|
||||
trigger: 'blur'
|
||||
}
|
||||
validator: validateNotQQEmail, // 绑定自定义校验
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
department: [
|
||||
{
|
||||
@@ -1395,9 +1423,7 @@ export default {
|
||||
immediate: true
|
||||
},
|
||||
form: {
|
||||
handler(e) {
|
||||
// console.log(e)
|
||||
},
|
||||
handler(e) {},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
@@ -1421,6 +1447,10 @@ export default {
|
||||
upload_articleApproval: function () {
|
||||
return this.baseUrl + 'api/Article/up_approval_file';
|
||||
},
|
||||
//图片版权
|
||||
upload_articleCopyright: function () {
|
||||
return this.baseUrl + 'api/Article/up_approval_file';
|
||||
},
|
||||
upload_coverLetter: function () {
|
||||
return this.baseUrl + 'api/Article/up_file/type/coverLetter';
|
||||
},
|
||||
@@ -1441,6 +1471,30 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleStepClick(e) {
|
||||
console.log('e at line 1469:', e)
|
||||
// 通过事件源找到点击的步骤项
|
||||
const stepEl = e.target.closest('.el-step');
|
||||
if (stepEl) {
|
||||
// 获取步骤标识(item.index)
|
||||
const stepIndex = stepEl.getAttribute('data-step-index');
|
||||
// 找到对应的item
|
||||
const item = this.listStep.find(item => item.index === stepIndex);
|
||||
if (item) {
|
||||
this.StepCode(item); // 调用原逻辑
|
||||
}
|
||||
}
|
||||
},
|
||||
async initStepStatus() {
|
||||
this.stepStatus = [];
|
||||
const step1Incomplete = await updateStepStatus({ ...this.form, majorValueList: this.majorValueList });
|
||||
console.log('step1Incomplete at line 1412:', step1Incomplete);
|
||||
this.$nextTick(() => {
|
||||
this.stepStatus = step1Incomplete;
|
||||
});
|
||||
|
||||
this.$forceUpdate();
|
||||
},
|
||||
// 提交前校验所有评审人表单
|
||||
async validateAllReviewers() {
|
||||
// 遍历所有表单实例
|
||||
@@ -1705,6 +1759,18 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
this.$api
|
||||
.post('api/Reviewer/getAllMajor')
|
||||
.then((res) => {
|
||||
this.jl_major = res.data.majors;
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
this.$api.post('api/Major/getMajorList').then((res) => {
|
||||
console.log(res, 99);
|
||||
this.step4MajorList = res.data.majors;
|
||||
});
|
||||
this.$api.post('api/Admin/getCountrys').then((res) => {
|
||||
this.countrys = res;
|
||||
});
|
||||
@@ -1727,19 +1793,8 @@ export default {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.$api
|
||||
.post('api/Reviewer/getAllMajor')
|
||||
.then((res) => {
|
||||
this.jl_major = res.data.majors;
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
|
||||
this.checkReviewer();
|
||||
this.$api.post('api/Major/getMajorList').then((res) => {
|
||||
console.log(res, 99);
|
||||
this.step4MajorList = res.data.majors;
|
||||
});
|
||||
},
|
||||
|
||||
// 邮箱用户模糊搜索
|
||||
@@ -1816,7 +1871,7 @@ export default {
|
||||
},
|
||||
|
||||
// 选择推荐作者
|
||||
checkAuthor(value, num) {
|
||||
async checkAuthor(value, num) {
|
||||
console.log('🚀 ~ checkAuthor ~ value:', value);
|
||||
var isHaveAuthor = this.form.authorList.findIndex((e) => {
|
||||
if (e.email == value.email) {
|
||||
@@ -1857,8 +1912,9 @@ export default {
|
||||
value.load = false;
|
||||
value.sort = num;
|
||||
value.article_id = this.stagingID;
|
||||
this.$api.post('api/Article/addAuthor', value).then((res) => {
|
||||
this.TempoAuthor();
|
||||
await this.$api.post('api/Article/addAuthor', value).then(async (res) => {
|
||||
await this.TempoAuthor();
|
||||
|
||||
this.$message.success('Added successfully');
|
||||
});
|
||||
},
|
||||
@@ -2213,6 +2269,10 @@ export default {
|
||||
// }
|
||||
// return ismau;
|
||||
},
|
||||
beforeupload_articleCopyright(file) {
|
||||
|
||||
},
|
||||
|
||||
beforeupload_coverLetter(file) {
|
||||
// const isWORd =
|
||||
// file.type === 'application/msword' ||
|
||||
@@ -2288,6 +2348,18 @@ export default {
|
||||
}
|
||||
console.log(this.form);
|
||||
},
|
||||
//图片版权
|
||||
upSuccess_articleCopyright(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;
|
||||
@@ -2317,15 +2389,13 @@ export default {
|
||||
this.$message.error('service error:' + res.msg);
|
||||
}
|
||||
},
|
||||
// 进度回调:实时获取进度
|
||||
handleProgress(event, file, fileList) {
|
||||
this.isShowProgress=true
|
||||
|
||||
// event.percentage 就是当前进度(百分比,浮点数)
|
||||
this.uploadPercentage = Math.round(event.percent); // 取整数
|
||||
|
||||
|
||||
},
|
||||
// 进度回调:实时获取进度
|
||||
handleProgress(event, file, fileList) {
|
||||
this.isShowProgress = true;
|
||||
|
||||
// event.percentage 就是当前进度(百分比,浮点数)
|
||||
this.uploadPercentage = Math.round(event.percent); // 取整数
|
||||
},
|
||||
addWordTablesList(tables) {
|
||||
var data = {
|
||||
article_id: this.stagingID,
|
||||
@@ -2339,20 +2409,18 @@ export default {
|
||||
this.$api.post('api/Article/addArticleTable', data).then((res) => {
|
||||
this.isShowCommonWord = true;
|
||||
setTimeout(() => {
|
||||
this.isShowProgress=false;
|
||||
},500)
|
||||
this.isShowProgress = false;
|
||||
}, 500);
|
||||
});
|
||||
},
|
||||
upLoadWordTables() {},
|
||||
upSuccess_manuscirpt(res, File) {
|
||||
// console.log('file at line 2174:', file.raw)
|
||||
if (File) {
|
||||
|
||||
var that = this;
|
||||
const reader = new FileReader();
|
||||
reader.onload = function (e) {
|
||||
that.$commonJS.extractWordTablesToArrays(File.raw, function (wordTables) {
|
||||
|
||||
that.addWordTablesList(wordTables);
|
||||
});
|
||||
};
|
||||
@@ -2384,6 +2452,9 @@ export default {
|
||||
clearUploadedFile() {
|
||||
this.$refs['uploadFile'].clearFiles();
|
||||
},
|
||||
clearUploadedCopyrightFile() {
|
||||
this.$refs['articleCopyright'].clearFiles();
|
||||
},
|
||||
//超出传送文件个数限制
|
||||
alertlimit() {
|
||||
this.$message.error('The maximum number of uploaded files has been exceeded');
|
||||
@@ -2393,6 +2464,10 @@ export default {
|
||||
this.form.approval_file = '';
|
||||
this.fileL_articleApproval = [];
|
||||
},
|
||||
removefilearticleCopyright(file, fileList) {
|
||||
this.form.copyright_file = '';
|
||||
this.fileL_articleCopyright = [];
|
||||
},
|
||||
removefilecoverLetter(file, fileList) {
|
||||
this.form.coverLetter = '';
|
||||
this.fileL_coverLetter = [];
|
||||
@@ -2604,6 +2679,7 @@ export default {
|
||||
} else if (this.move_step < e) {
|
||||
this.$refs.articleform.validate((valid) => {
|
||||
if (valid) {
|
||||
// deepEqual(this.form, this.oldForm);
|
||||
if (this.move_step == 1) {
|
||||
//暂时注销 start
|
||||
// var flist = this.keywordsList;
|
||||
@@ -2618,15 +2694,16 @@ export default {
|
||||
// if (res.code == 0) {
|
||||
// this.stagingID = res.data.article_id;
|
||||
// this.form.article_id = res.data.article_id;
|
||||
// this.$message.success('Saving succeeded!');
|
||||
|
||||
// this.$message.success('Saving succeeded!');
|
||||
//暂时注销 End
|
||||
this.move_step = 2; //进行步骤
|
||||
this.show_step = 2; //显示内容
|
||||
|
||||
//暂时注销 start
|
||||
// } else {
|
||||
// this.$message.error(res.msg);
|
||||
// }
|
||||
// } else {
|
||||
// // this.$message.error(res.msg);
|
||||
// }
|
||||
|
||||
// });
|
||||
//暂时注销 End
|
||||
@@ -2692,15 +2769,10 @@ export default {
|
||||
|
||||
// 点击进行下一步
|
||||
onStep(e) {
|
||||
console.log('this.majorValueList at line 2604:', this.majorValueList);
|
||||
console.log('this.form at line 2622:', this.form.abstrart);
|
||||
|
||||
|
||||
this.$refs.articleform.validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.isAbstractTooShort(this.form.abstrart)) {
|
||||
this.$message.error('The abstract should not be less than 200 Chinese characters or English words!');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.form.is_use_ai == 1 && this.form.use_ai_explain == '') {
|
||||
this.$message.error('Please describe how artificial intelligence is utilized in this article');
|
||||
return false;
|
||||
@@ -2710,13 +2782,7 @@ export default {
|
||||
this.$message.error('Please select the Journal');
|
||||
return false;
|
||||
}
|
||||
// this.onStaging(1)
|
||||
// setTimeout(() => {
|
||||
// console.log('456')
|
||||
// this.move_step = 2 //进行步骤
|
||||
// this.show_step = 2 //显示内容
|
||||
// }, 1000);
|
||||
|
||||
|
||||
var flist = this.keywordsList;
|
||||
var fstr = '';
|
||||
for (var fu in flist) {
|
||||
@@ -2730,10 +2796,7 @@ export default {
|
||||
this.form.major = this.majorValueList
|
||||
.map((item) => (item.selectedValue.length > 0 ? item.selectedValue[item.selectedValue.length - 1] : []))
|
||||
.toString(',');
|
||||
// if (this.form.major == '') {
|
||||
// this.$message.error('Please select the Research areas');
|
||||
// return false;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
this.$api.post('api/Article/addArticlePart1', this.form).then((res) => {
|
||||
@@ -2743,6 +2806,7 @@ export default {
|
||||
this.$message.success('Saving succeeded!');
|
||||
this.move_step = 2; //进行步骤
|
||||
this.show_step = 2; //显示内容
|
||||
this.initStepStatus();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
@@ -2819,6 +2883,16 @@ export default {
|
||||
this.$message.error('Please select the Journal');
|
||||
return false;
|
||||
}
|
||||
//标题
|
||||
// if(!this.form.type) {
|
||||
// this.$message.error('Please select type');
|
||||
// return false;
|
||||
// }
|
||||
if(!this.form.title) {
|
||||
this.$message.error('Please enter a title');
|
||||
return false;
|
||||
}
|
||||
|
||||
var flist = this.keywordsList;
|
||||
var fstr = '';
|
||||
for (var fu in flist) {
|
||||
@@ -2826,7 +2900,6 @@ export default {
|
||||
fstr += flist[fu].ke.trim() + ',';
|
||||
}
|
||||
}
|
||||
console.log('this.form at line 2707:', this.form.abstrart);
|
||||
this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1);
|
||||
this.form.major = this.majorValueList.map((item) => item.selectedValue[item.selectedValue.length - 1]).toString(',');
|
||||
|
||||
@@ -2842,6 +2915,7 @@ export default {
|
||||
if (res.code == 0) {
|
||||
this.stagingID = res.data.article_id;
|
||||
this.form.article_id = res.data.article_id;
|
||||
this.initStepStatus();
|
||||
this.$message.success('Saving succeeded!');
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
@@ -2927,7 +3001,7 @@ export default {
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.form.manuscirptId = res.data.file_id;
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
// that.getWordTablesList();
|
||||
// that.getWordimgList();
|
||||
@@ -2985,12 +3059,12 @@ export default {
|
||||
}
|
||||
},
|
||||
// 读取
|
||||
Temporary() {
|
||||
async Temporary() {
|
||||
this.$api
|
||||
.post('api/Article/getSaveArticleDetail', {
|
||||
article_id: this.stagingID
|
||||
})
|
||||
.then((res) => {
|
||||
.then(async (res) => {
|
||||
console.log(res, '已经保存的值');
|
||||
if (res.code == 0) {
|
||||
// 基本信息
|
||||
@@ -3041,21 +3115,22 @@ export default {
|
||||
}
|
||||
this.showFiles();
|
||||
}
|
||||
// await this.initStepStatus();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
});
|
||||
|
||||
this.TempoAuthor();
|
||||
await this.TempoAuthor();
|
||||
},
|
||||
|
||||
// 读取作者
|
||||
TempoAuthor() {
|
||||
async TempoAuthor() {
|
||||
this.$api
|
||||
.post('api/Article/getAuthors', {
|
||||
article_id: this.stagingID
|
||||
})
|
||||
.then((res) => {
|
||||
.then(async(res) => {
|
||||
if (res.code == 0) {
|
||||
// 作者
|
||||
if (res.data.authors.length > 0) {
|
||||
@@ -3078,9 +3153,11 @@ export default {
|
||||
} else {
|
||||
this.form.authorList = [];
|
||||
}
|
||||
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
await this.initStepStatus();
|
||||
});
|
||||
},
|
||||
|
||||
@@ -3116,23 +3193,23 @@ export default {
|
||||
.formTopics {
|
||||
width: 100%;
|
||||
}
|
||||
/* f8fbff */
|
||||
.step_list_new {
|
||||
background-color: #f8fbff;
|
||||
box-shadow: 2px 30px 15px -20px #ebf5ff inset;
|
||||
padding-top: 26px;
|
||||
padding-bottom: 10px;
|
||||
background-color: #f8f8f8;
|
||||
box-shadow: 2px 30px 15px -20px #eee inset;
|
||||
border-top-left-radius: 10px;
|
||||
border-top-right-radius: 10px;
|
||||
width: calc(100% - 20px);
|
||||
/* margin-bottom: 10px; */
|
||||
margin-top: 20px;
|
||||
}
|
||||
::v-deep .step_list_new .el-step__icon.is-text {
|
||||
border-radius: 0 !important;
|
||||
border: none !important;
|
||||
border: 3px solid !important;
|
||||
}
|
||||
::v-deep .step_list_new .el-step__icon {
|
||||
background: transparent !important;
|
||||
width: 34px !important;
|
||||
height: 34px !important;
|
||||
line-height: 34px !important;
|
||||
font-size: 18px !important;
|
||||
}
|
||||
::v-deep .step_list_new .el-step__head.is-process {
|
||||
color: #006699 !important;
|
||||
@@ -3143,14 +3220,58 @@ export default {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
::v-deep .step_list_new .el-step.is-center .el-step__line {
|
||||
left: 58% !important;
|
||||
left: 57% !important;
|
||||
right: -43% !important;
|
||||
z-index: 2 !important;
|
||||
}
|
||||
.manu_add h3 {
|
||||
font-size: 16px;
|
||||
/* margin-bottom: 15px; */
|
||||
margin-top: 0px;
|
||||
}
|
||||
::v-deep .step-success .el-step__head {
|
||||
color: #67c23a !important;
|
||||
border-color: #67c23a !important;
|
||||
}
|
||||
::v-deep .step-edit .el-step__head {
|
||||
color: #006699 !important;
|
||||
border-color: #006699 !important;
|
||||
}
|
||||
::v-deep .step-success .step_title {
|
||||
color: #67c23a !important;
|
||||
border-color: #67c23a !important;
|
||||
}
|
||||
::v-deep .step-edit .step_title {
|
||||
color: #006699 !important;
|
||||
border-color: #006699 !important;
|
||||
}
|
||||
::v-deep .el-step.is-horizontal .el-step__line {
|
||||
top: 18px !important;
|
||||
}
|
||||
::v-deep .step_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
::v-deep .step_title > div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: auto;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.step_icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.step_icon i {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.step_list_new .C_style {
|
||||
background-color: #f8fbff !important;
|
||||
-webkit-box-shadow: 2px 30px 15px -20px #ebf5ff inset !important;
|
||||
box-shadow: 2px 30px 15px -20px #ebf5ff inset !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
@@ -3269,15 +3390,14 @@ export default {
|
||||
|
||||
.manu_add .bag_color {
|
||||
border-top: 1px solid #88888830;
|
||||
padding-top: 15px;
|
||||
padding-top: 30px;
|
||||
background-color: #fff;
|
||||
/* box-shadow: 2px 30px 15px -20px #ebf5ff inset; */
|
||||
|
||||
}
|
||||
|
||||
.manu_add .bag_color > div {
|
||||
padding: 0px 15px;
|
||||
/* background-color: #fff; */
|
||||
/* box-shadow: 2px -30px 15px -20px #ebf5ff inset; */
|
||||
|
||||
}
|
||||
|
||||
.manu_add .pro_ceed {
|
||||
@@ -3340,8 +3460,8 @@ export default {
|
||||
}
|
||||
|
||||
.step_list > div.C_style {
|
||||
background-color: #f8fbff;
|
||||
box-shadow: 2px 30px 15px -20px #ebf5ff inset;
|
||||
background-color: #f8fbff !important;
|
||||
box-shadow: 2px 30px 15px -20px #ebf5ff inset !important;
|
||||
}
|
||||
|
||||
.step_list > div.C_style > div {
|
||||
|
||||
Reference in New Issue
Block a user