20230517
This commit is contained in:
@@ -9,54 +9,80 @@
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="handle-box">
|
||||
<el-button type="primary" icon="el-icon-plus" class="handle-del" @click="add_Selection">Add User
|
||||
<el-button type="primary" icon="el-icon-plus" class="handle-del" @click="add_Selection">Add Reviewer
|
||||
</el-button>
|
||||
</div>
|
||||
<div class="handle-box">
|
||||
<el-select v-model="query.journalId" placeholder="Please select a journal" @change="getContent">
|
||||
<el-option label="All journal" :key="0" :value="0"></el-option>
|
||||
<el-select v-model="query.journalId" placeholder="Please select a journal"
|
||||
@change="query.pageIndex = 1;getContent()">
|
||||
<el-option label="All journals" :key="0" :value="0"></el-option>
|
||||
<el-option v-for="item in df_jour" :label="item.title" :key="item.journal_id"
|
||||
:value="item.journal_id"></el-option>
|
||||
</el-select>
|
||||
<!-- <span style="margin:0 10px 0 20px;font-size: 14px;">Class:</span> -->
|
||||
<el-select v-model="query.class" style="width: 100px;margin: 0 0 0 15px;" @change="getContent">
|
||||
<!-- <el-select v-model="query.class" style="width: 100px;margin: 0 0 0 15px;" @change="getContent">
|
||||
<el-option label="All class" :key="0" :value="0"></el-option>
|
||||
<el-option label="A" key="A" value="A"></el-option>
|
||||
<el-option label="B" key="B" value="B"></el-option>
|
||||
<el-option label="C" key="C" value="C"></el-option>
|
||||
<el-option label="D" key="D" value="D"></el-option>
|
||||
<el-option label="Not rated" key="1" value="1"></el-option>
|
||||
</el-select>
|
||||
<el-input v-model="query.keyword" placeholder="Please enter ..." style="width: 220px;margin: 0 15px;">
|
||||
</el-select> -->
|
||||
<el-input v-model="query.keyword" placeholder="Account / Realname / Email"
|
||||
style="width: 240px;margin: 0 15px;">
|
||||
</el-input>
|
||||
<el-button type="primary" icon="el-icon-search" @click="getContent">Search</el-button>
|
||||
<el-button type="primary" icon="el-icon-search" @click="query.pageIndex = 1;getContent()">Search
|
||||
</el-button>
|
||||
</div>
|
||||
<el-table :data="tableData" border class="table" ref="multipleTable" header-cell-class-name="table-header"
|
||||
empty-text="Messages (0)">
|
||||
<el-table-column label="Base Information" min-width="35%">
|
||||
<el-table-column label="Base Information" width="280px">
|
||||
<template slot-scope="scope">
|
||||
<p class="tab_tie_col">
|
||||
<span>Realname: </span><b style="font-size: 15px;">{{scope.row.realname}}</b>
|
||||
<span style="margin-left:30px ;">Class: </span>
|
||||
<span>Realname: </span>
|
||||
<b style="font-size: 15px;letter-spacing: -0.5px;">{{scope.row.realname}}</b>
|
||||
<!-- <span style="margin-left:30px ;">Class: </span>
|
||||
<el-button @click="BoxGrade(scope.row)" size="mini" type="text">
|
||||
<b v-if="scope.row.grade!=''">{{scope.row.grade}}</b>
|
||||
<b v-if="scope.row.grade==''">Not rated</b>
|
||||
</el-button>
|
||||
<span style="margin-left:30px ;">CV: </span>
|
||||
<b class="el-icon-check" style="color: #0fa31d;font-weight: bold;"
|
||||
v-if="scope.row.qualifications!=''">
|
||||
</b>
|
||||
<b class="el-icon-close" style="color: #ff0000;font-weight: bold;"
|
||||
v-if="scope.row.qualifications==''">
|
||||
</b>
|
||||
</el-button> -->
|
||||
</p>
|
||||
<p class="tab_tie_col">
|
||||
<span>Title: </span>{{scope.row.technical}}
|
||||
<span style="margin-left:30px ;">CV: </span>
|
||||
<b class="el-icon-check" style="color: #0fa31d;font-weight: bold;"
|
||||
v-if="scope.row.cvs.length>0">
|
||||
</b>
|
||||
<b class="el-icon-close" style="color: #ff0000;font-weight: bold;"
|
||||
v-if="scope.row.cvs.length==0">
|
||||
</b>
|
||||
</p>
|
||||
<p class="tab_tie_col">
|
||||
<span>Email: </span>{{scope.row.email}}
|
||||
</p>
|
||||
|
||||
<p class="tab_tie_col">
|
||||
<span>H-WOS: </span>
|
||||
<font v-html="colorIndex(scope.row.wos_index,scope.row.wos_time)"></font>
|
||||
</p>
|
||||
<p class="tab_tie_col">
|
||||
<span>H-Google: </span>
|
||||
<font v-html="colorIndex(scope.row.google_index,scope.row.google_time)"></font>
|
||||
</p>
|
||||
<p class="tab_tie_col" v-if="scope.row.starList_mark!=0">
|
||||
<span>Grade: </span>
|
||||
<font style="display: inline-block;">
|
||||
<img src="../../assets/img/star-all.png" v-for="item in scope.row.starList"
|
||||
v-if="scope.row.starList_mark<=8&&item.star==1" class="starSty">
|
||||
<img src="../../assets/img/star-traf.png" v-for="item in scope.row.starList"
|
||||
v-if="scope.row.starList_mark<=8&&item.star==0" class="starSty">
|
||||
<img src="../../assets/img/star-none.png" v-for="item in scope.row.starList"
|
||||
v-if="scope.row.starList_mark<=8&&item.star==2" class="starSty">
|
||||
<img src="../../assets/img/star-all.png" v-if="scope.row.starList_mark>8"
|
||||
class="starSty">
|
||||
<b style="font-size: 15px;color: #b77614;" v-if="scope.row.starList_mark>8">×
|
||||
{{scope.row.starList_mark}}</b>
|
||||
</font>
|
||||
</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Other Information">
|
||||
@@ -85,7 +111,7 @@
|
||||
</p>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Remarks" width="250" align="center">
|
||||
<el-table-column label="Remarks" width="250">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.remark}}
|
||||
<b @click="BoxRemark(scope.row)" style="margin-left:10px;cursor: pointer;color:#006699;"
|
||||
@@ -94,9 +120,14 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="" width="110" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div style="margin: 0 0 6px 0;">
|
||||
<!-- <div style="margin: 0 0 6px 0;">
|
||||
<el-button size="mini" type="primary" plain icon="el-icon-tickets"
|
||||
@click="handleEdit(scope.$index, scope.row)">Edit</el-button>
|
||||
</div> -->
|
||||
<div style="margin: 0 0 6px 0;">
|
||||
<el-button type="primary" plain icon="el-icon-edit" @click="handleDtail(scope.row)">
|
||||
Detail
|
||||
</el-button>
|
||||
</div>
|
||||
<div>
|
||||
<el-button size="mini" type="danger" plain icon="el-icon-delete"
|
||||
@@ -196,27 +227,57 @@
|
||||
<el-form-item label="Introduction :">
|
||||
<el-input v-model="addForm.introduction" type="textarea" :autosize="{minRows: 2}"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Institution :">
|
||||
<el-form-item label="Affiliation :">
|
||||
<el-input v-model="addForm.company"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Major :" :prop="this.email_num==1?'':'maj_cn'">
|
||||
<el-cascader v-model="addForm.maj_cn" :options="jl_major" :props="defaultParams"
|
||||
placeholder="Please select major" @change="ched_id_add" style="width: 300px;"></el-cascader>
|
||||
<el-form-item label="Major :" prop="major_a">
|
||||
<el-select v-model="addForm.major_a" placeholder="Please select" @change="majorChange(1)"
|
||||
style="width: 150px;margin: 0 10px 0 0;">
|
||||
<el-option v-for="item in majors_a" :key="item.major_id" :label="item.major_title"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="addForm.major_b" placeholder="Please select" v-if="majors_b!=''"
|
||||
@change="majorChange(2)" style="width: 150px;margin:0 10px 0 0;">
|
||||
<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"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="addForm.major_c" placeholder="Please select" v-if="majors_c!=''"
|
||||
@change="majorChange(3)" style="width: 150px;">
|
||||
<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"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="Field :" prop="field">
|
||||
<el-input v-model="addForm.field" type="textarea"></el-input>
|
||||
</el-form-item>
|
||||
<!-- 简历 -->
|
||||
<el-form-item label="CV. :" prop="qualifications">
|
||||
<el-upload class="upload-demo" :action="baseUrl+'api/Reviewer/up_cv_file'"
|
||||
:on-success="handleFileSuccess2" name="reviewerCV" type="reviewerCV" :on-error="handleFileError"
|
||||
:on-preview="handlePreview" :on-remove="handleRemove" :before-remove="beforeRemove"
|
||||
:on-change="handleChange2" accept=".pdf" :on-exceed="handleExceed" :file-list="fileL_pdf2"
|
||||
ref="upload">
|
||||
<el-button type="text" style="font-weight: bolder;"><b class="el-icon-lx-top"
|
||||
style="font-weight: bolder;"></b>upload</el-button>
|
||||
</el-upload>
|
||||
<span style="font-size: 12px; color: #aaa;">Only compressed files can be uploaded(.pdf)</span>
|
||||
<div v-if="cvitaTable.length==0">
|
||||
<el-upload class="upload-demo" :action="baseUrl+'api/Reviewer/up_cv_file'"
|
||||
:on-success="handleFileSuccess2" name="reviewerCV" type="reviewerCV"
|
||||
:on-error="handleFileError" :on-preview="handlePreview" :on-remove="handleRemove"
|
||||
:before-remove="beforeRemove" :on-change="handleChange2" accept=".pdf"
|
||||
:on-exceed="handleExceed" :file-list="fileL_pdf2" ref="upload">
|
||||
<el-button type="text" style="font-weight: bolder;"><b class="el-icon-lx-top"
|
||||
style="font-weight: bolder;"></b>upload</el-button>
|
||||
</el-upload>
|
||||
<span style="font-size: 12px; color: #aaa;">Only pdf files can be uploaded(.pdf)</span>
|
||||
</div>
|
||||
|
||||
<div v-for="(item,index) in cvitaTable">
|
||||
{{index+1}}.
|
||||
<img src="../../assets/img/icon_0.png" alt="" class="icon_img"
|
||||
style="vertical-align: middle;margin-left: 10px;">
|
||||
<span style="margin-left: 20px;color: #888;font-size: 13px;">
|
||||
<i class="el-icon-paperclip"></i>
|
||||
{{formatDate(item.ctime)}}
|
||||
</span>
|
||||
<a :href="mediaUrl+'reviewer/'+item.cv" target="_blank" class="txt_pdf">
|
||||
<i class="el-icon-download"></i>
|
||||
</a>
|
||||
</div>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -262,17 +323,32 @@
|
||||
{{editForm.orcid}}
|
||||
</el-form-item>
|
||||
<el-form-item label="Introduction :">
|
||||
<el-input v-model="editForm.introduction" type="textarea" :autosize="{minRows: 2}"></el-input>
|
||||
<el-input v-model="editForm.introduction" type="textarea" autosize></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Institution :">
|
||||
<el-form-item label="Affiliation :">
|
||||
<el-input v-model="editForm.company"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="Major :" prop="maj_cn">
|
||||
<el-cascader :options="jl_major" v-model="editForm.maj_cn" :props="defaultParams"
|
||||
placeholder="Please select major" @change="ched_id_edit" style="width: 300px;"></el-cascader>
|
||||
<el-form-item label="Major :" prop="major_a">
|
||||
<el-select v-model="editForm.major_a" placeholder="Please select" @change="majorChangeEdit(1)"
|
||||
style="width: 150px;margin: 0 10px 0 0;">
|
||||
<el-option v-for="item in majors_a_edit" :key="item.major_id" :label="item.major_title"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="editForm.major_b" placeholder="Please select" v-if="majors_b_edit!=''"
|
||||
@change="majorChangeEdit(2)" style="width: 150px;margin:0 10px 0 0;">
|
||||
<el-option :key="0" label="None" :value="0"></el-option>
|
||||
<el-option v-for="item in majors_b_edit" :key="item.major_id" :label="item.major_title"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
<el-select v-model="editForm.major_c" placeholder="Please select" v-if="majors_c_edit!=''"
|
||||
@change="majorChangeEdit(3)" style="width: 150px;">
|
||||
<el-option :key="0" label="None" :value="0"></el-option>
|
||||
<el-option v-for="item in majors_c_edit" :key="item.major_id" :label="item.major_title"
|
||||
:value="item.major_id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="Field :">
|
||||
<el-input v-model="editForm.field" type="textarea"></el-input>
|
||||
<el-input v-model="editForm.field" type="textarea" autosize></el-input>
|
||||
</el-form-item>
|
||||
<!-- 简历 -->
|
||||
<el-form-item label="CV. :" prop="qualifications">
|
||||
@@ -284,7 +360,7 @@
|
||||
<el-button type="text" style="font-weight: bolder;"><b class="el-icon-lx-top"
|
||||
style="font-weight: bolder;"></b>upload</el-button>
|
||||
</el-upload>
|
||||
<span style="font-size: 12px; color: #aaa;">Only compressed files can be uploaded(.pdf)</span>
|
||||
<span style="font-size: 12px; color: #aaa;">Only pdf files can be uploaded(.pdf)</span>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -294,24 +370,29 @@
|
||||
</el-dialog>
|
||||
|
||||
<!-- 删除弹出框 -->
|
||||
<el-dialog title="Delete" :visible.sync="delOpen" width="40%">
|
||||
<el-dialog title="Delete Reviewer" :visible.sync="delOpen" width="600px">
|
||||
<div v-for="item in lineOptions" :name='item.journal_id' :value='item.reviewer_id'
|
||||
style="margin-left: 60px;">
|
||||
{{item.journal.title}} - {{item.reviewer.account}}
|
||||
<el-button type="text" icon="el-icon-delete" @click="lastDelete($event)"
|
||||
style="color: #FF0000;margin-left: 20px;">Delete</el-button>
|
||||
style="margin:0 0 12px 60px;">
|
||||
{{item.journal.title}} - {{item.reviewer.realname}}
|
||||
<font @click="lastDelete($event)" class="deteleBtn">
|
||||
<i class="el-icon-delete"></i>
|
||||
Delete
|
||||
</font>
|
||||
</div>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="delOpen = false;" type="primary">Canel</el-button>
|
||||
<el-button @click="delOpen = false;">Cancel</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
<!-- 标记弹出框 -->
|
||||
<el-dialog title="Remarks" :visible.sync="remarkBox" width="550px">
|
||||
<el-form ref="remark" :model="remarkMes" label-width="85px">
|
||||
<el-form ref="remark" :model="remarkMes" label-width="95px">
|
||||
<el-form-item label="Reviewer :">
|
||||
<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>
|
||||
@@ -321,7 +402,7 @@
|
||||
<el-button type="primary" @click="saveRemark">Save</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
|
||||
|
||||
<!-- 评级弹出框 -->
|
||||
<el-dialog title="Reviewer Class" :visible.sync="gradeBox" width="400px">
|
||||
<el-form ref="grade" :model="gradeMes" label-width="85px">
|
||||
@@ -358,6 +439,7 @@
|
||||
title: '',
|
||||
},
|
||||
addForm: {},
|
||||
cvitaTable: [],
|
||||
delOpen: false,
|
||||
editVisible: false,
|
||||
addVisible: false,
|
||||
@@ -367,13 +449,13 @@
|
||||
df_jour_cun: [],
|
||||
df_jour: [],
|
||||
df_country: [],
|
||||
jl_major: [],
|
||||
majors_a: [],
|
||||
majors_b: [],
|
||||
majors_c: [],
|
||||
majors_a_edit: [],
|
||||
majors_b_edit: [],
|
||||
majors_c_edit: [],
|
||||
lineOptions: [],
|
||||
defaultParams: {
|
||||
label: 'title',
|
||||
value: 'major_id',
|
||||
children: 'children'
|
||||
},
|
||||
edit_id: localStorage.getItem('U_id'),
|
||||
query: {
|
||||
username: localStorage.getItem('U_name'),
|
||||
@@ -471,17 +553,18 @@
|
||||
message: 'Please input realname',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
// qualifications: [{
|
||||
// required: true,
|
||||
// message: 'Please upload your resume',
|
||||
// trigger: 'blur'
|
||||
// }]
|
||||
major_a: [{
|
||||
required: true,
|
||||
message: 'Please select major',
|
||||
trigger: 'blur'
|
||||
}],
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getDate();
|
||||
this.getContent();
|
||||
this.initMajor()
|
||||
},
|
||||
methods: {
|
||||
// 获取编辑列表数据
|
||||
@@ -500,14 +583,6 @@
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
this.$api
|
||||
.post('api/Reviewer/getAllMajor')
|
||||
.then(res => {
|
||||
this.jl_major = res.data.majors;
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
});
|
||||
this.$api
|
||||
.post('api/Reviewer/getCountrys')
|
||||
.then(res => {
|
||||
@@ -528,20 +603,63 @@
|
||||
} else {
|
||||
this.query.grade = this.query.class
|
||||
}
|
||||
const loading = this.$loading({
|
||||
lock: true,
|
||||
text: 'Loading...',
|
||||
spinner: 'el-icon-loading',
|
||||
background: 'rgba(0, 0, 0, 0.7)'
|
||||
});
|
||||
this.$api
|
||||
.post('api/Reviewer/getReviewerListByJournal', this.query)
|
||||
.then(res => {
|
||||
if (res.code == 0) {
|
||||
this.tableData = res.data;
|
||||
for (var i = 0; i < this.tableData.length; i++) {
|
||||
this.getScoreData(i, this.tableData[i].score)
|
||||
}
|
||||
this.link_Total = res.total || 0;
|
||||
loading.close()
|
||||
} else {
|
||||
this.$message.error(res.msg);
|
||||
loading.close()
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
this.$message.error(err);
|
||||
loading.close()
|
||||
});
|
||||
},
|
||||
|
||||
// 评分
|
||||
getScoreData(i, e) {
|
||||
this.tableData[i].starList = []
|
||||
this.tableData[i].starList_mark = 0
|
||||
if (e < 0.5 && e > 0) {
|
||||
this.tableData[i].starList.push({
|
||||
star: 2
|
||||
})
|
||||
this.tableData[i].starList_mark = 1
|
||||
} else {
|
||||
let zheng = Math.floor(e)
|
||||
let xiao = Number(e) - Math.floor(e)
|
||||
if (xiao >= 0.5) {
|
||||
xiao = 0.5
|
||||
} else {
|
||||
xiao = 0
|
||||
}
|
||||
for (var j = 0; j < zheng; j++) {
|
||||
this.tableData[i].starList.push({
|
||||
star: 1
|
||||
})
|
||||
}
|
||||
if (xiao == 0.5) {
|
||||
this.tableData[i].starList.push({
|
||||
star: 0
|
||||
})
|
||||
}
|
||||
this.tableData[i].starList_mark = Number(zheng) + Number(xiao)
|
||||
}
|
||||
},
|
||||
// 分页导航
|
||||
handlePageChange(val) {
|
||||
this.$set(this.query, 'pageIndex', val);
|
||||
@@ -608,6 +726,7 @@
|
||||
this.checkForm.email = '';
|
||||
this.email_num = 0;
|
||||
this.addForm = {};
|
||||
this.cvitaTable = []
|
||||
this.fileL_pdf2 = [];
|
||||
},
|
||||
// 验证邮箱是否存在
|
||||
@@ -639,7 +758,6 @@
|
||||
this.$message.error(err);
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
// 如果重新填写
|
||||
@@ -660,15 +778,39 @@
|
||||
this.addForm.reviewer_id = res.data.reviewer.user_id
|
||||
}
|
||||
this.addForm.title = res.data.reviewer.technical;
|
||||
this.addForm.cv = res.data.reviewer.qualifications;
|
||||
this.fileL_pdf2 = [];
|
||||
if (res.data.reviewer.qualifications != "") {
|
||||
this.cvitaTable = res.data.reviewer.cvs
|
||||
if (res.data.reviewer.cvs.length == 0) {
|
||||
this.addForm.cv = ''
|
||||
this.addForm.qualifications = ''
|
||||
} else {
|
||||
this.addForm.cv = res.data.reviewer.cvs[res.data.reviewer.cvs.length - 1].cv;
|
||||
this.addForm.qualifications = res.data.reviewer.cvs[res.data.reviewer.cvs.length - 1].cv;
|
||||
this.fileL_pdf2 = [{}];
|
||||
this.fileL_pdf2[0].name = 'reviewerCV';
|
||||
this.fileL_pdf2[0].url = this.mediaUrl + 'reviewer/' + res.data.reviewer.qualifications;
|
||||
this.fileL_pdf2[0].url = this.mediaUrl + 'reviewer/' + res.data.reviewer.cvs[res.data
|
||||
.reviewer.cvs.length - 1].cv;
|
||||
}
|
||||
this.addForm.maj_cn = [this.addForm.major, this.addForm.cmajor];
|
||||
this.addVisible = true
|
||||
|
||||
// this.addForm.maj_cn = [this.addForm.major, this.addForm.cmajor];
|
||||
this.addForm.major = 1
|
||||
this.addForm.major_a = ''
|
||||
this.addForm.major_b = ''
|
||||
this.addForm.major_c = ''
|
||||
this.addForm.majorList = []
|
||||
|
||||
if (this.addForm.majorshu != 0 && this.addForm.majorshu != null) {
|
||||
if (typeof(this.addForm.majorshu) == 'number') {
|
||||
this.addForm.majorList.push(this.addForm.majorshu)
|
||||
} else {
|
||||
this.addForm.majorList = this.addForm.majorshu.split(",")
|
||||
}
|
||||
}
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.jiLInaoan()
|
||||
this.addVisible = true
|
||||
})
|
||||
|
||||
// 可申请审稿人的期刊
|
||||
this.$api
|
||||
@@ -713,10 +855,12 @@
|
||||
// 保存用户的添加
|
||||
saveAdd(addForm) {
|
||||
this.$refs.add_Form.validate((valid) => {
|
||||
if (this.addForm.qualifications == '') {
|
||||
this.$message.error(
|
||||
'Please make sure that the qualifications document is uploaded successfully');
|
||||
return false;
|
||||
if (this.cvitaTable.length == 0) {
|
||||
if (this.addForm.qualifications == '' || this.addForm.qualifications == undefined) {
|
||||
this.$message.error(
|
||||
'Please make sure that CV. document is uploaded successfully');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (valid) {
|
||||
let path_add = ''
|
||||
@@ -760,15 +904,29 @@
|
||||
this.fileL_pdf3[0].name = 'reviewerCV';
|
||||
this.fileL_pdf3[0].url = this.mediaUrl + 'reviewer/' + this.editForm.qualifications;
|
||||
}
|
||||
|
||||
|
||||
this.editForm.maj_cn = [this.editForm.major, this.editForm.cmajor];
|
||||
this.editVisible = true;
|
||||
|
||||
},
|
||||
|
||||
// 详情
|
||||
handleDtail(e) {
|
||||
let routerJump = this.$router.resolve({
|
||||
path: '/partyRole',
|
||||
query: {
|
||||
id: e.user_id
|
||||
}
|
||||
});
|
||||
window.open(routerJump.href, '_blank');
|
||||
},
|
||||
|
||||
// 保存编辑
|
||||
saveEdit(editForm) {
|
||||
this.$refs.edit_Form.validate((valid) => {
|
||||
// if (this.editForm.qualifications == '') {
|
||||
// this.$message.error('Please make sure that the qualifications document is uploaded successfully');
|
||||
// this.$message.error('Please make sure that the CV. document is uploaded successfully');
|
||||
// return false;
|
||||
// }
|
||||
if (valid) {
|
||||
@@ -798,7 +956,7 @@
|
||||
this.delOpen = true;
|
||||
this.$api
|
||||
.post('api/User/getReviewerForDel', {
|
||||
reviewer_id: index.reviewer_id,
|
||||
reviewer_id: index.user_id,
|
||||
editor_account: localStorage.getItem('U_name')
|
||||
})
|
||||
.then(res => {
|
||||
@@ -861,6 +1019,7 @@
|
||||
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;
|
||||
},
|
||||
// 修改标记
|
||||
@@ -876,6 +1035,135 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
// 领域
|
||||
initMajor() {
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: 1
|
||||
}).then((res) => {
|
||||
this.majors_a = res.data.major.children;
|
||||
});
|
||||
},
|
||||
|
||||
jiLInaoan() {
|
||||
this.majors_a = []
|
||||
this.majors_b = []
|
||||
this.majors_c = []
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: 1
|
||||
}).then((res) => {
|
||||
this.majors_a = res.data.major.children;
|
||||
if (this.addForm.majorList[0] != undefined) {
|
||||
this.addForm.major_a = Number(this.addForm.majorList[0])
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: this.addForm.major_a
|
||||
}).then((res) => {
|
||||
this.majors_b = res.data.major.children;
|
||||
this.majors_c = []
|
||||
this.addForm.major_b = ''
|
||||
this.addForm.major_c = ''
|
||||
this.majorChange_panduan()
|
||||
if (this.addForm.majorList[1] != undefined) {
|
||||
this.addForm.major_b = Number(this.addForm.majorList[1])
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: this.addForm.major_b
|
||||
})
|
||||
.then((ref) => {
|
||||
if (ref.data.major.children.length != 0) {
|
||||
this.majors_c = ref.data.major.children;
|
||||
this.majorChange_panduan()
|
||||
if (this.addForm.majorList[2] != undefined) {
|
||||
this.addForm.major_c = Number(this.MessForm.majorList[
|
||||
2])
|
||||
this.majorChange_panduan()
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
// 搜索选择领域
|
||||
majorChange(e) {
|
||||
if (e == 1) {
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: this.addForm.major_a
|
||||
}).then((res) => {
|
||||
this.majors_b = res.data.major.children;
|
||||
this.majors_c = []
|
||||
this.addForm.major_b = ''
|
||||
this.addForm.major_c = ''
|
||||
this.majorChange_panduan()
|
||||
});
|
||||
} else if (e == 2 && this.addForm.major_b != 0) {
|
||||
this.$api
|
||||
.post('api/Ucenter/getMajor', {
|
||||
major_id: this.addForm.major_b
|
||||
}).then((res) => {
|
||||
this.majors_c = res.data.major.children;
|
||||
this.addForm.major_c = ''
|
||||
this.majorChange_panduan()
|
||||
});
|
||||
} else {
|
||||
this.majorChange_panduan()
|
||||
}
|
||||
},
|
||||
|
||||
majorChange_panduan() {
|
||||
if (this.addForm.major_c != '' || this.addForm.major_c != 0) {
|
||||
this.addForm.major = this.addForm.major_c
|
||||
} else if (this.addForm.major_b != '' || this.addForm.major_b != 0) {
|
||||
this.addForm.major = this.addForm.major_b
|
||||
} else {
|
||||
this.addForm.major = this.addForm.major_a
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 指数颜色
|
||||
colorIndex(num, time) {
|
||||
if (time != 0) {
|
||||
let date = new Date(parseInt(time * 1000));
|
||||
let Y = date.getFullYear() + '-';
|
||||
let M = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) + '-' : date.getMonth() + 1 + '-';
|
||||
let D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||
let H = date.getHours() < 10 ? '0' + date.getHours() + ':' : date.getHours() + ':';
|
||||
let U = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
||||
time = Y + M + D;
|
||||
}
|
||||
let str = '';
|
||||
if (num < 10) {
|
||||
str = '<b style="color:#cb160a">' + num +
|
||||
'</b><span style="color:#aaa;font-size:14px;margin-left:10px;">(' + time +
|
||||
')</span>'
|
||||
} else if (num < 15) {
|
||||
str = '<b style="color:#cbb504">' + num +
|
||||
'</b><span style="color:#aaa;font-size:14px;margin-left:10px;">(' + time +
|
||||
')</span>'
|
||||
} else {
|
||||
str = '<b style="color:#0cbc15">' + num +
|
||||
'</b><span style="color:#aaa;font-size:14px;margin-left:10px;">(' + time +
|
||||
')</span>'
|
||||
}
|
||||
if (time == 0) {
|
||||
str =
|
||||
'<b style="color:#aaa;">0</b><span style="color:#aaa;font-size:14px;margin-left:10px;">(No time)</span>'
|
||||
}
|
||||
return str;
|
||||
},
|
||||
|
||||
// 上传文件
|
||||
handleChange2(file, fileList) {
|
||||
if (fileList.length > 0) {
|
||||
@@ -927,6 +1215,18 @@
|
||||
handleExceed(files, fileList) {
|
||||
this.$message.warning("The current limit is 1 file. Please delete the current file first!");
|
||||
},
|
||||
|
||||
// 时间格式
|
||||
formatDate(timestamp) {
|
||||
var date = new Date(timestamp * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
|
||||
var Y = date.getFullYear() + '-';
|
||||
var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
|
||||
var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||
var h = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
||||
var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
||||
var s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds();
|
||||
return Y + M + D;
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -967,6 +1267,8 @@
|
||||
.tab_tie_col {
|
||||
margin-bottom: 5px;
|
||||
color: #333;
|
||||
word-wrap: break-word;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
.tab_tie_col>span {
|
||||
@@ -974,4 +1276,43 @@
|
||||
margin: 0 5px 0 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.starSty {
|
||||
width: 18px;
|
||||
margin-right: 4px;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
.starSty:nth-last-child(1) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
|
||||
.txt_pdf {
|
||||
margin: 0 0 20px 10px;
|
||||
display: inline-block;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.txt_pdf>i {
|
||||
color: #66a9f0;
|
||||
font-weight: bold;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.deteleBtn {
|
||||
color: #ce1111;
|
||||
margin-left: 18px;
|
||||
|
||||
}
|
||||
|
||||
.deteleBtn i {
|
||||
font-weight: bold;
|
||||
|
||||
}
|
||||
|
||||
.deteleBtn:hover {
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user