Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.2k views
in Technique[技术] by (71.8m points)

easyUI 表格可编辑列的问题

<table id="dg"></table>



        $('#dg')
                .datagrid(
                        {
                            url : '${pageContext.request.contextPath}/purchase/msWarehouseReceiptDetails/findDeails',
                            queryParams : {
                                materialNumber : rows[0].warehouseReceiptNumber
                            },
                            pagination : true,
                            pageSize : 5,
                            pageList: [5, 10],
                            rownumbers : false,
                            striped : false,
                            singleSelect : true,
                            idField : 'id',
                            nowrap : true,
                            pagePosition : 'top',
                            totalProperty : "total",
                            rowsProperty : "elcForecasts",
                            columns : [ [ {
                                field : 'materialNumber',
                                title : '编码',
                                width : 100,

                            }, {
                                field : 'commoditySpecification',
                                title : '规格',
                                width : 100,
                                editor : {
                                    type : 'numberbox',
                                    options : {
                                        required : 'required',
                                        precision : 0
                                    }
                                }
                            }, {
                                field : 'unitPrice',
                                title : '本次进价',
                                width : 100,

                            }, {
                                field : 'expectedNumber',
                                title : '预计到货数',
                                width : 100,

                            }, {
                                field : 'thisTimeNumber',
                                title : '本次入库数',
                                width : 100,

                            }, {
                                field : 'deliveryAddress',
                                title : '发货地址',
                                width : 100,

                            }, {
                                field : 'deliveryMethods',
                                title : '运货方式',
                                width : 100,

                            }, {
                                field : 'logisticsCompany',
                                title : '物流公司',
                                width : 100,

                            }, {
                                field : 'shipmentNumber',
                                title : '物流单号',
                                width : 100,

                            }, {
                                field : 'remark',
                                title : '备注',
                                width : 100,

                            } ] ],
                        });
                        
                        
                        
                        
                        

为什么这样子写了以后,表格数据显示正常,但点击“规格”那一列的时候无法编辑,是哪儿写错了

先感谢各位大神们的解答,小弟感激不尽


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...