Commit 3875273d authored by “yiyousong”'s avatar “yiyousong”

perf: 优化系统设置列表

parent ff540a6d
...@@ -156,6 +156,10 @@ export default { ...@@ -156,6 +156,10 @@ export default {
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total, dict } = res.data.data; let { data, total, dict } = res.data.data;
if (!data.length && this.current > 1) {
this.current -= 1;
this.getDimensionList();
}
this.tableData = data; this.tableData = data;
this.total = total; this.total = total;
this.dict = dict; this.dict = dict;
......
...@@ -213,6 +213,7 @@ export default { ...@@ -213,6 +213,7 @@ export default {
this.dict = dict; this.dict = dict;
if (!data.length && this.current > 1) { if (!data.length && this.current > 1) {
this.current -= 1; this.current -= 1;
this.getSystemParameterList();
} }
this.total = total; this.total = total;
this.tableData = data; this.tableData = data;
......
...@@ -166,6 +166,10 @@ export default { ...@@ -166,6 +166,10 @@ export default {
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total, dict } = res.data.data; let { data, total, dict } = res.data.data;
if (!data.length && this.current > 1) {
this.current -= 1;
this.getResourceList();
}
this.tableData = data; this.tableData = data;
this.total = total; this.total = total;
this.dict = dict; this.dict = dict;
......
...@@ -141,6 +141,10 @@ export default { ...@@ -141,6 +141,10 @@ export default {
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total } = res.data.data; let { data, total } = res.data.data;
if (!data.length && this.current > 1) {
this.current -= 1;
this.getRoleList();
}
this.tableData = data; this.tableData = data;
this.total = total; this.total = total;
} }
......
...@@ -191,6 +191,10 @@ export default { ...@@ -191,6 +191,10 @@ export default {
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total, dict } = res.data.data; let { data, total, dict } = res.data.data;
if (!data.length && this.current > 1) {
this.current -= 1;
this.getDimResList();
}
this.total = total; this.total = total;
this.tableData = data; this.tableData = data;
this.dict = dict; this.dict = dict;
......
...@@ -177,6 +177,10 @@ export default { ...@@ -177,6 +177,10 @@ export default {
this.loading = false; this.loading = false;
if (res.data.code == 1) { if (res.data.code == 1) {
let { data, total, dict } = res.data.data; let { data, total, dict } = res.data.data;
if (!data.length && this.current > 1) {
this.current -= 1;
this.getUserList();
}
let { name } = this.userInfo; let { name } = this.userInfo;
if (this.loginNames.includes(name)) { if (this.loginNames.includes(name)) {
this.tableData = data; this.tableData = data;
......
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