| | |
| | | |
| | | ], |
| | | toolbar: [], |
| | | operator:[ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig:{ |
| | | fixed:'right', |
| | | label:'操作', |
| | | width:100, |
| | | minWidth:100 |
| | | }, |
| | | isCopy:{ |
| | | fun:this.hello |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created(){ |
| | | if(this.permissions.basic_company_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | if(this.permissions.basic_company_copy){ |
| | | this.table.isCopy = { |
| | | fun:this.hello |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | hello(){ |
| | | if(!this.permissions.basic_company_copy){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | if(this.multipleSelection.length < 1){ |
| | | this.$message.error("请先选择要复制的数据!") |
| | | return |
| | |
| | | }, |
| | | // 删除公司信息 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.basic_company_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除公司名为:"'+row.companyName+'"', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |