|
@@ -283,7 +283,7 @@
|
|
|
label="操作"
|
|
label="操作"
|
|
|
width="width">
|
|
width="width">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="primary" @click="getDays30PublishArticle(scope.row)">查看</el-button>
|
|
|
|
|
|
|
+ <el-button size="mini" type="primary" @click="showArticle(scope.row)">查看</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -341,6 +341,31 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
+ <!-- 文章预览 -->
|
|
|
|
|
+ <el-dialog
|
|
|
|
|
+ title="文章详情"
|
|
|
|
|
+ :close-on-click-modal="true"
|
|
|
|
|
+ :visible.sync="dialogVisible2"
|
|
|
|
|
+ width="414px">
|
|
|
|
|
+ <div class="preview">
|
|
|
|
|
+ <p class="aname">{{form2.name}}</p>
|
|
|
|
|
+ <div class="ainfo">
|
|
|
|
|
+ <img width="100" :src="form2.img" alt="">
|
|
|
|
|
+ <p>
|
|
|
|
|
+ 发布单位:{{form2.journal_name}} <br>
|
|
|
|
|
+ 作者:{{form2.author}} <br>
|
|
|
|
|
+ 发表时间:{{form2.publish_time}}
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <b>文章简介</b>
|
|
|
|
|
+ <div class="adesc">{{form2.desc}}</div>
|
|
|
|
|
+ <b>文章内容</b>
|
|
|
|
|
+ <div v-html="form2.content"></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <!-- <span slot="footer" class="dialog-footer">
|
|
|
|
|
+ <el-button type="primary" @click="open = false">确 定</el-button>
|
|
|
|
|
+ </span> -->
|
|
|
|
|
+ </el-dialog>
|
|
|
</section>
|
|
</section>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -349,6 +374,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
form:{},
|
|
form:{},
|
|
|
form1:{},
|
|
form1:{},
|
|
|
|
|
+ form2:{},
|
|
|
params: {
|
|
params: {
|
|
|
timerange: [
|
|
timerange: [
|
|
|
new Date(new Date()-1000*60*60*24).toLocaleDateString().split("/").join("-"),
|
|
new Date(new Date()-1000*60*60*24).toLocaleDateString().split("/").join("-"),
|
|
@@ -373,7 +399,8 @@ export default {
|
|
|
days30Publish:[],
|
|
days30Publish:[],
|
|
|
days30PublishArticle:[],
|
|
days30PublishArticle:[],
|
|
|
dialogTitle:"",
|
|
dialogTitle:"",
|
|
|
- dialogVisible1:false
|
|
|
|
|
|
|
+ dialogVisible1:false,
|
|
|
|
|
+ dialogVisible2:false
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -458,6 +485,14 @@ export default {
|
|
|
this.dialogVisible1 = true;
|
|
this.dialogVisible1 = true;
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ showArticle(row){
|
|
|
|
|
+ this.loading = true;
|
|
|
|
|
+ this.$api.getArticle({ id: row.article_id }).then((res) => {
|
|
|
|
|
+ this.form2 = res.data.data;
|
|
|
|
|
+ this.loading = false;
|
|
|
|
|
+ this.dialogVisible2 = true;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 初始化图表
|
|
// 初始化图表
|
|
|
initCharts() {
|
|
initCharts() {
|
|
|
let option1 = {
|
|
let option1 = {
|