浏览代码

台账列表以及详情增加权限、修改路由位置

lucky 2 年之前
父节点
当前提交
e0369290b2
共有 45 个文件被更改,包括 39 次插入24 次删除
  1. 0 0
      src/views/standingBook/anchBook/anchor.vue
  2. 0 0
      src/views/standingBook/anchBook/anchorItem.vue
  3. 0 0
      src/views/standingBook/columns.js
  4. 0 0
      src/views/standingBook/components/detail-data-table.vue
  5. 0 0
      src/views/standingBook/components/detail10/columns.js
  6. 0 0
      src/views/standingBook/components/detail10/main.vue
  7. 0 0
      src/views/standingBook/components/detail11/columns.js
  8. 0 0
      src/views/standingBook/components/detail11/main.vue
  9. 0 0
      src/views/standingBook/components/detail12/columns.js
  10. 0 0
      src/views/standingBook/components/detail12/main.vue
  11. 0 0
      src/views/standingBook/components/detail13/columns.js
  12. 0 0
      src/views/standingBook/components/detail13/main.vue
  13. 0 0
      src/views/standingBook/components/detail14/columns.js
  14. 0 0
      src/views/standingBook/components/detail14/main.vue
  15. 0 0
      src/views/standingBook/components/detail15/columns.js
  16. 0 0
      src/views/standingBook/components/detail15/main.vue
  17. 0 0
      src/views/standingBook/components/detail16/columns.js
  18. 0 0
      src/views/standingBook/components/detail16/main.vue
  19. 0 0
      src/views/standingBook/components/detail17/columns.js
  20. 0 0
      src/views/standingBook/components/detail17/main.vue
  21. 0 0
      src/views/standingBook/components/detail18/columns.js
  22. 0 0
      src/views/standingBook/components/detail18/main.vue
  23. 0 0
      src/views/standingBook/components/detail2/columns.js
  24. 0 0
      src/views/standingBook/components/detail2/main.vue
  25. 0 0
      src/views/standingBook/components/detail3/columns.js
  26. 0 0
      src/views/standingBook/components/detail3/main.vue
  27. 0 0
      src/views/standingBook/components/detail4/columns.js
  28. 0 0
      src/views/standingBook/components/detail4/main.vue
  29. 0 0
      src/views/standingBook/components/detail5/columns.js
  30. 0 0
      src/views/standingBook/components/detail5/main.vue
  31. 0 0
      src/views/standingBook/components/detail6/columns.js
  32. 0 0
      src/views/standingBook/components/detail6/main.vue
  33. 0 0
      src/views/standingBook/components/detail7/columns.js
  34. 0 0
      src/views/standingBook/components/detail7/main.vue
  35. 0 0
      src/views/standingBook/components/detail8/columns.js
  36. 0 0
      src/views/standingBook/components/detail8/main.vue
  37. 0 0
      src/views/standingBook/components/detail9/columns.js
  38. 0 0
      src/views/standingBook/components/detail9/main.vue
  39. 19 11
      src/views/standingBook/detail.vue
  40. 0 0
      src/views/standingBook/goodsDataTable/ShowDataTableColumns.js
  41. 0 0
      src/views/standingBook/goodsDataTable/index.js
  42. 0 0
      src/views/standingBook/goodsDataTable/main.vue
  43. 0 0
      src/views/standingBook/goodsDataTable/展示商品详情数据
  44. 20 13
      src/views/standingBook/index.vue
  45. 0 0
      src/views/standingBook/台账

+ 0 - 0
src/views/reportQuery/test/anchBook/anchor.vue → src/views/standingBook/anchBook/anchor.vue


+ 0 - 0
src/views/reportQuery/test/anchBook/anchorItem.vue → src/views/standingBook/anchBook/anchorItem.vue


+ 0 - 0
src/views/reportQuery/test/columns.js → src/views/standingBook/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail-data-table.vue → src/views/standingBook/components/detail-data-table.vue


