| | |
| | | @current-change="currentChange" |
| | | @size-change="sizeChange" |
| | | @refresh-change="refreshChange" |
| | | @on-load="onLoad" |
| | | > |
| | | <template #menu-left> |
| | | <el-button type="primary" icon="el-icon-plus" plain @click="openFirmwareUpload" |
| | |
| | | :rules="rules" |
| | | > |
| | | <el-form-item label="设备名称" prop="device_name"> |
| | | <el-input v-model="importForm.device_name" clearable disabled></el-input> |
| | | <el-input v-model="importForm.device_name" clearable></el-input> |
| | | </el-form-item> |
| | | |
| | | <!-- 上传 --> |
| | |
| | | firmwareUploadBox: false, |
| | | form: {}, |
| | | query: {}, |
| | | workspaceId: '', |
| | | workspaceId: '4a574d68-4ad3-48f7-9f16-3edbcd8056e1', |
| | | deviceName: '', |
| | | loading: true, |
| | | page: { |
| | |
| | | option: { |
| | | lazy: true, |
| | | tree: true, |
| | | height: 'atuo', |
| | | calcHeight: 32, |
| | | dialogWidth: 950, |
| | | tip: false, |
| | | searchShow: true, |
| | |
| | | excelBtn: false, |
| | | dialogClickModal: false, |
| | | grid: false, |
| | | |
| | | height: 'auto', |
| | | calcHeight: 20, |
| | | column: [ |
| | | { |
| | | label: '设备名称', |
| | |
| | | label: '上传状态', |
| | | prop: 'upload_status', |
| | | addDisplay: false, |
| | | editDisplay: false, |
| | | labelWidth: 130, |
| | | type: 'select', |
| | | width: 100, |
| | |
| | | }, |
| | | // 初始化数据 |
| | | init(data) { |
| | | this.workspaceId = data.workspace_id; |
| | | // this.workspaceId = '4a574d68-4ad3-48f7-9f16-3edbcd8056e1'; |
| | | // this.workspaceId = data.workspace_id; |
| | | this.workspaceId = '4a574d68-4ad3-48f7-9f16-3edbcd8056e1'; |
| | | this.deviceName = data.device_name; |
| | | this.onLoad(this.page); |
| | | }, |
| | |
| | | /* color: aqua; */ |
| | | } |
| | | </style> |
| | | <style scoped lang="scss"></style> |