| | |
| | | option: { |
| | | lazy: true, |
| | | tree: true, |
| | | height: 'auto', |
| | | calcHeight: 32, |
| | | dialogWidth: 750, |
| | | tip: false, |
| | | searchShow: true, |
| | |
| | | }); |
| | | }, |
| | | rowSave(row, done, loading) { |
| | | row['device_sn'] = this.deviceSn; |
| | | // 添加毫秒级时间戳 |
| | | row['createTime'] = Date.now(); |
| | | row['deviceSn'] = this.deviceSn; |
| | | |
| | | add(row).then( |
| | | () => { |
| | | this.initFlag = false; |
| | |
| | | this.getLoadPage(this.page, this.query); |
| | | }, |
| | | getLoadPage(page, params = {}) { |
| | | params['device_sn'] = this.deviceSn; |
| | | params['deviceSn'] = this.deviceSn; |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, params).then(res => { |
| | | const data = res.data.data; |
| | |
| | | .firmware_status:hover { |
| | | cursor: pointer; |
| | | } |
| | | </style> |
| | | </style> |