| | |
| | | this.getList0() |
| | | }, |
| | | methods: { |
| | | getPower() { |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |
| | | let add = false |
| | | let del = false |
| | | let up = false; |
| | | let sub = false |
| | | let ratify = false |
| | | for (var i = 0; i < power.length; i++) { |
| | | if (power[i].menuMethod == 'addManageRecordVerify') { |
| | | add = true |
| | | } |
| | | if (power[i].menuMethod == 'delManageRecordVerify') { |
| | | del = true |
| | | } |
| | | if (power[i].menuMethod == 'exportManageRecordVerify') { |
| | | up = true |
| | | } |
| | | if (power[i].menuMethod == 'submitManageRecordTotal') { |
| | | sub = true |
| | | } |
| | | if (power[i].menuMethod == 'ratifyManageRecordTotal') { |
| | | ratify = true |
| | | } |
| | | } |
| | | if (!ratify) { |
| | | this.componentData.do.splice(3, 1) |
| | | } |
| | | if (!sub) { |
| | | this.componentData.do.splice(2, 1) |
| | | } |
| | | if (!del) { |
| | | this.componentData0.do.splice(1, 1) |
| | | } |
| | | if (!add) { |
| | | this.componentData0.do.splice(0, 1) |
| | | } |
| | | this.addPower = add |
| | | this.upPower = up |
| | | }, |
| | | openAdd(title, row) { |
| | | this.title = title; |
| | | if (row) { |
| | |
| | | }).catch(err => { }); |
| | | }, |
| | | handleDown0(row) { |
| | | this.$download.downloadFileFromUrl(row.url, '外来文件确认记录') |
| | | this.$download.saveAs(row.url, '外来文件确认记录') |
| | | }, |
| | | // 提交 |
| | | handleSubmit(row) { |