step 4 major数据变更
This commit is contained in:
@@ -487,8 +487,8 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Major :" prop="major_all">
|
<el-form-item label="Major :" prop="major_all">
|
||||||
<el-cascader :options="jl_major" v-model="item.major_all" :props="defaultParams"
|
<el-cascader :options="step4MajorList" v-model="item.major_all" :props="default4Params"
|
||||||
placeholder="Please select major" style="width: 270px;" clearable></el-cascader>
|
placeholder="Please select major" style="width: 270px;" clearable ></el-cascader>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-button :disabled="tuiJianForm.length==1" @click="onDeleteTuijian(item, index)"
|
<el-button :disabled="tuiJianForm.length==1" @click="onDeleteTuijian(item, index)"
|
||||||
type="danger" icon="el-icon-delete" class="shanchu_tj"></el-button>
|
type="danger" icon="el-icon-delete" class="shanchu_tj"></el-button>
|
||||||
@@ -665,7 +665,7 @@
|
|||||||
manuscirpt: '',
|
manuscirpt: '',
|
||||||
supplementary: '',
|
supplementary: '',
|
||||||
code: '',
|
code: '',
|
||||||
topics:null
|
// topics:null
|
||||||
},
|
},
|
||||||
journal_type: [{
|
journal_type: [{
|
||||||
name: 'ARTICLE',
|
name: 'ARTICLE',
|
||||||
@@ -874,12 +874,18 @@
|
|||||||
companyList: [],
|
companyList: [],
|
||||||
countrys: [],
|
countrys: [],
|
||||||
majorList: [],
|
majorList: [],
|
||||||
|
step4MajorList:[], // 第四步的major数据
|
||||||
jl_major: [],
|
jl_major: [],
|
||||||
defaultParams: {
|
defaultParams: {
|
||||||
label: 'title',
|
label: 'title',
|
||||||
value: 'major_id',
|
value: 'major_id',
|
||||||
children: 'children'
|
children: 'children'
|
||||||
},
|
},
|
||||||
|
default4Params:{
|
||||||
|
label: 'major_title',
|
||||||
|
value: 'major_id',
|
||||||
|
children: 'children'
|
||||||
|
},
|
||||||
mj_jour: [],
|
mj_jour: [],
|
||||||
jour_name: '',
|
jour_name: '',
|
||||||
topicsList:null, // 话题列表
|
topicsList:null, // 话题列表
|
||||||
@@ -907,7 +913,7 @@
|
|||||||
this.Temporary()
|
this.Temporary()
|
||||||
} else {
|
} else {
|
||||||
this.initMajor();
|
this.initMajor();
|
||||||
this.getTopics()
|
// this.getTopics() 获取话题列表
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -1023,14 +1029,15 @@
|
|||||||
this.$refs.tuiJianForm[i].validate(vali => {
|
this.$refs.tuiJianForm[i].validate(vali => {
|
||||||
if (vali) {
|
if (vali) {
|
||||||
tuijian_yanzheng += 0
|
tuijian_yanzheng += 0
|
||||||
this.tuiJianForm[i].major = this.tuiJianForm[i].major_all[0]
|
//this.tuiJianForm[i].major = this.tuiJianForm[i].major_all[0]
|
||||||
this.tuiJianForm[i].cmajor = this.tuiJianForm[i].major_all[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 {
|
} else {
|
||||||
tuijian_yanzheng += 1
|
tuijian_yanzheng += 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.form.reviewers = this.tuiJianForm
|
this.form.reviewers = this.tuiJianForm
|
||||||
} else {
|
} else {
|
||||||
this.form.reviewers = []
|
this.form.reviewers = []
|
||||||
}
|
}
|
||||||
@@ -1185,17 +1192,17 @@
|
|||||||
'value': res.data.companys[i].title
|
'value': res.data.companys[i].title
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.$api
|
this.$api
|
||||||
.post('/api/Reviewer/getMajorForReviewer', {
|
.post('/api/Reviewer/getMajorForReviewer', {
|
||||||
username: localStorage.getItem('U_name'),
|
username: localStorage.getItem('U_name'),
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data.major != 0) {
|
if (res.data.major != 0) {
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/User/getMajorList')
|
.post('api/User/getMajorList')
|
||||||
.then(res => {
|
.then(res => {
|
||||||
this.majorList = res.data;
|
this.majorList = res.data;
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -1211,6 +1218,14 @@
|
|||||||
|
|
||||||
this.checkReviewer()
|
this.checkReviewer()
|
||||||
|
|
||||||
|
this.$api
|
||||||
|
.post('api/Major/getMajorList')
|
||||||
|
.then(res => {
|
||||||
|
console.log(res,99)
|
||||||
|
this.step4MajorList = res.data.majors;
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 机构模糊搜索
|
// 机构模糊搜索
|
||||||
@@ -1634,7 +1649,7 @@
|
|||||||
this.form.istransfer = false
|
this.form.istransfer = false
|
||||||
this.form.becomeRev = false
|
this.form.becomeRev = false
|
||||||
this.initMajor();
|
this.initMajor();
|
||||||
this.getTopics()
|
// this.getTopics()
|
||||||
},
|
},
|
||||||
|
|
||||||
// 点击tab变化
|
// 点击tab变化
|
||||||
@@ -1693,7 +1708,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
showFiles() {
|
showFiles() {
|
||||||
// 文件显示出来
|
// 文件显示出来
|
||||||
this.fileL_coverLetter = [];
|
this.fileL_coverLetter = [];
|
||||||
@@ -1951,7 +1966,7 @@
|
|||||||
this.form.approval = res.data.base.approval
|
this.form.approval = res.data.base.approval
|
||||||
this.form.abstrart = res.data.base.abstrart
|
this.form.abstrart = res.data.base.abstrart
|
||||||
this.form.fund = res.data.base.fund
|
this.form.fund = res.data.base.fund
|
||||||
this.form.topics = res.data.base.topics
|
// this.form.topics = res.data.base.topics
|
||||||
// 领域
|
// 领域
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Major/getMajorForAddArticle', {
|
.post('api/Major/getMajorForAddArticle', {
|
||||||
@@ -2055,7 +2070,7 @@
|
|||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.topicsList = res.data.topics
|
this.topicsList = res.data.topics
|
||||||
console.log(res.data.topics,'话题')
|
// console.log(res.data.topics,'话题')
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
@@ -2063,7 +2078,7 @@
|
|||||||
},
|
},
|
||||||
// 选中值变化
|
// 选中值变化
|
||||||
topicsChange(e){
|
topicsChange(e){
|
||||||
console.log(this.form.topics,'选中的话题id')
|
// console.log(this.form.topics,'选中的话题id')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user