|
@@ -228,20 +228,6 @@
|
|
|
<i class="el-icon-delete" @click="handleDeleteArticle(item.articleList,indexa)"></i>
|
|
|
</li>
|
|
|
</draggable>
|
|
|
- <!-- <ul class="article-list">
|
|
|
- <li v-for="(itema,indexa) in item.articleList" :key="indexa">
|
|
|
- <svg-icon icon-class="sort" draggable="true"></svg-icon>
|
|
|
- <div class="items">
|
|
|
- <h6>{{itema.title}}</h6>
|
|
|
- <span>BY {{itema.author}}</span>
|
|
|
- <span>创建人:{{itema.creator}}</span>
|
|
|
- <span>{{itema.time}}</span>
|
|
|
- </div>
|
|
|
- <svg-icon icon-class="edit" class="edit-article" @click="handleArticle(itema.id,itema.type)"></svg-icon>
|
|
|
- <span class="border"></span>
|
|
|
- <i class="el-icon-delete" @click="handleDeleteArticle(item.articleList,indexa)"></i>
|
|
|
- </li>
|
|
|
- </ul> -->
|
|
|
</template>
|
|
|
</el-collapse-transition>
|
|
|
</div>
|
|
@@ -356,7 +342,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
id:this.$route.query.id?this.$route.query.id:'',
|
|
|
- stepIndex:0, // 步骤索引
|
|
|
+ stepIndex:window.localStorage.getItem('newsStep')?window.localStorage.getItem('newsStep')*1:0, // 步骤索引
|
|
|
coverFlag: false,
|
|
|
newspaperForm:window.localStorage.getItem('newsForm')?JSON.parse(window.localStorage.getItem('newsForm')):{
|
|
|
cover_image_url: '',
|
|
@@ -437,19 +423,24 @@ export default {
|
|
|
title: 'Silly science',
|
|
|
author: 'TEENS',
|
|
|
creator: '张老师',
|
|
|
- time: '2012-12-12 12:23'
|
|
|
+ time: '2012-12-12 12:23',
|
|
|
+ id: '123',
|
|
|
+ type: 'cn'
|
|
|
},
|
|
|
{
|
|
|
title: 'Silly science1',
|
|
|
author: 'TEENS',
|
|
|
creator: '张老师',
|
|
|
- time: '2012-12-12 12:23'
|
|
|
+ time: '2012-12-12 12:23',
|
|
|
+ id: '123',
|
|
|
+ type: 'en'
|
|
|
},
|
|
|
{
|
|
|
title: 'Silly science2',
|
|
|
author: 'TEENS',
|
|
|
creator: '张老师',
|
|
|
- time: '2012-12-12 12:23'
|
|
|
+ time: '2012-12-12 12:23',
|
|
|
+ id: '123'
|
|
|
},
|
|
|
{
|
|
|
title: 'Silly science3',
|
|
@@ -540,6 +531,7 @@ export default {
|
|
|
// 跳转栏目列表
|
|
|
handleLinkChannel(){
|
|
|
window.localStorage.setItem('newsForm',JSON.stringify(this.newspaperForm))
|
|
|
+ window.localStorage.setItem('newsStep',0)
|
|
|
this.$router.push({
|
|
|
path:'/channelList'
|
|
|
})
|
|
@@ -662,6 +654,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
if(res.status===1){
|
|
|
window.localStorage.removeItem('newsForm')
|
|
|
+ window.localStorage.removeItem('newsStep')
|
|
|
this.issueId = res.data.id
|
|
|
this.stepIndex++
|
|
|
}
|
|
@@ -712,7 +705,16 @@ export default {
|
|
|
},
|
|
|
// 跳转文章
|
|
|
handleArticle(id,type){
|
|
|
-
|
|
|
+ window.localStorage.setItem('newsForm',JSON.stringify(this.newspaperForm))
|
|
|
+ window.localStorage.setItem('newsStep',1)
|
|
|
+ this.$router.push({
|
|
|
+ path:'/createArticle',
|
|
|
+ query: {
|
|
|
+ id: id,
|
|
|
+ type: type,
|
|
|
+ articleId: this.id
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
//开始拖拽事件
|
|
|
onStart() {
|