tijiao
This commit is contained in:
@@ -866,17 +866,10 @@
|
||||
<el-form-item label="Real name :" prop="realname">
|
||||
<el-input type="text" placeholder="Please enter..." v-model="coreForm.realname" style="width: 320px"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="Phone :">
|
||||
<el-input type="text" placeholder="Please enter..." v-model="coreForm.phone" style="width: 320px"> </el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="Gender :" prop="gender">
|
||||
<el-radio-group v-model="coreTable.gender">
|
||||
<el-radio :label="1">Male</el-radio>
|
||||
<el-radio :label="2">Female</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="Academic title :" prop="technical">
|
||||
<el-form-item label="Academic title :" prop="technical">
|
||||
<el-select
|
||||
v-model="coreForm.technical"
|
||||
filterable
|
||||
@@ -906,30 +899,6 @@
|
||||
<el-form-item label="Website :" prop="website">
|
||||
<el-input type="text" placeholder="eg:http://..." v-model="coreForm.website" style="width: 320px"> </el-input>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item prop="major_a">
|
||||
<span slot="label">
|
||||
<i style="color: #F56C6C;margin-right: 4px;">*</i>
|
||||
Research areas
|
||||
</span>
|
||||
<common-major v-if="coreVisible"></common-major>
|
||||
<el-select v-model="coreForm.major_a" placeholder="Please select major" @change="majorChange(1)"
|
||||
style="width: 180px">
|
||||
<el-option v-for="item in majors_a" :key="item.major_id"
|
||||
:label="item.major_title+' ('+item.nickname+')'" :value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="coreForm.major_b" placeholder="Please select major" v-if="majors_b!=''"
|
||||
@change="majorChange(2)" style="margin:0 15px;width: 180px">
|
||||
<el-option :key="0" label="None" :value="0"></el-option>
|
||||
<el-option v-for="item in majors_b" :key="item.major_id"
|
||||
:label="item.major_title+' ('+item.nickname+')'" :value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="coreForm.major_c" placeholder="Please select major" v-if="majors_c!=''"
|
||||
style="width: 180px" @change="majorChange(3)">
|
||||
<el-option :key="0" label="None" :value="0"></el-option>
|
||||
<el-option v-for="item in majors_c" :key="item.major_id"
|
||||
:label="item.major_title+' ('+item.nickname+')'" :value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="Field :" prop="field">
|
||||
<el-input v-model="coreForm.field" type="textarea" style="width: 570px" autosize></el-input>
|
||||
</el-form-item>
|
||||
@@ -987,7 +956,7 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 申请青年科学家弹出框 -->
|
||||
<el-dialog title="Apply Young Scientist" :visible.sync="youthVisible" width="450px" :close-on-click-modal="false">
|
||||
<el-dialog title="Apply Young Scientist" :visible.sync="youthVisible" width="600px" :close-on-click-modal="false">
|
||||
<el-form :model="youthForm" :rules="rules" ref="youth_Form" label-width="100px">
|
||||
<el-form-item label="Journal :" prop="journal_id">
|
||||
<el-select v-model="youthForm.journal_id" placeholder="Please select a journal" style="width: 300px">
|
||||
@@ -1000,9 +969,9 @@
|
||||
</el-select>
|
||||
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label=" " label-width="0px">
|
||||
<commonCv ref="commoncv" @cvitaTable="getCVitaData"></commonCv>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="CV :" >
|
||||
<commonCv ref="commoncv" @cvitaTable="updateCVitaData"></commonCv>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="youthVisible = false">Cancel</el-button>
|
||||
@@ -1355,7 +1324,7 @@ export default {
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
getCVitaData(data){
|
||||
updateCVitaData(data){
|
||||
this.applyCvitaTable = data;
|
||||
},
|
||||
handleDeleteMajor(v) {
|
||||
@@ -1525,12 +1494,13 @@ this.applyCvitaTable = data;
|
||||
// 获取简历列表
|
||||
getCVitaData() {
|
||||
this.$api
|
||||
.post('api/Ucenter/getUserInfo', {
|
||||
.post('api/User/getUser', {
|
||||
user_id: this.user_id
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.cvitaTable = res.data.cvs;
|
||||
if (res.status == 1) {
|
||||
this.cvitaTable = res.data.cv || [];
|
||||
this.applyCvitaTable = res.data.cv || [];
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
@@ -1542,6 +1512,7 @@ this.applyCvitaTable = data;
|
||||
|
||||
// 简历弹出层
|
||||
openCVita() {
|
||||
this.cvitaTable=[...this.applyCvitaTable]
|
||||
this.cvitaVisible = true;
|
||||
this.cvitaForm.cv = '';
|
||||
},
|
||||
@@ -2112,42 +2083,42 @@ this.applyCvitaTable = data;
|
||||
|
||||
// 青年科学家弹出框
|
||||
youthPoint() {
|
||||
// this.youthForm.journal_id = '';
|
||||
|
||||
// this.youthVisible = true;
|
||||
// this.$nextTick(()=>{
|
||||
// this.$refs.commoncv.init();
|
||||
// })
|
||||
this.youthForm.journal_id = '';
|
||||
this.youthVisible = true;
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.commoncv.init(this.applyCvitaTable);
|
||||
})
|
||||
// 判断
|
||||
this.$api
|
||||
.post('api/Ucenter/checkApply', {
|
||||
user_id: this.user_id,
|
||||
type: 2
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.youthForm.journal_id = '';
|
||||
// this.$api
|
||||
// .post('api/Ucenter/checkApply', {
|
||||
// user_id: this.user_id,
|
||||
// type: 2
|
||||
// })
|
||||
// .then((res) => {
|
||||
// if (res.code == 0) {
|
||||
// this.youthForm.journal_id = '';
|
||||
|
||||
this.youthVisible = true;
|
||||
// this.$nextTick(()=>{
|
||||
// this.$refs.commoncv.init();
|
||||
// })
|
||||
|
||||
} else {
|
||||
// 提示完善信息
|
||||
this.tipVisible = true;
|
||||
this.tipTable.message = res.msg;
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
// this.youthVisible = true;
|
||||
|
||||
// } else {
|
||||
// // 提示完善信息
|
||||
// this.tipVisible = true;
|
||||
// this.tipTable.message = res.msg;
|
||||
// }
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// console.log(err);
|
||||
// });
|
||||
},
|
||||
|
||||
// 点击提交青年科学家信息
|
||||
onSubmit_youth(youthForm) {
|
||||
this.$refs.youth_Form.validate((valid) => {
|
||||
if (valid) {
|
||||
if(this.applyCvitaTable.length == 0){
|
||||
this.$message.error('Please upload your resume!');
|
||||
return false;
|
||||
}
|
||||
this.$api
|
||||
.post('api/Ucenter/applyYboard', this.youthForm)
|
||||
.then((res) => {
|
||||
@@ -2171,8 +2142,8 @@ this.applyCvitaTable = data;
|
||||
this.$message.error(err);
|
||||
});
|
||||
} else {
|
||||
this.$message.error('Please select a journal!');
|
||||
return false;
|
||||
// this.$message.error('Please select a journal!');
|
||||
// return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user