This commit is contained in:
@fawn-nine
2023-07-15 16:59:41 +08:00
parent 893747d23d
commit aa56ccdeea
4 changed files with 60 additions and 26 deletions

View File

@@ -206,13 +206,13 @@
<el-col :span="24" v-if="!this.usercap.includes('editor')">
<el-row :gutter="40" style="display: flex;">
<el-col :span="14">
<el-col :span="15">
<!-- 作者信息 -->
<div class="chunking" style="margin-top: 55px;">
<!-- <el-divider></el-divider> -->
<h2 class="infor_title">Author</h2>
<div class="chunkPiece">
<div style="margin: 12px 20px 30px 30px;line-height:24px;font-size: 14px;">
<div style="margin: 12px 20px 30px 20px;line-height:24px;font-size: 14px;">
<div v-if="this.usercap.includes('author')">
<!-- 统计数据 -->
<div class="numeric" v-if="authorTable.manuscriptNum!=undefined">
@@ -272,7 +272,7 @@
</div>
</el-col>
<el-col :span="10">
<el-col :span="9">
<!-- 审稿人信息 -->
<div class="chunking" style="margin-top: 55px;">
<!-- <el-divider></el-divider> -->

View File

@@ -6,14 +6,20 @@
</el-breadcrumb>
</div>
<div class="container" v-loading="loading" element-loading-text="Loading..."
element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.8)">
element-loading-spinner="el-icon-loading" element-loading-background="rgba(255, 255, 255, 0.8)">
<span style="font-size: 14px;color: #606266;margin: 0 10px 0 0;">Research direction :</span>
<el-select v-model="messform.major_a" placeholder="Please select major" @change="majorChange(1)"
<el-cascader placeholder="Please select major" v-model="selectFileds" style="width:300px; margin-right: 10px;" @change="fieldChange"
:options="allFileds"
:props="fieldsProps"
collapse-tags
clearable></el-cascader>
<!-- <el-select v-model="messform.major_a" placeholder="Please select major" @change="majorChange(1)"
style="width: 200px;margin: 0 10px 0 0;">
<el-option :key="0" label="All major" :value="0"></el-option>
<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="messform.major_b" placeholder="Please select major" v-if="majors_b!=''"
@change="majorChange(2)" style="width: 200px;margin:0 10px 0 0;">
<el-option :key="0" label="None" :value="0"></el-option>
@@ -25,8 +31,10 @@
<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-input v-model="messform.keywords" clearable placeholder="Please enter keyword"
</el-select> -->
<el-input v-model="messform.email" clearable placeholder="Please enter email"
style="width: 190px;display: inline-block;margin: 0 10px 20px 0;"></el-input>
<el-input v-model="messform.field" clearable placeholder="Please enter field"
style="width: 190px;display: inline-block;margin: 0 10px 20px 0;"></el-input>
<el-button type="primary" icon="el-icon-search" @click="handleSearch">Search</el-button>
<el-table :data="revTable" border stripe class="table" ref="multipleTable"
@@ -118,13 +126,15 @@
return {
messform: {
article_id: this.$route.query.id,
keywords: '',
email: '',
field: '',
pageIndex: 1,
pageSize: 15,
major_id: 0,
major_a: 0,
major_b: '',
major_c: '',
// major_a: 0,
// major_b: '',
// major_c: '',
},
revTable: [],
mesOpen: [],
@@ -134,18 +144,28 @@
majors_a: [],
majors_b: [],
majors_c: [],
allFileds:[], // 全部领域
fieldsProps: {
checkStrictly: true,
value: 'major_id',
label: 'major_title',
children:'children'
},
selectFileds:[]
};
},
created() {
this.getDate();
this.initMajor()
//this.initMajor()
this.getAllFields()
},
computed: {
},
methods: {
fieldChange(e){
this.messform.major_id = this.selectFileds[this.selectFileds.length-1]
},
// 获取编辑列表数据
getDate() {
this.$api
@@ -178,6 +198,7 @@
// 关键字搜索
handleSearch() {
this.loading = true;
// console.log(this.messform)
this.getDate();
},
@@ -235,6 +256,18 @@
});
},
// 获取全部领域
getAllFields(){
this.$api
.post('api/Major/getMajorList')
.then((res) => {
if(res.code == 0){
this.allFileds = res.data.majors
}else{
this.$message.error(res.msg)
}
});
},
// 搜索选择领域
majorChange(e) {
if (e == 1) {

View File

@@ -129,7 +129,6 @@
</p>
</div>
</div>
<!-- 编辑引用 -->
<el-dialog v-loading="addLoading" :title= "dialogTitle + ' References'" :visible.sync="editboxVisible" width="800px" @close="cancelSave">
<p class="yinyongPre c888" style="margin-bottom: 20px; color: #888; line-height: 24px;">Now you are starting to add or modify this reference. If this reference has a DOI, you can directly copy it into the DOI input box and submit it. If this reference doesnt have the DOI, please turn on the No DOI button, and write all details of this reference according to the hints.</p>
@@ -228,8 +227,8 @@
</span>
</el-dialog>
<!-- 复制word添加引用 -->
<el-dialog :title= "dialogTitle + ' References'" :visible.sync="showEditor" width="800px" @close="showEditor= false">
<div style="height: 500px;">
<el-dialog title= "Add References'" :visible.sync="showEditor" width="800px" @close="showEditor= false">
<div>
<vue-ueditor-wrap v-model="wordText" :config="editorConfig" editor-id="editor-demo-01"></vue-ueditor-wrap>
</div>
<span slot="footer">
@@ -246,7 +245,7 @@ export default {
data(){
return{
ue: null,
wordText:'',
wordText:'<p>Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".</p>',
editorConfig: {
// 访问 UEditor 静态资源的根路径,可参考 https://hc199421.gitee.io/vue-ueditor-wrap/#/faq
UEDITOR_HOME_URL: "/UEditor/",
@@ -907,8 +906,10 @@ export default {
</script>
<style scoped>
/* 隐藏编辑器底部内容 */
/deep/ #edui1_bottombar{display: none;}
/* 编辑器高度 */
/deep/ #edui1_iframeholder{ height: 350px;}
/deep/ #edui1_iframeholder{ height: 260px;}
/* .itemIndex{position: relative;} */
.itemChanged{position: absolute; display: inline-block; background: #006699; color: #fff; padding: 7px; border-radius: 0 0 7px 7px; left: 0; top: 0;}