Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 隐藏在窗口模式中的剑道树列表行_Angularjs_Typescript_Kendo Ui_Angular Ui Bootstrap - Fatal编程技术网

Angularjs 隐藏在窗口模式中的剑道树列表行

Angularjs 隐藏在窗口模式中的剑道树列表行,angularjs,typescript,kendo-ui,angular-ui-bootstrap,Angularjs,Typescript,Kendo Ui,Angular Ui Bootstrap,我试图在引导窗口模式中使用剑道ui树列表,因此,我只得到显示的标题,但隐藏了主体。当我在主页中创建树列表时,所有的事情都正常工作。 这是我的代码: 树列表选项: _this.variablesTreeListOptions = { dataSource: { transport: { read: function (e) {

我试图在引导窗口模式中使用剑道ui树列表,因此,我只得到显示的标题,但隐藏了主体。当我在主页中创建树列表时,所有的事情都正常工作。 这是我的代码: 树列表选项:

_this.variablesTreeListOptions = {
                dataSource: {
                    transport: {
                        read: function (e) {
                            _this.$service.read("api/Variable/GetAll")
                                .then((result: any) => {
                                    dataArray = result.data;
                                    gridData = new kendo.data.ObservableArray([]);
                                    gridData.push.apply(gridData, dataArray);
                                    e.success(gridData);
                                }, (error: any): any => {
                                    alert("Error");
                                    e.error();
                                });
                        },
                        parameterMap: function (options, operation) {
                            if (operation !== "read" && options.models) {
                                return { models: kendo.stringify(options.models) };
                            }
                        },
                        schema: {
                            model: {
                                id: "VariableId",
                                fields: {
                                    VariableId: { type: "number", editable: false, nullable: false },
                                    Code: { type: "string", editable: false, nullable: false },
                                    Libelle: { type: "string", editable: false, nullable: false },
                                    Valeur: { type: "number", editable: false, nullable: false },
                                    Expression: { type: "string", editable: false, nullable: false },
                                }
                            }, expanded: true
                        }
                    }
                },
                sortable: true,
                editable: true,
                columns: [
                    { field: "Code", title: "Code", width: "150px" },
                    { field: "Libelle", title: "Libelle", width: "150px" },
                ]
            }
以下是我的html模式:

<!-- Modal -->
<div class="modal fade" id="myModal"  aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Générateur de formule</h4>
            </div>
            <div class="modal-body">
                   <div class="col-lg-6 col-md-6 col-sm-6">
                 <div class="x_panel custom-modal">
                     <div  kendo-tab-strip k-content-urls="[ null, null]">
                         <ul>
                             <li class="k-state-active"><h6>Variables</h6></li>
                             <li><h6>Rubriques</h6></li>
                             <li><h6>Formules</h6></li>
                         </ul>
                                <kendo-tree-list k-options="vm.variablesTreeListOptions">

                                </kendo-tree-list>
                         <div>
                             <div class="x_panel">

                             </div>
                         </div>
                         <div>
                             <div class="x_panel">

                             </div>
                         </div>
                     </div>
                 </div>
             </div>
                <div class="col-lg-6 col-md-6 col-sm-6">
                    <div class="x_panel">
                        <form>
                            <div class="form-group">
                                <label for="formule">Formule:</label>
                                <textarea id="formule" class="form-control"></textarea>
                            </div>
                        </form>
              </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Fermer</button>
                <button type="button" class="btn btn-primary">Enregister</button>
            </div>
        </div>
    </div>
</div>

&时代;
公式化率
    变量
  • 红宝石
  • 配方
公式: 费尔默 登记员
控制台中有错误吗?没有错误!