Commit e792c263 authored by liboyang's avatar liboyang

禁用传参id

parent 16b85499
...@@ -732,13 +732,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule']) ...@@ -732,13 +732,13 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success(response.data) success(response.data)
}) })
}, },
updateIsValidData:function(slh,isValid,success){ updateIsValidData:function(id,isValid,success){
console.log(slh,isValid) console.log(id,isValid)
$http({ $http({
method: 'GET', method: 'GET',
url: "../queryPreproPerson/updatePreproPerson"+urlTimeStamp(), url: "../queryPreproPerson/updatePreproPerson"+urlTimeStamp(),
params:{ params:{
uploadNo:slh, id:id,
isValid:isValid isValid:isValid
} }
}).then(function successCallback(response) { }).then(function successCallback(response) {
......
...@@ -111,8 +111,8 @@ ...@@ -111,8 +111,8 @@
<td>{{item.SOURCE_FILE_NAME}}</td> <td>{{item.SOURCE_FILE_NAME}}</td>
<td>{{item.NEW_FILE_NAME}}</td> <td>{{item.NEW_FILE_NAME}}</td>
<td>{{item.CARD_TYPE}}</td> <td>{{item.CARD_TYPE}}</td>
<td ng-if="item.IS_VALID==1"><button class="btn btn-primary" ng-click="updateIsValid(item.JMSFZSLH,0)">禁用</button></td> <td ng-if="item.IS_VALID==1"><button class="btn btn-primary" ng-click="updateIsValid(item.ID,0)">禁用</button></td>
<td ng-if="item.IS_VALID==0"><button class="btn btn-info" ng-click="updateIsValid(item.JMSFZSLH,1)">启用</button></td> <td ng-if="item.IS_VALID==0"><button class="btn btn-info" ng-click="updateIsValid(item.ID,1)">启用</button></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
......
...@@ -75,8 +75,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't ...@@ -75,8 +75,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
// 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目 // 通过$watch currentPage和itemperPage 当他们一变化的时候,重新获取数据条目
$scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.doPackageQuery); $scope.$watch('paginationConf.currentPage +paginationConf.itemsPerPage', $scope.doPackageQuery);
$scope.updateIsValid = function (slh,isValid) { $scope.updateIsValid = function (id,isValid) {
HttpService.updateIsValidData(slh,isValid,function(data) { HttpService.updateIsValidData(id,isValid,function(data) {
$scope.doPackageQuery(); $scope.doPackageQuery();
MessageService.showAlert("更新成功") MessageService.showAlert("更新成功")
}) })
......
...@@ -413,14 +413,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http']) ...@@ -413,14 +413,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope.isHistory=0; $scope.isHistory=0;
$scope.searchTaskList = function(){ $scope.searchTaskList = function(){
$scope.isHistory=0; $scope.isHistory=0;
var date=$('#datepicker').val();
if(date==''){
date=$scope.choseDate;
}
HttpService.getHasDistributeCount(date,function (data) {
$scope.distributedCount = data;
console.log(data)
})
HttpService.getFjTaskListByProcess(function(data){ HttpService.getFjTaskListByProcess(function(data){
$scope.cycleSheetData = data; $scope.cycleSheetData = data;
for(var i=0;i<$scope.cycleSheetData.length;i++){ for(var i=0;i<$scope.cycleSheetData.length;i++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment