Commit 7ab7d08a authored by liboyang's avatar liboyang

膜打印更新工作组

parent 2d751025
......@@ -186,23 +186,25 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
name:'B组'
}
]
$scope.updateGroup = function(group) {
if (group>0){
var checks = $("#checkOneBox:checked");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
$scope.updateGroup = function() {
var groupSelected = $("#groupSelected").val();
console.log(groupSelected)
var checks = $("#checkOneBox:checked");
var arr = [];
for (var i=0;i<checks.length;i++){
arr.push(checks[i].value)
}
if(arr.length>0){
var json = {
workGroup:group,
workGroup:groupSelected,
taskIdList:arr
}
console.log(group,"===",json," 更新工作组")
HttpService.updateWorkGroup(json,function(data) {
console.log(data)
$scope.searchTaskList();
})
}else{
MessageService.showAlert("请选择要更新的任务单")
}
}
......
......@@ -101,22 +101,17 @@
<!-- /.table -->
<div class="box-footer">
<div class="pull-left">
<select class="form-control select2" style="border-radius:5px"
ng-model="workGroup">
<option value="">请选择工作组</option>
<option value="1">A组</option>
<option value="2">B组</option>
<select class="form-control select2" id="groupSelected" style="border-radius:5px">
<option value="{{group.id}}" ng-repeat="group in groupList">{{group.name}}</option>
</select>
</div>
<div class="pull-left" style="margin-left: 10px;">
<button class="btn btn-info" ng-click="updateGroup(workGroup)">更新工作组</button>
<button class="btn btn-info" ng-click="updateGroup()">更新工作组</button>
</div>
<div class="pull-right" style="margin-left: 10px;">
<button class="btn btn-primary" ng-click="goes()">转出任务单</button>
</div>
</div>
</div>
</div>
<!-- /.mail-box-messages -->
<div ng-if="cycleSheetData.length==0">
<h4>暂无数据</h4>
......
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