Quellcode durchsuchen

固定资产-编辑权限

jbb vor 1 Jahr
Ursprung
Commit
b152dda51c
1 geänderte Dateien mit 13 neuen und 1 gelöschten Zeilen
  1. 13 1
      src/views/oa/AssetList.vue

+ 13 - 1
src/views/oa/AssetList.vue

@@ -126,6 +126,7 @@
   import AssetModal from './modules/AssetModal'
   import JDate from '@/components/jeecg/JDate.vue'
   import JInput from '@/components/jeecg/JInput'
+  import { USER_AUTH } from "@/store/mutation-types"
 
   export default {
     name: "AssetList",
@@ -139,7 +140,7 @@
       return {
         description: '固定资产管理页面',
         // 表头
-        columns: [
+        columns1: [
           {
             title: '#',
             dataIndex: '',
@@ -260,6 +261,17 @@
         return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
       }
     },
+    created() {  
+        let allAuthes = JSON.parse(sessionStorage.getItem(USER_AUTH));
+        var quanXian = []
+        allAuthes.map(item=>{ quanXian.push(item.action)})
+        if(quanXian.indexOf('gdzc:bj')==-1){
+           this.columns = this.columns1.slice(0,this.columns1.length-1)
+        }else{
+          this.columns = this.columns1
+        }
+        this.loadData()
+    },
     methods: {
       initDictConfig(){
       }