diff --git a/src/pages/article/add/index.vue b/src/pages/article/add/index.vue
index 0f99756..143f73b 100644
--- a/src/pages/article/add/index.vue
+++ b/src/pages/article/add/index.vue
@@ -1313,7 +1313,12 @@ export default {
this.$post(this.api.updateArticle, form).then(res => {
this.updateFile(fileId, form, form.id)
Util.successMsg('修改成功')
- next ? next() : this.$router.push(`list?columnId=` + form.columnId + (form.columnId != this.originColumnId ? '&last=1' : '')) // 更改了所属栏目,则给列表传递一个last参数,跳转到最后一页
+ if (next) {
+ next()
+ } else {
+ // 更改了所属栏目,则给列表传递一个last参数,跳转到最后一页
+ form.columnId != this.originColumnId ? this.$router.push(`list?columnId=${form.columnId}&last=1`) : this.$router.back()
+ }
}).catch(err => {
this.submiting = false
})
diff --git a/src/pages/article/list/index.vue b/src/pages/article/list/index.vue
index 1877bc3..53ab37c 100644
--- a/src/pages/article/list/index.vue
+++ b/src/pages/article/list/index.vue
@@ -3,189 +3,100 @@
全部栏目
-
-
- {{ node.label }}
+
+
+ {{ node.label }}
-
+
-
-
-
+
+
+
- {{(page - 1) * pageSize + scope.$index + 1}}
+ {{ (page - 1) * pageSize + scope.$index + 1 }}
-
-
-
-
+
+
+
+
{{ types.find(e => e.id === scope.row.typeId).name }}
-
-
-
-
-
-
+
+
+
+
+
+
{{ scope.row.isRelease ? '已发布' : '草稿' }}
-
+
-
+
-
+
- 预览
- 编辑
- 删除
-
+ 预览
+ 编辑
+ 删除
+
@@ -226,9 +137,9 @@ export default {
name: '修改人'
}
],
- keyword: '',
+ keyword: this.$route.query.keyword || '',
list: [],
- page: 1,
+ page: +this.$route.query.page || 1,
pageSize: 10,
total: 0,
modifiedTimeSort: '',
@@ -336,7 +247,7 @@ export default {
// 文章列表
getData () {
const id = this.$refs.column.getCurrentKey()
- this.$router.push(`/article?columnId=${id}`).catch(e => { })
+ this.$router.push(`/article?columnId=${id}&page=${this.page}&keyword=${this.keyword || ''}`).catch(e => { })
const keyword = encodeURI(this.keyword)
const data = {
siteId: this.$store.state.content.site.id,
@@ -494,30 +405,35 @@ export default {
\ No newline at end of file