|
@@ -96,7 +96,7 @@
|
|
|
</style>
|
|
</style>
|
|
|
<template>
|
|
<template>
|
|
|
<section>
|
|
<section>
|
|
|
- <p><span>会议管理></span>新增文章</p>
|
|
|
|
|
|
|
+ <p><span>刊群导览></span>新增期刊</p>
|
|
|
<div class="content">
|
|
<div class="content">
|
|
|
<!-- <div class="title">新增会议</div> -->
|
|
<!-- <div class="title">新增会议</div> -->
|
|
|
<el-form
|
|
<el-form
|
|
@@ -107,23 +107,52 @@
|
|
|
:model="form"
|
|
:model="form"
|
|
|
:rules="rules"
|
|
:rules="rules"
|
|
|
>
|
|
>
|
|
|
- <el-form-item label="文章名称:" prop="name">
|
|
|
|
|
- <el-input
|
|
|
|
|
- placeholder="请输入文章名称"
|
|
|
|
|
- v-model="form.name"
|
|
|
|
|
- clearable
|
|
|
|
|
- ></el-input>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
<el-row>
|
|
<el-row>
|
|
|
- <el-col :span="5">
|
|
|
|
|
- <el-form-item label="文章来源:" prop="journal_id">
|
|
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="期刊名称:" prop="name">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入期刊名称"
|
|
|
|
|
+ v-model="form.name"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="微信号:" prop="wxcode">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入微信号"
|
|
|
|
|
+ v-model="form.wxcode"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="中文名称:" prop="cname">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入中文名称"
|
|
|
|
|
+ v-model="form.cname"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="外文名称:" prop="ename">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入外文名称"
|
|
|
|
|
+ v-model="form.ename"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="主办单位:" prop="organizer_id">
|
|
|
<el-select
|
|
<el-select
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
- v-model="form.journal_id"
|
|
|
|
|
|
|
+ v-model="form.organizer_id"
|
|
|
filterable
|
|
filterable
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
- v-for="(item, index) in journalList"
|
|
|
|
|
|
|
+ v-for="(item, index) in organizerList"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
:label="item.name"
|
|
:label="item.name"
|
|
|
:value="item.id"
|
|
:value="item.id"
|
|
@@ -131,23 +160,114 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="5">
|
|
|
|
|
- <el-form-item label="作者:" prop="author">
|
|
|
|
|
- <el-input v-model="form.author" placeholder=""> </el-input>
|
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="学科:" prop="subject_id">
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ placeholder="请选择"
|
|
|
|
|
+ v-model="form.subject_id"
|
|
|
|
|
+ filterable
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="(item, index) in subjectList"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ :label="item.name"
|
|
|
|
|
+ :value="item.id"
|
|
|
|
|
+ ></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- <el-col :span="12" :offset="2">
|
|
|
|
|
- <el-form-item label="出版时间:" prop="publish_time">
|
|
|
|
|
- <el-date-picker
|
|
|
|
|
- v-model="form.publish_time"
|
|
|
|
|
- type="date"
|
|
|
|
|
- range-separator="至"
|
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="语种:" prop="languages">
|
|
|
|
|
+ <el-input v-model="form.languages" placeholder=""> </el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="出版时间:" prop="publishingTime">
|
|
|
|
|
+ <el-input v-model="form.publishingTime" placeholder=""> </el-input>
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="主编:" prop="editor">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入期刊名称"
|
|
|
|
|
+ v-model="form.editor"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="主管单位:" prop="corganizers">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入主管单位"
|
|
|
|
|
+ v-model="form.corganizers"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="办刊单位:" prop="publishingUnit">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入期刊名称"
|
|
|
|
|
+ v-model="form.publishingUnit"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="创刊时间:" prop="">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入期刊名称"
|
|
|
|
|
+ v-model="form.publishingTime"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="出版周期:" prop="publishingCycle">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入出版周期"
|
|
|
|
|
+ v-model="form.publishingCycle"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="国内刊号:" prop="domestic">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入国内刊号"
|
|
|
|
|
+ v-model="form.domestic"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="国际刊号:" prop="issn">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入国际刊号"
|
|
|
|
|
+ v-model="form.issn"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="6">
|
|
|
|
|
+ <el-form-item label="期刊官网:" prop="website">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入期刊官网"
|
|
|
|
|
+ v-model="form.website"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="编辑部地址:" prop="editorialAddress">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ placeholder="请输入编辑部地址"
|
|
|
|
|
+ v-model="form.editorialAddress"
|
|
|
|
|
+ clearable
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-form-item label="文章简介:">
|
|
<el-form-item label="文章简介:">
|
|
|
<el-input
|
|
<el-input
|
|
@@ -171,9 +291,6 @@
|
|
|
>建议图片尺寸为:210*160</span
|
|
>建议图片尺寸为:210*160</span
|
|
|
>
|
|
>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
- <el-form-item label="文章详情:">
|
|
|
|
|
- <fuEditor :value="form.content"></fuEditor>
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
<el-form-item style="position: fixed; bottom: 20px; right: 60px">
|
|
<el-form-item style="position: fixed; bottom: 20px; right: 60px">
|
|
|
<el-button type="primary">预览</el-button>
|
|
<el-button type="primary">预览</el-button>
|
|
|
<el-button type="success">发布</el-button>
|
|
<el-button type="success">发布</el-button>
|
|
@@ -193,7 +310,8 @@ export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
form: {},
|
|
form: {},
|
|
|
- journalList: [],
|
|
|
|
|
|
|
+ subjectList: [],
|
|
|
|
|
+ organizerList:[],
|
|
|
imageUrl: "",
|
|
imageUrl: "",
|
|
|
rules: {
|
|
rules: {
|
|
|
name: [{ required: true, message: "请输入标题", trigger: "blur" }],
|
|
name: [{ required: true, message: "请输入标题", trigger: "blur" }],
|
|
@@ -235,12 +353,16 @@ export default {
|
|
|
},
|
|
},
|
|
|
getData() {
|
|
getData() {
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
- this.$api.searchJournalList().then((res) => {
|
|
|
|
|
- this.journalList = res.data.data;
|
|
|
|
|
|
|
+ this.$api.searchSubjectList().then((res) => {
|
|
|
|
|
+ this.subjectList = res.data.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.$api.searchOrganizerList().then((res) => {
|
|
|
|
|
+ this.organizerList = res.data.data;
|
|
|
});
|
|
});
|
|
|
|
|
+ // 期刊详情
|
|
|
let id = this.$route.query.id;
|
|
let id = this.$route.query.id;
|
|
|
if (id) {
|
|
if (id) {
|
|
|
- this.$api.getArticle({ id: id }).then((res) => {
|
|
|
|
|
|
|
+ this.$api.getJournal({ id: id }).then((res) => {
|
|
|
this.form = res.data.data;
|
|
this.form = res.data.data;
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|