|
html:
<select ng-model="check.iteminfo">
<option value="1">合格</option>
<option value="2" ng-selected="true">部分合格</option>
<option value="3">不合格</option>
</select>
js:
$scope.caseSubmit = function (check) {
alert(check.iteminfo);
var data = {
iteminfo: encodeURI(encodeURI(check.iteminfo))
}
$http({
method: 'POST',
//url: ''http://111.17.181.235:5015/base/supervise_doAjaxSubmit.do',
url: 'http://192.168.0.101:8082/zzDrugManage1/base/supervise_doAjaxSubmit.do',
params:{
'require': data
}
}).success(function(data,status,headers,config){
alert("提报成功");
}).error(function(data,status,headers,config){
alert("提报失败");
});
};
|
|