| | |
| | | <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 }"> |
| | |
| | | export default { |
| | | data() { |
| | | var that = this; |
| | | var aurl = "/blade-system/dept/lazy-list"; |
| | | return { |
| | | machineTitle: "新增", |
| | | isAdd: true, |
| | |
| | | label: 'deptName', |
| | | value: 'id' |
| | | }, |
| | | dicUrl: `/blade-system/dept/lazy-list` |
| | | dicUrl: aurl |
| | | }, |
| | | { |
| | | label: '生产商', |
| | |
| | | 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; |
| | | } |
| | | ); |
| | | }, |