|
@@ -1,5 +1,8 @@
|
|
|
<template>
|
|
|
<div class="pagePadding">
|
|
|
+ <div
|
|
|
+ v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
|
|
|
+ >
|
|
|
<ex-table
|
|
|
v-loading="loading"
|
|
|
:table="table"
|
|
@@ -60,11 +63,11 @@
|
|
|
</template>
|
|
|
|
|
|
<template #operation="{ scope }">
|
|
|
- <el-tooltip effect="dark" content="详情" placement="top">
|
|
|
+ <el-tooltip effect="dark" content="详情" placement="top" v-if="powers.some((item) => item == '007')">
|
|
|
<!-- 路由跳转参数需更改 -->
|
|
|
<i
|
|
|
class="el-icon-view tb-icon"
|
|
|
- @click="getRouter(`testDetail`, scope.row.id)"
|
|
|
+ @click="getRouter(`standingBookDetail`, scope.row.id)"
|
|
|
></i>
|
|
|
</el-tooltip>
|
|
|
</template>
|
|
@@ -104,6 +107,10 @@
|
|
|
<div style="margin-bottom: 20px"></div>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
+ <div v-else>
|
|
|
+ <no-auth></no-auth>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import mixinPage from "@/mixins/elPaginationHandle";
|
|
@@ -119,17 +126,17 @@ export default {
|
|
|
components: {},
|
|
|
computed: {
|
|
|
...mapGetters(["tablebtnSize", "searchSize", "size"]),
|
|
|
- // powers() {
|
|
|
- // let tran =
|
|
|
- // this.$store.getters.btnList.find(
|
|
|
- // (item) => item.menu_route == "standingBook"
|
|
|
- // ) || {};
|
|
|
- // if (tran && tran.action && tran.action.length > 0) {
|
|
|
- // return tran.action;
|
|
|
- // } else {
|
|
|
- // return [];
|
|
|
- // }
|
|
|
- // },
|
|
|
+ powers() {
|
|
|
+ let tran =
|
|
|
+ this.$store.getters.btnList.find(
|
|
|
+ (item) => item.menu_route == "standingBook"
|
|
|
+ ) || {};
|
|
|
+ if (tran && tran.action && tran.action.length > 0) {
|
|
|
+ return tran.action;
|
|
|
+ } else {
|
|
|
+ return [];
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|