diff --git a/src/views/onlineHome/my.vue b/src/views/onlineHome/my.vue index 2414e061..dbf3cbe5 100644 --- a/src/views/onlineHome/my.vue +++ b/src/views/onlineHome/my.vue @@ -19,16 +19,16 @@ - - - + + + + + + + + + + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +
@@ -539,7 +539,7 @@

任务发布

- +
@@ -547,7 +547,7 @@

任务上报

- +
@@ -593,6 +593,8 @@ value: "value", children: "children", }, + //角色 + currentUserRole:"", //账套列表 bookVisbile:false, bookList:[], @@ -617,9 +619,44 @@ this.$set(this.queryParams, "systemType", '11'); // 4 ListTodo(this.queryParams).then((response) => { this.taskList = response.rows - }) + }), + this.currentUserRole = this.$store.getters.roles[0]; + console.log("当前用户角色: " + this.currentUserRole); }, methods:{ + applicationList(data){ + if(this.currentUserRole !="nature_resource" && this.currentUserRole !="building" && this.currentUserRole !="agriculture" && this.currentUserRole !="town_leader"){ + if(data == 'applicationList'){ + this.$router.push({ path: "/applicationList" }); + } else if (data == 'certificateList') { + this.$router.push({ path: "/certificateList" }); + } else if (data == 'circulationList') { + this.$router.push({ path: "/circulationList" }); + } else if (data == 'mortgage') { + this.$router.push({ path: "/mortgage" }); + } else if (data == 'paidExit') { + this.$router.push({ path: "/paidExit" }); + } else if (data == 'arbitrationList') { + this.$router.push({ path: "/arbitrationList" }); + } else if (data == 'utilization') { + this.$router.push({ path: "/utilization" }); + } else if (data == 'homesteadUtilize') { + this.$router.push({ path: "/homesteadUtilize" }); + } else if (data == 'task') { + this.$router.push({ path: "/task" }); + } else if (data == 'taskReportingList') { + this.$router.push({ path: "/taskReportingList" }); + } else if (data == 'supervisionList') { + this.$router.push({ path: "/supervisionList" }); + } else if (data == 'paidUtilizeList') { + this.$router.push({ path: "/paidUtilizeList" }); + } + } else { + this.$dialog.alert({ + message: "当前用户无操作权限", + }); + } + }, onConfirmBook(e){ this.bookVisbile = false this.bookName = e.bookName diff --git a/src/views/onlineHomeIndex.vue b/src/views/onlineHomeIndex.vue index 0d4d980a..fa69570d 100644 --- a/src/views/onlineHomeIndex.vue +++ b/src/views/onlineHomeIndex.vue @@ -4,7 +4,7 @@ 公示 工作台 - 家园 + 我的