| | |
| | | xGrid.value.setSelectCell(nextRow, 'width') |
| | | break; |
| | | default: |
| | | /*if (nextRowIndex < length) { |
| | | const nextRow = xGrid.value.getTableData().fullData[nextRowIndex] |
| | | xGrid.value.setCurrentRow(nextRow) |
| | | xGrid.value.scrollToRow(nextRow) |
| | | xGrid.value.setSelectCell(nextRow, column.field) |
| | | }*/ |
| | | if(nextRowIndex === length){ |
| | | xGrid.value.insertAt({}, xGrid.value.getTableData.length || -1) |
| | | } |
| | |
| | | } |
| | | |
| | | const saveProducts=(product)=>{ |
| | | console.log(product) |
| | | return |
| | | request.post(`/product/saveProduct`,product).then((res) =>{ |
| | | if(res.code==200){ |
| | | ElMessage.success(t('product.msg.saveSuccess')) |
| | |
| | | public Result saveProduct(@RequestBody Map<String,Object> product){ |
| | | return Result.seccess(productService.saveProduct(product)); |
| | | } |
| | | @ApiOperation("其他系统产品保存接口") |
| | | @PostMapping("/otherSysSaveProduct") |
| | | public Result otherSysSaveProduct(@RequestBody Map<String,Object> product){ |
| | | return Result.seccess(productService.saveProduct(product)); |
| | | } |
| | | |
| | | @ApiOperation("产品查重接口") |
| | | @SaCheckPermission("createProduct.add") |