自动化
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
<font>Title :</font>
|
||||
<b> {{ form.title }}</b>
|
||||
</p>
|
||||
|
||||
|
||||
<!-- <p v-show="form.type=='A'">
|
||||
<font>Ethical Approval :</font><b>{{form.approval?'Yes':'No'}}</b>
|
||||
</p> -->
|
||||
@@ -177,14 +177,23 @@
|
||||
<el-col :span="12">
|
||||
<h4>Manuscirpt :</h4>
|
||||
<p class="fi_new">
|
||||
<a v-for="item in manuscirptFileList" :href="mediaUrl + item.file_url">
|
||||
<img src="../../assets/img/icon_0.png" />
|
||||
<span>
|
||||
<font>Uploader : </font>{{ item.username }}
|
||||
<i><i class="el-icon-time"></i>{{ formatDate(item.ctime) }}</i>
|
||||
</span>
|
||||
<i class="el-icon-download download"></i>
|
||||
</a>
|
||||
<template v-for="item in manuscirptFileList">
|
||||
<a href="#">
|
||||
<img
|
||||
src="../../assets/img/icon_0.png"
|
||||
@click="openDrawer(item, mediaUrl + item.file_url)"
|
||||
/>
|
||||
|
||||
<span @click="openDrawer(item, mediaUrl + item.file_url)">
|
||||
<font>Uploader : </font>{{ item.username }}
|
||||
<i><i class="el-icon-time"></i>{{ formatDate(item.ctime) }}</i>
|
||||
<i class="el-icon-view" style="font-weight: bold; color: #888; margin: 0 0 0 10px"></i>
|
||||
</span>
|
||||
<a :href="mediaUrl + item.file_url">
|
||||
<i class="el-icon-download download"></i>
|
||||
</a>
|
||||
</a>
|
||||
</template>
|
||||
</p>
|
||||
<br clear="both" />
|
||||
</el-col>
|
||||
@@ -224,6 +233,12 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
<common-word-html
|
||||
:articleId="$route.query.id"
|
||||
style=" box-sizing: border-box"
|
||||
|
||||
|
||||
></common-word-html>
|
||||
</div>
|
||||
<!-- 被拒稿件操作 --->
|
||||
<div class="art_caozuo_" v-if="opname == 'rejectArticles'">
|
||||
@@ -445,6 +460,46 @@
|
||||
<el-button type="primary" @click="saveResubmit">Save</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-drawer
|
||||
append-to-body
|
||||
destroy-on-close
|
||||
:title="previewData.drawerTitle"
|
||||
:visible.sync="drawer"
|
||||
direction="rtl"
|
||||
:before-close="handleClose"
|
||||
size="1200px"
|
||||
>
|
||||
<template #title>
|
||||
<div style="display: inline-block; vertical-align: top">
|
||||
Manuscirpt :
|
||||
<img
|
||||
src="../../assets/img/icon_0.png"
|
||||
style="
|
||||
width: 15px;
|
||||
|
||||
margin: 0 5px 0 0;
|
||||
margin-left: 10px;
|
||||
"
|
||||
/>
|
||||
|
||||
<span>
|
||||
<font>Uploader : </font>{{ previewData.username }}
|
||||
<i style="color: #888; margin: 0 20px; font-style: normal"
|
||||
><i class="el-icon-time" style="margin-right: 10px"></i>{{ formatDate(previewData.ctime) }}</i
|
||||
>
|
||||
<a :href="mediaUrl + previewData.file_url">
|
||||
<i class="el-icon-download download" style="color: #75abf1; font-weight: bold"></i>
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<iframe
|
||||
:src="`https://view.officeapps.live.com/op/embed.aspx?src=${previewData.previewUrl}`"
|
||||
width="100%"
|
||||
height="98%"
|
||||
frameborder="0"
|
||||
></iframe>
|
||||
</el-drawer>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -456,10 +511,12 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
previewData: {},
|
||||
baseUrl: this.Common.baseUrl,
|
||||
mediaUrl: this.Common.mediaUrl,
|
||||
now_year: 0,
|
||||
items: '',
|
||||
drawer: false,
|
||||
loading: false,
|
||||
loading1: false,
|
||||
loading2: false,
|
||||
@@ -574,7 +631,10 @@ export default {
|
||||
},
|
||||
created: function () {
|
||||
this.initarticle();
|
||||
|
||||
this.initFileList();
|
||||
this.getWordimgList();
|
||||
this.getWordTablesList();
|
||||
},
|
||||
computed: {
|
||||
myType: function () {
|
||||
@@ -705,6 +765,48 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getWordimgList() {
|
||||
var that = this;
|
||||
await this.$api
|
||||
.post('api/Article/getArticleImages', {
|
||||
article_id: this.$route.query.id
|
||||
})
|
||||
.then(async (res) => {
|
||||
this.wordimgList = res.data.list;
|
||||
if (this.wordimgList.length > 0) {
|
||||
await this.$commonJS.getWordImagesThumbnails(this.wordimgList, function (html) {
|
||||
that.imagesHtml = html;
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
getWordTablesList() {
|
||||
this.$api
|
||||
.post('api/Article/getArticleTable', {
|
||||
article_id: this.$route.query.id
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('res at line 2210:', res);
|
||||
var that = this;
|
||||
that.tables = res.data.list && res.data.list.length > 0 ? JSON.parse(res.data.list[0].table) : [];
|
||||
if (that.tables.length > 0) {
|
||||
that.$commonJS.getWordTablesThumbnails(that.tables, function (html) {
|
||||
that.tablesHtml = html;
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
openDrawer(data, url) {
|
||||
this.previewData = {
|
||||
...data,
|
||||
previewUrl: url,
|
||||
drawerTitle: 'Uploader : ' + data.username + ' ' + this.formatDate(data.ctime)
|
||||
};
|
||||
this.drawer = true;
|
||||
},
|
||||
handleClose() {
|
||||
this.drawer = false;
|
||||
},
|
||||
talksave(val) {
|
||||
this.msgform.ad_content = '';
|
||||
this.getTalkList();
|
||||
@@ -1285,4 +1387,14 @@ export default {
|
||||
.art_state_message p {
|
||||
margin-left: 15px;
|
||||
}
|
||||
::v-deep .el-drawer__header {
|
||||
margin-bottom: 0;
|
||||
padding: 15px;
|
||||
}
|
||||
::v-deep #wacframe #AppHeaderPanel {
|
||||
width: 98% !important;
|
||||
}
|
||||
::v-deep .el-drawer__wrapper .WACContainer {
|
||||
z-index: 10000 !important;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user