2017-11-16 13 views
0

私のタブローで自分のデータを整理することはできません、これは私のコードです:は、私はPHPと角度JSを使用してい

<table class="table table-bordered"> 
         <thead> 
         <tr> 
          <th><Bold>Participation fille-société</Bold></th> 
          <th><Bold>Secteur d'activité</Bold></th> 
          <th><Bold>Date d'acquisition</Bold></th> 
          <th><Bold>Prix d'acquisition</Bold></th> 
          <th><Bold>Tri actualisé</Bold></th> 
          <th><Bold>Type d'operation</Bold></th> 
          <th><Bold>Participations meres</Bold></th> 
          <th><Bold>Action<Bold></th> 
         </tr> 
         </thead> 
         </tbody> 
         <tr > 
          <td><Bold><a href="consultationPFS.php?id_participationfilleS={{ps.id_participationfilleS}}">{{ps.nomParticipationFilleS}}</Bold></td> 
          <td><Bold>{{ps.secteurActivite}}</Bold></td> 
          <td><Bold>{{ps.date_aquisition}}</Bold></td> 
          <td><Bold>{{ps.Prix_acquisition}}</Bold></td> 
          <td><Bold>{{ps.tri_actualise}}</Bold></td> 
          <td><Bold>{{ps.tri_actualise}}</Bold></td> 
          <td ng-repeat="ac in DataPmers"><Bold>{{ac.nom_participation}} {{ac.pourcentage}}%</Bold></td> 
          <td><a type="submit" class="edit-row" href="UpdatePFS.php?id_participationfilleS={{ps.id_participationfilleS}}" title="Modifier" ><i class="fa fa-pencil"></i></a> | <a type="submit" class="delet-row" title="Supprimer" ng-click="supp(ps)"><i class="fa fa-trash"</i></button></a> | <a type="submit" class="edit-row" href="EtatPFS.php?id_participationfilleS={{ps.id_participationfilleS}}" title="Modifier" ><i class="fa fa-pencil"></i></a></td> 

         </tr> 
         </tbody> 
        </table><div class="box-footer clearfix"> 

そして、下図のように結果:

enter image description here

Participations meresで見ることができるので、他の列に1つのデータと他のデータ行を与えます。

参加のすべてのデータを同じ列に入れるにはどうしたらいいですか?

+0

tdノー​​ドを繰り返さないでください。代わりに太字のノードを繰り返します。 – Peter

+0

cant understundどうすればこのことができますかPeter –

+0

nd-repeatを太字のノードに置きます。 – Peter

答えて

0

これはあなたのために働きますか?DataPmersごとにテーブルの新しい行ですか?

<table class="table table-bordered"> 
       <thead> 
        <tr> 
         <th><Bold>Participation fille-société</Bold></th> 
         <th><Bold>Secteur d'activité</Bold></th> 
         <th><Bold>Date d'acquisition</Bold></th> 
         <th><Bold>Prix d'acquisition</Bold></th> 
         <th><Bold>Tri actualisé</Bold></th> 
         <th><Bold>Type d'operation</Bold></th> 
         <th><Bold>Participations meres</Bold></th> 
         <th><Bold>Action<Bold></th> 
        </tr> 
       </thead> 
       </tbody> 
        <tr ng-repeat="ac in DataPmers"> 
         <td><Bold><a href="consultationPFS.php?id_participationfilleS={{ps.id_participationfilleS}}">{{ps.nomParticipationFilleS}}</Bold></td> 
         <td><Bold>{{ps.secteurActivite}}</Bold></td> 
         <td><Bold>{{ps.date_aquisition}}</Bold></td> 
         <td><Bold>{{ps.Prix_acquisition}}</Bold></td> 
         <td><Bold>{{ps.tri_actualise}}</Bold></td> 
         <td><Bold>{{ps.tri_actualise}}</Bold></td> 
         <td><Bold>{{ac.nom_participation}} {{ac.pourcentage}}%</Bold></td> 
         <td><a type="submit" class="edit-row" href="UpdatePFS.php?id_participationfilleS={{ps.id_participationfilleS}}" title="Modifier" ><i class="fa fa-pencil"></i></a> | <a type="submit" class="delet-row" title="Supprimer" ng-click="supp(ps)"><i class="fa fa-trash"</i></button></a> | <a type="submit" class="edit-row" href="EtatPFS.php?id_participationfilleS={{ps.id_participationfilleS}}" title="Modifier" ><i class="fa fa-pencil"></i></a></td> 

        </tr> 
       </tbody> 
</table> 
+0

あなたの答えを考えていますが、同じデータ –

関連する問題