| | |
| | | <div class="content-main"> |
| | | <div class="rawPage"> |
| | | <basic-container> |
| | | <ttable |
| | | <ttable |
| | | :table="table" |
| | | @handleSelectionChange="handleSelectionChange" |
| | | :prelang="prelang" |
| | |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | }, |
| | | created() { |
| | | created() { |
| | | if(this.permissions.quality_processInspect_add){ |
| | | this.table.toolbar.push({ |
| | | text: '新增', |
| | |
| | | this.$message.error("该角色没有操作权限") |
| | | return |
| | | } |
| | | let isAdd = true |
| | | if(!row) { |
| | | isAdd = false |
| | | } |
| | | this.$router.push({ |
| | | name: 'processInspectForm', |
| | | query: { id: row == null ? null : row.id }, |
| | | params: { resultVal : row == null ? null : row.result } |
| | | params: { resultVal : row == null ? null : row.result }, |
| | | isAdd: isAdd |
| | | }) |
| | | }, |
| | | formatResult(row, column, cellValue){ |
| | |
| | | .rawPage .content-body { |
| | | flex: 1; |
| | | } |
| | | </style> |
| | | </style> |