| | |
| | | this.getAuthorizedPerson() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let out = false; |
| | | let check = false |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordCheck') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordCheck') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportInManageRecordCheck') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'checkManageRecordCheck') { |
| | | check = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordCheck') { |
| | | ratify = true |
| | | } |
| | | if (power[i].menuMethod == 'exportOutManageRecordCheck') { |
| | | out = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!check) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData.do.splice(1, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.outPower = out |
| | | this.upPower = up |
| | | }, |
| | | getList() { |
| | | this.tableLoading = true; |
| | | let param = { ...this.queryParams, ...this.page }; |
| | |
| | | // queryParams |
| | | exportOutManageRecordCheck(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.downloadFileFromUrl(res.data, '文件审批记录') |
| | | this.$download.saveAs(res.data, '文件审批记录') |
| | | }) |
| | | }, |
| | | getAuthorizedPerson() { |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | checkManageRecordCheck({ id: row.id, checkState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | checkManageRecordCheck({ id: row.id, checkState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | ratifyManageRecordCheck({ id: row.id, ratifyState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | ratifyManageRecordCheck({ id: row.id, ratifyState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordCheck({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |