Commit a41f7a12 authored by “yiyousong”'s avatar “yiyousong”

pref:优惠批量删除

parent 09f6edb7
...@@ -251,6 +251,7 @@ export default { ...@@ -251,6 +251,7 @@ export default {
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.getPbuList(); this.getPbuList();
this.$refs.multipleTable.clearSelection();
this.selectKeys = []; this.selectKeys = [];
} }
}) })
......
...@@ -504,6 +504,7 @@ export default { ...@@ -504,6 +504,7 @@ export default {
this.$message.success(msg); this.$message.success(msg);
this.getMaterialsList(); this.getMaterialsList();
this.getWriteMatterList(); this.getWriteMatterList();
this.$refs.rightTable.clearSelection();
this.rightSelectedRowKeys = []; this.rightSelectedRowKeys = [];
} }
}) })
......
...@@ -471,6 +471,8 @@ export default { ...@@ -471,6 +471,8 @@ export default {
let { code, msg } = res.data; let { code, msg } = res.data;
if (code === 1) { if (code === 1) {
this.$message.success(msg); this.$message.success(msg);
this.$refs.leftTable.clearSelection();
this.leftSelectedRowKeys = [];
this.getWriteMatterList(); this.getWriteMatterList();
this.getMatterSubList(); this.getMatterSubList();
} }
......
...@@ -30,6 +30,22 @@ const router = new VueRouter({ ...@@ -30,6 +30,22 @@ const router = new VueRouter({
routes, routes,
}); });
// 前置路由卫士
router.beforeEach((to, from, next) => {
let islogin = local.getLocal("sampleToken") ? true : false;
if (islogin) {
next();
} else {
location.href = process.env.VUE_APP_API_portal_URL + "/#/";
// 再次判断防止死循环
// if (to.path === "/login") {
// next();
// } else {
// next({ path: "/login" });
// }
}
});
// 动态菜单 // 动态菜单
const dynamicRouter = [ const dynamicRouter = [
{ {
......
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