1、日期格式化
var today = new Date();
$scope.currentDate = $filter('date')(today, 'yyyy-MM-dd');
console.info( $scope.currentDate);
2、页面传值
$state.go("main.merchantCenterIndex.productCancellationApplication",{"productDetail":null});
3、下载
window.open(ApiPath.api.downloadFile + '?fileId=' + eachList.fileId);
4、请求后台服务
productCancellationInfoServ.submitCancel($scope.productDto).then(
function(answer){
angular.alert("提交审核成功!");
$state.go("main.merchantCenterIndex.productCancellationApplication",{});
},function(error){
angular.alert("提交失败!");
}
);