1
This commit is contained in:
@@ -77,11 +77,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="title" prop="title">
|
||||
<el-select v-model="addForm.title" filterable placeholder="Please select a title" value-key="groupID" style="width: 300px;">
|
||||
<el-option key="Prof." label="Prof." value="Prof."></el-option>
|
||||
<el-option key="Associate Prof." label="Associate Prof." value="Associate Prof."></el-option>
|
||||
<el-option key="Assistant Prof." label="Assistant Prof." value="Assistant Prof."></el-option>
|
||||
<el-option key="Ph.D." label="Ph.D." value="Ph.D."></el-option>
|
||||
<el-option key="Others" label="Others" value="Others"></el-option>
|
||||
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="country" prop="country">
|
||||
@@ -147,11 +143,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="title" prop="title">
|
||||
<el-select v-model="oldForm.title" filterable placeholder="Please select a title" value-key="groupID" style="width: 300px;">
|
||||
<el-option key="Prof." label="Prof." value="Prof."></el-option>
|
||||
<el-option key="Associate Prof." label="Associate Prof." value="Associate Prof."></el-option>
|
||||
<el-option key="Assistant Prof." label="Assistant Prof." value="Assistant Prof."></el-option>
|
||||
<el-option key="Ph.D." label="Ph.D." value="Ph.D."></el-option>
|
||||
<el-option key="Others" label="Others" value="Others"></el-option>
|
||||
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="country" prop="country">
|
||||
@@ -213,7 +205,7 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="title" prop="title">
|
||||
<el-select v-model="editForm.title" filterable placeholder="Please select a title" value-key="groupID" style="width: 300px;">
|
||||
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
||||
<el-option v-for="item in df_technical" :key="item.label" :label="item.label" :value="item.label"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="country" prop="country">
|
||||
@@ -254,7 +246,6 @@
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="editVisible = false">Cancel</el-button>
|
||||
<el-button type="primary" @click="saveEdit(editForm)">OK</el-button>
|
||||
<!-- <el-button type="primary" @click="editVisible = false">OK</el-button> -->
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
@@ -284,7 +275,7 @@
|
||||
},
|
||||
mess_age: {},
|
||||
editForm: {
|
||||
title:'',
|
||||
title: '',
|
||||
},
|
||||
oldForm: {},
|
||||
delOpen: false,
|
||||
@@ -308,15 +299,15 @@
|
||||
pageIndex: 1,
|
||||
pageSize: 15
|
||||
},
|
||||
df_technical:[{
|
||||
df_technical: [{
|
||||
label: 'Prof',
|
||||
},{
|
||||
}, {
|
||||
label: 'Associate Prof.',
|
||||
},{
|
||||
}, {
|
||||
label: 'Assistant Prof.',
|
||||
},{
|
||||
}, {
|
||||
label: 'Ph.D.',
|
||||
},{
|
||||
}, {
|
||||
label: 'Others',
|
||||
}],
|
||||
link_Total: 0,
|
||||
@@ -679,8 +670,8 @@
|
||||
// 编辑操作
|
||||
handleEdit(index, row) {
|
||||
this.idx = index;
|
||||
row.title = row.technical;
|
||||
this.editForm = Object.assign({}, row);
|
||||
this.editForm.title = this.editForm.technical;
|
||||
this.editForm.cv = this.editForm.qualifications;
|
||||
this.fileL_pdf3 = [];
|
||||
if (this.editForm.qualifications != "") {
|
||||
@@ -690,32 +681,31 @@
|
||||
}
|
||||
this.editForm.maj_cn = [this.editForm.major, this.editForm.cmajor];
|
||||
this.editVisible = true;
|
||||
|
||||
|
||||
},
|
||||
// 保存编辑
|
||||
saveEdit(editForm) {
|
||||
console.log(this.editForm)
|
||||
this.$refs.edit_Form.validate((valid) => {
|
||||
if (this.editForm.qualifications == '') {
|
||||
this.$message.error('Please make sure that the qualifications document is uploaded successfully');
|
||||
return false;
|
||||
}
|
||||
if (valid) {
|
||||
// this.$api
|
||||
// .post('api/Reviewer/editReviewerForEditor', this.editForm)
|
||||
// .then(res => {
|
||||
// if (res.code == 0) {
|
||||
// this.editVisible = false;
|
||||
// this.btn_alert = false;
|
||||
// this.$message.success(`Successfully changed line ${this.idx + 1} `);
|
||||
// this.getContent();
|
||||
// } else {
|
||||
// this.$message.error(res.msg);
|
||||
// }
|
||||
// })
|
||||
// .catch(err => {
|
||||
// this.$message.error(err);
|
||||
// });
|
||||
this.$api
|
||||
.post('api/Reviewer/editReviewerForEditor', this.editForm)
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.editVisible = false;
|
||||
this.btn_alert = false;
|
||||
this.$message.success(`Successfully changed line ${this.idx + 1} `);
|
||||
this.getContent();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
} else {
|
||||
this.$message.error('error submit!!');
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user