diff --git a/src/components/common/Header.vue b/src/components/common/Header.vue
index c0dfaaa..804f455 100644
--- a/src/components/common/Header.vue
+++ b/src/components/common/Header.vue
@@ -51,7 +51,7 @@ export default {
case "loginout": //退出登录
this.$message.success("退出成功");
this.$store.commit("REMOVE_INFO");
- this.$router.push("/");
+ this.$router.push("/login");
break;
}
},
diff --git a/src/main.js b/src/main.js
index c06ac10..71989d4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -71,7 +71,6 @@ router.beforeEach((to, from, next) => {
const role = localStorage.getItem("userName");
const token = localStorage.getItem("token");
if (!token && to.path !== "/login") {
- alert("1111111111");
next("/login");
} else {
next();
diff --git a/src/router/index.js b/src/router/index.js
index a947a22..f703962 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -4,10 +4,10 @@ import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
- {
- path: "/",
- redirect: "/login",
- },
+ // {
+ // path: "/",
+ // redirect: "/login",
+ // },
{
path: "/",
component: () =>
diff --git a/src/views/cameraChannel/index.vue b/src/views/cameraChannel/index.vue
index 66b8cc0..6ca557b 100644
--- a/src/views/cameraChannel/index.vue
+++ b/src/views/cameraChannel/index.vue
@@ -69,9 +69,10 @@
@@ -97,7 +98,7 @@ export default {
deviceTableData: [],
//multipleSelection: [], //获取当前选中
page: 1, // 当前页数
- pageSize: 10, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
};
},
@@ -166,6 +167,11 @@ export default {
this.page = val;
this.deviceList();
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.deviceList();
+ },
},
};
diff --git a/src/views/components/passwordDialog.vue b/src/views/components/passwordDialog.vue
index aaaba34..70071ea 100644
--- a/src/views/components/passwordDialog.vue
+++ b/src/views/components/passwordDialog.vue
@@ -61,7 +61,7 @@ export default {
this.$message.success("修改成功,请重新登录");
this.isShow = false
this.$store.commit("REMOVE_INFO");
- this.$router.push("/");
+ this.$router.push("/login");
} else {
this.$message.error(res.msg);
}
diff --git a/src/views/devicePhotoSchedule/index.vue b/src/views/devicePhotoSchedule/index.vue
index a1d776b..8d7ed5f 100644
--- a/src/views/devicePhotoSchedule/index.vue
+++ b/src/views/devicePhotoSchedule/index.vue
@@ -83,9 +83,10 @@
@@ -118,7 +119,7 @@ export default {
deviceTableData: [],
//multipleSelection: [], //获取当前选中
page: 1, // 当前页数
- pageSize: 10, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
loading: true,
};
@@ -196,6 +197,11 @@ export default {
this.page = val;
this.deviceList();
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.deviceList();
+ },
},
};
diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
index 352fa39..bede94f 100644
--- a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
+++ b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue
@@ -96,7 +96,7 @@ export default {
data() {
let validCmid = (rule, value, callback) => {
- let reg = /^[0-9A-Za-z]{17}$/;
+ let reg = /^[0-9A-Za-z_/\\/-]{17}$/;
if (!reg.test(value)) {
callback(new Error("装置id为17位编码"));
} else {
diff --git a/src/views/management/monitoringEquipment/photographicDevice/index.vue b/src/views/management/monitoringEquipment/photographicDevice/index.vue
index b3543f3..c62f465 100644
--- a/src/views/management/monitoringEquipment/photographicDevice/index.vue
+++ b/src/views/management/monitoringEquipment/photographicDevice/index.vue
@@ -147,9 +147,10 @@
@@ -192,7 +193,7 @@ export default {
multipleSelection: [], //当前选中数组
formphotoInfo: {}, //弹窗传值
page: 1, // 当前页数
- pageSize: 30, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
loading: true,
};
@@ -380,6 +381,11 @@ export default {
this.page = val;
this.terminalList(); //刷新
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.terminalList();
+ },
},
created() {
this.terminalList();
diff --git a/src/views/management/userEquipment/lineInformation/index.vue b/src/views/management/userEquipment/lineInformation/index.vue
index 5c8f03b..55427c6 100644
--- a/src/views/management/userEquipment/lineInformation/index.vue
+++ b/src/views/management/userEquipment/lineInformation/index.vue
@@ -71,9 +71,10 @@
@@ -105,7 +106,7 @@ export default {
lineTableData: [],
//multipleSelection: [], //获取当前选中
page: 1, // 当前页数
- pageSize: 10, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
loading: true,
};
@@ -183,6 +184,11 @@ export default {
this.page = val;
this.lineList();
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.lineList();
+ },
},
};
diff --git a/src/views/management/userEquipment/towerInformation/index.vue b/src/views/management/userEquipment/towerInformation/index.vue
index 15c3932..36bdafc 100644
--- a/src/views/management/userEquipment/towerInformation/index.vue
+++ b/src/views/management/userEquipment/towerInformation/index.vue
@@ -66,9 +66,10 @@
@@ -94,7 +95,7 @@ export default {
tableDate: [],
//multipleSelection: [], //获取当前选中
page: 1, // 当前页数
- pageSize: 10, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
loading: true,
};
@@ -171,6 +172,11 @@ export default {
this.page = val;
this.deviceList();
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.deviceList();
+ },
},
};
diff --git a/src/views/system/userManagement.vue b/src/views/system/userManagement.vue
index ce515e8..c54ca13 100644
--- a/src/views/system/userManagement.vue
+++ b/src/views/system/userManagement.vue
@@ -2,10 +2,8 @@
- 用户管理
+ 新增
@@ -42,9 +40,10 @@
@@ -70,7 +69,7 @@ export default {
deviceTableData: [],
//multipleSelection: [], //获取当前选中
page: 1, // 当前页数
- pageSize: 10, // 每页数量
+ pageSize: 20, // 每页数量
total: 0, //总条数
};
},
@@ -139,6 +138,11 @@ export default {
this.page = val;
this.deviceList();
},
+ //每页条数
+ handleSizeChange(val) {
+ this.pageSize = val;
+ this.deviceList();
+ },
},
};
@@ -157,7 +161,8 @@ export default {
}
.deviceBtnGroup {
display: flex;
- justify-content: flex-end;
+ justify-content: space-between;
+ align-items: center;
}
.deviceTable {