| | |
| | | <template #menu="scope"> |
| | | <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleEdit(scope.row, scope.index)">编辑</el-button> |
| | | <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleDel(scope.row, scope.index)">删除</el-button> |
| | | <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleView(scope.row, scope.index)">产生机床回传机构树</el-button> |
| | | <el-button type="primary" text size="default" icon="el-icon-upload" @click.stop="handleUp(scope.row, scope.index)">产生机床回传机构树</el-button> |
| | | </template> |
| | | |
| | | <template #status="{ row }"> |
| | |
| | | this.editBox = true; |
| | | }, |
| | | error => { |
| | | |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | |
| | | done(); |
| | | }, |
| | | error => { |
| | | |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |
| | | handleUp(row,index) { |
| | | this.loading = true; |
| | | axios({ |
| | | url: '/blade-mdm/machine/gen-fileback-dirs', |
| | | method: 'post', |
| | | params: {id: row.id}, |
| | | }).then( |
| | | res => { |
| | | this.loading = false; |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.onLoad(); |
| | | done(); |
| | | }, |
| | | error => { |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | }, |