页面2
$scope.changeToPreStep = function () {
if ($stateParams.data.fromProgram) {
$scope.$root.changeProgram($stateParams.data.fromProgram, {
machine_list: $stateParams.data.machine_list,
//selectmachineItem:$stateParams.data.machine_Item,
}, true);
}
}
页面1
{
name: $filter('translate')('G0101.menuTitle'), status: ['Q', 'R', 'C', 'W'], programName: 'G0101',
init: function () {
$scope.$root.changeProgram('G0101', {
data: {
machine_no:$scope.machineItem.machine_no,//H-19207
plot_no: $scope.plotItem.plot_no,
op_no: $scope.plotItem.op_no,
op_name: $scope.plotItem.op_name,
machine_list: $stateParams.machine_list,
fromProgram: 'B0215',
selectmachineItem:$scope.selectmachineItem,
}
});
}
},
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/b696c4dbd36f45d284a1c0b23efb9c84.png "#left")
点击页面1的设备进入页面2,怎么让页面2返回时定位到页面1的设备,不会刷新回到第一台设备