修改编辑委员会
This commit is contained in:
@@ -38,19 +38,20 @@
|
||||
</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="Additional Information">
|
||||
<el-table-column label="Research Areas" align="center">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col">
|
||||
<!-- <p class="tab_tie_col">
|
||||
<span>Affiliation: </span>{{scope.row.company}}
|
||||
</p>
|
||||
</p> -->
|
||||
<p class="tab_tie_col">
|
||||
<span>Field: </span>{{scope.row.field}}
|
||||
<!-- <span>Field: </span> -->
|
||||
{{scope.row.research_areas}}
|
||||
</p>
|
||||
<p class="tab_tie_col">
|
||||
<!-- <p class="tab_tie_col">
|
||||
<span>Major: </span>{{scope.row.major_title}}
|
||||
</p>
|
||||
</p> -->
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column label="H-WOS" align="center">
|
||||
<template slot-scope="scope">
|
||||
<p v-html="colorIndex(scope.row.wos_index,scope.row.wos_time)"></p>
|
||||
@@ -66,10 +67,15 @@
|
||||
<el-table-column align="center" width="120">
|
||||
<template slot-scope="scope">
|
||||
<div style="margin: 0 0 10px 0;">
|
||||
<el-button type="primary" plain icon="el-icon-edit" @click="handleDtail(scope.row)">
|
||||
<el-button type="primary" plain icon="el-icon-connection" @click="handleDtail(scope.row)">
|
||||
Detail
|
||||
</el-button>
|
||||
</div>
|
||||
<div style="margin: 0 0 10px 0;">
|
||||
<el-button type="success" plain icon="el-icon-edit" @click="editHandle(scope.row)">
|
||||
Edit
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="danger" plain icon="el-icon-delete" @click="reneDelete(scope.row)">Delete
|
||||
</el-button>
|
||||
@@ -84,7 +90,7 @@
|
||||
</div>
|
||||
|
||||
<!-- 添加弹出框 -->
|
||||
<el-dialog title="Add Young Scientist" :visible.sync="addVisible" width="620px" :close-on-click-modal="false"
|
||||
<el-dialog title="Add Academic Integrity Committee" :visible.sync="addVisible" width="660px" :close-on-click-modal="false"
|
||||
@close='addVisCancle'>
|
||||
<el-form ref="add_Form" :model="addForm" :rules="rules" label-width="140px" v-if="!dis_able">
|
||||
<el-form-item label="Email / Account :" prop="account" v-if="!dis_able">
|
||||
@@ -92,7 +98,7 @@
|
||||
<el-button type="warning" @click="saerNa_U()" style="margin-left: 15px;" icon="el-icon-paperclip">
|
||||
Check</el-button>
|
||||
<p style="color: #888;margin-top: 10px;">
|
||||
Note: The new Young Scientist must be a registered user.
|
||||
Note: The new Academic Integrity Committee must be a registered user.
|
||||
<br>Click <a class="zhu_ce" @click="Goto_res()">register</a>.
|
||||
</p>
|
||||
</el-form-item>
|
||||
@@ -113,12 +119,9 @@
|
||||
:value="item.journal_id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="Term of office :" prop="year">
|
||||
<el-select v-model="addForm.year" placeholder="Please select a year">
|
||||
<el-option v-for="item in list_year" :label="item.title" :key="item.id" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="Research areas :" >
|
||||
<el-input type="textarea" v-model="addForm.areas" placeholder="Please enter"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="addVisCancle">Cancel</el-button>
|
||||
@@ -126,50 +129,19 @@
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 续约弹出框 -->
|
||||
<el-dialog title="Renewal Young Scientist" :visible.sync="reneVisible" width="600px">
|
||||
<el-form ref="rene_Form" :model="reneForm" :rules="rules" label-width="140px">
|
||||
<el-form-item label="Account :">
|
||||
{{reneForm.account}}
|
||||
</el-form-item>
|
||||
<el-form-item label="Email :">
|
||||
{{reneForm.email}}
|
||||
</el-form-item>
|
||||
<el-form-item label="Realname :">
|
||||
{{reneForm.realname}}
|
||||
</el-form-item>
|
||||
<el-form-item label="Term of office :" prop="year">
|
||||
<el-select v-model="reneForm.year" placeholder="Please select a year">
|
||||
<el-option v-for="item in list_year" :label="item.title" :key="item.id" :value="item.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
<!-- 编辑弹出框 -->
|
||||
<el-dialog title="Edit Academic Integrity Committee" :visible.sync="editvisible" width="600px" @close="editClose()">
|
||||
<el-form ref="addForm1" :model="addForm1" label-width="150px" >
|
||||
<el-form-item label="Research areas :" >
|
||||
<el-input type="textarea" v-model="addForm1.areas" placeholder="Please enter"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="reneVisible = false">Cancel</el-button>
|
||||
<el-button type="primary" @click="saveRene()">OK</el-button>
|
||||
<el-button @click="editClose()">Cancel</el-button>
|
||||
<el-button type="primary" @click="saveEdit()">OK</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 标记弹出框 -->
|
||||
<el-dialog title="Remarks" :visible.sync="remarkBox" width="550px">
|
||||
<el-form ref="remark" :model="remarkMes" label-width="130px">
|
||||
<el-form-item label="Young Scientist :">
|
||||
<p style="line-height: 20px;margin-top: 6px;">{{remarkMes.realname}}</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Email :">
|
||||
<p style="line-height: 20px;margin-top: 6px;">{{remarkMes.email}}</p>
|
||||
</el-form-item>
|
||||
<el-form-item label="Content :">
|
||||
<el-input type="textarea" rows="5" v-model="remarkMes.remark"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="remarkBox = false">Cancel</el-button>
|
||||
<el-button type="primary" @click="saveRemark">Save</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 证书弹出框 -->
|
||||
<el-dialog :visible.sync="cerVisible" width="850px">
|
||||
<el-image class="table-td-thumb rev_digol" :src="this.IMG_Url"></el-image>
|
||||
@@ -214,8 +186,13 @@
|
||||
reneVisible: false,
|
||||
cerVisible: false,
|
||||
addForm: {
|
||||
account: '',
|
||||
account: '',
|
||||
},
|
||||
addForm1:{
|
||||
ctj_id: null,
|
||||
areas:''
|
||||
},
|
||||
editvisible:false,
|
||||
reneForm: {
|
||||
journal_id: 0
|
||||
},
|
||||
@@ -257,6 +234,40 @@
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 关闭编辑弹窗
|
||||
editClose(){
|
||||
this.editvisible = false
|
||||
this.addForm1.ctj_id = null,
|
||||
this.addForm1.areas = ''
|
||||
},
|
||||
// 显示编辑弹出框
|
||||
editHandle(val){
|
||||
this.editvisible = true
|
||||
this.$nextTick(function() {
|
||||
this.addForm1.ctj_id = val.ctj_id
|
||||
this.addForm1.areas = val.research_areas
|
||||
})
|
||||
},
|
||||
// 提交编辑弹窗
|
||||
saveEdit(){
|
||||
this.$api
|
||||
.post('api/User/editCommittee', {
|
||||
'ctj_id': this.addForm1.ctj_id,
|
||||
'research_areas': this.addForm1.areas
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('Edit successfully!')
|
||||
this.editClose()
|
||||
this.getDate();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
},
|
||||
// 获取下拉值
|
||||
getSelect() {
|
||||
this.$api
|
||||
@@ -350,7 +361,8 @@
|
||||
.post('api/User/addCommittee',
|
||||
{
|
||||
'user_id': this.addForm.user_id,
|
||||
'journal_id': this.addForm.journal_id
|
||||
'journal_id': this.addForm.journal_id,
|
||||
'research_areas': this.addForm.areas
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
@@ -380,6 +392,7 @@
|
||||
addVisCancle() {
|
||||
this.addVisible = false
|
||||
this.addForm.journal_id = null
|
||||
this.addForm.research_areas = ''
|
||||
},
|
||||
|
||||
// 查找与他相同的账号
|
||||
@@ -429,48 +442,7 @@
|
||||
window.open(routerJump.href, '_blank');
|
||||
},
|
||||
|
||||
// 续约
|
||||
reneHandle(e) {
|
||||
this.reneForm.journal_id = e.journal_id
|
||||
this.reneForm.user_id = e.user_id
|
||||
this.reneForm.account = e.account
|
||||
this.reneForm.realname = e.realname
|
||||
this.reneForm.email = e.email
|
||||
this.reneVisible = true
|
||||
},
|
||||
|
||||
// 保存续约
|
||||
saveRene(e) {
|
||||
this.$refs.rene_Form.validate((valid) => {
|
||||
if (valid) {
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
this.$api
|
||||
.post('api/User/addYboardContinue', this.reneForm)
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.reneVisible = false;
|
||||
this.getDate();
|
||||
this.$message.success(`Renewal successfully!`);
|
||||
loading.close();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
loading.close();
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
loading.close();
|
||||
});
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 删除
|
||||
reneDelete(e) {
|
||||
@@ -502,28 +474,6 @@
|
||||
this.cerVisible = true;
|
||||
},
|
||||
|
||||
// 标记弹出框
|
||||
BoxRemark(e) {
|
||||
this.remarkBox = true;
|
||||
this.remarkMes.realname = e.realname;
|
||||
this.remarkMes.user_id = e.user_id;
|
||||
this.remarkMes.email = e.email;
|
||||
this.remarkMes.remark = e.remark;
|
||||
},
|
||||
|
||||
// 修改标记
|
||||
saveRemark() {
|
||||
this.$api.post('api/User/editRemarkForUser', this.remarkMes)
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.$message.success('Success');
|
||||
this.remarkBox = false;
|
||||
this.getDate();
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 分页导航
|
||||
handlePageChange(val) {
|
||||
|
||||
Reference in New Issue
Block a user