diff --git a/src/components/page/articleAdd.vue b/src/components/page/articleAdd.vue
index 34c25d4..9a53cb1 100644
--- a/src/components/page/articleAdd.vue
+++ b/src/components/page/articleAdd.vue
@@ -56,8 +56,9 @@
>
-
-
+ this.majorValueList=e">
+
@@ -966,6 +967,7 @@
export default {
data() {
return {
+ majorValueList:[],
baseUrl: this.Common.baseUrl,
usercap: localStorage.getItem('U_role'),
ms_alias: localStorage.getItem('ms_journal_alias'),
@@ -1194,11 +1196,21 @@ export default {
}
],
major: [
- {
- required: true,
- message: 'Please select major',
- trigger: 'blur'
- }
+ {
+ required: true,
+ validator: (rule, value, callback) => {
+ console.log('value at line 1202:', this.form);
+ var major=this.majorValueList.map(item => item.selectedValue[item.selectedValue.length - 1]).toString(',')
+ if (major=='') {
+ callback(new Error('Please select the Research areas'));
+ } else {
+ callback();
+ }
+ // 如果你需要在此处使用 this 访问 Vue 实例的数据,使用箭头函数保持上下文
+ // 其他逻辑
+ }
+}
+
],
abstrart: [
{
@@ -2598,7 +2610,11 @@ export default {
},
// 点击进行下一步
- onStep(e) {
+ onStep(e) {
+
+ console.log('this.majorValueList at line 2604:', this.majorValueList)
+ console.log('this.form at line 2622:', this.form)
+
this.$refs.articleform.validate((valid) => {
if (valid) {
if (e == 1) {
@@ -2617,7 +2633,13 @@ export default {
}
}
this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1);
+ this.form.major=this.majorValueList.map(item => 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) => {
+
if (res.code == 0) {
this.stagingID = res.data.article_id;
this.form.article_id = res.data.article_id;
@@ -2702,8 +2724,15 @@ export default {
fstr += flist[fu].ke.trim() + ',';
}
}
+ console.log('this.form at line 2707:', this.form)
this.form.keyWords = fstr == '' ? '' : fstr.substring(0, fstr.length - 1);
+ this.form.major=this.majorValueList.map(item => 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) => {
+
if (res.code == 0) {
this.stagingID = res.data.article_id;
this.form.article_id = res.data.article_id;
@@ -2840,44 +2869,48 @@ export default {
console.log(res.data.base);
// this.form.topics = res.data.base.topics
// 领域
- this.$api
- .post('api/Major/getMajorForAddArticle', {
- journal_id: this.form.journal,
- major_id: 1
- })
- .then((res) => {
- this.majors_a = res.data.majors;
- });
- this.form.major_a = res.data.major.major_id;
- this.$api
- .post('api/Major/getMajorForAddArticle', {
- journal_id: this.form.journal,
- major_id: this.form.major_a
- })
- .then((ref) => {
- this.majors_b = ref.data.majors;
- this.majors_c = [];
- this.form.major_b = '';
- this.form.major_c = '';
- this.majorChange_panduan();
- if (res.data.major.child != undefined) {
- this.form.major_b = res.data.major.child.major_id;
- this.$api
- .post('api/Major/getMajorForAddArticle', {
- journal_id: this.form.journal,
- major_id: this.form.major_b
- })
- .then((ref) => {
- this.majors_c = ref.data.majors;
- this.form.major_c = '';
- this.majorChange_panduan();
- if (res.data.major.child.child != undefined) {
- this.form.major_c = res.data.major.child.child.major_id;
- this.majorChange_panduan();
- }
- });
- }
- });
+ this.majorValueList = res.data.majors.map(item => ({
+
+ selectedValue: Array.isArray(item.major) ? item.major : (typeof item.major === 'string' ? item.major.split(',').map(Number) : [item.major])
+})); console.log('this.majorValueList at line 2853:', this.majorValueList)
+ // this.$api
+ // .post('api/Major/getMajorForAddArticle', {
+ // journal_id: this.form.journal,
+ // major_id: 1
+ // })
+ // .then((res) => {
+ // this.majors_a = res.data.majors;
+ // });
+ // this.form.major_a = res.data.major.major_id;
+ // this.$api
+ // .post('api/Major/getMajorForAddArticle', {
+ // journal_id: this.form.journal,
+ // major_id: this.form.major_a
+ // })
+ // .then((ref) => {
+ // this.majors_b = ref.data.majors;
+ // this.majors_c = [];
+ // this.form.major_b = '';
+ // this.form.major_c = '';
+ // this.majorChange_panduan();
+ // if (res.data.major.child != undefined) {
+ // this.form.major_b = res.data.major.child.major_id;
+ // this.$api
+ // .post('api/Major/getMajorForAddArticle', {
+ // journal_id: this.form.journal,
+ // major_id: this.form.major_b
+ // })
+ // .then((ref) => {
+ // this.majors_c = ref.data.majors;
+ // this.form.major_c = '';
+ // this.majorChange_panduan();
+ // if (res.data.major.child.child != undefined) {
+ // this.form.major_c = res.data.major.child.child.major_id;
+ // this.majorChange_panduan();
+ // }
+ // });
+ // }
+ // });
// 关键词
let keyList = res.data.base.keywords.split(',');
this.keywordsList = [];
diff --git a/src/components/page/articleDetailEditor.vue b/src/components/page/articleDetailEditor.vue
index 1242a44..fb1095e 100644
--- a/src/components/page/articleDetailEditor.vue
+++ b/src/components/page/articleDetailEditor.vue
@@ -57,7 +57,42 @@
Special Issues :{{ form.special_title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Field {{ i + 1 }}:{{ v.str
+ }}
+
+
+
+
+
+
+
@@ -108,6 +143,7 @@
+
@@ -126,6 +162,7 @@
+
-
+
+
@@ -626,6 +659,7 @@ export default {
ad_content: ''
},
talkMsgs: [],
+ majorsList: [],
opname: '', // 稿件详细类型
editorJournalList: [], // 编辑期刊列表
resubmitJournal: {
@@ -805,7 +839,7 @@ export default {
});
},
openDrawer(data, url) {
- console.log('url at line 799:',data, url)
+ console.log('url at line 799:', data, url);
this.previewData = {
...data,
previewUrl: url,
@@ -899,7 +933,29 @@ export default {
return { status: status, msg: msg };
},
-
+ handleDeleteMajor(v) {
+ console.log('v at line 925:', v);
+ this.$confirm('Are you sure you want to delete this Field ?', 'Tip', {
+ type: 'warning'
+ })
+ .then(() => {
+ this.$api
+ .post('api/Major/delMajorByArticleIdForEditor', {
+ mta_id: v.mta_id
+ })
+ .then((res) => {
+ if (res.code == 0) {
+ this.initMajor();
+ } else {
+ this.$message.error(res.msg);
+ }
+ })
+ .catch((err) => {
+ this.$message.error(err);
+ });
+ })
+ .catch(() => {});
+ },
//修改文章状态
async saveEdit() {
if (this.form.state == 0) {
@@ -948,7 +1004,16 @@ export default {
this.$router.go(0);
});
},
-
+ initMajor() {
+ this.$api
+ .post('api/Major/getMajorByArticleId', {
+ article_id: this.editform.articleId
+ })
+ .then((res) => {
+ console.log('res at line 978:', res);
+ this.majorsList = res.data.majors;
+ });
+ },
//初始化期刊信息
initarticle() {
this.now_year = new Date().getFullYear();
@@ -957,7 +1022,9 @@ export default {
articleId: this.editform.articleId,
human: 'editor'
})
+
.then((res) => {
+ this.initMajor();
this.form.username = res.article.account;
this.form.title = res.article.title;
this.form.journal = res.article.journal_id;
diff --git a/src/components/page/articleProcess.vue b/src/components/page/articleProcess.vue
index 12e5de8..ff88e50 100644
--- a/src/components/page/articleProcess.vue
+++ b/src/components/page/articleProcess.vue
@@ -1,90 +1,108 @@
-
-
-
-
-
-
- Manuscript list
-
- >> Manuscript process
-
-
-
-
-
ID : {{artMes.accept_sn}}
-
-
- {{artMes.title}}
-
-
-
- Status : {{statetostr(artMes.laststate)}}
- Journal : {{artMes.journalname}}
-
-
-
-
+
+
+
+
+
+
+ Manuscript list
+
+ >> Manuscript process
+
+
+
+
+
ID : {{ artMes.accept_sn }}
+
+
+ {{ artMes.title }}
+
+
+
+ Status : {{ statetostr(artMes.laststate) }} Journal : {{ artMes.journalname }}
+
+
+
Research areas
-
-
Manuscript
- Tracking
-
+
Manuscript Tracking
+
-
-
-
-
-
- {{ statetostr(item.state_to) }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- :
-
- Upload
- Major Revision
-
-
- Upload Major Revision (Completed)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ :
+
+ Upload Major Revision
+
+
+ Upload Major Revision (Completed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- Communication
-
-
-
-
- Editor :
-
-
- {{ item.ad_content }}
-
-
{{formatDate(item.ad_ctime)}}
-
-
-
- Author :
-
-
- {{ item.ad_content }}
-
-
{{formatDate(item.ad_ctime)}}
-
-
+
+
+
Communication
+
+
+
Editor :
+
+ {{ item.ad_content }}
+
+
{{ formatDate(item.ad_ctime) }}
+
+
+
Author :
+
+ {{ item.ad_content }}
+
+
{{ formatDate(item.ad_ctime) }}
+
+
-
-
- We encourage authors to upload a Cover Letter file and make sure the Highlights part in the main
- manuscript is
- after the abstract and keywords. That will help authors let editors quickly obtain information
- and evaluate the
- scientific value of their research correctly.
-
Please remind our editor in the cover letter if you want your manuscript processed quickly.
-
Please note that manuscripts with at least one of the following characteristics will be
- included in the
- journal's manuscript fast track:
-
- 1.Interest: This manuscript has a novel perspective.
-
- 2.Importance: This manuscript belongs to the focus area.
-
- 3.Value: This manuscript belongs to the advanced topic and
- can attract wide
- attention.
-
-
-
+
+ This column is served as an instant correspondence between the editor and authors, aiming to acquire a
+ faster way of communication than E-Mail. If you have any questions, please start the instant corresponding,
+ and the editors will reply to you in 24 hours.
+
+ Please Attention
+
+ 1. If you need to send files as attachments, please send them to
+ tmr@tmrjournals.com
+
+ 2. Please do not upload the primary documents like the cover letter, the
+ reply to the reviewer comments, etc.
+
+
+
+
+ We encourage authors to upload a Cover Letter file and make sure the Highlights part in the main manuscript is after
+ the abstract and keywords. That will help authors let editors quickly obtain information and evaluate the scientific
+ value of their research correctly.
+
Please remind our editor in the cover letter if you want your manuscript processed quickly.
Please note
+ that manuscripts with at least one of the following characteristics will be included in the journal's manuscript
+ fast track:
+
+ 1.Interest: This manuscript has a novel perspective.
+
+ 2.Importance: This manuscript belongs to the focus area.
+
+ 3.Value: This manuscript belongs to the advanced topic and can attract wide
+ attention.
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
diff --git a/src/components/page/components/major/index.vue b/src/components/page/components/major/index.vue
index dce7256..b9bde93 100644
--- a/src/components/page/components/major/index.vue
+++ b/src/components/page/components/major/index.vue
@@ -49,6 +49,10 @@ export default {
userId: {
type: String,
default: ''
+ },
+ articleId: {
+ type: String,
+ default: ''
}
},
data() {
@@ -87,10 +91,17 @@ this.coreForm1.majorList = this.fields[i].selectedValue;
}
this.$refs.core_Form1.validate((valid) => {
if (valid) {
+ var data={
+ major_id: this.coreForm1.majorList[this.coreForm1.majorList.length - 1]
+ }
+ if(this.userId){
+ data.user_id = this.userId;
+ }else{
+ data.article_id = this.articleId;
+ }
this.$api
- .post('api/User/addUserMajor', {
- user_id: this.userId,
- major_id: this.coreForm1.majorList[this.coreForm1.majorList.length - 1]
+ .post(this.userId?'api/User/addUserMajor':'api/Major/addMajorByArticleIdForEditor', {
+ ...data
})
.then((res) => {
diff --git a/src/components/page/components/major/list.vue b/src/components/page/components/major/list.vue
index 1057eb1..03a4f9e 100644
--- a/src/components/page/components/major/list.vue
+++ b/src/components/page/components/major/list.vue
@@ -49,8 +49,21 @@ export default {
userId: {
type: String,
default: ''
+ },
+ list: {
+ type: Array,
+ default: []
}
},
+ watch: {
+ list: {
+ handler(e) {
+ this.fields=[...this.list]
+ },
+ immediate: true
+ },
+
+ },
data() {
return {
rules1:{},
@@ -58,7 +71,7 @@ export default {
coreForm1: {
majorList: []
},
- fields: [{}], // 用于存储多个领域的选项数据
+ fields: [], // 用于存储多个领域的选项数据
options: [] // 用于存储级联选择的选项数据
};
},
@@ -74,7 +87,7 @@ export default {
this.$refs[`cascader${i}`][0].dropDownVisible = false;
this.coreForm1.majorList = this.fields[i].selectedValue;
- this.$emit('load',this.fields.map(item => item.selectedValue[item.selectedValue.length - 1]))
+ this.$emit('load',this.fields)
this.$forceUpdate();
});
@@ -117,6 +130,7 @@ this.coreForm1.majorList = this.fields[i].selectedValue;
this.$nextTick(() => {
// this.fields=[]
this.fields.push({ selectedValue: [] }); // 添加一个新的字段
+ this.$emit('load',this.fields)
// this.coreVisible1 = true;
});
},
@@ -124,6 +138,7 @@ this.coreForm1.majorList = this.fields[i].selectedValue;
// 删除指定的 Cascader
handleDelete(index) {
this.fields.splice(index, 1); // 删除指定索引的字段
+ this.$emit('load',this.fields)
},
// 获取 Cascader 配置