+ 0 - 0
src/views/reportQuery/test/components/detail10/columns.js → src/views/standingBook/components/detail10/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail10/main.vue → src/views/standingBook/components/detail10/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail11/columns.js → src/views/standingBook/components/detail11/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail11/main.vue → src/views/standingBook/components/detail11/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail12/columns.js → src/views/standingBook/components/detail12/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail12/main.vue → src/views/standingBook/components/detail12/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail13/columns.js → src/views/standingBook/components/detail13/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail13/main.vue → src/views/standingBook/components/detail13/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail14/columns.js → src/views/standingBook/components/detail14/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail14/main.vue → src/views/standingBook/components/detail14/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail15/columns.js → src/views/standingBook/components/detail15/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail15/main.vue → src/views/standingBook/components/detail15/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail16/columns.js → src/views/standingBook/components/detail16/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail16/main.vue → src/views/standingBook/components/detail16/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail17/columns.js → src/views/standingBook/components/detail17/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail17/main.vue → src/views/standingBook/components/detail17/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail18/columns.js → src/views/standingBook/components/detail18/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail18/main.vue → src/views/standingBook/components/detail18/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail2/columns.js → src/views/standingBook/components/detail2/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail2/main.vue → src/views/standingBook/components/detail2/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail3/columns.js → src/views/standingBook/components/detail3/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail3/main.vue → src/views/standingBook/components/detail3/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail4/columns.js → src/views/standingBook/components/detail4/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail4/main.vue → src/views/standingBook/components/detail4/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail5/columns.js → src/views/standingBook/components/detail5/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail5/main.vue → src/views/standingBook/components/detail5/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail6/columns.js → src/views/standingBook/components/detail6/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail6/main.vue → src/views/standingBook/components/detail6/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail7/columns.js → src/views/standingBook/components/detail7/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail7/main.vue → src/views/standingBook/components/detail7/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail8/columns.js → src/views/standingBook/components/detail8/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail8/main.vue → src/views/standingBook/components/detail8/main.vue


+ 0 - 0
src/views/reportQuery/test/components/detail9/columns.js → src/views/standingBook/components/detail9/columns.js


+ 0 - 0
src/views/reportQuery/test/components/detail9/main.vue → src/views/standingBook/components/detail9/main.vue


+ 19 - 11
src/views/reportQuery/test/detail.vue → src/views/standingBook/detail.vue

@@ -1,5 +1,8 @@
 <template>
   <div>
+    <div
+      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
+    >
     <Anchor height="900px" :data="anchorArray">
       <div style="width: 100%" v-if="tableData">
         <el-collapse v-model="activeNames" style="margin: -8px 0 0 0">
@@ -183,6 +186,11 @@
         </el-collapse>
       </div>
     </Anchor>
+    </div>
+
+    <div v-else>
+      <no-auth></no-auth>
+    </div>
   </div>
 </template>
    <script>
@@ -241,17 +249,17 @@ export default {
 
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    // powers() {
-    //   let tran =
-    //     this.$store.getters.btnList.find(
-    //       (item) => item.menu_route == "standingBookDetail"
-    //     ) || {};
-    //   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 == "standingBookDetail"
+        ) || {};
+      if (tran && tran.action && tran.action.length > 0) {
+        return tran.action;
+      } else {
+        return [];
+      }
+    },
   },
   data() {
     return {

+ 0 - 0
src/views/reportQuery/test/goodsDataTable/ShowDataTableColumns.js → src/views/standingBook/goodsDataTable/ShowDataTableColumns.js


+ 0 - 0
src/views/reportQuery/test/goodsDataTable/index.js → src/views/standingBook/goodsDataTable/index.js


+ 0 - 0
src/views/reportQuery/test/goodsDataTable/main.vue → src/views/standingBook/goodsDataTable/main.vue


+ 0 - 0
src/views/reportQuery/test/goodsDataTable/展示商品详情数据 → src/views/standingBook/goodsDataTable/展示商品详情数据


+ 20 - 13
src/views/reportQuery/test/index.vue → src/views/standingBook/index.vue

@@ -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 {

+ 0 - 0
src/views/standingBook/台账