| | |
| | | permitArr: [] |
| | | } */ |
| | | ], |
| | | operator: [], |
| | | operator: null, |
| | | operatorConfig: { |
| | | fixed: 'right', |
| | | label: '操作', |
| | |
| | | this.getData() |
| | | }, |
| | | created() { |
| | | this.getBomTypeDbOptions() |
| | | if (this.permissions.technology_document_del) { |
| | | this.table.operator.push({ |
| | | this.table.operator = [{ |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | |
| | | val: ['01draft'], |
| | | key: 'state' |
| | | } |
| | | }) |
| | | } else { |
| | | this.table.operator.push({ |
| | | text: '删除', |
| | | type: 'text', |
| | | size: 'small', |
| | | fun: this.deleteHandle, |
| | | show: { |
| | | val: [], |
| | | key: 'state' |
| | | }] |
| | | } |
| | | }) |
| | | } |
| | | this.getBomTypeDbOptions() |
| | | }, |
| | | methods: { |
| | | getBomTypeDbOptions() { |
| | |
| | | }, |
| | | // 删除 |
| | | deleteHandle(row) { |
| | | if(!this.permissions.technology_document_del){ |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | this.$confirm('是否确认删除工艺文件编号:' + row.number + '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |