AngularJs:如何将数据发送到 HTML 弹出窗口并列出它

AngularJs: how to send data to an HTML popup and list it

提问人:Luis Marcelo Santos 提问时间:11/14/2023 最后编辑:Luis Marcelo Santos 更新时间:11/14/2023 访问量:22

问:

有经验的人

我无法将信息发送到我的html,下面的文件是abcController.js:

$scope.openSituationWorkflow = 函数 () {

   var id = $scope.data.id ;
   var EventWorkflow = ["$scope", "$modalInstance", "TableFactory", "ConsultFactory", function ($scope, $modalInstance, TableFactory, ConsultFactory) {
      $rootScope.isPopup = true;
      $scope.innerTemplate = contextPath+"xyz/view/consultLocalWorkflow.html";
      ConsultFactory.openWorkflowRest(id).then(function(data) {         
      });

      $scope.popupTable = new TableFactory (
         {
            service: ConsultFactory.openSituationWorkflowRest(id),
            remotePagination: false
         });

      $scope.filtro = {field: "id", value: id};

      $scope.close = function () {
         $modalInstance.close();
      };
   }];

   modalService.open({windowClass: "clmListaPopup", controller: EventWorkflow });
};

这是我的带有表格的弹出窗口(consultLocalWorkflow.html)

<div class="content" style="background-color: white; padding: 20px;">
    <table adsm-table="popupTable"
           data-adsm-table-internal-loading="true"
           class="table adsm-table-hover table-condensed adsm-table"
           style="width: 100%">
        <tbody>
        <tr ng-repeat="row in page ">
            <td column-title="aprovador" style="min-width: 140px; max-width: 400px;">{{ row.integrante }}</td>
            <td column-title="dataLiberacao" align="center" >{{ row.dhLiberacao | dateTimeZone}}</td>
            <td column-title="dataAcao" align="center" >{{ row.dhAcao | dateTimeZone }}</td>
            <td column-title="situacao" >{{ row.tpSituacaoAcao }}</td>
            <td column-title="observacao" >{{ row.obAcao }}</td>
        </tr>
        </tbody>
    </table>
</div>
<div class="modal-footer">
    <button id="btnClose" class="fix-btn" data-ng-click="close()" data-ng-bind="'fechar' | translate"></button>
</div>

弹出窗口将打开,但数据未在屏幕上列出。我错了什么?

JavaScript HTML AngularJS

评论

0赞 aled 11/14/2023
您应该使用 代替标记。请编辑您的问题。javascriptjava
0赞 Luis Marcelo Santos 11/14/2023
虽然您的评论没有添加任何内容,但我更改了标签。

答:

0赞 happyDayJeffrey 11/14/2023 #1

检查您在 HTML 中列出的页面数组是否存在于 JS 文件中。您似乎没有在 JS 文件中设置“page”属性。