| | |
| | | @on-load="onLoad" |
| | | > |
| | | <template #menu-left> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleExport">导出</el-button> |
| | | <div class="menuLeft"> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleExport">导出</el-button> |
| | | <el-upload :show-file-list="false" class="upload-demo" |
| | | action="/api/blade-mdm/machine/import" |
| | | :on-change="handleChange"> |
| | | <el-button type="primary" plain size="default">导入</el-button> |
| | | </el-upload> |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleAdd">新增</el-button> |
| | | </div> |
| | | |
| | | |
| | | <el-upload :show-file-list="false" class="upload-demo" |
| | | action="/api/blade-mdm/machine/import" |
| | | :on-change="handleChange"> |
| | | <el-button type="primary" plain size="default">导入</el-button> |
| | | </el-upload> |
| | | |
| | | |
| | | |
| | | <el-button type="primary" size="default" icon="el-icon-circle-plus" plain @click="handleAdd">新增</el-button> |
| | | </template> |
| | | <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-edit" @click.stop="handleEdit(scope.row, scope.index)">编辑</el-button> |
| | | <el-button type="primary" text size="default" icon="el-icon-delete" @click.stop="handleDel(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 }"> |
| | |
| | | { |
| | | label: '机床组', |
| | | prop: 'machineGroupName', |
| | | filterable:true, |
| | | search: true, |
| | | type: 'select', |
| | | dicUrl: '/blade-system/dict-biz/dictionary?code=machine_group', |
| | |
| | | { |
| | | label: '所属机床组', |
| | | prop: 'machineGroupCode', |
| | | filterable:true, |
| | | type: 'select', |
| | | span: 12, |
| | | dicUrl: '/blade-system/dict-biz/dictionary?code=machine_group', |
| | |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '系统控制', |
| | | label: '控制系统', |
| | | prop: 'controlSystem', |
| | | type: 'select', |
| | | span: 12, |
| | |
| | | }] |
| | | }, |
| | | { |
| | | label: '程序临时目录', |
| | | prop: 'progTempDir', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '程序下发目录', |
| | | prop: 'progSendDir', |
| | | type: 'input', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '下发目录保存时间', |
| | | prop: 'sendDirExpiryHours', |
| | | placeholder:"(小时)", |
| | | max:24, |
| | | min:1, |
| | | type: 'number', |
| | | span: 12, |
| | | }, |
| | | { |
| | | label: '程序回传目录', |
| | |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | { |
| | | label: '程序临时目录', |
| | | prop: 'progTempDir', |
| | | type: 'input', |
| | | { |
| | | label: '回传目录保存时间', |
| | | prop: 'receiveDirExpiryHours', |
| | | max:24, |
| | | min:1, |
| | | placeholder:"(小时)", |
| | | type: 'number', |
| | | span: 12, |
| | | dataType: 'string', |
| | | }, |
| | | |
| | | { |
| | | label: '备注', |
| | | prop: 'remark', |
| | |
| | | margin-left: 6px; |
| | | margin-right: 6px; |
| | | } |
| | | .menuLeft { |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | </style> |