|
@@ -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(){
|
|
|
}
|