| | |
| | | isShowQuery: false, |
| | | uploadInfo: { |
| | | // 是否展示上传EXCEL以及对应的url |
| | | isShow: false, |
| | | isShow: true, |
| | | download:true, |
| | | url: '/mes/param/upload' |
| | | }, |
| | | prelang: 'operation', |
| | |
| | | } |
| | | ], |
| | | toolbar: [], |
| | | operator: [ |
| | | { |
| | | text: '删除', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | if(this.permissions.technology_param_del){ |
| | | this.table.operator = [ |
| | | { |
| | | text: '删除', |
| | | icon: 'el-icon-delete', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle |
| | | } |
| | | ] |
| | | } |
| | | this.getParamType() |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_param_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除编号为' + row.code, '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |