html格式化优化
This commit is contained in:
@@ -88,8 +88,8 @@ UE.I18N['zh-cn'] = {
|
|||||||
// 'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
|
// 'wordCountMsg':'当前已输入{#count}个字符, 您还可以输入{#leave}个字符。 ',
|
||||||
'wordCountMsg':'',
|
'wordCountMsg':'',
|
||||||
'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
|
'wordOverFlowMsg':'<span style="color:red;">字数超出最大允许值,服务器可能拒绝保存!</span>',
|
||||||
'ok':"确认",
|
'ok':"Ok",
|
||||||
'cancel':"取消",
|
'cancel':"Cancle",
|
||||||
'closeDialog':"关闭对话框",
|
'closeDialog':"关闭对话框",
|
||||||
'tableDrag':"表格拖动必须引入uiUtils.js文件!",
|
'tableDrag':"表格拖动必须引入uiUtils.js文件!",
|
||||||
'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
|
'autofloatMsg':"工具栏浮动依赖编辑器UI,您首先需要引入UI文件!",
|
||||||
|
|||||||
@@ -115,12 +115,12 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- journal 形式 -->
|
<!-- journal 形式 -->
|
||||||
<div style="text-align: left;" v-if="scope.row.refer_type == '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>
|
<a class="doiLink" :href="scope.row.doilink" target="_blank">{{scope.row.doilink}}</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- book 形式 -->
|
<!-- book 形式 -->
|
||||||
<div style="text-align: left;" v-if="scope.row.refer_type == '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>
|
<a class="doiLink" :href="scope.row.isbn" target="_blank">{{scope.row.isbn}}</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- other 形式 -->
|
<!-- other 形式 -->
|
||||||
|
|||||||
@@ -230,11 +230,11 @@
|
|||||||
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="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;">
|
style="margin-left: 20px;">
|
||||||
<font >Edit Html Proofread</font>
|
<font >Edit Html Proofread</font>
|
||||||
</el-button>
|
</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;">
|
style="margin-left: 20px;">
|
||||||
<font >Remove Html Proofread</font>
|
<font >Remove Html Proofread</font>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|||||||
@@ -207,13 +207,20 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</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"
|
:visible.sync="multAddVisible"
|
||||||
width="800px">
|
width="800px">
|
||||||
<div>
|
<div>
|
||||||
<div class="logtips">
|
<div class="logtips">
|
||||||
<p >Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".</p>
|
<p >Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".</p>
|
||||||
</div>
|
</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>
|
<vue-ueditor-wrap v-model="wordText" :config="editorConfig" editor-id="editor-demo-01"></vue-ueditor-wrap>
|
||||||
</div>
|
</div>
|
||||||
<span slot="footer">
|
<span slot="footer">
|
||||||
@@ -276,6 +283,8 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
|
|
||||||
contents:[], // 识别出的word引用数组
|
contents:[], // 识别出的word引用数组
|
||||||
article_main_id:null,
|
article_main_id:null,
|
||||||
|
isTitle:0
|
||||||
|
|
||||||
},
|
},
|
||||||
saveMode:''
|
saveMode:''
|
||||||
|
|
||||||
@@ -363,9 +372,10 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
saveEdit(){
|
saveEdit(){
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Production/editWebMain', {
|
.post('api/Production/editWebMain', {
|
||||||
article_main_id: this.multAdd.article_main_id,
|
'article_main_id': this.multAdd.article_main_id,
|
||||||
type: 'content',
|
'type': 'content',
|
||||||
content: this.wordText
|
'content': this.wordText,
|
||||||
|
'is_title':this.multAdd.isTitle
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -374,6 +384,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
this.multAdd.article_main_id = ''
|
this.multAdd.article_main_id = ''
|
||||||
this.wordText = ''
|
this.wordText = ''
|
||||||
this.saveMode = ''
|
this.saveMode = ''
|
||||||
|
this.multAdd.isTitle = 0
|
||||||
this.getDate()
|
this.getDate()
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
@@ -390,7 +401,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
'article_id':this.Art_web_Id ,
|
'article_id':this.Art_web_Id ,
|
||||||
'pre_id': this.multAdd.pre_id,
|
'pre_id': this.multAdd.pre_id,
|
||||||
'type': 'content',
|
'type': 'content',
|
||||||
'content': this.wordText,
|
'content': this.wordText,
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
@@ -398,7 +409,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
this.multAddVisible = false
|
this.multAddVisible = false
|
||||||
this.multAdd.pre_id = ''
|
this.multAdd.pre_id = ''
|
||||||
this.wordText = ''
|
this.wordText = ''
|
||||||
this.saveMode = ''
|
this.saveMode = ''
|
||||||
this.getDate()
|
this.getDate()
|
||||||
} else {
|
} else {
|
||||||
this.$message.error(res.msg);
|
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.multAdd.article_main_id = val.article_main_id;
|
||||||
this.wordText = val.text
|
this.wordText = val.text
|
||||||
this.multAddVisible = true
|
this.multAddVisible = true
|
||||||
|
this.multAdd.isTitle = val.is_title
|
||||||
this.saveMode = 'edit'
|
this.saveMode = 'edit'
|
||||||
// 以前的
|
// 以前的
|
||||||
// this.txtVisible = true
|
// this.txtVisible = true
|
||||||
@@ -943,4 +955,5 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
height: 120px;
|
height: 120px;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
.istitle{margin: 20px 0;}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -88,12 +88,12 @@
|
|||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<!-- journal 形式 -->
|
<!-- journal 形式 -->
|
||||||
<div style="text-align: left;" v-if="scope.row.refer_type == '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>
|
<a class="doiLink" :href="scope.row.doilink" target="_blank">{{scope.row.doilink}}</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- book 形式 -->
|
<!-- book 形式 -->
|
||||||
<div style="text-align: left;" v-if="scope.row.refer_type == '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>
|
<a class="doiLink" :href="scope.row.isbn" target="_blank">{{scope.row.isbn}}</a>
|
||||||
</div>
|
</div>
|
||||||
<!-- other 形式 -->
|
<!-- other 形式 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user