微调
This commit is contained in:
@@ -225,8 +225,8 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
<p style="border-top: 2px dashed #0066994d;margin: 20px 0 0 0;padding: 20px 0 0 0;"> </p>
|
<p style="border-top: 2px dashed #0066994d;margin: 20px 0 0 0;padding: 20px 0 0 0;"> </p>
|
||||||
<el-collapse v-model="collapseActiveNames">
|
<el-collapse v-model="collapseActiveNames">
|
||||||
<el-collapse-item name="html">
|
<el-collapse-item name="html" v-loading="loadHtml">
|
||||||
<template slot="title">
|
<template slot="title" >
|
||||||
Html Layout :
|
Html Layout :
|
||||||
<span style="margin-left: 15px;color: #666;" v-if="mains==''">No Layout</span>
|
<span style="margin-left: 15px;color: #666;" v-if="mains==''">No Layout</span>
|
||||||
<span style="margin-left: 15px;color: #0b4b6a;" v-if="mains!=''">Typesetting completed</span>
|
<span style="margin-left: 15px;color: #0b4b6a;" v-if="mains!=''">Typesetting completed</span>
|
||||||
@@ -392,6 +392,7 @@ import { watch } from 'vue';
|
|||||||
chooseData: [],
|
chooseData: [],
|
||||||
loading: false,
|
loading: false,
|
||||||
steps_jour: 0,
|
steps_jour: 0,
|
||||||
|
loadHtml:false, // mains 加载动画
|
||||||
form:{
|
form:{
|
||||||
manuscirpt: '',
|
manuscirpt: '',
|
||||||
},
|
},
|
||||||
@@ -815,11 +816,13 @@ import { watch } from 'vue';
|
|||||||
|
|
||||||
// 点击HTML查询数据
|
// 点击HTML查询数据
|
||||||
getMainsInfo(e){
|
getMainsInfo(e){
|
||||||
|
this.loadHtml = true
|
||||||
this.$api
|
this.$api
|
||||||
.post('api/Publish/getArticleMains', {
|
.post('api/Publish/getArticleMains', {
|
||||||
'article_id': e.article_id
|
'article_id': e.article_id
|
||||||
})
|
})
|
||||||
.then(res => {
|
.then(res => {
|
||||||
|
this.loadHtml = false
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
// console.log(res,'res')
|
// console.log(res,'res')
|
||||||
this.mains = res.data.mains
|
this.mains = res.data.mains
|
||||||
@@ -827,7 +830,8 @@ import { watch } from 'vue';
|
|||||||
this.$message.error(res.msg);
|
this.$message.error(res.msg);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
|
this.loadHtml = false
|
||||||
this.$message.error(err);
|
this.$message.error(err);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -884,7 +888,7 @@ import { watch } from 'vue';
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
loading.close()
|
loading.close()
|
||||||
this.HtmlVisible = false
|
this.HtmlVisible = false
|
||||||
if (this.UpHtpFIle.mains == '') {
|
if (this.mains == '') {
|
||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: 'comArtHtmlCreat',
|
path: 'comArtHtmlCreat',
|
||||||
query: {
|
query: {
|
||||||
@@ -964,7 +968,7 @@ import { watch } from 'vue';
|
|||||||
watch:{
|
watch:{
|
||||||
HtmlVisible:{
|
HtmlVisible:{
|
||||||
handler(newVal, oldVal) {
|
handler(newVal, oldVal) {
|
||||||
if(this.UpHtpFIle.mains=='' && newVal == true){ //打开赋值
|
if(this.UpHtpFIle.mains==0 && newVal == true){ //打开赋值
|
||||||
this.collapseActiveNames.push('html')
|
this.collapseActiveNames.push('html')
|
||||||
}else{ // 关闭清空
|
}else{ // 关闭清空
|
||||||
this.collapseActiveNames = []
|
this.collapseActiveNames = []
|
||||||
|
|||||||
@@ -525,7 +525,7 @@ import VueUeditorWrap from 'vue-ueditor-wrap'; // ES6 Module
|
|||||||
},
|
},
|
||||||
// 修改选中
|
// 修改选中
|
||||||
handleCheckedChange(val){
|
handleCheckedChange(val){
|
||||||
console.log(val)
|
// console.log(val)
|
||||||
},
|
},
|
||||||
|
|
||||||
// 添加段落
|
// 添加段落
|
||||||
|
|||||||
Reference in New Issue
Block a user