You need to sign in or sign up before continuing.
Commit 682da225 authored by miaojiale's avatar miaojiale

修改bug

parent 05b20c01
...@@ -259,6 +259,9 @@ export default { ...@@ -259,6 +259,9 @@ export default {
.then((res) => { .then((res) => {
if (res.code == 1) { if (res.code == 1) {
this.$message.success("删除成功") this.$message.success("删除成功")
if (this.tableData.length == 1 && this.pageIndex != 1) {
this.pageIndex--
}
this.handleSearch() this.handleSearch()
} }
}) })
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -67,7 +67,7 @@ const mixin = { ...@@ -67,7 +67,7 @@ const mixin = {
this.form = { this.form = {
status: 1, status: 1,
} }
this.pageIndex = 1 // this.pageIndex = 1
this.handleSearch() this.handleSearch()
} }
}) })
......
...@@ -162,7 +162,7 @@ export default { ...@@ -162,7 +162,7 @@ export default {
value: "filePath", value: "filePath",
}, },
{ {
label: "上传时间", label: "创建时间",
minWidth: 120, minWidth: 120,
value: "uploadTime", value: "uploadTime",
}, },
......
...@@ -187,6 +187,9 @@ export default { ...@@ -187,6 +187,9 @@ export default {
type: "success", type: "success",
message: "删除成功!", message: "删除成功!",
}) })
if (this.tableData.length == 1 && this.pageIndex != 1) {
this.pageIndex--
}
this.handleSearch() this.handleSearch()
} }
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment