在角表

时间:2018-02-28 07:16:51

标签: javascript angularjs ngtable

我正在使用角度表来显示我的数据。但我有一个问题。 我在第一页输入了值。当我转到第二页时,仍会显示第一页值。我怎么解决这个问题。 my javascript file 请检查以下屏幕以了解我的问题。 enter image description here

enter image description here



$scope.tableParams = new NgTableParams({count:3}, {dataset:listOnhireContainers});

<table ng-table="tableParams" 
							class="table table-condensed table-bordered table-striped table-scroll">
							<tbody style="width: 100%">
							<tr ng-repeat="SelectedContainer in $data track by $index">
								<td data-title="'Container No.'" ng-model="SelectedContainer.containerNo"
									class="row-center"> {{SelectedContainer.containerNo}}</td>
									
								
<td data-title="'9 AM'" class="row-center form-group">
	<div class="input-group">
										<input type="text" class="form-control"
											id=""											
											ng-change="ChangetoValAmFillRows(SelectedContaineraM[$index],$index,SelectedContainercheckDAM[$index])"
											ng-pattern="/^(0|[+-][1-9])\d*(\.\d+)?$/"
											ng-pattern-err-type="tempPattern"
											ng-model="SelectedContaineraM[$index]"  ng-readonly="truefalseAM[$index]"
											ng-disabled="(SelectedContainercheckDAM[$index] | uppercase) == '-' || (SelectedContainercheckDAM[$index] | uppercase) == 'OFF'   " />
										<div class="input-group-btn">
										
									
										<select name="addSymbol" style="width: initial" id="chkD"
										        ng-options="choice as choice for (idx, choice) in tempdrop.split(',')"
												ng-model="SelectedContainercheckDAM[$index]" ng-disabled="truefalseDAM[$index]"  class="form-control"
												ng-change="tempdropchangeAM($index); SetcheckDAMTempSelected(SelectedContainercheckDAM[$index],$index,SelectedContaineraM[$index]);">
											    <option value="">--Select--</option>
											</select>
										</div>


									</div> 
</td>

<td data-title="'4 PM'" class="row-center form-group">
<div class="input-group">
										<input type="text" class="form-control"
											id="selected-container-tempt"											
											ng-change="ChangetoValPmFillRows(SelectedContainerpM[$index],$index,SelectedContainercheckDPM[$index])"
											ng-pattern="/^(0|[+-][1-9])\d*(\.\d+)?$/"
											ng-pattern-err-type="tempPattern"
											ng-model="SelectedContainerpM[$index]" ng-readonly="truefalsePM[$index]" 
											ng-disabled="(SelectedContainercheckDPM[$index] | uppercase) == '-' || (SelectedContainercheckDPM[$index]  | uppercase) == 'OFF'  " />
										<div class="input-group-btn">
											<select name="addSymbol" style="width: initial" id="chkD"
												ng-options="choice as choice for (idx, choice) in tempdrop.split(',')"
												ng-model="SelectedContainercheckDPM[$index]" ng-disabled="truefalseDPM[$index]" class="form-control"
												ng-change="tempdropchangePM($index); SetcheckDPMTempSelected(SelectedContainercheckDPM[$index],$index,SelectedContainerpM[$index]);">
												<option value="">--Select--</option>
											</select>
										</div>


									</div> 
</td>
							</tr>
							</tbody>
						</table>
&#13;
&#13;
&#13;

0 个答案:

没有答案