html格式化优化

This commit is contained in:
@fawn-nine
2023-07-18 17:39:08 +08:00
parent 1e07ef3887
commit f13ce88793
5 changed files with 27 additions and 14 deletions

View File

@@ -88,8 +88,8 @@ UE.I18N['zh-cn'] = {
// 'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
'wordCountMsg':'',
'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
'ok':"确认",
'cancel':"取消",
'ok':"Ok",
'cancel':"Cancle",
'closeDialog':"关闭对话框",
'tableDrag':"表格拖动必须引入uiUtils.js文件",
'autofloatMsg':"工具栏浮动依赖编辑器UI您首先需要引入UI文件!",

View File

@@ -115,12 +115,12 @@
<template slot-scope="scope">
<!-- journal 形式 -->
<div style="text-align: left;" v-if="scope.row.refer_type == 'journal'">
<p>{{scope.row.author}},{{scope.row.title}}, <em>{{scope.row.joura}}</em> ,{{scope.row.dateno}}<br/></p>
<p>{{scope.row.author}}{{scope.row.title}}. <em>{{scope.row.joura}}</em> {{scope.row.dateno}}.<br/></p>
<a class="doiLink" :href="scope.row.doilink" target="_blank">{{scope.row.doilink}}</a>
</div>
<!-- book 形式 -->
<div style="text-align: left;" v-if="scope.row.refer_type == 'book'">
<p>{{scope.row.author}},{{scope.row.title}},{{scope.row.dateno}}<br/></p>
<p>{{scope.row.author}}{{scope.row.title}}.{{scope.row.dateno}}.<br/></p>
<a class="doiLink" :href="scope.row.isbn" target="_blank">{{scope.row.isbn}}</a>
</div>
<!-- other 形式 -->

View File

@@ -230,11 +230,11 @@
Html Layout :
<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>
<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.stop @click="htmlLayout()"
style="margin-left: 20px;">
<font >Edit Html Proofread</font>
</el-button>
<el-button v-if="UpHtpFIle.mains!=''" type="primary" plain icon="el-icon-document-copy" @click="clearHtmlLayout()"
<el-button v-if="UpHtpFIle.mains!=''" type="danger" plain icon="el-icon-document-copy" @click.stop @click="clearHtmlLayout()"
style="margin-left: 20px;">
<font >Remove Html Proofread</font>
</el-button>

View File

@@ -207,13 +207,20 @@
</el-button>
</span>
</el-dialog>
<el-dialog ref="multAdd" title="Add in bulk" z-index="1000"
<el-dialog ref="multAdd" title="Html layOut" z-index="1000"
:visible.sync="multAddVisible"
width="800px">
<div>
<div class="logtips">
<p >Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".</p>
</div>
<div class="istitle" v-if="saveMode == 'edit'">
<span>Title set: </span>
<el-radio-group v-model="multAdd.isTitle">
<el-radio :label="0">Is not title</el-radio>
<el-radio :label="1">Is title</el-radio>
</el-radio-group>
</div>
<vue-ueditor-wrap v-model="wordText" :config="editorConfig" editor-id="editor-demo-01"></vue-ueditor-wrap>
</div>
<span slot="footer">
@@ -276,6 +283,8 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
contents:[], // 识别出的word引用数组
article_main_id:null,
isTitle:0
},
saveMode:''
@@ -363,9 +372,10 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
saveEdit(){
this.$api
.post('api/Production/editWebMain', {
article_main_id: this.multAdd.article_main_id,
type: 'content',
content: this.wordText
'article_main_id': this.multAdd.article_main_id,
'type': 'content',
'content': this.wordText,
'is_title':this.multAdd.isTitle
})
.then(res => {
if (res.code == 0) {
@@ -374,6 +384,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
this.multAdd.article_main_id = ''
this.wordText = ''
this.saveMode = ''
this.multAdd.isTitle = 0
this.getDate()
} else {
this.$message.error(res.msg);
@@ -450,6 +461,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
this.multAdd.article_main_id = val.article_main_id;
this.wordText = val.text
this.multAddVisible = true
this.multAdd.isTitle = val.is_title
this.saveMode = 'edit'
// 以前的
// this.txtVisible = true
@@ -943,4 +955,5 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
height: 120px;
display: block;
}
.istitle{margin: 20px 0;}
</style>

View File

@@ -88,12 +88,12 @@
<template slot-scope="scope">
<!-- journal 形式 -->
<div style="text-align: left;" v-if="scope.row.refer_type == 'journal'">
<p>{{scope.row.author}},{{scope.row.title}}, <em>{{scope.row.joura}}</em> ,{{scope.row.dateno}}<br/></p>
<p>{{scope.row.author}}{{scope.row.title}}. <em>{{scope.row.joura}}</em> {{scope.row.dateno}}.<br/></p>
<a class="doiLink" :href="scope.row.doilink" target="_blank">{{scope.row.doilink}}</a>
</div>
<!-- book 形式 -->
<div style="text-align: left;" v-if="scope.row.refer_type == 'book'">
<p>{{scope.row.author}},{{scope.row.title}},{{scope.row.dateno}}<br/></p>
<p>{{scope.row.author}}{{scope.row.title}}.{{scope.row.dateno}}.<br/></p>
<a class="doiLink" :href="scope.row.isbn" target="_blank">{{scope.row.isbn}}</a>
</div>
<!-- other 形式 -->