| | |
| | | const projectNumber = row.projectNumber; |
| | | const thickness = row.glass_thickness; |
| | | const glassType = row.glass_type; |
| | | const quantity = row.quantity; |
| | | const area = row.glass_total_area; |
| | | const optimizeState = row.optimize_state; |
| | | await router.push({ |
| | | name: 'optimizeInfo', |
| | | params: { |
| | | projectNo: projectNumber, |
| | | thickNess: thickness, |
| | | model: glassType |
| | | model: glassType, |
| | | quantity: quantity, |
| | | area: area, |
| | | optimizeState:optimizeState |
| | | } |
| | | }); |
| | | } |
| | |
| | | } |
| | | |
| | | // 公共处理函数,处理相同数据时的操作,并返回targetRoute对象(右键菜单和双击打开) |
| | | const handleSameDataOperation = async ({projectNumber, thickness, glassType}) => { |
| | | const handleSameDataOperation = async ({projectNumber, thickness, glassType,quantity,glass_total_area,optimize_state}) => { |
| | | const targetRoute = { |
| | | name: 'optimizeInfo', |
| | | params: { |
| | | projectNo: projectNumber, |
| | | thickNess: String(thickness), |
| | | model: glassType |
| | | thickNess: thickness, |
| | | model: glassType, |
| | | quantity: quantity, |
| | | area: glass_total_area, |
| | | optimizeState:optimize_state |
| | | } |
| | | }; |
| | | const currentRoute = router.currentRoute.value; |