<td>
<span ng-if="good.status=='0'">未发货</span>
<span ng-if="good.status=='1'">已发货</span>
</td>
<td>{{good.username}}</td>
<td>{{good.address}}</td>
<td>
<span ng-if="good.status=='0'"><input type="button" value="发货" ng-click="fa($index)" style="background-color: aqua;"></span>
<span ng-if="good.status=='1'">发货</span>
</td>
<td>
<span ng-if="good.status=='0'"><input type="checkbox"></span>
<span ng-if="good.status=='1'"><input type="checkbox" ng-model="checkAll"></span>
</td>
//点击发货按钮
$scope.fa = function(index){
$scope.goods[index].status = 1;
}
修改
最新推荐文章于 2023-05-26 20:50:56 发布