微调
This commit is contained in:
@@ -234,6 +234,10 @@
|
||||
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()"
|
||||
style="margin-left: 20px;">
|
||||
<font >Remove Html Proofread</font>
|
||||
</el-button>
|
||||
</template>
|
||||
<div>
|
||||
<!-- 生成选项 -->
|
||||
@@ -426,6 +430,29 @@ import { watch } from 'vue';
|
||||
loading.close();
|
||||
});
|
||||
},
|
||||
// 清空html
|
||||
clearHtmlLayout(){
|
||||
this.$confirm('You are Removing Html Proofread, do you want to continue?', 'Tips', {
|
||||
confirmButtonText: 'Sure',
|
||||
cancelButtonText: 'Cancle',
|
||||
type: 'warning'
|
||||
}).then(() => {
|
||||
this.$api
|
||||
.post('api/Production/clearWebMains', {
|
||||
'article_id': this.articleId,
|
||||
})
|
||||
.then(res => {
|
||||
if(res.code == 0){
|
||||
this.getDate()
|
||||
}else{
|
||||
this.$message.error(res.msg)
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
});
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 跳转到引用编辑页面
|
||||
goEditRefernces(){
|
||||
// let pid = null
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
<el-dialog ref="multAdd" title="Add in bulk"
|
||||
<el-dialog ref="multAdd" title="Add in bulk" z-index="1000"
|
||||
:visible.sync="multAddVisible"
|
||||
width="800px">
|
||||
<div>
|
||||
@@ -317,15 +317,17 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
||||
saveMultAdd(){
|
||||
var pp = this.wordText.split('</p>')
|
||||
var ss = []
|
||||
var re = /<[^>]+>/gi;
|
||||
var nbsp = / /gi;
|
||||
var re = /<[^>]+>/gi;
|
||||
var noP = /<p>/gi;
|
||||
// var nbsp = / /gi;
|
||||
pp.forEach(element => {
|
||||
element = element.replace(re, "")
|
||||
element = element.replace(nbsp,"")
|
||||
ss.push(element)
|
||||
// element = element.replace(re, "")
|
||||
// element = element.replace(nbsp,"")
|
||||
element = element.replace(noP,"")
|
||||
ss.push(element)
|
||||
});
|
||||
// 去掉最后一个数据
|
||||
// console.log(ss[ss.length-1].length)
|
||||
console.log(ss[ss.length-1].length)
|
||||
if(ss[ss.length-1].length <= 0){
|
||||
this.multAdd.contents = ss.slice(0,-1)
|
||||
}else{
|
||||
@@ -335,7 +337,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
||||
},
|
||||
// 发送后台
|
||||
wordSubmit(){
|
||||
// console.log(this.multAdd.contents)
|
||||
console.log(this.multAdd.contents)
|
||||
this.$api
|
||||
.post('api/Production/addWebMains', {
|
||||
'article_id': this.multAdd.article_id,
|
||||
|
||||
@@ -227,7 +227,7 @@
|
||||
</span>
|
||||
</el-dialog>
|
||||
<!-- 复制word添加引用 -->
|
||||
<el-dialog title= "Add References'" :visible.sync="showEditor" width="800px" @close="showEditor= false">
|
||||
<el-dialog title= "Add References'" :visible.sync="showEditor" width="800px" z-index="1000" @close="showEditor= false">
|
||||
<div>
|
||||
<div class="logtips">
|
||||
<p >Paste the contents of the wold file here, delete the carriage return at the end and click "Submit".</p>
|
||||
|
||||
Reference in New Issue
Block a user