Commit 40d827fd by caoyanzhi

Revert "fix:跳转到操作项页面打开相应的tab"

This reverts commit 82c54a0a.
parent 82c54a0a
......@@ -297,7 +297,7 @@ export default {
// 跳转到权限项列表页
toPermissionList(menuData) {
const { menuId } = menuData;
this.$router.push(`/permission-list?menuId=${menuId}&appType=${this.appType}`)
this.$router.push(`/permission-list?menuId=${menuId}`)
},
flatDataToTree(data) {
return data.filter(el => {
......
......@@ -25,11 +25,6 @@ export default {
return {
activeName: 'first'
}
},
created() {
const { type } = this.$route.query;
const tabs = ['', 'first', 'second', 'third', 'fourth'];
this.activeName = tabs[type > 0 && type < 5 ? type : 1] ;
}
}
</script>
......
......@@ -58,7 +58,6 @@ export default {
{ name: '权限项'}
],
menuId: '',
appType: '',
// 操作项列表
operationList: [],
// 权限项列表
......@@ -78,12 +77,11 @@ export default {
}
},
created() {
const { menuId, appType } = this.$route.query;
const { menuId } = this.$route.query;
if (!menuId) {
return this.$router.go(-1);
}
this.menuId = menuId;
this.appType = appType;
this.initData();
this.$emit('updateBread', this.bread)
},
......@@ -167,7 +165,7 @@ export default {
},
// 去操作项列表页
toOperationList() {
this.$router.push(`/operation-list?type=${this.appType}`);
this.$router.push('/operation-list');
}
}
}
......
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