稿件详情对话框添加交互
创建html流程优化
This commit is contained in:
@@ -266,7 +266,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<timetalk :talkMsgs="talkMsgs" :msgform="msgform"></timetalk>
|
<timetalk :talkMsgs="talkMsgs" :msgform="msgform" @talksave="getTalkList"></timetalk>
|
||||||
<div class="tree_box">
|
<div class="tree_box">
|
||||||
<h2 style="margin: 0 0 20px 0;">Manuscript Tracking</h2>
|
<h2 style="margin: 0 0 20px 0;">Manuscript Tracking</h2>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
@@ -661,7 +661,7 @@
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//弹出编辑框
|
//弹出编辑框
|
||||||
testvis() {
|
testvis() {
|
||||||
this.editVisible = true;
|
this.editVisible = true;
|
||||||
@@ -864,6 +864,20 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 获取留言列表
|
||||||
|
getTalkList(){
|
||||||
|
this.$api
|
||||||
|
.post('api/Article/getArticleDialogs', {
|
||||||
|
article_id: this.$route.query.id
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
this.talkMsgs = res.data.dialogs;
|
||||||
|
})
|
||||||
|
.catch((err) => {
|
||||||
|
console.log(err);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
// H指数修改
|
// H指数修改
|
||||||
HIndexEdit(row) {
|
HIndexEdit(row) {
|
||||||
this.HEditVisible = true
|
this.HEditVisible = true
|
||||||
|
|||||||
@@ -230,10 +230,6 @@
|
|||||||
Html Layout :
|
Html Layout :
|
||||||
<span style="margin-left: 15px;color: #666;" v-if="UpHtpFIle.mains==''">No Layout</span>
|
<span style="margin-left: 15px;color: #666;" v-if="UpHtpFIle.mains==''">No Layout</span>
|
||||||
<span style="margin-left: 15px;color: #0b4b6a;" v-if="UpHtpFIle.mains!=''">Typesetting completed</span>
|
<span style="margin-left: 15px;color: #0b4b6a;" v-if="UpHtpFIle.mains!=''">Typesetting completed</span>
|
||||||
<!-- <el-button v-if="UpHtpFIle.mains==''" type="text" plain icon="el-icon-document-copy" @click="showCreateHtmlItem()"
|
|
||||||
style="margin-left: 20px;">
|
|
||||||
<font >Create Html Proofread</font>
|
|
||||||
</el-button> -->
|
|
||||||
<el-button v-if="UpHtpFIle.mains!=''" type="primary" plain icon="el-icon-document-copy" @click="htmlLayout()"
|
<el-button v-if="UpHtpFIle.mains!=''" type="primary" plain icon="el-icon-document-copy" @click="htmlLayout()"
|
||||||
style="margin-left: 20px;">
|
style="margin-left: 20px;">
|
||||||
<font >Edit Html Proofread</font>
|
<font >Edit Html Proofread</font>
|
||||||
@@ -242,12 +238,15 @@
|
|||||||
<div>
|
<div>
|
||||||
<!-- 生成选项 -->
|
<!-- 生成选项 -->
|
||||||
<div v-if="UpHtpFIle.mains==''">
|
<div v-if="UpHtpFIle.mains==''">
|
||||||
<el-radio v-model="createType" label="1">使用稿件最终版生成html</el-radio>
|
<el-radio v-model="createType" label="1">Use last manuscirpt version</el-radio>
|
||||||
<el-radio v-model="createType" label="2">重新上传word文件生成html</el-radio>
|
<el-radio v-model="createType" label="2">Use new file upload</el-radio>
|
||||||
<!-- 方式是重新上传,且没有上传文件时,按钮不可用 -->
|
|
||||||
<el-button type="primary" @click="htmlLayout" class="import" v-if="createType=='2' && fileL_manuscirpt != '' || createType=='1'">Create Html Proofread</el-button>
|
<!-- 使用默认最新稿件生成 -->
|
||||||
|
<div style="margin: 20px 0 0 0" v-if="createType == '1'">
|
||||||
|
<el-button type="primary" @click="htmlLayout" class="import" >Create Html Proofread</el-button>
|
||||||
|
</div>
|
||||||
<!-- 文件上传 -->
|
<!-- 文件上传 -->
|
||||||
<div style="margin: 20px 0 0 0" v-if="createType == '2'">
|
<div class="up" style="margin: 20px 0 0 0" v-if="createType == '2'">
|
||||||
<el-upload ref="uploadFile" class="upload-demo up_newstyle" :action="upload_manuscirpt"
|
<el-upload ref="uploadFile" class="upload-demo up_newstyle" :action="upload_manuscirpt"
|
||||||
accept=".docx" name="completedManuscirpt" :before-upload="beforeupload_manuscirpt"
|
accept=".docx" name="completedManuscirpt" :before-upload="beforeupload_manuscirpt"
|
||||||
:on-error="uperr_coverLetter" :on-success="upSuccess_manuscirpt" :limit="1"
|
:on-error="uperr_coverLetter" :on-success="upSuccess_manuscirpt" :limit="1"
|
||||||
@@ -260,28 +259,28 @@
|
|||||||
Only Word and compressed files can be uploaded (file format: .docx).
|
Only Word and compressed files can be uploaded (file format: .docx).
|
||||||
</div> -->
|
</div> -->
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
<el-button type="primary" @click="htmlLayout" class="import" >Create Html Proofread</el-button>
|
||||||
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
</div>
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
<div class="titHtml" v-if="UpHtpFIle.mains!=''">
|
<div class="titHtml" v-if="UpHtpFIle.mains!=''">
|
||||||
<div v-for="(item,index) in UpHtpFIle.mains">
|
<div v-for="(item,index) in UpHtpFIle.mains" :key="index">
|
||||||
<p v-html="item.content" v-if="item.width==0"></p>
|
<p v-html="item.content" v-if="item.width==0"></p>
|
||||||
<p v-if="item.width!=0" class="MaxPicture">
|
<p v-if="item.width!=0" class="MaxPicture">
|
||||||
<img :src="baseUrl+'public/mainimg/'+item.content" :style="'width:'+item.width+'px'">
|
<img :src="baseUrl+'public/mainimg/'+item.content" :style="'width:'+item.width+'px'">
|
||||||
<font :style="'width:'+item.width+'px'">{{item.note}}
|
<font :style="'width:'+item.width+'px'">{{item.note}}</font>
|
||||||
</font>
|
</p>
|
||||||
</p>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div>
|
</div>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
<el-collapse-item name="references">
|
<el-collapse-item name="references">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
References :
|
References :
|
||||||
<span style="margin-left: 15px;color: #666;" v-if="UpHtpFIle.refers==''">Have no refernces</span>
|
<span style="margin-left: 15px;color: #666;" v-if="UpHtpFIle.refers==''">Have no refernces</span>
|
||||||
<span style="margin-left: 15px;color: #0b4b6a;" v-if="UpHtpFIle.refers!=''">There are {{UpHtpFIle.refers.length}} pieces of data in total.</span>
|
<span style="margin-left: 15px;color: #0b4b6a;" v-if="UpHtpFIle.refers!=''">There are {{UpHtpFIle.refers.length}} pieces of data in total.</span>
|
||||||
<el-button type="primary" plain icon="el-icon-document-copy" @click="goEditRefernces"
|
<el-button type="primary" plain icon="el-icon-document-copy" @click="goEditRefernces" @click.stop
|
||||||
style="margin-left: 20px;">
|
style="margin-left: 20px;">
|
||||||
<font >Edit References</font>
|
<font >Edit References</font>
|
||||||
</el-button>
|
</el-button>
|
||||||
@@ -336,7 +335,7 @@ import { watch } from 'vue';
|
|||||||
return {
|
return {
|
||||||
articleId:null,
|
articleId:null,
|
||||||
createType:'1', // html生成方式
|
createType:'1', // html生成方式
|
||||||
collapseActiveNames:['html'], // 手风琴绑定值
|
collapseActiveNames:[], // 手风琴绑定值
|
||||||
// oldFile:false, // 是否用新文件生成
|
// oldFile:false, // 是否用新文件生成
|
||||||
fileL_manuscirpt: [],
|
fileL_manuscirpt: [],
|
||||||
baseUrl: this.Common.baseUrl,
|
baseUrl: this.Common.baseUrl,
|
||||||
@@ -448,11 +447,7 @@ import { watch } from 'vue';
|
|||||||
this.createType = '1' // html生成方式
|
this.createType = '1' // html生成方式
|
||||||
this.collapseActiveNames = ['html']
|
this.collapseActiveNames = ['html']
|
||||||
|
|
||||||
},
|
},
|
||||||
showCreateHtmlItem(){
|
|
||||||
this.collapseActiveNames[0] = 'html'
|
|
||||||
//console.log(this.collapseActiveNames)
|
|
||||||
},
|
|
||||||
beforeupload_manuscirpt(file) {
|
beforeupload_manuscirpt(file) {
|
||||||
let flieArr = file.name.split(".")
|
let flieArr = file.name.split(".")
|
||||||
let fileSuffix = flieArr[flieArr.length - 1];
|
let fileSuffix = flieArr[flieArr.length - 1];
|
||||||
@@ -916,9 +911,20 @@ import { watch } from 'vue';
|
|||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
// watch:{
|
watch:{
|
||||||
|
HtmlVisible:{
|
||||||
|
handler(newVal, oldVal) {
|
||||||
|
if(this.UpHtpFIle.mains=='' && newVal == true){ //打开赋值
|
||||||
|
this.collapseActiveNames.push('html')
|
||||||
|
}else{ // 关闭清空
|
||||||
|
this.collapseActiveNames = []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true // 可以深度检测到 person 对象的属性值的变化
|
||||||
|
},
|
||||||
// collapseActiveNames : {
|
// collapseActiveNames : {
|
||||||
// handler(newVal, oldVal) {
|
// handler(newVal, oldVal) {
|
||||||
|
// console.log(newVal, '新传入的值')
|
||||||
// this.$nextTick(()=>{
|
// this.$nextTick(()=>{
|
||||||
// this.oldFile = newVal.find((item)=>{item.name===''});
|
// this.oldFile = newVal.find((item)=>{item.name===''});
|
||||||
// })
|
// })
|
||||||
@@ -926,7 +932,7 @@ import { watch } from 'vue';
|
|||||||
// // immediate: true,
|
// // immediate: true,
|
||||||
// deep: true // 可以深度检测到 person 对象的属性值的变化
|
// deep: true // 可以深度检测到 person 对象的属性值的变化
|
||||||
// }
|
// }
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -936,7 +942,7 @@ import { watch } from 'vue';
|
|||||||
.up_newstyle {
|
.up_newstyle {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
.up .up_newstyle{margin-left: 0; margin-bottom: 15px;}
|
||||||
/deep/ .el-upload--text {
|
/deep/ .el-upload--text {
|
||||||
background-color: #ecf5ff;
|
background-color: #ecf5ff;
|
||||||
border: 1px solid #b3d8ff !important;
|
border: 1px solid #b3d8ff !important;
|
||||||
|
|||||||
@@ -243,6 +243,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
||||||
export default {
|
export default {
|
||||||
data(){
|
data(){
|
||||||
@@ -251,7 +252,9 @@ export default {
|
|||||||
wordText:'',
|
wordText:'',
|
||||||
editorConfig: {
|
editorConfig: {
|
||||||
// 访问 UEditor 静态资源的根路径,可参考 https://hc199421.gitee.io/vue-ueditor-wrap/#/faq
|
// 访问 UEditor 静态资源的根路径,可参考 https://hc199421.gitee.io/vue-ueditor-wrap/#/faq
|
||||||
UEDITOR_HOME_URL: "/UEditor/",
|
UEDITOR_HOME_URL: "/UEditor/",
|
||||||
|
// serverUrl: "//ueditor.zhenghaochuan.com/cos",
|
||||||
|
serverUrl: "",
|
||||||
|
|
||||||
},
|
},
|
||||||
wordTextArr:[], // 识别出的word引用数组
|
wordTextArr:[], // 识别出的word引用数组
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--对话模块-->
|
<!--对话模块-->
|
||||||
<template>
|
<template>
|
||||||
<div class="kuang_communtion">
|
<div class="kuang_communtion" v-loading="loading">
|
||||||
<h2>
|
<h2>
|
||||||
Communication
|
Communication
|
||||||
</h2>
|
</h2>
|
||||||
@@ -60,6 +60,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
username: localStorage.getItem('U_name'),
|
username: localStorage.getItem('U_name'),
|
||||||
|
loading:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
|
|||||||
Reference in New Issue
Block a user