|
@@ -4,7 +4,7 @@ angular
|
4
|
4
|
.module("app.storage")
|
5
|
5
|
.controller(
|
6
|
6
|
"safeProduceDangerHandle",
|
7
|
|
- function ($scope, $state, $rootScope, safeDangerHandleService) {
|
|
7
|
+ function ($scope, $state, $rootScope, safeDangerHandleService, $filter) {
|
8
|
8
|
$scope.pageInfo = { pageNum: 1, pageSize: 10 };
|
9
|
9
|
$scope.orgName = $rootScope.depotInfo.orgName;
|
10
|
10
|
$scope.loadData = function () {
|
|
@@ -86,7 +86,8 @@ angular
|
86
|
86
|
$rootScope,
|
87
|
87
|
safeDangerHandleService,
|
88
|
88
|
StorehouseService,
|
89
|
|
- $stateParams
|
|
89
|
+ $stateParams,
|
|
90
|
+ $filter
|
90
|
91
|
) {
|
91
|
92
|
$scope.orgName = $rootScope.depotInfo.orgName;
|
92
|
93
|
$scope.insertDanger = {
|
|
@@ -129,6 +130,10 @@ angular
|
129
|
130
|
.queryById($stateParams.id)
|
130
|
131
|
.then(function (data) {
|
131
|
132
|
$scope.insertDanger = data.data;
|
|
133
|
+ if($scope.insertDanger.solveTime) {
|
|
134
|
+ $scope.insertDanger.solveTime = $filter('date')($scope.insertDanger.solveTime, "yyyy-MM-dd");
|
|
135
|
+ $scope.insertDanger.solveTime = $scope.insertDanger.solveTime.slice(0, 10);
|
|
136
|
+ }
|
132
|
137
|
});
|
133
|
138
|
}
|
134
|
139
|
};
|